settingson 1.2.19 → 1.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/.rspec +3 -0
- data/Rakefile +1 -1
- data/app/models/concerns/settingson/base.rb +4 -0
- data/config/spring.rb +1 -0
- data/lib/settingson/version.rb +1 -1
- data/settingson.gemspec +6 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/models/settings.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +8 -0
- data/spec/dummy/bin/rake +8 -0
- data/spec/dummy/bin/rspec +7 -0
- data/spec/dummy/bin/spring +18 -0
- data/spec/dummy/config/application.rb +29 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +78 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +56 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config/spring.rb +1 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/db/migrate/20141209171149_create_settings.rb +10 -0
- data/spec/dummy/db/schema.rb +23 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/models/settings_spec.rb +25 -0
- data/spec/spec_helper.rb +113 -0
- metadata +185 -3
@@ -0,0 +1,23 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20141209171149) do
|
15
|
+
|
16
|
+
create_table "settings", force: true do |t|
|
17
|
+
t.string "key"
|
18
|
+
t.text "value"
|
19
|
+
t.datetime "created_at"
|
20
|
+
t.datetime "updated_at"
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1,25 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Settings do
|
4
|
+
it 'not raises error on create new instance of Settings' do
|
5
|
+
expect{ Settings.new }.to_not raise_error
|
6
|
+
end
|
7
|
+
it 'not raises error on create new element' do
|
8
|
+
expect{ Settings.hello = Faker::Lorem.word }.to_not raise_error
|
9
|
+
end
|
10
|
+
it 'returns same value' do
|
11
|
+
word = Faker::Lorem.word
|
12
|
+
Settings.hello = word
|
13
|
+
expect( Settings.hello ).to eq(word)
|
14
|
+
end
|
15
|
+
it 'returns same value for composit (2.1)' do
|
16
|
+
word = Faker::Lorem.word
|
17
|
+
Settings.hello.hello = word
|
18
|
+
expect( Settings.hello.hello ).to eq(word)
|
19
|
+
end
|
20
|
+
it 'returns same value for composit (2.2)' do
|
21
|
+
word = Faker::Lorem.word
|
22
|
+
Settings.i.hello = word
|
23
|
+
expect( Settings.i.hello ).to eq(word)
|
24
|
+
end
|
25
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,113 @@
|
|
1
|
+
ENV["RAILS_ENV"] ||= 'test'
|
2
|
+
|
3
|
+
require ::File.expand_path('../dummy/config/environment', __FILE__)
|
4
|
+
require 'rspec/rails'
|
5
|
+
require 'database_cleaner'
|
6
|
+
require 'faker'
|
7
|
+
|
8
|
+
ActiveRecord::Migration.maintain_test_schema!
|
9
|
+
|
10
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
11
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
12
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
13
|
+
# file to always be loaded, without a need to explicitly require it in any files.
|
14
|
+
#
|
15
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
16
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
17
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
18
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
19
|
+
# a separate helper file that requires the additional dependencies and performs
|
20
|
+
# the additional setup, and require it from the spec files that actually need it.
|
21
|
+
#
|
22
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
23
|
+
# users commonly want.
|
24
|
+
#
|
25
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
26
|
+
|
27
|
+
RSpec.configure do |config|
|
28
|
+
# rspec-expectations config goes here. You can use an alternate
|
29
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
30
|
+
# assertions if you prefer.
|
31
|
+
|
32
|
+
config.before(:suite) do
|
33
|
+
begin
|
34
|
+
DatabaseCleaner.strategy = :transaction
|
35
|
+
DatabaseCleaner.clean_with(:truncation)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
config.around(:each) do |example|
|
40
|
+
DatabaseCleaner.cleaning do
|
41
|
+
example.run
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
config.expect_with :rspec do |expectations|
|
46
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
47
|
+
# and `failure_message` of custom matchers include text for helper methods
|
48
|
+
# defined using `chain`, e.g.:
|
49
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
50
|
+
# # => "be bigger than 2 and smaller than 4"
|
51
|
+
# ...rather than:
|
52
|
+
# # => "be bigger than 2"
|
53
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
54
|
+
end
|
55
|
+
|
56
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
57
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
58
|
+
config.mock_with :rspec do |mocks|
|
59
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
60
|
+
# a real object. This is generally recommended, and will default to
|
61
|
+
# `true` in RSpec 4.
|
62
|
+
mocks.verify_partial_doubles = true
|
63
|
+
end
|
64
|
+
|
65
|
+
# The settings below are suggested to provide a good initial experience
|
66
|
+
# with RSpec, but feel free to customize to your heart's content.
|
67
|
+
=begin
|
68
|
+
# These two settings work together to allow you to limit a spec run
|
69
|
+
# to individual examples or groups you care about by tagging them with
|
70
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
71
|
+
# get run.
|
72
|
+
config.filter_run :focus
|
73
|
+
config.run_all_when_everything_filtered = true
|
74
|
+
|
75
|
+
# Limits the available syntax to the non-monkey patched syntax that is recommended.
|
76
|
+
# For more details, see:
|
77
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
78
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
79
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
80
|
+
config.disable_monkey_patching!
|
81
|
+
|
82
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
83
|
+
# be too noisy due to issues in dependencies.
|
84
|
+
config.warnings = true
|
85
|
+
|
86
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
87
|
+
# file, and it's useful to allow more verbose output when running an
|
88
|
+
# individual spec file.
|
89
|
+
if config.files_to_run.one?
|
90
|
+
# Use the documentation formatter for detailed output,
|
91
|
+
# unless a formatter has already been configured
|
92
|
+
# (e.g. via a command-line flag).
|
93
|
+
config.default_formatter = 'doc'
|
94
|
+
end
|
95
|
+
|
96
|
+
# Print the 10 slowest examples and example groups at the
|
97
|
+
# end of the spec run, to help surface which specs are running
|
98
|
+
# particularly slow.
|
99
|
+
config.profile_examples = 10
|
100
|
+
|
101
|
+
# Run specs in random order to surface order dependencies. If you find an
|
102
|
+
# order dependency and want to debug it, you can fix the order by providing
|
103
|
+
# the seed, which is printed after each run.
|
104
|
+
# --seed 1234
|
105
|
+
config.order = :random
|
106
|
+
|
107
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
108
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
109
|
+
# test failures related to randomization by passing the same `--seed` value
|
110
|
+
# as the one that triggered the failure.
|
111
|
+
Kernel.srand config.seed
|
112
|
+
=end
|
113
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: settingson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -38,6 +38,90 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.6'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rails-dummy
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sqlite3
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: spring-commands-rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: database_cleaner
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: faker
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
41
125
|
description: 'Settings management for Ruby on Rails 4 applications (ActiveRecord) '
|
42
126
|
email:
|
43
127
|
- daan.forever@gmail.com
|
@@ -46,11 +130,13 @@ extensions: []
|
|
46
130
|
extra_rdoc_files: []
|
47
131
|
files:
|
48
132
|
- ".gitignore"
|
133
|
+
- ".rspec"
|
49
134
|
- Gemfile
|
50
135
|
- LICENSE.txt
|
51
136
|
- README.md
|
52
137
|
- Rakefile
|
53
138
|
- app/models/concerns/settingson/base.rb
|
139
|
+
- config/spring.rb
|
54
140
|
- lib/generators/settingson/settingson_generator.rb
|
55
141
|
- lib/generators/settingson/templates/migrations/rename_name_to_key_on_settings.rb
|
56
142
|
- lib/settingson.rb
|
@@ -58,6 +144,54 @@ files:
|
|
58
144
|
- lib/settingson/store.rb
|
59
145
|
- lib/settingson/version.rb
|
60
146
|
- settingson.gemspec
|
147
|
+
- spec/dummy/README.rdoc
|
148
|
+
- spec/dummy/Rakefile
|
149
|
+
- spec/dummy/app/assets/images/.keep
|
150
|
+
- spec/dummy/app/assets/javascripts/application.js
|
151
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
152
|
+
- spec/dummy/app/controllers/application_controller.rb
|
153
|
+
- spec/dummy/app/controllers/concerns/.keep
|
154
|
+
- spec/dummy/app/helpers/application_helper.rb
|
155
|
+
- spec/dummy/app/mailers/.keep
|
156
|
+
- spec/dummy/app/models/.keep
|
157
|
+
- spec/dummy/app/models/concerns/.keep
|
158
|
+
- spec/dummy/app/models/settings.rb
|
159
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
160
|
+
- spec/dummy/bin/bundle
|
161
|
+
- spec/dummy/bin/rails
|
162
|
+
- spec/dummy/bin/rake
|
163
|
+
- spec/dummy/bin/rspec
|
164
|
+
- spec/dummy/bin/spring
|
165
|
+
- spec/dummy/config.ru
|
166
|
+
- spec/dummy/config/application.rb
|
167
|
+
- spec/dummy/config/boot.rb
|
168
|
+
- spec/dummy/config/database.yml
|
169
|
+
- spec/dummy/config/environment.rb
|
170
|
+
- spec/dummy/config/environments/development.rb
|
171
|
+
- spec/dummy/config/environments/production.rb
|
172
|
+
- spec/dummy/config/environments/test.rb
|
173
|
+
- spec/dummy/config/initializers/assets.rb
|
174
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
175
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
176
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
177
|
+
- spec/dummy/config/initializers/inflections.rb
|
178
|
+
- spec/dummy/config/initializers/mime_types.rb
|
179
|
+
- spec/dummy/config/initializers/session_store.rb
|
180
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
181
|
+
- spec/dummy/config/locales/en.yml
|
182
|
+
- spec/dummy/config/routes.rb
|
183
|
+
- spec/dummy/config/secrets.yml
|
184
|
+
- spec/dummy/config/spring.rb
|
185
|
+
- spec/dummy/db/migrate/20141209171149_create_settings.rb
|
186
|
+
- spec/dummy/db/schema.rb
|
187
|
+
- spec/dummy/lib/assets/.keep
|
188
|
+
- spec/dummy/log/.keep
|
189
|
+
- spec/dummy/public/404.html
|
190
|
+
- spec/dummy/public/422.html
|
191
|
+
- spec/dummy/public/500.html
|
192
|
+
- spec/dummy/public/favicon.ico
|
193
|
+
- spec/models/settings_spec.rb
|
194
|
+
- spec/spec_helper.rb
|
61
195
|
homepage: https://github.com/daanforever/settingson
|
62
196
|
licenses:
|
63
197
|
- MIT
|
@@ -83,4 +217,52 @@ rubygems_version: 2.2.2
|
|
83
217
|
signing_key:
|
84
218
|
specification_version: 4
|
85
219
|
summary: Settings management for Ruby on Rails 4 applications (ActiveRecord)
|
86
|
-
test_files:
|
220
|
+
test_files:
|
221
|
+
- spec/dummy/README.rdoc
|
222
|
+
- spec/dummy/Rakefile
|
223
|
+
- spec/dummy/app/assets/images/.keep
|
224
|
+
- spec/dummy/app/assets/javascripts/application.js
|
225
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
226
|
+
- spec/dummy/app/controllers/application_controller.rb
|
227
|
+
- spec/dummy/app/controllers/concerns/.keep
|
228
|
+
- spec/dummy/app/helpers/application_helper.rb
|
229
|
+
- spec/dummy/app/mailers/.keep
|
230
|
+
- spec/dummy/app/models/.keep
|
231
|
+
- spec/dummy/app/models/concerns/.keep
|
232
|
+
- spec/dummy/app/models/settings.rb
|
233
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
234
|
+
- spec/dummy/bin/bundle
|
235
|
+
- spec/dummy/bin/rails
|
236
|
+
- spec/dummy/bin/rake
|
237
|
+
- spec/dummy/bin/rspec
|
238
|
+
- spec/dummy/bin/spring
|
239
|
+
- spec/dummy/config.ru
|
240
|
+
- spec/dummy/config/application.rb
|
241
|
+
- spec/dummy/config/boot.rb
|
242
|
+
- spec/dummy/config/database.yml
|
243
|
+
- spec/dummy/config/environment.rb
|
244
|
+
- spec/dummy/config/environments/development.rb
|
245
|
+
- spec/dummy/config/environments/production.rb
|
246
|
+
- spec/dummy/config/environments/test.rb
|
247
|
+
- spec/dummy/config/initializers/assets.rb
|
248
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
249
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
250
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
251
|
+
- spec/dummy/config/initializers/inflections.rb
|
252
|
+
- spec/dummy/config/initializers/mime_types.rb
|
253
|
+
- spec/dummy/config/initializers/session_store.rb
|
254
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
255
|
+
- spec/dummy/config/locales/en.yml
|
256
|
+
- spec/dummy/config/routes.rb
|
257
|
+
- spec/dummy/config/secrets.yml
|
258
|
+
- spec/dummy/config/spring.rb
|
259
|
+
- spec/dummy/db/migrate/20141209171149_create_settings.rb
|
260
|
+
- spec/dummy/db/schema.rb
|
261
|
+
- spec/dummy/lib/assets/.keep
|
262
|
+
- spec/dummy/log/.keep
|
263
|
+
- spec/dummy/public/404.html
|
264
|
+
- spec/dummy/public/422.html
|
265
|
+
- spec/dummy/public/500.html
|
266
|
+
- spec/dummy/public/favicon.ico
|
267
|
+
- spec/models/settings_spec.rb
|
268
|
+
- spec/spec_helper.rb
|