- <%= render :partial => '/refinery/admin/pages_dialogs/page_link', :collection => @pages,
- :locals => {
- :child => 0,
- :link_to_arguments => {}
+ <%= render partial: '/refinery/admin/pages_dialogs/page_link', collection: @pages, cached: true,
+ locals: {
+ child: 0,
+ link_to_arguments: {}
} %>
<%= will_paginate @pages, :id => 'pages_paginate' %>
diff --git a/pages/config/locales/sk.yml b/pages/config/locales/sk.yml
index 4ebe0f1e49..16b0d0b266 100644
--- a/pages/config/locales/sk.yml
+++ b/pages/config/locales/sk.yml
@@ -37,9 +37,11 @@ sk:
new: Pridať novú podstránku
expand_collapse: Rozbaliť alebo zbaliť podstránky
page:
- view_live_html: Zobraziť stránku
(otvorí sa v novom okne)
- hidden: skrytá
draft: pracovná verzia
+ hidden: skrytá
+ redirected: Presmerovanie
+ skip_to_first_child: Presmerovať na prvú substránku
+ view_live_html: Zobraziť stránku
(otvorí sa v novom okne)
form:
preview: Náhľad
preview_changes: Zobraziť náhľad s vykonanými zmenami
diff --git a/pages/refinerycms-pages.gemspec b/pages/refinerycms-pages.gemspec
index 13bfcb61eb..c67ff1b60e 100644
--- a/pages/refinerycms-pages.gemspec
+++ b/pages/refinerycms-pages.gemspec
@@ -1,37 +1,37 @@
-# Encoding: UTF-8
-require File.expand_path('../../core/lib/refinery/version', __FILE__)
+# frozen_string_literal: true
+
+require File.expand_path('../core/lib/refinery/version', __dir__)
version = Refinery::Version.to_s
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
- s.name = %q{refinerycms-pages}
+ s.name = 'refinerycms-pages'
s.version = version
- s.summary = %q{Pages extension for Refinery CMS}
- s.description = %q{The default content extension of Refinery CMS. This extension handles the administration and display of user-editable pages.}
- s.email = %q{refinerycms@p.arndt.io}
- s.homepage = %q{https://www.refinerycms.com}
- s.rubyforge_project = %q{refinerycms}
- s.authors = ['Philip Arndt', 'Uģis Ozols', 'Rob Yurkowski']
- s.license = %q{MIT}
- s.require_paths = %w(lib)
+ s.summary = 'Pages extension for Refinery CMS'
+ s.description = 'The default content extension of Refinery CMS. This extension handles the administration and display of user-editable pages.'
+ s.email = 'gems@p.arndt.io'
+ s.homepage = 'https://www.refinerycms.com'
+ s.authors = ['Philip Arndt', 'David Jones', 'Uģis Ozols', 'Brice Sanchez']
+ s.license = 'MIT'
+ s.require_paths = %w[lib]
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- spec/*`.split("\n")
- s.add_dependency 'refinerycms-core', version
+ s.add_dependency 'awesome_nested_set', '~> 3.1', '>= 3.1.0'
+ s.add_dependency 'babosa', '~> 1.0'
+ s.add_dependency 'diffy', '~> 3.1', '>= 3.1.0'
s.add_dependency 'friendly_id', ['>= 5.1.0', '< 5.3']
s.add_dependency 'friendly_id-mobility', '~> 0.5'
- s.add_dependency 'awesome_nested_set', '~> 3.1', '>= 3.1.0'
+ s.add_dependency 'refinerycms-core', version
s.add_dependency 'seo_meta', '~> 3.0', '>= 3.0.0'
- s.add_dependency 'babosa', '~> 1.0'
s.add_dependency 'speakingurl-rails', '~> 8.0', '>= 8.0.0'
- s.add_dependency 'diffy', '~> 3.1', '>= 3.1.0'
s.required_ruby_version = Refinery::Version.required_ruby_version
- s.cert_chain = [File.expand_path("../../certs/parndt.pem", __FILE__)]
- if $0 =~ /gem\z/ && ARGV.include?("build") && ARGV.include?(__FILE__)
- s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem")
+ s.cert_chain = [File.expand_path('../certs/parndt.pem', __dir__)]
+ if $PROGRAM_NAME =~ /gem\z/ && ARGV.include?('build') && ARGV.include?(__FILE__)
+ s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
end
end
diff --git a/readme.md b/readme.md
index 22c03c44a9..3c274fdaab 100644
--- a/readme.md
+++ b/readme.md
@@ -10,6 +10,10 @@ You can chat with us using Gitter:
[![Gitter chat](https://badges.gitter.im/refinery/refinerycms.svg)](https://gitter.im/refinery/refinerycms)
+You can deploy an example app to Heroku:
+
+[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/refinery/refinerycms-example-app)
+
## Requirements
* [Bundler](http://gembundler.com)
diff --git a/refinerycms.gemspec b/refinerycms.gemspec
index 466afaac96..6a88a5b7a5 100644
--- a/refinerycms.gemspec
+++ b/refinerycms.gemspec
@@ -1,22 +1,22 @@
-# Encoding: UTF-8
-require File.expand_path('../core/lib/refinery/version', __FILE__)
+# frozen_string_literal: true
+
+require File.expand_path('core/lib/refinery/version', __dir__)
version = Refinery::Version.to_s
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
- s.name = %q{refinerycms}
+ s.name = 'refinerycms'
s.version = version
- s.description = %q{A Ruby on Rails CMS that supports Rails 5.1. It's developer friendly and easy to extend.}
- s.summary = %q{A Ruby on Rails CMS that supports Rails 5.1}
- s.email = %q{refinerycms@p.arndt.io}
- s.homepage = %q{https://www.refinerycms.com}
- s.rubyforge_project = %q{refinerycms}
- s.authors = ['Philip Arndt', 'Uģis Ozols', 'Rob Yurkowski']
- s.license = %q{MIT}
+ s.description = "A CMS for Ruby on Rails, supporting Rails 6+. It's developer friendly and easy to extend."
+ s.summary = 'A CMS for Ruby on Rails, supporting Rails 6+'
+ s.email = 'gems@p.arndt.io'
+ s.homepage = 'https://www.refinerycms.com'
+ s.authors = ['Philip Arndt', 'David Jones', 'Uģis Ozols', 'Brice Sanchez']
+ s.license = 'MIT'
s.bindir = 'exe'
- s.executables = %w(refinerycms)
- s.require_paths = %w(lib)
+ s.executables = %w[refinerycms]
+ s.require_paths = %w[lib]
s.files = `git ls-files -- lib/* templates/*`.split("\n")
@@ -26,8 +26,8 @@ Gem::Specification.new do |s|
s.add_dependency 'refinerycms-resources', version
s.required_ruby_version = Refinery::Version.required_ruby_version
- s.cert_chain = [File.expand_path("../certs/parndt.pem", __FILE__)]
- if $0 =~ /gem\z/ && ARGV.include?("build") && ARGV.include?(__FILE__)
- s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem")
+ s.cert_chain = [File.expand_path('certs/parndt.pem', __dir__)]
+ if $PROGRAM_NAME =~ /gem\z/ && ARGV.include?('build') && ARGV.include?(__FILE__)
+ s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
end
end
diff --git a/resources/config/locales/sk.yml b/resources/config/locales/sk.yml
index b94d2aa12c..ee296fd628 100644
--- a/resources/config/locales/sk.yml
+++ b/resources/config/locales/sk.yml
@@ -13,6 +13,9 @@ sk:
or: alebo
replace: " nahradiť týmto..."
maximum_file_size: Maximálna veľkosť súboru je %{bytes}.
+ resource_file: Súbor
+ resource_title: Názov
+ resource_title_help: Názov zobrazený návštevníkom stránky
resource:
download: Stiahnuť súbor (%{size})
actions:
@@ -33,4 +36,6 @@ sk:
models:
refinery/resource:
blank: Musíte vybrať súbor pre nahranie.
+ incorrect_format: "Typ súboru nie je povolený. Váš súbor musí byť typu MP4, MPEG, WMV, AVI, WAV,
+ GIF, JPEG, PNG, SVG, TIFF, PSD, CSV, PDF, TXT, RAR, ZIP, XLS, PPT alebo DOC"
too_big: Maximálna veľkosť súboru je %{size} MB.
diff --git a/resources/refinerycms-resources.gemspec b/resources/refinerycms-resources.gemspec
index ebd7b22ea7..0829b0c6ce 100644
--- a/resources/refinerycms-resources.gemspec
+++ b/resources/refinerycms-resources.gemspec
@@ -1,20 +1,20 @@
-# Encoding: UTF-8
-require File.expand_path('../../core/lib/refinery/version', __FILE__)
+# frozen_string_literal: true
+
+require File.expand_path('../core/lib/refinery/version', __dir__)
version = Refinery::Version.to_s
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
- s.name = %q{refinerycms-resources}
+ s.name = 'refinerycms-resources'
s.version = version
- s.summary = %q{Resources extension for Refinery CMS}
- s.description = %q{Handles all file upload and processing functionality in Refinery CMS.}
- s.email = %q{refinerycms@p.arndt.io}
- s.homepage = %q{https://www.refinerycms.com}
- s.rubyforge_project = %q{refinerycms}
- s.authors = ['Philip Arndt', 'Uģis Ozols', 'Rob Yurkowski']
- s.license = %q{MIT}
- s.require_paths = %w(lib)
+ s.summary = 'Resources extension for Refinery CMS'
+ s.description = 'Handles all file upload and processing functionality in Refinery CMS.'
+ s.email = 'gems@p.arndt.io'
+ s.homepage = 'https://www.refinerycms.com'
+ s.authors = ['Philip Arndt', 'David Jones', 'Uģis Ozols', 'Brice Sanchez']
+ s.license = 'MIT'
+ s.require_paths = %w[lib]
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- spec/*`.split("\n")
@@ -24,8 +24,8 @@ Gem::Specification.new do |s|
s.required_ruby_version = Refinery::Version.required_ruby_version
- s.cert_chain = [File.expand_path("../../certs/parndt.pem", __FILE__)]
- if $0 =~ /gem\z/ && ARGV.include?("build") && ARGV.include?(__FILE__)
- s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem")
+ s.cert_chain = [File.expand_path('../certs/parndt.pem', __dir__)]
+ if $PROGRAM_NAME =~ /gem\z/ && ARGV.include?('build') && ARGV.include?(__FILE__)
+ s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
end
end
diff --git a/resources/spec/lib/refinery/resources/engine_spec.rb b/resources/spec/lib/refinery/resources/engine_spec.rb
index ff7caf410f..9f649d0263 100644
--- a/resources/spec/lib/refinery/resources/engine_spec.rb
+++ b/resources/spec/lib/refinery/resources/engine_spec.rb
@@ -4,5 +4,17 @@ module Refinery
describe Resources do
it_has_behaviour 'Creates a dragonfly App:'
it_has_behaviour 'adds the dragonfly app to the middleware stack'
+
+ it 'calls dragonfly#before_serve to set configuration' do
+ dummy_proc = -> (_job, _env) {}
+ expect_any_instance_of(::Dragonfly::Server).to(
+ receive(:before_serve) { |&block| expect(block).to be(dummy_proc) }
+ )
+ ::Refinery::Resources.configure do |config|
+ config.dragonfly_before_serve = dummy_proc
+ end
+
+ ::Refinery::Dragonfly.configure!(::Refinery::Resources)
+ end
end
end
diff --git a/testing/refinerycms-testing.gemspec b/testing/refinerycms-testing.gemspec
index f773648889..908cafcb7f 100644
--- a/testing/refinerycms-testing.gemspec
+++ b/testing/refinerycms-testing.gemspec
@@ -1,34 +1,34 @@
-# Encoding: UTF-8
-require File.expand_path('../../core/lib/refinery/version', __FILE__)
+# frozen_string_literal: true
+
+require File.expand_path('../core/lib/refinery/version', __dir__)
version = Refinery::Version.to_s
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
- s.name = %q{refinerycms-testing}
+ s.name = 'refinerycms-testing'
s.version = version
- s.summary = %q{Testing plugin for Refinery CMS}
- s.description = %q{This plugin adds the ability to tests against the Refinery CMS gem while inside a Refinery CMS extension}
- s.email = %q{refinerycms@p.arndt.io}
- s.homepage = %q{https://www.refinerycms.com}
- s.rubyforge_project = %q{refinerycms}
- s.authors = ['Philip Arndt', 'Uģis Ozols', 'Rob Yurkowski']
- s.license = %q{MIT}
- s.require_paths = %w(lib)
+ s.summary = 'Testing plugin for Refinery CMS'
+ s.description = 'This plugin adds the ability to tests against the Refinery CMS gem while inside a Refinery CMS extension'
+ s.email = 'gems@p.arndt.io'
+ s.homepage = 'https://www.refinerycms.com'
+ s.authors = ['Philip Arndt', 'David Jones', 'Uģis Ozols', 'Brice Sanchez']
+ s.license = 'MIT'
+ s.require_paths = %w[lib]
s.files = `git ls-files`.split("\n")
- s.add_dependency 'refinerycms-core', version
- s.add_dependency 'factory_bot_rails', '~> 4.8'
- s.add_dependency 'rspec-rails', '~> 4.0.0.beta2'
s.add_dependency 'capybara', '>= 2.18'
+ s.add_dependency 'factory_bot_rails', '~> 4.8'
s.add_dependency 'rails-controller-testing', '>= 0.1.1'
+ s.add_dependency 'refinerycms-core', version
+ s.add_dependency 'rspec-rails', '~> 4.0.0.beta2'
s.add_dependency 'webdrivers', '~> 4.0'
s.required_ruby_version = Refinery::Version.required_ruby_version
- s.cert_chain = [File.expand_path("../../certs/parndt.pem", __FILE__)]
- if $0 =~ /gem\z/ && ARGV.include?("build") && ARGV.include?(__FILE__)
- s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem")
+ s.cert_chain = [File.expand_path('../certs/parndt.pem', __dir__)]
+ if $PROGRAM_NAME =~ /gem\z/ && ARGV.include?('build') && ARGV.include?(__FILE__)
+ s.signing_key = File.expand_path('~/.ssh/gem-private_key.pem')
end
end