refinerycms-settings 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +2 -0
- data.tar.gz.sig +0 -0
- data/.gitignore +1 -1
- data/.travis.yml +9 -23
- data/Gemfile +35 -23
- data/app/controllers/refinery/admin/settings_controller.rb +1 -1
- data/app/models/refinery/setting.rb +4 -0
- data/app/views/refinery/admin/settings/_actions.html.erb +1 -1
- data/app/views/refinery/admin/settings/_form.html.erb +2 -2
- data/app/views/refinery/admin/settings/_setting.html.erb +14 -15
- data/app/views/refinery/admin/settings/index.html.erb +1 -10
- data/bin/rails +11 -0
- data/bin/rake +21 -0
- data/bin/rspec +22 -0
- data/bin/spring +18 -0
- data/certs/parndt.pem +21 -0
- data/config/locales/en.yml +1 -0
- data/config/locales/fr.yml +1 -1
- data/config/locales/ru.yml +2 -1
- data/db/migrate/20100913234710_create_refinerycms_settings_schema.rb +1 -1
- data/db/migrate/20130414130143_add_slug_to_refinery_settings.rb +1 -1
- data/db/migrate/20130422105953_add_title_to_refinery_settings.rb +1 -1
- data/readme.md +2 -2
- data/refinerycms-settings.gemspec +8 -3
- data/spec/features/refinery/admin/settings_spec.rb +3 -6
- data/spec/spec_helper.rb +0 -1
- metadata +43 -18
- metadata.gz.sig +0 -0
- data/script/rails +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd87de7c0d0ab8ed1d642ea68392ddbdc87f2a17
|
4
|
+
data.tar.gz: a9cd6d011ac88588447c7ffead3f9019ff3d903a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff64b60d3893e50b6c0f52020507f3f58ad15f1327e1f578078228d7f071556551877936bf896bab48af407fd3ae53f1fca4d31ef347947dcd6a62676135691f
|
7
|
+
data.tar.gz: 1155895542b67664c0bdb00dd3951a7377b12a0d82f501e263601e0982743c67427377649a4696d219d106f04caca3fb8b2d737141ebde2cce03ecb4f3adc775
|
checksums.yaml.gz.sig
ADDED
data.tar.gz.sig
ADDED
Binary file
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
language: ruby
|
2
|
+
cache: bundler
|
2
3
|
bundler_args: --without development
|
3
|
-
|
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.
|
29
|
-
- 2.
|
12
|
+
- 2.4.2
|
13
|
+
- 2.3.5
|
14
|
+
- 2.2.8
|
15
|
+
sudo: false
|
data/Gemfile
CHANGED
@@ -1,40 +1,52 @@
|
|
1
|
-
source
|
1
|
+
source "https://rubygems.org"
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
|
6
|
-
gem
|
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
|
-
|
12
|
-
|
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[
|
18
|
-
gem
|
19
|
-
gem
|
14
|
+
unless ENV["TRAVIS"]
|
15
|
+
gem "activerecord-jdbcsqlite3-adapter", :platform => :jruby
|
16
|
+
gem "sqlite3", :platform => :ruby
|
20
17
|
end
|
21
18
|
|
22
|
-
if !ENV[
|
23
|
-
gem
|
24
|
-
gem
|
25
|
-
gem
|
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[
|
29
|
-
gem
|
30
|
-
gem
|
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
|
-
|
35
|
-
gem
|
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(
|
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
|
-
|
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')
|
@@ -3,6 +3,6 @@
|
|
3
3
|
<%= render '/refinery/admin/search', :url => refinery.admin_settings_path %>
|
4
4
|
</li>
|
5
5
|
<li>
|
6
|
-
<%=
|
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::
|
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
|
-
<%=
|
8
|
-
|
9
|
-
|
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>
|
data/bin/rails
ADDED
@@ -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
|
data/bin/rake
ADDED
@@ -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')
|
data/bin/rspec
ADDED
@@ -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')
|
data/bin/spring
ADDED
@@ -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
|
data/certs/parndt.pem
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
2
|
+
MIIDhjCCAm6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBNMQ0wCwYDVQQDDARnZW1z
|
3
|
+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RsSAew6r0WB+5KW+ArCl/iNo9+AdeR3nUx
|
18
|
+
I+L/QiUxYU6XAXSrczL/i7kF5Xc3ZXQYuFsyGW9plA3i9faWUMvGKQc6pvUHIUZC
|
19
|
+
jOQmH9VbgbfUrXYM1YOKdlwW5sPR1f4PKLDlvEE+bppIUgKOgLOIv3i7KwrGvFOq
|
20
|
+
5r7Wz/HY31SM47mkK21saPJG4NvUFEycf0wlpzP657Pl9aVo47aKKbxX
|
21
|
+
-----END CERTIFICATE-----
|
data/config/locales/en.yml
CHANGED
data/config/locales/fr.yml
CHANGED
@@ -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>
|
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).
|
data/config/locales/ru.yml
CHANGED
@@ -15,7 +15,7 @@ ru:
|
|
15
15
|
create_first: "Нажмите «%{link}», чтобы добавить первый параметр."
|
16
16
|
form:
|
17
17
|
enabled: "Да, включить этот параметр."
|
18
|
-
restart_may_be_in_order_html: "<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: Ограничение доступа
|
data/readme.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# Settings
|
1
|
+
# Refinery CMS Settings
|
2
2
|
|
3
|
-
](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{
|
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', ['~>
|
19
|
-
s.add_dependency 'friendly_id', ['
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
data/spec/spec_helper.rb
CHANGED
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:
|
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
|
-
|
11
|
+
cert_chain:
|
12
|
+
- |
|
13
|
+
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uydNRvKDPdwzjChnOI0POGpcL8O1s1gh+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: '
|
42
|
+
version: '4.0'
|
21
43
|
- - ">="
|
22
44
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
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: '
|
52
|
+
version: '4.0'
|
31
53
|
- - ">="
|
32
54
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
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
|
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
|
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.
|
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:
|
metadata.gz.sig
ADDED
Binary file
|
data/script/rails
DELETED