refinerycms-settings 3.0.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b996c2cc75a4f725c2cf6d70ed67ac7277a93e6c
4
- data.tar.gz: b5d5585e04ca065315c798127b9c793435d714bd
3
+ metadata.gz: fd87de7c0d0ab8ed1d642ea68392ddbdc87f2a17
4
+ data.tar.gz: a9cd6d011ac88588447c7ffead3f9019ff3d903a
5
5
  SHA512:
6
- metadata.gz: 8edc77367390f65772d45052b61d392d4cc37da5670e3a518ddbcf9269d95924a143e9e62f31bc38af2226e8cc3868723a115a897a3b8d3a902d505c5f8d8715
7
- data.tar.gz: 910e7b789dacd9b04c879a0d46e317ac544248c7c088356bb28ad51fb1c8bdeade407b8b0cfe851e1511f46e3aa26b70b132d5904d8e000ce4fae6141ca35536
6
+ metadata.gz: ff64b60d3893e50b6c0f52020507f3f58ad15f1327e1f578078228d7f071556551877936bf896bab48af407fd3ae53f1fca4d31ef347947dcd6a62676135691f
7
+ data.tar.gz: 1155895542b67664c0bdb00dd3951a7377b12a0d82f501e263601e0982743c67427377649a4696d219d106f04caca3fb8b2d737141ebde2cce03ecb4f3adc775
@@ -0,0 +1,2 @@
1
+ - ��(LO�A�`MZg
2
+ ����[1G�2Ԡ����=�a�P�S7F�m��͔��/�~�rC�o��
Binary file
data/.gitignore CHANGED
@@ -3,4 +3,4 @@ Gemfile.lock
3
3
  spec/dummy
4
4
 
5
5
  # Local Gemfile for developing without sharing dependencies
6
- .gemfile
6
+ .gemfile
@@ -1,29 +1,15 @@
1
1
  language: ruby
2
+ cache: bundler
2
3
  bundler_args: --without development
3
- cache:
4
- - bundler: true
5
- sudo: false
6
- before_script:
7
- - "sh -e /etc/init.d/xvfb start"
8
- - "bundle exec rake refinery:testing:dummy_app"
9
- script:
10
- - "DISPLAY=:99.0 bundle exec rspec spec"
11
- notifications:
12
- email: true
13
- irc:
14
- use_notice: true
15
- skip_join: true
16
- channels:
17
- - "irc.freenode.org#refinerycms"
18
- campfire:
19
- on_success: always
20
- on_failure: always
21
- rooms:
22
- - secure: "JaX+Ckvdd2wqL2bD6t8PHvMDBHxWBlCrkBKPcDKxV0t0DOwzzzwxMryVqcRi\nPsmM/zvmWFATDyRmivhNOpu4lRg9RytSroxZ9nkmbLDqjCyEAZ6tv4yZXME/\nPaxPwmfwgS9g8TKjj3lSWS7rEpqqg0D5S0XIfIHrj6KB6LUmFHc="
4
+ before_script: "bin/rake refinery:testing:dummy_app"
23
5
  env:
24
6
  - DB=postgresql
25
7
  - DB=mysql
8
+ notifications:
9
+ webhooks:
10
+ - https://webhooks.gitter.im/e/b5d48907cdc89864b874
26
11
  rvm:
27
- - 2.2
28
- - 2.1
29
- - 2.0.0
12
+ - 2.4.2
13
+ - 2.3.5
14
+ - 2.2.8
15
+ sudo: false
data/Gemfile CHANGED
@@ -1,40 +1,52 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'refinerycms', github: 'refinery/refinerycms'
6
- gem 'refinerycms-i18n', github: 'refinery/refinerycms-i18n'
7
- gem 'refinerycms-acts-as-indexed', github: 'refinery/refinerycms-acts-as-indexed'
8
- gem "mime-types", "~> 1.25"
5
+ git "https://github.com/refinery/refinerycms", branch: "master" do
6
+ gem "refinerycms"
9
7
 
10
- group :test do
11
- gem 'refinerycms-testing', github: 'refinery/refinerycms'
12
- gem 'poltergeist'
13
- gem 'capybara-email', '~> 2.4'
8
+ group :test do
9
+ gem "refinerycms-testing"
10
+ end
14
11
  end
15
12
 
16
13
  # Database Configuration
17
- unless ENV['TRAVIS']
18
- gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
19
- gem 'sqlite3', platform: :ruby
14
+ unless ENV["TRAVIS"]
15
+ gem "activerecord-jdbcsqlite3-adapter", :platform => :jruby
16
+ gem "sqlite3", :platform => :ruby
20
17
  end
21
18
 
22
- if !ENV['TRAVIS'] || ENV['DB'] == 'mysql'
23
- gem 'activerecord-jdbcmysql-adapter', platform: :jruby
24
- gem 'jdbc-mysql', '= 5.1.13', platform: :jruby
25
- gem 'mysql2', platform: :ruby
19
+ if !ENV["TRAVIS"] || ENV["DB"] == "mysql"
20
+ gem "activerecord-jdbcmysql-adapter", :platform => :jruby
21
+ gem "jdbc-mysql", "= 5.1.13", :platform => :jruby
22
+ gem "mysql2", :platform => :ruby
26
23
  end
27
24
 
28
- if !ENV['TRAVIS'] || ENV['DB'] == 'postgresql'
29
- gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
30
- gem 'pg', platform: :ruby
25
+ if !ENV["TRAVIS"] || ENV["DB"] == "postgresql"
26
+ gem "activerecord-jdbcpostgresql-adapter", :platform => :jruby
27
+ gem "pg", :platform => :ruby
31
28
  end
32
29
 
30
+ gem "jruby-openssl", :platform => :jruby
31
+
33
32
  # Refinery/rails should pull in the proper versions of these
34
- gem 'sass-rails', '~> 4.0.0'
35
- gem 'coffee-rails', '~> 4.0.0'
33
+ group :assets do
34
+ gem "sass-rails"
35
+ gem "coffee-rails"
36
+ gem "uglifier"
37
+ end
38
+
39
+ group :development do
40
+ gem 'listen'
41
+ end
42
+
43
+ group :test do
44
+ gem "launchy"
45
+ gem 'capybara-email', '~> 2.4.0'
46
+ gem 'poltergeist'
47
+ end
36
48
 
37
49
  # Load local gems according to Refinery developer preference.
38
- if File.exist? local_gemfile = File.expand_path('../.gemfile', __FILE__)
50
+ if File.exist? local_gemfile = File.expand_path("../.gemfile", __FILE__)
39
51
  eval File.read(local_gemfile)
40
- end
52
+ end
@@ -8,7 +8,7 @@ module ::Refinery
8
8
  :order => "name ASC",
9
9
  :redirect_to_url => :redirect_to_where?
10
10
 
11
- before_filter :sanitise_params, :only => [:create, :update]
11
+ before_action :sanitise_params, :only => [:create, :update]
12
12
 
13
13
  def new
14
14
  form_value_type = ((current_refinery_user.has_role?(:superuser) && params[:form_value_type]) || 'text_area')
@@ -30,6 +30,10 @@ module Refinery
30
30
  12
31
31
  end
32
32
 
33
+ def form_value_types
34
+ FORM_VALUE_TYPES
35
+ end
36
+
33
37
  # find_or_set offers a convenient way to
34
38
  def find_or_set(name, the_value, options={})
35
39
  # Merge default options with supplied options.
@@ -3,6 +3,6 @@
3
3
  <%= render '/refinery/admin/search', :url => refinery.admin_settings_path %>
4
4
  </li>
5
5
  <li>
6
- <%= link_to t('.new'), refinery.new_admin_setting_path(:dialog => true), :class => "add_icon" %>
6
+ <%= action_label :add, refinery.new_admin_setting_path(dialog: true), t('.new') %>
7
7
  </li>
8
8
  </ul>
@@ -2,7 +2,7 @@
2
2
 
3
3
  <%= render '/refinery/admin/error_messages', :object => @setting, :include_object_name => true %>
4
4
 
5
- <div class='field'>
5
+ <div class='field'>
6
6
  <% if action_name =~ /(new)|(create)/ %>
7
7
  <%= f.label :name %>
8
8
  <%= f.text_field :name, :class => "larger widest" %>
@@ -14,7 +14,7 @@
14
14
  <% if current_refinery_user.has_role?(:superuser) && @setting.new_record? %>
15
15
  <div class='field'>
16
16
  <%= f.label :form_value_type %>
17
- <%= f.select :form_value_type, ::Refinery::Setting::FORM_VALUE_TYPES -%>
17
+ <%= f.select :form_value_type, ::Refinery::Setting::form_value_types -%>
18
18
  </div>
19
19
  <% end %>
20
20
  <% unless action_name =~ /(new)|(create)/ or (help = t(@setting.name, :scope => 'refinery.admin.settings.form.help', :default => '')).blank? or @setting.form_value_type == 'check_box' %>
@@ -1,23 +1,22 @@
1
+ <% # setup params for various action links
2
+ edit_url ||= refinery.edit_admin_setting_path(setting, dialog: true, width: 725, height: 525)
3
+ delete_url ||= refinery.admin_setting_path(setting)
4
+ delete_options ||= {
5
+ class: "cancel confirm-delete",
6
+ data: {
7
+ confirm: t('message', scope: 'refinery.admin.delete', title: setting.title)
8
+ }
9
+ }
10
+ %>
11
+
1
12
  <li class='clearfix record <%= cycle("on", "on-hover") %>'>
2
13
  <span class='title'>
3
14
  <%= t(setting.name, :scope => 'refinery.admin.settings.form.title', :default => setting.title) %>
4
15
  <span class="preview">- <%= truncate(setting.value.to_s, :length => 40) %></span>
5
16
  </span>
6
17
  <span class='actions'>
7
- <%= link_to refinery_icon_tag('application_edit.png'),
8
- refinery.edit_admin_setting_path(setting, :dialog => true, :width => 725, :height => 525),
9
- :title => t('edit', :scope => 'refinery.admin.settings') %>
10
- <%= link_to refinery_icon_tag('delete.png'),
11
- refinery.admin_setting_path(setting),
12
- :class => 'cancel confirm-delete',
13
- :title => t('delete', :scope => 'refinery.admin.settings'),
14
- :data => { :confirm => t('message', :scope => 'refinery.admin.delete', :title => setting.title) },
15
- :method => :delete if setting.destroyable %>
16
-
17
- <% unless (help = t(setting.name, :scope => 'refinery.admin.settings.form.help', :default => '')).blank? %>
18
- <%= link_to refinery_icon_tag('information.png'), '#',
19
- :tooltip => help,
20
- :class => 'information suppress' %>
21
- <% end %>
18
+ <%= action_icon(:info, '#', t('restricted', scope: 'refinery.admin.settings')) if setting.restricted %>
19
+ <%= action_icon(:edit, edit_url, t('edit', scope: 'refinery.admin.settings')) %>
20
+ <%= action_icon(:delete, delete_url, t('delete', scope: 'refinery.admin.settings'), delete_options) if setting.destroyable %>
22
21
  </span>
23
22
  </li>
@@ -3,13 +3,4 @@
3
3
  </div>
4
4
  <div id='actions'>
5
5
  <%= render 'actions' %>
6
- </div>
7
- <% content_for :javascripts do %>
8
- <script>
9
- $(document).ready(function() {
10
- $('#records ul li .actions a[href*=edit]').each(function(i, li) {
11
- $(li).attr('name', $(li).attr('tooltip'));
12
- });
13
- });
14
- </script>
15
- <% end -%>
6
+ </div>
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails gems
3
+ # installed from the root of your application.
4
+
5
+ begin
6
+ load File.join(File.expand_path('../../', __FILE__), 'spec/dummy/bin/rails')
7
+ rescue LoadError => load_error
8
+ warn "No dummy Rails application found! \n" \
9
+ "To create one in spec/dummy, please run: \n\n" \
10
+ " rake refinery:testing:dummy_app"
11
+ end
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rake' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+ begin
9
+ if Dir.exist?(File.expand_path('../../spec/dummy', __FILE__))
10
+ load File.expand_path("../spring", __FILE__)
11
+ end
12
+ rescue LoadError
13
+ end
14
+ require 'pathname'
15
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
16
+ Pathname.new(__FILE__).realpath)
17
+
18
+ require 'rubygems'
19
+ require 'bundler/setup'
20
+
21
+ load Gem.bin_path('rake', 'rake')
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # This file was generated by Bundler.
4
+ #
5
+ # The application 'rspec' is installed as part of a gem, and
6
+ # this file is here to facilitate running it.
7
+ #
8
+
9
+ begin
10
+ if Dir.exist?(File.expand_path('../../spec/dummy', __FILE__))
11
+ load File.expand_path("../spring", __FILE__)
12
+ end
13
+ rescue LoadError
14
+ end
15
+ require 'pathname'
16
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
17
+ Pathname.new(__FILE__).realpath)
18
+
19
+ require 'rubygems'
20
+ require 'bundler/setup'
21
+
22
+ load Gem.bin_path('rspec-core', 'rspec')
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # This file loads spring without using Bundler, in order to be fast
4
+ # It gets overwritten when you run the `spring binstub` command
5
+
6
+ unless defined?(Spring)
7
+ require "rubygems"
8
+ require "bundler"
9
+
10
+ if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m)
11
+ ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
12
+ ENV["GEM_HOME"] = ""
13
+ Gem.paths = ENV
14
+
15
+ gem "spring", match[1]
16
+ require "spring/binstub"
17
+ end
18
+ end
@@ -0,0 +1,21 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIIDhjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBNMQ0wCwYDVQQDDARnZW1z
3
+ MREwDwYKCZImiZPyLGQBGRYBcDEVMBMGCgmSJomT8ixkARkWBWFybmR0MRIwEAYK
4
+ CZImiZPyLGQBGRYCaW8wHhcNMTcwNzI1MTMxMjIwWhcNMTgwNzI1MTMxMjIwWjBN
5
+ MQ0wCwYDVQQDDARnZW1zMREwDwYKCZImiZPyLGQBGRYBcDEVMBMGCgmSJomT8ixk
6
+ ARkWBWFybmR0MRIwEAYKCZImiZPyLGQBGRYCaW8wggEiMA0GCSqGSIb3DQEBAQUA
7
+ A4IBDwAwggEKAoIBAQDrjwB8be48TFEvGweP7BwWFnmsL2IMU9Ts2UKKWK9GYr7Z
8
+ 5uNZFmO1yVBCrmUQHHDlpku6SN6HDO8ChDL7LNugz/4eapRTifHZl8jhPRsOLBcF
9
+ 1hANy/V2v5NNkL5Zvb+vsUa7lyjbIOoD5yYzSDl4/T0nOe6xYzxJgBuxZK/nWSOe
10
+ Db8Uffc7B4yhA2kuayUiQUXPYAoPdfUSxoTKDohw17Sm6LKTpg8GkT0ttof1a/xu
11
+ vdsTvZHIcTsYv16e+8SrwLRZ/iBVVsyZFkMYPMxemw7WHxmWElWIgW9S7pUK5Q7J
12
+ oMS5uJVbtV2EmV+cOnhOWDz1A16P7QRFmGje5L+vAgMBAAGjcTBvMAkGA1UdEwQC
13
+ MAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQ7G/yxuQIzgszkOkaZBgoKBJ1rozAa
14
+ BgNVHREEEzARgQ9nZW1zQHAuYXJuZHQuaW8wGgYDVR0SBBMwEYEPZ2Vtc0BwLmFy
15
+ bmR0LmlvMA0GCSqGSIb3DQEBBQUAA4IBAQB12WMsC+yuuIeM0Ib6HUYZ2IbhRnuW
16
+ 4uydNRvKDPdwzjChnOI0POGpcL8O1s1gh+19o/ITq6zRfTLhkwR2ir7XfwHJNppJ
17
+ yg48wbdL5gpZwggKWggKX5G9pqv9LjRsSAew6r0WB+5KW+ArCl/iNo9+AdeR3nUx
18
+ I+L/QiUxYU6XAXSrczL/i7kF5Xc3ZXQYuFsyGW9plA3i9faWUMvGKQc6pvUHIUZC
19
+ jOQmH9VbgbfUrXYM1YOKdlwW5sPR1f4PKLDlvEE+bppIUgKOgLOIv3i7KwrGvFOq
20
+ 5r7Wz/HY31SM47mkK21saPJG4NvUFEycf0wlpzP657Pl9aVo47aKKbxX
21
+ -----END CERTIFICATE-----
@@ -8,6 +8,7 @@ en:
8
8
  settings:
9
9
  delete: Remove this setting forever
10
10
  edit: Edit this setting
11
+ restricted: This setting is only visible and editable by users who are superusers (like you).
11
12
  actions:
12
13
  new: Add new setting
13
14
  records:
@@ -15,7 +15,7 @@ fr:
15
15
  create_first: Cliquer sur '%{link}' afin d'ajouter votre premier paramètre.
16
16
  form:
17
17
  enabled: "Oui, activer ce paramètre"
18
- restart_may_be_in_order_html: <strong>Veillez noter</strong> que vous serez peut-être obligé de redémarrer votre site afin que ce paramètre soit pris en compte.
18
+ restart_may_be_in_order_html: <strong>Veuillez noter</strong> que vous serez peut-être obligé de redémarrer votre site afin que ce paramètre soit pris en compte.
19
19
  yes_make_this_setting_restricted: Restreindre ce paramètre aux administrateurs uniquement.
20
20
  help:
21
21
  restricted: Ceci permet de restreindre la consultation et la modification de ce paramètre uniquement aux administrateurs (comme vous actuellement).
@@ -15,7 +15,7 @@ ru:
15
15
  create_first: "Нажмите «%{link}», чтобы добавить первый параметр."
16
16
  form:
17
17
  enabled: "Да, включить этот параметр."
18
- restart_may_be_in_order_html: "<strong>Пожалуйста, обратите внимание,</strong> что вам может понадобится перезапустить сайт, чтобы параметр вступил в силу."
18
+ restart_may_be_in_order_html: "<strong>Пожалуйста, обратите внимание</strong>, что вам может понадобится перезапустить сайт, чтобы параметр вступил в силу."
19
19
  yes_make_this_setting_restricted: "Да, сделать этот параметр доступным только суперпользователям."
20
20
  help:
21
21
  restricted: "Это сделает параметр видимым и доступным для редактирования только для суперпользователей (как вы)."
@@ -24,6 +24,7 @@ ru:
24
24
  refinery/setting: Параметр системы
25
25
  attributes:
26
26
  refinery/setting:
27
+ title: Название
27
28
  name: Имя
28
29
  value: Значение
29
30
  restricted: Ограничение доступа
@@ -1,4 +1,4 @@
1
- class CreateRefinerycmsSettingsSchema < ActiveRecord::Migration
1
+ class CreateRefinerycmsSettingsSchema < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :refinery_settings do |t|
4
4
  t.string :name
@@ -1,4 +1,4 @@
1
- class AddSlugToRefinerySettings < ActiveRecord::Migration
1
+ class AddSlugToRefinerySettings < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :refinery_settings, :slug, :string, :unique => true
4
4
  end
@@ -1,4 +1,4 @@
1
- class AddTitleToRefinerySettings < ActiveRecord::Migration
1
+ class AddTitleToRefinerySettings < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :refinery_settings, :title, :string
4
4
  end
data/readme.md CHANGED
@@ -1,6 +1,6 @@
1
- # Settings
1
+ # Refinery CMS Settings
2
2
 
3
- ![Refinery Settings](http://refinerycms.com/system/images/0000/0666/settings.png)
3
+ [![Build Status](https://travis-ci.org/refinery/refinerycms-settings.svg?branch=master)](https://travis-ci.org/refinery/refinerycms-settings)
4
4
 
5
5
  ## About
6
6
 
@@ -3,7 +3,7 @@
3
3
  Gem::Specification.new do |s|
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.name = %q{refinerycms-settings}
6
- s.version = %q{3.0.0}
6
+ s.version = %q{4.0.0}
7
7
  s.summary = %q{Settings engine for Refinery CMS}
8
8
  s.description = %q{Adds programmer creatable, user editable settings.}
9
9
  s.email = %q{info@refinerycms.com}
@@ -15,6 +15,11 @@ Gem::Specification.new do |s|
15
15
  s.files = `git ls-files`.split("\n")
16
16
  s.test_files = `git ls-files -- spec/*`.split("\n")
17
17
 
18
- s.add_dependency 'refinerycms-core', ['~> 3.0', '>= 3.0.0']
19
- s.add_dependency 'friendly_id', ['~> 5.0', '>= 5.0.1']
18
+ s.add_dependency 'refinerycms-core', ['~> 4.0', '>= 4.0.0']
19
+ s.add_dependency 'friendly_id', ['>= 5.1.0', '< 5.3']
20
+
21
+ s.cert_chain = [File.expand_path("../certs/parndt.pem", __FILE__)]
22
+ if $0 =~ /gem\z/ && ARGV.include?("build") && ARGV.include?(__FILE__)
23
+ s.signing_key = File.expand_path("~/.ssh/gem-private_key.pem")
24
+ end
20
25
  end
@@ -3,7 +3,7 @@ require "spec_helper"
3
3
  module Refinery
4
4
  module Admin
5
5
  describe "Settings", :type => :feature do
6
- refinery_login_with :refinery_user
6
+ refinery_login
7
7
 
8
8
  context "when interface config is enabled" do
9
9
  before do
@@ -36,7 +36,7 @@ module Refinery
36
36
  context "new/create" do
37
37
  it "adds setting", :js => true do
38
38
  visit refinery.admin_settings_path
39
- click_link "Add new setting"
39
+ find("a", text: "Add new setting").trigger("click")
40
40
 
41
41
  expect(page).to have_selector('iframe#dialog_iframe')
42
42
 
@@ -47,13 +47,12 @@ module Refinery
47
47
  click_button "submit_button"
48
48
  end
49
49
  expect(page).not_to have_css("#dialog_iframe")
50
- expect(page).to have_content("'Test Setting' was successfully added.")
51
50
  expect(page).to have_content("Test Setting - true")
52
51
  end
53
52
 
54
53
  it "adds setting with slug unfriendly name", :js => true do
55
54
  visit refinery.admin_settings_path
56
- click_link "Add new setting"
55
+ find("a", text: "Add new setting").trigger("click")
57
56
 
58
57
  expect(page).to have_selector('iframe#dialog_iframe')
59
58
 
@@ -64,7 +63,6 @@ module Refinery
64
63
  click_button "submit_button"
65
64
  end
66
65
 
67
- expect(page).to have_content("'Test/Setting' was successfully added.")
68
66
  expect(page).to have_content("Test/Setting - true")
69
67
 
70
68
  visit refinery.edit_admin_setting_path(Refinery::Setting.last)
@@ -90,7 +88,6 @@ module Refinery
90
88
  click_button "Save"
91
89
  end
92
90
 
93
- expect(page).to have_content("'Edit and Update Title' was successfully updated.")
94
91
  expect(page).to have_content("Edit and Update Title - 2")
95
92
  end
96
93
  end
@@ -7,7 +7,6 @@ require File.expand_path("../dummy/config/environment", __FILE__)
7
7
 
8
8
  require 'rspec/rails'
9
9
  require 'capybara/rspec'
10
- require 'factory_girl_rails'
11
10
 
12
11
  Rails.backtrace_cleaner.remove_silencers!
13
12
 
metadata CHANGED
@@ -1,15 +1,37 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-settings
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Arndt
8
8
  - Uģis Ozols
9
9
  autorequire:
10
10
  bindir: bin
11
- cert_chain: []
12
- date: 2014-12-04 00:00:00.000000000 Z
11
+ cert_chain:
12
+ - |
13
+ -----BEGIN CERTIFICATE-----
14
+ MIIDhjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBNMQ0wCwYDVQQDDARnZW1z
15
+ MREwDwYKCZImiZPyLGQBGRYBcDEVMBMGCgmSJomT8ixkARkWBWFybmR0MRIwEAYK
16
+ CZImiZPyLGQBGRYCaW8wHhcNMTcwNzI1MTMxMjIwWhcNMTgwNzI1MTMxMjIwWjBN
17
+ MQ0wCwYDVQQDDARnZW1zMREwDwYKCZImiZPyLGQBGRYBcDEVMBMGCgmSJomT8ixk
18
+ ARkWBWFybmR0MRIwEAYKCZImiZPyLGQBGRYCaW8wggEiMA0GCSqGSIb3DQEBAQUA
19
+ A4IBDwAwggEKAoIBAQDrjwB8be48TFEvGweP7BwWFnmsL2IMU9Ts2UKKWK9GYr7Z
20
+ 5uNZFmO1yVBCrmUQHHDlpku6SN6HDO8ChDL7LNugz/4eapRTifHZl8jhPRsOLBcF
21
+ 1hANy/V2v5NNkL5Zvb+vsUa7lyjbIOoD5yYzSDl4/T0nOe6xYzxJgBuxZK/nWSOe
22
+ Db8Uffc7B4yhA2kuayUiQUXPYAoPdfUSxoTKDohw17Sm6LKTpg8GkT0ttof1a/xu
23
+ vdsTvZHIcTsYv16e+8SrwLRZ/iBVVsyZFkMYPMxemw7WHxmWElWIgW9S7pUK5Q7J
24
+ oMS5uJVbtV2EmV+cOnhOWDz1A16P7QRFmGje5L+vAgMBAAGjcTBvMAkGA1UdEwQC
25
+ MAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQ7G/yxuQIzgszkOkaZBgoKBJ1rozAa
26
+ BgNVHREEEzARgQ9nZW1zQHAuYXJuZHQuaW8wGgYDVR0SBBMwEYEPZ2Vtc0BwLmFy
27
+ bmR0LmlvMA0GCSqGSIb3DQEBBQUAA4IBAQB12WMsC+yuuIeM0Ib6HUYZ2IbhRnuW
28
+ 4uydNRvKDPdwzjChnOI0POGpcL8O1s1gh+19o/ITq6zRfTLhkwR2ir7XfwHJNppJ
29
+ yg48wbdL5gpZwggKWggKX5G9pqv9LjRsSAew6r0WB+5KW+ArCl/iNo9+AdeR3nUx
30
+ I+L/QiUxYU6XAXSrczL/i7kF5Xc3ZXQYuFsyGW9plA3i9faWUMvGKQc6pvUHIUZC
31
+ jOQmH9VbgbfUrXYM1YOKdlwW5sPR1f4PKLDlvEE+bppIUgKOgLOIv3i7KwrGvFOq
32
+ 5r7Wz/HY31SM47mkK21saPJG4NvUFEycf0wlpzP657Pl9aVo47aKKbxX
33
+ -----END CERTIFICATE-----
34
+ date: 2017-10-16 00:00:00.000000000 Z
13
35
  dependencies:
14
36
  - !ruby/object:Gem::Dependency
15
37
  name: refinerycms-core
@@ -17,40 +39,40 @@ dependencies:
17
39
  requirements:
18
40
  - - "~>"
19
41
  - !ruby/object:Gem::Version
20
- version: '3.0'
42
+ version: '4.0'
21
43
  - - ">="
22
44
  - !ruby/object:Gem::Version
23
- version: 3.0.0
45
+ version: 4.0.0
24
46
  type: :runtime
25
47
  prerelease: false
26
48
  version_requirements: !ruby/object:Gem::Requirement
27
49
  requirements:
28
50
  - - "~>"
29
51
  - !ruby/object:Gem::Version
30
- version: '3.0'
52
+ version: '4.0'
31
53
  - - ">="
32
54
  - !ruby/object:Gem::Version
33
- version: 3.0.0
55
+ version: 4.0.0
34
56
  - !ruby/object:Gem::Dependency
35
57
  name: friendly_id
36
58
  requirement: !ruby/object:Gem::Requirement
37
59
  requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '5.0'
41
60
  - - ">="
42
61
  - !ruby/object:Gem::Version
43
- version: 5.0.1
62
+ version: 5.1.0
63
+ - - "<"
64
+ - !ruby/object:Gem::Version
65
+ version: '5.3'
44
66
  type: :runtime
45
67
  prerelease: false
46
68
  version_requirements: !ruby/object:Gem::Requirement
47
69
  requirements:
48
- - - "~>"
49
- - !ruby/object:Gem::Version
50
- version: '5.0'
51
70
  - - ">="
52
71
  - !ruby/object:Gem::Version
53
- version: 5.0.1
72
+ version: 5.1.0
73
+ - - "<"
74
+ - !ruby/object:Gem::Version
75
+ version: '5.3'
54
76
  description: Adds programmer creatable, user editable settings.
55
77
  email: info@refinerycms.com
56
78
  executables: []
@@ -73,6 +95,11 @@ files:
73
95
  - app/views/refinery/admin/settings/edit.html.erb
74
96
  - app/views/refinery/admin/settings/index.html.erb
75
97
  - app/views/refinery/admin/settings/new.html.erb
98
+ - bin/rails
99
+ - bin/rake
100
+ - bin/rspec
101
+ - bin/spring
102
+ - certs/parndt.pem
76
103
  - config/locales/bg.yml
77
104
  - config/locales/cs.yml
78
105
  - config/locales/da.yml
@@ -113,7 +140,6 @@ files:
113
140
  - license.md
114
141
  - readme.md
115
142
  - refinerycms-settings.gemspec
116
- - script/rails
117
143
  - spec/factories/settings.rb
118
144
  - spec/features/refinery/admin/settings_spec.rb
119
145
  - spec/models/refinery/setting_spec.rb
@@ -140,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
166
  version: '0'
141
167
  requirements: []
142
168
  rubyforge_project:
143
- rubygems_version: 2.2.2
169
+ rubygems_version: 2.6.13
144
170
  signing_key:
145
171
  specification_version: 4
146
172
  summary: Settings engine for Refinery CMS
@@ -150,4 +176,3 @@ test_files:
150
176
  - spec/models/refinery/setting_spec.rb
151
177
  - spec/routing/settings_routing_spec.rb
152
178
  - spec/spec_helper.rb
153
- has_rdoc:
Binary file
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- load File.expand_path('../../spec/dummy/script/rails', __FILE__)