Skip to content

Commit

Permalink
Merge branch 'master' into bugfix/fragment-caching-after-deleting-page
Browse files Browse the repository at this point in the history
  • Loading branch information
Philwi committed Jul 28, 2020
2 parents b5bd9cf + d1a8db3 commit d761a18
Show file tree
Hide file tree
Showing 11 changed files with 133 additions and 130 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Expand Up @@ -2,7 +2,7 @@ language: ruby
dist: bionic
sudo: false
branches:
only:
only:
- master
addons:
postgresql: '10'
Expand All @@ -13,8 +13,7 @@ cache:
directories:
- /home/travis/.webdrivers/
before_install:
- gem update --system
- gem install bundler
- gem update bundler
bundler_args: --without development
before_script:
- export RETRY_COUNT=3
Expand Down
42 changes: 21 additions & 21 deletions certs/parndt.pem
@@ -1,25 +1,25 @@
-----BEGIN CERTIFICATE-----
MIIEMjCCApqgAwIBAgIBATANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhnZW1z
L0RDPXAvREM9YXJuZHQvREM9aW8wHhcNMTgxMDI5MDk0MjQ5WhcNMTkxMDI5MDk0
MjQ5WjAjMSEwHwYDVQQDDBhnZW1zL0RDPXAvREM9YXJuZHQvREM9aW8wggGiMA0G
CSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQClF0/voptshDoTILFgUjvkViCOPe3W
uuDwfSep+gc5AI83MmrmonN3L/dwm60D3HhZOtVt9el1n5E5b5aPzJngjdF9sFPX
OIx3UlYde+WkzbG4iR2U0/8dMZ6DYuz6ijgPEpU1UKodUJVqEmt3Vc+rzDET9zoK
TkIALNbSaV2G32ZDhoabeQJoJ0ce/2vjDqhM7awG7CYGRqRq4c0NOKKm0bGh+LOo
vQNDvRjXPs0yp5i3keCgf6IcQ26nluqILYGPjuTExJj+k6AKfq6SPWDVtzSqdfiH
STs/W85rwrKdLfEzfXxNsHvJ6Ryx+0A0hsNbfTTOhp4dkYm/6fyOejp7Of7qWRw/
kJhI/PTq1gqh+Irpr+wUz04xItGE8WglKv1ydTUqBlCz2l9NfVTChtUpYlrk4FvN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rWgaQ==
-----END CERTIFICATE-----
44 changes: 22 additions & 22 deletions core/refinerycms-core.gemspec
@@ -1,43 +1,43 @@
# 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
rails_version = ['>= 6.0.0', '< 7']

Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = %q{refinerycms-core}
s.name = 'refinerycms-core'
s.version = version
s.summary = %q{Core extension for Refinery CMS}
s.description = %q{The core of Refinery CMS. This handles the common functionality and is required by most extensions}
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 = 'Core extension for Refinery CMS'
s.description = 'The core of Refinery CMS. This handles the common functionality and is required by most extensions'
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.required_ruby_version = Refinery::Version.required_ruby_version

s.add_dependency 'refinerycms-i18n', ['~> 5.0', '>= 5.0.1']
s.add_dependency 'railties', rails_version
s.add_dependency 'activerecord', rails_version
s.add_dependency 'actionpack', rails_version
s.add_dependency 'truncate_html', '~> 0.9'
s.add_dependency 'will_paginate', '~> 3.1', '>= 3.1.0'
s.add_dependency 'sass-rails', '>= 4.0', '< 7'
s.add_dependency 'font-awesome-sass', '>= 4.3.0', '< 5.0'
s.add_dependency 'activerecord', rails_version
s.add_dependency 'coffee-rails', ['~> 4.0', '>= 4.0.0']
s.add_dependency 'decorators', '~> 2.0', '>= 2.0.0'
s.add_dependency 'font-awesome-sass', '>= 4.3.0', '< 5.0'
s.add_dependency 'jquery-rails', '~> 4.3', '>= 4.3.1'
s.add_dependency 'jquery-ui-rails', '~> 6.0', '>= 6.0.0'
s.add_dependency 'decorators', '~> 2.0', '>= 2.0.0'
s.add_dependency 'railties', rails_version
s.add_dependency 'refinerycms-i18n', ['~> 5.0', '>= 5.0.1']
s.add_dependency 'sass-rails', '>= 4.0', '< 7'
s.add_dependency 'truncate_html', '~> 0.9'
s.add_dependency 'will_paginate', '~> 3.1', '>= 3.1.0'
s.add_dependency 'zilch-authorisation', '~> 0', '>= 0.0.1'

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
Expand Up @@ -15,7 +15,7 @@ Take a look at <https://rubygems.org/gems/refinerycms> to find the latest versio
Edit your `Gemfile` to reference the latest version of Refinery (a later version than the one shown [may exist](https://rubygems.org/gems/refinerycms/versions)).

```ruby
gem 'refinerycms', '~> 3.0.0'
gem 'refinerycms', '~> 4.0.0'
```

Now install the new gems using bundler's update functionality:
Expand All @@ -39,4 +39,4 @@ Database migrations and new gem dependencies may have been added, so finish your
```shell
$ bin/rake db:migrate
$ bundle install
```
```
28 changes: 14 additions & 14 deletions images/refinerycms-images.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-images}
s.name = 'refinerycms-images'
s.version = version
s.summary = %q{Images extension for Refinery CMS}
s.description = %q{Handles all image 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 = 'Images extension for Refinery CMS'
s.description = 'Handles all image 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")
Expand All @@ -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
8 changes: 4 additions & 4 deletions pages/app/views/refinery/admin/pages_dialogs/link_to.html.erb
Expand Up @@ -27,10 +27,10 @@
<div id="your_page_content" class="clearfix">
<div id="pages_list" class="pages_list">
<ul class="link_list">
<%= 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: {}
} %>
</ul>
<%= will_paginate @pages, :id => 'pages_paginate' %>
Expand Down
36 changes: 18 additions & 18 deletions 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
4 changes: 4 additions & 0 deletions readme.md
Expand Up @@ -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)
Expand Down
30 changes: 15 additions & 15 deletions 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")

Expand All @@ -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
28 changes: 14 additions & 14 deletions 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")
Expand All @@ -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

0 comments on commit d761a18

Please sign in to comment.