aboutsummaryrefslogtreecommitdiffstats
path: root/vendor
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-12-17 11:36:55 +0100
committerHarald Eilertsen <haraldei@anduin.net>2017-12-17 11:38:07 +0100
commit9be44b3fa9985b8a93160434ce9f6dc922ec4387 (patch)
treecf488691c1168caf9e02be7830635da76b3bc57b /vendor
parent302aadd8bfd4030d9b2a71d5121fd650c0918338 (diff)
downloadhmnoweb-9be44b3fa9985b8a93160434ce9f6dc922ec4387.tar.gz
hmnoweb-9be44b3fa9985b8a93160434ce9f6dc922ec4387.tar.bz2
hmnoweb-9be44b3fa9985b8a93160434ce9f6dc922ec4387.zip
New extension GalleryLinks
Diffstat (limited to 'vendor')
-rw-r--r--vendor/extensions/gallery_links/Gemfile38
-rw-r--r--vendor/extensions/gallery_links/Rakefile20
-rw-r--r--vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/admin/gallery_links_controller.rb12
-rw-r--r--vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb34
-rw-r--r--vendor/extensions/gallery_links/app/models/refinery/gallery_links/gallery_link.rb11
-rw-r--r--vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_actions.html.erb25
-rw-r--r--vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_form.html.erb45
-rw-r--r--vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_gallery_link.html.erb20
-rw-r--r--vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_gallery_links.html.erb2
-rw-r--r--vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_records.html.erb16
-rw-r--r--vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_sortable_list.html.erb5
-rw-r--r--vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/edit.html.erb1
-rw-r--r--vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/index.html.erb7
-rw-r--r--vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/new.html.erb1
-rw-r--r--vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb11
-rw-r--r--vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/show.html.erb51
-rw-r--r--vendor/extensions/gallery_links/config/locales/cs.yml31
-rw-r--r--vendor/extensions/gallery_links/config/locales/en.yml31
-rw-r--r--vendor/extensions/gallery_links/config/locales/es.yml32
-rw-r--r--vendor/extensions/gallery_links/config/locales/fr.yml31
-rw-r--r--vendor/extensions/gallery_links/config/locales/it.yml31
-rw-r--r--vendor/extensions/gallery_links/config/locales/nb.yml31
-rw-r--r--vendor/extensions/gallery_links/config/locales/nl.yml31
-rw-r--r--vendor/extensions/gallery_links/config/locales/sk.yml31
-rw-r--r--vendor/extensions/gallery_links/config/locales/tr.yml31
-rw-r--r--vendor/extensions/gallery_links/config/locales/zh-CN.yml33
-rw-r--r--vendor/extensions/gallery_links/config/routes.rb19
-rw-r--r--vendor/extensions/gallery_links/db/migrate/1_create_gallery_links_gallery_links.rb30
-rw-r--r--vendor/extensions/gallery_links/db/seeds.rb25
-rw-r--r--vendor/extensions/gallery_links/lib/generators/refinery/gallery_links_generator.rb19
-rw-r--r--vendor/extensions/gallery_links/lib/refinery/gallery_links.rb21
-rw-r--r--vendor/extensions/gallery_links/lib/refinery/gallery_links/engine.rb26
-rw-r--r--vendor/extensions/gallery_links/lib/refinerycms-gallery_links.rb1
-rw-r--r--vendor/extensions/gallery_links/lib/tasks/refinery/gallery_links.rake13
-rw-r--r--vendor/extensions/gallery_links/readme.md10
-rw-r--r--vendor/extensions/gallery_links/refinerycms-gallery_links.gemspec18
-rw-r--r--vendor/extensions/gallery_links/script/rails10
-rw-r--r--vendor/extensions/gallery_links/spec/features/refinery/gallery_links/admin/gallery_links_spec.rb101
-rw-r--r--vendor/extensions/gallery_links/spec/models/refinery/gallery_links/gallery_link_spec.rb18
-rw-r--r--vendor/extensions/gallery_links/spec/spec_helper.rb31
-rw-r--r--vendor/extensions/gallery_links/spec/support/factories/refinery/gallery_links.rb7
-rw-r--r--vendor/extensions/gallery_links/tasks/rspec.rake6
-rw-r--r--vendor/extensions/gallery_links/tasks/testing.rake8
43 files changed, 975 insertions, 0 deletions
diff --git a/vendor/extensions/gallery_links/Gemfile b/vendor/extensions/gallery_links/Gemfile
new file mode 100644
index 0000000..d0dd650
--- /dev/null
+++ b/vendor/extensions/gallery_links/Gemfile
@@ -0,0 +1,38 @@
+source "http://rubygems.org"
+
+gemspec
+
+gem 'refinerycms', '~> 2.1.0'
+
+# Database Configuration
+platforms :jruby do
+ gem 'activerecord-jdbcsqlite3-adapter'
+ gem 'activerecord-jdbcmysql-adapter'
+ gem 'activerecord-jdbcpostgresql-adapter'
+ gem 'jruby-openssl'
+end
+
+platforms :ruby do
+ gem 'sqlite3'
+ gem 'mysql2'
+ gem 'pg'
+end
+
+group :development, :test do
+ gem 'refinerycms-testing', '~> 2.1.0'
+
+ platforms :ruby do
+ require 'rbconfig'
+ if RbConfig::CONFIG['target_os'] =~ /linux/i
+ gem 'therubyracer', '~> 0.11.4'
+ end
+ end
+end
+
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'sass-rails'
+ gem 'coffee-rails'
+ gem 'uglifier'
+end
diff --git a/vendor/extensions/gallery_links/Rakefile b/vendor/extensions/gallery_links/Rakefile
new file mode 100644
index 0000000..3e2480d
--- /dev/null
+++ b/vendor/extensions/gallery_links/Rakefile
@@ -0,0 +1,20 @@
+#!/usr/bin/env rake
+begin
+ require 'bundler/setup'
+rescue LoadError
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
+end
+
+ENGINE_PATH = File.dirname(__FILE__)
+APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
+
+if File.exists?(APP_RAKEFILE)
+ load 'rails/tasks/engine.rake'
+end
+
+require "refinerycms-testing"
+Refinery::Testing::Railtie.load_tasks
+Refinery::Testing::Railtie.load_dummy_tasks(ENGINE_PATH)
+
+load File.expand_path('../tasks/testing.rake', __FILE__)
+load File.expand_path('../tasks/rspec.rake', __FILE__)
diff --git a/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/admin/gallery_links_controller.rb b/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/admin/gallery_links_controller.rb
new file mode 100644
index 0000000..89c5a66
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/admin/gallery_links_controller.rb
@@ -0,0 +1,12 @@
+module Refinery
+ module GalleryLinks
+ module Admin
+ class GalleryLinksController < ::Refinery::AdminController
+
+ crudify :'refinery/gallery_links/gallery_link',
+ :xhr_paging => true
+
+ end
+ end
+ end
+end
diff --git a/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb b/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb
new file mode 100644
index 0000000..c6a4e7e
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/controllers/refinery/gallery_links/gallery_links_controller.rb
@@ -0,0 +1,34 @@
+module Refinery
+ module GalleryLinks
+ class GalleryLinksController < ::ApplicationController
+
+ before_filter :find_all_gallery_links
+ before_filter :find_page
+
+ def index
+ # you can use meta fields from your model instead (e.g. browser_title)
+ # by swapping @page for @gallery_link in the line below:
+ present(@page)
+ end
+
+ def show
+ @gallery_link = GalleryLink.find(params[:id])
+
+ # you can use meta fields from your model instead (e.g. browser_title)
+ # by swapping @page for @gallery_link in the line below:
+ present(@page)
+ end
+
+ protected
+
+ def find_all_gallery_links
+ @gallery_links = GalleryLink.order('position ASC')
+ end
+
+ def find_page
+ @page = ::Refinery::Page.where(:link_url => "/gallery_links").first
+ end
+
+ end
+ end
+end
diff --git a/vendor/extensions/gallery_links/app/models/refinery/gallery_links/gallery_link.rb b/vendor/extensions/gallery_links/app/models/refinery/gallery_links/gallery_link.rb
new file mode 100644
index 0000000..b83cdd1
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/models/refinery/gallery_links/gallery_link.rb
@@ -0,0 +1,11 @@
+module Refinery
+ module GalleryLinks
+ class GalleryLink < Refinery::Core::BaseModel
+ self.table_name = 'refinery_gallery_links'
+
+ attr_accessible :title, :url, :photographer, :description, :image_id, :position
+
+ validates :title, :presence => true, :uniqueness => true
+ end
+ end
+end
diff --git a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_actions.html.erb b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_actions.html.erb
new file mode 100644
index 0000000..31a33b9
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_actions.html.erb
@@ -0,0 +1,25 @@
+<ul>
+ <% if ::Refinery::GalleryLinks::Admin::GalleryLinksController.searchable? %>
+ <li>
+ <%= render '/refinery/admin/search', :url => refinery.gallery_links_admin_gallery_links_path %>
+ </li>
+ <% end %>
+ <li>
+ <%= link_to t('.create_new'), refinery.new_gallery_links_admin_gallery_link_path,
+ :class => "add_icon" %>
+ </li>
+<% if !searching? && ::Refinery::GalleryLinks::Admin::GalleryLinksController.sortable? && ::Refinery::GalleryLinks::GalleryLink.many? %>
+ <li>
+ <%= link_to t('.reorder', :what => "Gallery Links"),
+ refinery.gallery_links_admin_gallery_links_path,
+ :id => "reorder_action",
+ :class => "reorder_icon" %>
+
+ <%= link_to t('.reorder_done', :what => "Gallery Links"),
+ refinery.gallery_links_admin_gallery_links_path,
+ :id => "reorder_action_done",
+ :style => "display: none;",
+ :class => "reorder_icon" %>
+ </li>
+<% end %>
+</ul>
diff --git a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_form.html.erb b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_form.html.erb
new file mode 100644
index 0000000..0692e6c
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_form.html.erb
@@ -0,0 +1,45 @@
+<%= form_for [refinery, :gallery_links_admin, @gallery_link] do |f| -%>
+ <%= render '/refinery/admin/error_messages',
+ :object => @gallery_link,
+ :include_object_name => true %>
+
+ <div class='field'>
+ <%= f.label :title -%>
+ <%= f.text_field :title, :class => 'larger widest' -%>
+ </div>
+
+ <div class='field'>
+ <%= f.label :url -%>
+ <%= f.text_field :url -%>
+ </div>
+
+ <div class='field'>
+ <%= f.label :photographer -%>
+ <%= f.text_field :photographer -%>
+ </div>
+
+ <div class='field'>
+ <%= render '/refinery/admin/wysiwyg',
+ :f => f,
+ :fields => [:description],
+ :object => "gallery_links/gallery_link" -%>
+ </div>
+
+ <div class='field'>
+ <%= f.label :image_id -%>
+ <%= f.text_field :image_id -%>
+ </div>
+
+ <%= render '/refinery/admin/form_actions', :f => f,
+ :continue_editing => false,
+ :delete_title => t('delete', :scope => 'refinery.gallery_links.admin.gallery_links.gallery_link'),
+ :delete_confirmation => t('message', :scope => 'refinery.admin.delete', :title => @gallery_link.title) -%>
+<% end -%>
+
+<% content_for :javascripts do -%>
+ <script>
+ $(document).ready(function(){
+ page_options.init(false, '', '');
+ });
+ </script>
+<% end -%>
diff --git a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_gallery_link.html.erb b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_gallery_link.html.erb
new file mode 100644
index 0000000..7ad61a0
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_gallery_link.html.erb
@@ -0,0 +1,20 @@
+<li class='clearfix record <%= cycle("on", "on-hover") %>' id="<%= dom_id(gallery_link) -%>">
+ <span class='title'>
+ <%= gallery_link.title %>
+
+ </span>
+ <span class='actions'>
+
+ <%= link_to refinery_icon_tag("application_go.png"), refinery.gallery_links_gallery_link_path(gallery_link),
+ :title => t('.view_live_html'),
+ :target => "_blank" %>
+
+ <%= link_to refinery_icon_tag("application_edit.png"), refinery.edit_gallery_links_admin_gallery_link_path(gallery_link),
+ :title => t('.edit') %>
+ <%= link_to refinery_icon_tag("delete.png"), refinery.gallery_links_admin_gallery_link_path(gallery_link),
+ :class => "cancel confirm-delete",
+ :title => t('.delete'),
+ :confirm => t('message', :scope => 'refinery.admin.delete', :title => gallery_link.title),
+ :method => :delete %>
+ </span>
+</li>
diff --git a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_gallery_links.html.erb b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_gallery_links.html.erb
new file mode 100644
index 0000000..4d7ef99
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_gallery_links.html.erb
@@ -0,0 +1,2 @@
+<%= will_paginate @gallery_links if Refinery::GalleryLinks::Admin::GalleryLinksController.pageable? %>
+<%= render 'sortable_list' %>
diff --git a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_records.html.erb b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_records.html.erb
new file mode 100644
index 0000000..7ec7a2a
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_records.html.erb
@@ -0,0 +1,16 @@
+<%= render 'refinery/admin/search_header', :url => refinery.gallery_links_admin_gallery_links_path %>
+<div class='pagination_container'>
+ <% if @gallery_links.any? %>
+ <%= render 'gallery_links' %>
+ <% else %>
+ <p>
+ <% unless searching? %>
+ <strong>
+ <%= t('.no_items_yet') %>
+ </strong>
+ <% else %>
+ <%= t('no_results', :scope => 'refinery.admin.search') %>
+ <% end %>
+ </p>
+ <% end %>
+</div>
diff --git a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_sortable_list.html.erb b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_sortable_list.html.erb
new file mode 100644
index 0000000..b7489c3
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/_sortable_list.html.erb
@@ -0,0 +1,5 @@
+<ul id='sortable_list'>
+ <%= render :partial => 'gallery_link', :collection => @gallery_links %>
+</ul>
+<%= render '/refinery/admin/sortable_list',
+ :continue_reordering => (local_assigns.keys.include?(:continue_reordering)) ? continue_reordering : true %>
diff --git a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/edit.html.erb b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/edit.html.erb
new file mode 100644
index 0000000..2d34363
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/edit.html.erb
@@ -0,0 +1 @@
+<%= render 'form' %>
diff --git a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/index.html.erb b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/index.html.erb
new file mode 100644
index 0000000..55fcbb8
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/index.html.erb
@@ -0,0 +1,7 @@
+<section id='records'>
+ <%= render 'records' %>
+</section>
+<aside id='actions'>
+ <%= render 'actions' %>
+</aside>
+<%= render '/refinery/admin/make_sortable', :tree => false if !searching? and ::Refinery::GalleryLinks::Admin::GalleryLinksController.sortable? and ::Refinery::GalleryLinks::GalleryLink.many? %>
diff --git a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/new.html.erb b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/new.html.erb
new file mode 100644
index 0000000..2d34363
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/admin/gallery_links/new.html.erb
@@ -0,0 +1 @@
+<%= render 'form' %>
diff --git a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb
new file mode 100644
index 0000000..684af05
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/index.html.erb
@@ -0,0 +1,11 @@
+<% content_for :body do %>
+ <ul id="gallery_links">
+ <% @gallery_links.each do |gallery_link| %>
+ <li>
+ <%= link_to gallery_link.title, refinery.gallery_links_gallery_link_path(gallery_link) %>
+ </li>
+ <% end %>
+ </ul>
+<% end %>
+
+<%= render '/refinery/content_page' %>
diff --git a/vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/show.html.erb b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/show.html.erb
new file mode 100644
index 0000000..5496612
--- /dev/null
+++ b/vendor/extensions/gallery_links/app/views/refinery/gallery_links/gallery_links/show.html.erb
@@ -0,0 +1,51 @@
+<% content_for :body_content_title do %>
+ <%= @gallery_link.title %>
+<% end %>
+
+<% content_for :body do %>
+ <section>
+ <h1>Title</h1>
+ <p>
+ <%=raw @gallery_link.title %>
+ </p>
+ </section>
+ <section>
+ <h1>Url</h1>
+ <p>
+ <%=raw @gallery_link.url %>
+ </p>
+ </section>
+ <section>
+ <h1>Photographer</h1>
+ <p>
+ <%=raw @gallery_link.photographer %>
+ </p>
+ </section>
+ <section>
+ <h1>Description</h1>
+ <p>
+ <%=raw @gallery_link.description %>
+ </p>
+ </section>
+ <section>
+ <h1>Image</h1>
+ <p>
+ <%=raw @gallery_link.image_id %>
+ </p>
+ </section>
+<% end %>
+
+<% content_for :side_body do %>
+ <aside>
+ <h2><%= t('.other') %></h2>
+ <ul id="gallery_links">
+ <% @gallery_links.each do |gallery_link| %>
+ <li>
+ <%= link_to gallery_link.title, refinery.gallery_links_gallery_link_path(gallery_link) %>
+ </li>
+ <% end %>
+ </ul>
+ </aside>
+<% end %>
+
+<%= render '/refinery/content_page' %>
diff --git a/vendor/extensions/gallery_links/config/locales/cs.yml b/vendor/extensions/gallery_links/config/locales/cs.yml
new file mode 100644
index 0000000..0227010
--- /dev/null
+++ b/vendor/extensions/gallery_links/config/locales/cs.yml
@@ -0,0 +1,31 @@
+cs:
+ refinery:
+ plugins:
+ gallery_links:
+ title: Gallery Links
+ gallery_links:
+ admin:
+ gallery_links:
+ actions:
+ create_new: Přidat Gallery Link
+ reorder: Řadit Gallery Links
+ reorder_done: Konec řazení Gallery Links
+ records:
+ title: Gallery Links
+ sorry_no_results: Litujeme, ale nebyly nalezny žádné výsledky.
+ no_items_yet: Zatím nebyly vytvořeny žádné Gallery Links. Zvolte "Přidat Gallery Link" pro přidání prvního gallery link.
+ gallery_link:
+ view_live_html: Zobrazit náhled gallery link<br/><em>(otevře se v novém okně)</em>
+ edit: Upravit gallery link
+ delete: Smazat gallery link
+ gallery_links:
+ show:
+ other: Další Gallery Links
+ activerecord:
+ attributes:
+ 'refinery/gallery_links/gallery_link':
+ title: Title
+ url: Url
+ photographer: Photographer
+ description: Description
+ image_id: Image \ No newline at end of file
diff --git a/vendor/extensions/gallery_links/config/locales/en.yml b/vendor/extensions/gallery_links/config/locales/en.yml
new file mode 100644
index 0000000..6fc5882
--- /dev/null
+++ b/vendor/extensions/gallery_links/config/locales/en.yml
@@ -0,0 +1,31 @@
+en:
+ refinery:
+ plugins:
+ gallery_links:
+ title: Gallery Links
+ gallery_links:
+ admin:
+ gallery_links:
+ actions:
+ create_new: Add New Gallery Link
+ reorder: Reorder Gallery Links
+ reorder_done: Done Reordering Gallery Links
+ records:
+ title: Gallery Links
+ sorry_no_results: Sorry! There are no results found.
+ no_items_yet: There are no Gallery Links yet. Click "Add New Gallery Link" to add your first gallery link.
+ gallery_link:
+ view_live_html: View this gallery link live <br/><em>(opens in a new window)</em>
+ edit: Edit this gallery link
+ delete: Remove this gallery link forever
+ gallery_links:
+ show:
+ other: Other Gallery Links
+ activerecord:
+ attributes:
+ 'refinery/gallery_links/gallery_link':
+ title: Title
+ url: Url
+ photographer: Photographer
+ description: Description
+ image_id: Image \ No newline at end of file
diff --git a/vendor/extensions/gallery_links/config/locales/es.yml b/vendor/extensions/gallery_links/config/locales/es.yml
new file mode 100644
index 0000000..34b7554
--- /dev/null
+++ b/vendor/extensions/gallery_links/config/locales/es.yml
@@ -0,0 +1,32 @@
+es:
+ refinery:
+ plugins:
+ gallery_links:
+ title: Gallery Links
+# article: masculino/femenino
+ gallery_links:
+ admin:
+ gallery_links:
+ actions:
+ create_new: Crear nuevo gallery link
+ reorder: Reordenar gallery links
+ reorder_done: Reordenación de gallery links completada
+ records:
+ title: Gallery Links
+ sorry_no_results: Lo siento, no hay resultados
+ no_items_yet: No hay gallery links todavía. Pulsa en "Crear nuevo Gallery Link" para crear tu primer gallery link.
+ gallery_link:
+ view_live_html: Ver este gallery link como abierto al público <br/><em>(abre en ventana nueva)</em>
+ edit: Editar este gallery link
+ delete: Borrar este gallery link para siempre
+ gallery_links:
+ show:
+ other: Otros gallery links
+ activerecord:
+ attributes:
+ 'refinery/gallery_links/gallery_link':
+ title: Title
+ url: Url
+ photographer: Photographer
+ description: Description
+ image_id: Image \ No newline at end of file
diff --git a/vendor/extensions/gallery_links/config/locales/fr.yml b/vendor/extensions/gallery_links/config/locales/fr.yml
new file mode 100644
index 0000000..6cca0de
--- /dev/null
+++ b/vendor/extensions/gallery_links/config/locales/fr.yml
@@ -0,0 +1,31 @@
+fr:
+ refinery:
+ plugins:
+ gallery_links:
+ title: Gallery Links
+ gallery_links:
+ admin:
+ gallery_links:
+ actions:
+ create_new: Créer un(e) nouve(au/l/lle) Gallery Link
+ reorder: Réordonner les Gallery Links
+ reorder_done: Fin de réordonnancement des Gallery Links
+ records:
+ title: Gallery Links
+ sorry_no_results: "Désolé ! Aucun résultat."
+ no_items_yet: 'Il n''y a actuellement aucun(e) Gallery Link. Cliquer sur "Créer un(e) nouve(au/l/lle) Gallery Link" pour créer votre premi(er/ère) gallery link.'
+ gallery_link:
+ view_live_html: Voir ce(t/tte) gallery link <br/><em>(Ouvre une nouvelle fenêtre)</em>
+ edit: Modifier ce(t/tte) gallery link
+ delete: Supprimer définitivement ce(t/tte) gallery link
+ gallery_links:
+ show:
+ other: Autres Gallery Links
+ activerecord:
+ attributes:
+ 'refinery/gallery_links/gallery_link':
+ title: Title
+ url: Url
+ photographer: Photographer
+ description: Description
+ image_id: Image \ No newline at end of file
diff --git a/vendor/extensions/gallery_links/config/locales/it.yml b/vendor/extensions/gallery_links/config/locales/it.yml
new file mode 100644
index 0000000..ea0f3d7
--- /dev/null
+++ b/vendor/extensions/gallery_links/config/locales/it.yml
@@ -0,0 +1,31 @@
+it:
+ refinery:
+ plugins:
+ gallery_links:
+ title: Gallery Links
+ gallery_links:
+ admin:
+ gallery_links:
+ actions:
+ create_new: Aggiungi Nuovo Gallery Link
+ reorder: Riordina Gallery Links
+ reorder_done: Termina il Riordino di Gallery Links
+ records:
+ title: Gallery Links
+ sorry_no_results: "Spiacenti! Nessun risultato trovato"
+ no_items_yet: Non ci sono ancora Gallery Links. Clicca "Aggiungi Nuovo Gallery Link" per aggiungere il tuo primo gallery link.
+ gallery_link:
+ view_live_html: Guarda live questo gallery link <br/><em>(apre una nuova finestra)</em>
+ edit: Modifica questo gallery link
+ delete: Rimuovi per sempre questo gallery link
+ gallery_links:
+ show:
+ other: Altri Gallery Links
+ activerecord:
+ attributes:
+ 'refinery/gallery_links/gallery_link':
+ title: Title
+ url: Url
+ photographer: Photographer
+ description: Description
+ image_id: Image \ No newline at end of file
diff --git a/vendor/extensions/gallery_links/config/locales/nb.yml b/vendor/extensions/gallery_links/config/locales/nb.yml
new file mode 100644
index 0000000..e4680c0
--- /dev/null
+++ b/vendor/extensions/gallery_links/config/locales/nb.yml
@@ -0,0 +1,31 @@
+nb:
+ refinery:
+ plugins:
+ gallery_links:
+ title: Gallery Links
+ gallery_links:
+ admin:
+ gallery_links:
+ actions:
+ create_new: Lag en ny Gallery Link
+ reorder: Endre rekkefølgen på Gallery Links
+ reorder_done: Ferdig å endre rekkefølgen Gallery Links
+ records:
+ title: Gallery Links
+ sorry_no_results: Beklager! Vi fant ikke noen resultater.
+ no_items_yet: Det er ingen Gallery Links enda. Klikk på "Lag en ny Gallery Link" for å legge til din første gallery link.
+ gallery_link:
+ view_live_html: Vis hvordan denne gallery link ser ut offentlig <br/><em>(åpner i et nytt vindu)</em>
+ edit: Rediger denne gallery link
+ delete: Fjern denne gallery link permanent
+ gallery_links:
+ show:
+ other: Andre Gallery Links
+ activerecord:
+ attributes:
+ 'refinery/gallery_links/gallery_link':
+ title: Title
+ url: Url
+ photographer: Photographer
+ description: Description
+ image_id: Image \ No newline at end of file
diff --git a/vendor/extensions/gallery_links/config/locales/nl.yml b/vendor/extensions/gallery_links/config/locales/nl.yml
new file mode 100644
index 0000000..e8a6ec6
--- /dev/null
+++ b/vendor/extensions/gallery_links/config/locales/nl.yml
@@ -0,0 +1,31 @@
+nl:
+ refinery:
+ plugins:
+ gallery_links:
+ title: Gallery Links
+ gallery_links:
+ admin:
+ gallery_links:
+ actions:
+ create_new: Nieuwe Gallery Link toevoegen
+ reorder: De volgorde van de Gallery Links wijzigen
+ reorder_done: Klaar met het wijzingen van de van de Gallery Link-volgorde
+ records:
+ title: Gallery Links
+ sorry_no_results: Helaas! Er zijn geen resultaten gevonden.
+ no_items_yet: Er zijn nog geen Gallery Links. Druk op 'Nieuwe Gallery Link toevoegen' om de eerste toe te voegen.
+ gallery_link:
+ view_live_html: Deze gallery link op de website bekijken <br/><em>(opent in een nieuw venster)</em>
+ edit: Bewerk deze gallery link
+ delete: Deze gallery link definitief verwijderen
+ gallery_links:
+ show:
+ other: Andere Gallery Links
+ activerecord:
+ attributes:
+ 'refinery/gallery_links/gallery_link':
+ title: Title
+ url: Url
+ photographer: Photographer
+ description: Description
+ image_id: Image \ No newline at end of file
diff --git a/vendor/extensions/gallery_links/config/locales/sk.yml b/vendor/extensions/gallery_links/config/locales/sk.yml
new file mode 100644
index 0000000..17153ee
--- /dev/null
+++ b/vendor/extensions/gallery_links/config/locales/sk.yml
@@ -0,0 +1,31 @@
+sk:
+ refinery:
+ plugins:
+ gallery_links:
+ title: Gallery Links
+ gallery_links:
+ admin:
+ gallery_links:
+ actions:
+ create_new: Pridať Gallery Link
+ reorder: Preusporiadať Gallery Links
+ reorder_done: Koniec radenia Gallery Links
+ records:
+ title: Gallery Links
+ sorry_no_results: Ľutujeme, ale neboli nájdené žiadne výsledky.
+ no_items_yet: Nie sú vytvorené žiadne Gallery Links. Kliknite na "Pridať Gallery Link" pre pridanie prvého gallery link.
+ gallery_link:
+ view_live_html: Zobraziť náhľad gallery link<br/><em>(otvorí sa v novom okne)</em>
+ edit: Upraviť gallery link
+ delete: Zmazať gallery link
+ gallery_links:
+ show:
+ other: Daľšie Gallery Links
+ activerecord:
+ attributes:
+ 'refinery/gallery_links/gallery_link':
+ title: Title
+ url: Url
+ photographer: Photographer
+ description: Description
+ image_id: Image \ No newline at end of file
diff --git a/vendor/extensions/gallery_links/config/locales/tr.yml b/vendor/extensions/gallery_links/config/locales/tr.yml
new file mode 100644
index 0000000..6162dc6
--- /dev/null
+++ b/vendor/extensions/gallery_links/config/locales/tr.yml
@@ -0,0 +1,31 @@
+tr:
+ refinery:
+ plugins:
+ gallery_links:
+ title: Gallery Links
+ gallery_links:
+ admin:
+ gallery_links:
+ actions:
+ create_new: Yeni Ekle Gallery Link
+ reorder: Tekrar sirala Gallery Links
+ reorder_done: Tekrar siralama tamamlandiGallery Links
+ records:
+ title: Gallery Links
+ sorry_no_results: Uzgunum! Herhangi bir sonuc bulunamadi.
+ no_items_yet: Herhangi bir Gallery Links yok henuz. Tikla "Yeni Ekle Gallery Link" eklemek senin ilk gallery link.
+ gallery_link:
+ view_live_html: Bunu canlu gallery link goruntule <br/><em>(yeni bir pencerede acar)</em>
+ edit: Bunu Duzenle gallery link
+ delete: Bunu Sil gallery link sonsuza dek
+ gallery_links:
+ show:
+ other: Diger Gallery Links
+ activerecord:
+ attributes:
+ 'refinery/gallery_links/gallery_link':
+ title: Title
+ url: Url
+ photographer: Photographer
+ description: Description
+ image_id: Image \ No newline at end of file
diff --git a/vendor/extensions/gallery_links/config/locales/zh-CN.yml b/vendor/extensions/gallery_links/config/locales/zh-CN.yml
new file mode 100644
index 0000000..186173c
--- /dev/null
+++ b/vendor/extensions/gallery_links/config/locales/zh-CN.yml
@@ -0,0 +1,33 @@
+zh-CN:
+ refinery:
+ plugins:
+ gallery_links:
+ title: Gallery Links
+ gallery_links:
+ admin:
+ gallery_links:
+ actions:
+ create_new: 建立新的 Gallery Link
+ reorder: 对 Gallery Links 重新排序
+ reorder_done: 对 Gallery Links 的重新排序结束
+ records:
+ title: Gallery Links
+ sorry_no_results: 对不起,未找到结果。 #Sorry! There are no results found.
+
+ # There are no Gallery Links yet. Click "Add New Gallery Link" to add your first gallery link.
+ no_items_yet: 目前没有 Gallery Links . 点击 "Add New Gallery Link" 创建一个gallery link.
+ gallery_link:
+ view_live_html: 查看 gallery link 的最新内容.<br/><em>(新窗口中打开)</em>
+ edit: 编辑 gallery link
+ delete: 永久删除 gallery link
+ gallery_links:
+ show:
+ other: 其他 Gallery Links
+ activerecord:
+ attributes:
+ 'refinery/gallery_links/gallery_link':
+ title: Title
+ url: Url
+ photographer: Photographer
+ description: Description
+ image_id: Image \ No newline at end of file
diff --git a/vendor/extensions/gallery_links/config/routes.rb b/vendor/extensions/gallery_links/config/routes.rb
new file mode 100644
index 0000000..9c7a3d9
--- /dev/null
+++ b/vendor/extensions/gallery_links/config/routes.rb
@@ -0,0 +1,19 @@
+Refinery::Core::Engine.routes.draw do
+
+ # Frontend routes
+ namespace :gallery_links do
+ resources :gallery_links, :path => '', :only => [:index, :show]
+ end
+
+ # Admin routes
+ namespace :gallery_links, :path => '' do
+ namespace :admin, :path => Refinery::Core.backend_route do
+ resources :gallery_links, :except => :show do
+ collection do
+ post :update_positions
+ end
+ end
+ end
+ end
+
+end
diff --git a/vendor/extensions/gallery_links/db/migrate/1_create_gallery_links_gallery_links.rb b/vendor/extensions/gallery_links/db/migrate/1_create_gallery_links_gallery_links.rb
new file mode 100644
index 0000000..b55d337
--- /dev/null
+++ b/vendor/extensions/gallery_links/db/migrate/1_create_gallery_links_gallery_links.rb
@@ -0,0 +1,30 @@
+class CreateGalleryLinksGalleryLinks < ActiveRecord::Migration
+
+ def up
+ create_table :refinery_gallery_links do |t|
+ t.string :title
+ t.string :url
+ t.string :photographer
+ t.text :description
+ t.integer :image_id
+ t.integer :position
+
+ t.timestamps
+ end
+
+ end
+
+ def down
+ if defined?(::Refinery::UserPlugin)
+ ::Refinery::UserPlugin.destroy_all({:name => "refinerycms-gallery_links"})
+ end
+
+ if defined?(::Refinery::Page)
+ ::Refinery::Page.delete_all({:link_url => "/gallery_links/gallery_links"})
+ end
+
+ drop_table :refinery_gallery_links
+
+ end
+
+end
diff --git a/vendor/extensions/gallery_links/db/seeds.rb b/vendor/extensions/gallery_links/db/seeds.rb
new file mode 100644
index 0000000..65e3615
--- /dev/null
+++ b/vendor/extensions/gallery_links/db/seeds.rb
@@ -0,0 +1,25 @@
+Refinery::I18n.frontend_locales.each do |lang|
+ I18n.locale = lang
+
+ if defined?(Refinery::User)
+ Refinery::User.all.each do |user|
+ if user.plugins.where(:name => 'refinerycms-gallery_links').blank?
+ user.plugins.create(:name => 'refinerycms-gallery_links',
+ :position => (user.plugins.maximum(:position) || -1) +1)
+ end
+ end
+ end
+
+ url = "/gallery_links"
+ if defined?(Refinery::Page) && Refinery::Page.where(:link_url => url).empty?
+ page = Refinery::Page.create(
+ :title => 'Gallery Links',
+ :link_url => url,
+ :deletable => false,
+ :menu_match => "^#{url}(\/|\/.+?|)$"
+ )
+ Refinery::Pages.default_parts.each_with_index do |default_page_part, index|
+ page.parts.create(:title => default_page_part, :body => nil, :position => index)
+ end
+ end
+end
diff --git a/vendor/extensions/gallery_links/lib/generators/refinery/gallery_links_generator.rb b/vendor/extensions/gallery_links/lib/generators/refinery/gallery_links_generator.rb
new file mode 100644
index 0000000..c28bcf9
--- /dev/null
+++ b/vendor/extensions/gallery_links/lib/generators/refinery/gallery_links_generator.rb
@@ -0,0 +1,19 @@
+module Refinery
+ class GalleryLinksGenerator < Rails::Generators::Base
+
+ def rake_db
+ rake "refinery_gallery_links:install:migrations"
+ end
+
+ def append_load_seed_data
+ create_file 'db/seeds.rb' unless File.exists?(File.join(destination_root, 'db', 'seeds.rb'))
+ append_file 'db/seeds.rb', :verbose => true do
+ <<-EOH
+
+# Added by Refinery CMS GalleryLinks extension
+Refinery::GalleryLinks::Engine.load_seed
+ EOH
+ end
+ end
+ end
+end
diff --git a/vendor/extensions/gallery_links/lib/refinery/gallery_links.rb b/vendor/extensions/gallery_links/lib/refinery/gallery_links.rb
new file mode 100644
index 0000000..cf8dcee
--- /dev/null
+++ b/vendor/extensions/gallery_links/lib/refinery/gallery_links.rb
@@ -0,0 +1,21 @@
+require 'refinerycms-core'
+
+module Refinery
+ autoload :GalleryLinksGenerator, 'generators/refinery/gallery_links_generator'
+
+ module GalleryLinks
+ require 'refinery/gallery_links/engine'
+
+ class << self
+ attr_writer :root
+
+ def root
+ @root ||= Pathname.new(File.expand_path('../../../', __FILE__))
+ end
+
+ def factory_paths
+ @factory_paths ||= [ root.join('spec', 'factories').to_s ]
+ end
+ end
+ end
+end
diff --git a/vendor/extensions/gallery_links/lib/refinery/gallery_links/engine.rb b/vendor/extensions/gallery_links/lib/refinery/gallery_links/engine.rb
new file mode 100644
index 0000000..9f1b713
--- /dev/null
+++ b/vendor/extensions/gallery_links/lib/refinery/gallery_links/engine.rb
@@ -0,0 +1,26 @@
+module Refinery
+ module GalleryLinks
+ class Engine < Rails::Engine
+ extend Refinery::Engine
+ isolate_namespace Refinery::GalleryLinks
+
+ engine_name :refinery_gallery_links
+
+ before_inclusion do
+ Refinery::Plugin.register do |plugin|
+ plugin.name = "gallery_links"
+ plugin.url = proc { Refinery::Core::Engine.routes.url_helpers.gallery_links_admin_gallery_links_path }
+ plugin.pathname = root
+ plugin.activity = {
+ :class_name => :'refinery/gallery_links/gallery_link'
+ }
+
+ end
+ end
+
+ config.after_initialize do
+ Refinery.register_extension(Refinery::GalleryLinks)
+ end
+ end
+ end
+end
diff --git a/vendor/extensions/gallery_links/lib/refinerycms-gallery_links.rb b/vendor/extensions/gallery_links/lib/refinerycms-gallery_links.rb
new file mode 100644
index 0000000..6c265d5
--- /dev/null
+++ b/vendor/extensions/gallery_links/lib/refinerycms-gallery_links.rb
@@ -0,0 +1 @@
+require 'refinery/gallery_links'
diff --git a/vendor/extensions/gallery_links/lib/tasks/refinery/gallery_links.rake b/vendor/extensions/gallery_links/lib/tasks/refinery/gallery_links.rake
new file mode 100644
index 0000000..bd3442e
--- /dev/null
+++ b/vendor/extensions/gallery_links/lib/tasks/refinery/gallery_links.rake
@@ -0,0 +1,13 @@
+namespace :refinery do
+
+ namespace :gallery_links do
+
+ # call this task by running: rake refinery:gallery_links:my_task
+ # desc "Description of my task below"
+ # task :my_task => :environment do
+ # # add your logic here
+ # end
+
+ end
+
+end \ No newline at end of file
diff --git a/vendor/extensions/gallery_links/readme.md b/vendor/extensions/gallery_links/readme.md
new file mode 100644
index 0000000..eccc7f9
--- /dev/null
+++ b/vendor/extensions/gallery_links/readme.md
@@ -0,0 +1,10 @@
+# Gallery Links extension for Refinery CMS.
+
+## How to build this extension as a gem
+
+ cd vendor/extensions/gallery_links
+ gem build refinerycms-gallery_links.gemspec
+ gem install refinerycms-gallery_links.gem
+
+ # Sign up for a http://rubygems.org/ account and publish the gem
+ gem push refinerycms-gallery_links.gem \ No newline at end of file
diff --git a/vendor/extensions/gallery_links/refinerycms-gallery_links.gemspec b/vendor/extensions/gallery_links/refinerycms-gallery_links.gemspec
new file mode 100644
index 0000000..96995f2
--- /dev/null
+++ b/vendor/extensions/gallery_links/refinerycms-gallery_links.gemspec
@@ -0,0 +1,18 @@
+# Encoding: UTF-8
+
+Gem::Specification.new do |s|
+ s.platform = Gem::Platform::RUBY
+ s.name = 'refinerycms-gallery_links'
+ s.version = '1.0'
+ s.description = 'Ruby on Rails Gallery Links extension for Refinery CMS'
+ s.date = '2017-12-17'
+ s.summary = 'Gallery Links extension for Refinery CMS'
+ s.require_paths = %w(lib)
+ s.files = Dir["{app,config,db,lib}/**/*"] + ["readme.md"]
+
+ # Runtime dependencies
+ s.add_dependency 'refinerycms-core', '~> 2.1.5'
+
+ # Development dependencies (usually used for testing)
+ s.add_development_dependency 'refinerycms-testing', '~> 2.1.5'
+end
diff --git a/vendor/extensions/gallery_links/script/rails b/vendor/extensions/gallery_links/script/rails
new file mode 100644
index 0000000..8c9932a
--- /dev/null
+++ b/vendor/extensions/gallery_links/script/rails
@@ -0,0 +1,10 @@
+#!/usr/bin/env ruby
+# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
+
+ENGINE_PATH = File.expand_path('../..', __FILE__)
+dummy_rails_path = File.expand_path('../../spec/dummy/script/rails', __FILE__)
+if File.exist?(dummy_rails_path)
+ load dummy_rails_path
+else
+ puts "Please first run 'rake refinery:testing:dummy_app' to create a dummy Refinery CMS application."
+end
diff --git a/vendor/extensions/gallery_links/spec/features/refinery/gallery_links/admin/gallery_links_spec.rb b/vendor/extensions/gallery_links/spec/features/refinery/gallery_links/admin/gallery_links_spec.rb
new file mode 100644
index 0000000..f49e600
--- /dev/null
+++ b/vendor/extensions/gallery_links/spec/features/refinery/gallery_links/admin/gallery_links_spec.rb
@@ -0,0 +1,101 @@
+# encoding: utf-8
+require "spec_helper"
+
+describe Refinery do
+ describe "GalleryLinks" do
+ describe "Admin" do
+ describe "gallery_links" do
+ refinery_login_with :refinery_user
+
+ describe "gallery_links list" do
+ before do
+ FactoryGirl.create(:gallery_link, :title => "UniqueTitleOne")
+ FactoryGirl.create(:gallery_link, :title => "UniqueTitleTwo")
+ end
+
+ it "shows two items" do
+ visit refinery.gallery_links_admin_gallery_links_path
+ page.should have_content("UniqueTitleOne")
+ page.should have_content("UniqueTitleTwo")
+ end
+ end
+
+ describe "create" do
+ before do
+ visit refinery.gallery_links_admin_gallery_links_path
+
+ click_link "Add New Gallery Link"
+ end
+
+ context "valid data" do
+ it "should succeed" do
+ fill_in "Title", :with => "This is a test of the first string field"
+ click_button "Save"
+
+ page.should have_content("'This is a test of the first string field' was successfully added.")
+ Refinery::GalleryLinks::GalleryLink.count.should == 1
+ end
+ end
+
+ context "invalid data" do
+ it "should fail" do
+ click_button "Save"
+
+ page.should have_content("Title can't be blank")
+ Refinery::GalleryLinks::GalleryLink.count.should == 0
+ end
+ end
+
+ context "duplicate" do
+ before { FactoryGirl.create(:gallery_link, :title => "UniqueTitle") }
+
+ it "should fail" do
+ visit refinery.gallery_links_admin_gallery_links_path
+
+ click_link "Add New Gallery Link"
+
+ fill_in "Title", :with => "UniqueTitle"
+ click_button "Save"
+
+ page.should have_content("There were problems")
+ Refinery::GalleryLinks::GalleryLink.count.should == 1
+ end
+ end
+
+ end
+
+ describe "edit" do
+ before { FactoryGirl.create(:gallery_link, :title => "A title") }
+
+ it "should succeed" do
+ visit refinery.gallery_links_admin_gallery_links_path
+
+ within ".actions" do
+ click_link "Edit this gallery link"
+ end
+
+ fill_in "Title", :with => "A different title"
+ click_button "Save"
+
+ page.should have_content("'A different title' was successfully updated.")
+ page.should have_no_content("A title")
+ end
+ end
+
+ describe "destroy" do
+ before { FactoryGirl.create(:gallery_link, :title => "UniqueTitleOne") }
+
+ it "should succeed" do
+ visit refinery.gallery_links_admin_gallery_links_path
+
+ click_link "Remove this gallery link forever"
+
+ page.should have_content("'UniqueTitleOne' was successfully removed.")
+ Refinery::GalleryLinks::GalleryLink.count.should == 0
+ end
+ end
+
+ end
+ end
+ end
+end
diff --git a/vendor/extensions/gallery_links/spec/models/refinery/gallery_links/gallery_link_spec.rb b/vendor/extensions/gallery_links/spec/models/refinery/gallery_links/gallery_link_spec.rb
new file mode 100644
index 0000000..d7e9e13
--- /dev/null
+++ b/vendor/extensions/gallery_links/spec/models/refinery/gallery_links/gallery_link_spec.rb
@@ -0,0 +1,18 @@
+require 'spec_helper'
+
+module Refinery
+ module GalleryLinks
+ describe GalleryLink do
+ describe "validations" do
+ subject do
+ FactoryGirl.create(:gallery_link,
+ :title => "Refinery CMS")
+ end
+
+ it { should be_valid }
+ its(:errors) { should be_empty }
+ its(:title) { should == "Refinery CMS" }
+ end
+ end
+ end
+end
diff --git a/vendor/extensions/gallery_links/spec/spec_helper.rb b/vendor/extensions/gallery_links/spec/spec_helper.rb
new file mode 100644
index 0000000..d3214e2
--- /dev/null
+++ b/vendor/extensions/gallery_links/spec/spec_helper.rb
@@ -0,0 +1,31 @@
+# Configure Rails Environment
+ENV["RAILS_ENV"] ||= 'test'
+
+if File.exist?(dummy_path = File.expand_path('../dummy/config/environment.rb', __FILE__))
+ require dummy_path
+elsif File.dirname(__FILE__) =~ %r{vendor/extensions}
+ # Require the path to the refinerycms application this is vendored inside.
+ require File.expand_path('../../../../../config/environment', __FILE__)
+else
+ puts "Could not find a config/environment.rb file to require. Please specify this in #{File.expand_path(__FILE__)}"
+end
+
+require 'rspec/rails'
+require 'capybara/rspec'
+
+Rails.backtrace_cleaner.remove_silencers!
+
+RSpec.configure do |config|
+ config.mock_with :rspec
+ config.treat_symbols_as_metadata_keys_with_true_values = true
+ config.filter_run :focus => true
+ config.run_all_when_everything_filtered = true
+end
+
+# Requires supporting files with custom matchers and macros, etc,
+# in ./support/ and its subdirectories including factories.
+([Rails.root.to_s] | ::Refinery::Plugins.registered.pathnames).map{|p|
+ Dir[File.join(p, 'spec', 'support', '**', '*.rb').to_s]
+}.flatten.sort.each do |support_file|
+ require support_file
+end
diff --git a/vendor/extensions/gallery_links/spec/support/factories/refinery/gallery_links.rb b/vendor/extensions/gallery_links/spec/support/factories/refinery/gallery_links.rb
new file mode 100644
index 0000000..8b84ed2
--- /dev/null
+++ b/vendor/extensions/gallery_links/spec/support/factories/refinery/gallery_links.rb
@@ -0,0 +1,7 @@
+
+FactoryGirl.define do
+ factory :gallery_link, :class => Refinery::GalleryLinks::GalleryLink do
+ sequence(:title) { |n| "refinery#{n}" }
+ end
+end
+
diff --git a/vendor/extensions/gallery_links/tasks/rspec.rake b/vendor/extensions/gallery_links/tasks/rspec.rake
new file mode 100644
index 0000000..c89c0d7
--- /dev/null
+++ b/vendor/extensions/gallery_links/tasks/rspec.rake
@@ -0,0 +1,6 @@
+require 'rspec/core/rake_task'
+
+desc "Run specs"
+RSpec::Core::RakeTask.new do |t|
+ t.pattern = "./spec"
+end
diff --git a/vendor/extensions/gallery_links/tasks/testing.rake b/vendor/extensions/gallery_links/tasks/testing.rake
new file mode 100644
index 0000000..5f8b63a
--- /dev/null
+++ b/vendor/extensions/gallery_links/tasks/testing.rake
@@ -0,0 +1,8 @@
+namespace :refinery do
+ namespace :testing do
+ # Put any code in here that you want run when you test this extension against a dummy app.
+ # For example, the call to require your gem and start your generator.
+ task :setup_extension do
+ end
+ end
+end