settingsdb-rails 1.0.5
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.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +43 -0
- data/Rakefile +40 -0
- data/lib/generators/settingsdb/USAGE +8 -0
- data/lib/generators/settingsdb/install_generator.rb +103 -0
- data/lib/generators/settingsdb/templates/initializer.rb +3 -0
- data/lib/generators/settingsdb/templates/migration.rb +18 -0
- data/lib/generators/settingsdb/templates/migration_exists.rb +10 -0
- data/lib/settingsdb-rails.rb +6 -0
- data/lib/settingsdb/acts_as_setting.rb +48 -0
- data/lib/settingsdb/defaults.rb +91 -0
- data/lib/settingsdb/generators/generated_attribute.rb +104 -0
- data/lib/settingsdb/settings.rb +121 -0
- data/lib/settingsdb/version.rb +3 -0
- data/test/acts_as_setting_test.rb +90 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +9 -0
- data/test/dummy/app/assets/stylesheets/application.css +7 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/config_a.rb +3 -0
- data/test/dummy/app/models/config_b.rb +3 -0
- data/test/dummy/app/models/test_setting.rb +3 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +45 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/settingsdb.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20120327011030_settingsdb_create_test_settings.rb +12 -0
- data/test/dummy/db/migrate/20120327011127_settingsdb_create_config_as.rb +12 -0
- data/test/dummy/db/migrate/20120327011134_settingsdb_create_config_bs.rb +12 -0
- data/test/dummy/db/schema.rb +43 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +512 -0
- data/test/dummy/log/test.log +3749 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/config_as.yml +11 -0
- data/test/dummy/test/fixtures/config_bs.yml +11 -0
- data/test/dummy/test/fixtures/configurations.yml +11 -0
- data/test/dummy/test/fixtures/settings.yml +11 -0
- data/test/dummy/test/fixtures/test_settings.yml +11 -0
- data/test/dummy/test/unit/config_a_test.rb +7 -0
- data/test/dummy/test/unit/config_b_test.rb +7 -0
- data/test/dummy/test/unit/configuration_test.rb +7 -0
- data/test/dummy/test/unit/setting_test.rb +7 -0
- data/test/dummy/test/unit/test_setting_test.rb +7 -0
- data/test/settingsdb_defaults_test.rb +71 -0
- data/test/settingsdb_generator_test.rb +42 -0
- data/test/test_helper.rb +10 -0
- metadata +215 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
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
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
+
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
4
|
+
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
+
# below each fixture, per the syntax in the comments below
|
6
|
+
#
|
7
|
+
one: {}
|
8
|
+
# column: value
|
9
|
+
#
|
10
|
+
two: {}
|
11
|
+
# column: value
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
+
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
4
|
+
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
+
# below each fixture, per the syntax in the comments below
|
6
|
+
#
|
7
|
+
one: {}
|
8
|
+
# column: value
|
9
|
+
#
|
10
|
+
two: {}
|
11
|
+
# column: value
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
+
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
4
|
+
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
+
# below each fixture, per the syntax in the comments below
|
6
|
+
#
|
7
|
+
one: {}
|
8
|
+
# column: value
|
9
|
+
#
|
10
|
+
two: {}
|
11
|
+
# column: value
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
+
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
4
|
+
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
+
# below each fixture, per the syntax in the comments below
|
6
|
+
#
|
7
|
+
one: {}
|
8
|
+
# column: value
|
9
|
+
#
|
10
|
+
two: {}
|
11
|
+
# column: value
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
+
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
4
|
+
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
+
# below each fixture, per the syntax in the comments below
|
6
|
+
#
|
7
|
+
one: {}
|
8
|
+
# column: value
|
9
|
+
#
|
10
|
+
two: {}
|
11
|
+
# column: value
|
@@ -0,0 +1,71 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SettingsDBDefaultsTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
setup do
|
6
|
+
SettingsDB::Defaults.reset!
|
7
|
+
end
|
8
|
+
|
9
|
+
test "module exists" do
|
10
|
+
assert_kind_of Module, SettingsDB
|
11
|
+
assert_kind_of Class, SettingsDB::Defaults
|
12
|
+
end
|
13
|
+
|
14
|
+
test "non-existant defaults key returns nil" do
|
15
|
+
assert_nil SettingsDB::Defaults[:baz]
|
16
|
+
end
|
17
|
+
|
18
|
+
test "reset! method clears all defaults" do
|
19
|
+
SettingsDB::Defaults[:foo] = :bar
|
20
|
+
assert_equal :bar, SettingsDB::Defaults[:foo]
|
21
|
+
SettingsDB::Defaults.reset!
|
22
|
+
assert_nil SettingsDB::Defaults[:foo]
|
23
|
+
end
|
24
|
+
|
25
|
+
test "create a new default with implicit namespace" do
|
26
|
+
assert_equal SettingsDB::Defaults[:foo] = :bar, SettingsDB::Defaults[:foo]
|
27
|
+
end
|
28
|
+
|
29
|
+
test "create a new default with explicit namespace" do
|
30
|
+
assert_equal SettingsDB::Defaults[:baz, :bar] = :foo, SettingsDB::Defaults[:baz, :bar]
|
31
|
+
end
|
32
|
+
|
33
|
+
test "config class method returns Class" do
|
34
|
+
SettingsDB::Defaults[:bar] = :baz
|
35
|
+
config = SettingsDB::Defaults.config
|
36
|
+
assert_equal SettingsDB::Defaults, config
|
37
|
+
assert_equal :baz, config[:bar]
|
38
|
+
end
|
39
|
+
|
40
|
+
test "defaults class method returns defaults hash copy" do
|
41
|
+
SettingsDB::Defaults[:foobar] = :baz
|
42
|
+
SettingsDB::Defaults[:foo, :foobar] = :blah
|
43
|
+
defaults = SettingsDB::Defaults.defaults
|
44
|
+
assert_equal :baz, defaults[:default][:foobar]
|
45
|
+
assert_equal :blah, defaults[:foo][:foobar]
|
46
|
+
defaults[:default][:foobar] = :arg
|
47
|
+
assert_not_equal defaults[:default][:foobar], SettingsDB::Defaults[:foobar]
|
48
|
+
end
|
49
|
+
|
50
|
+
test "defaults! class method returns actual defaults hash" do
|
51
|
+
SettingsDB::Defaults[:foo] = :bar
|
52
|
+
defaults = SettingsDB::Defaults.defaults!
|
53
|
+
assert_equal SettingsDB::Defaults[:foo], defaults[:default][:foo]
|
54
|
+
defaults[:default][:foo] = :baz
|
55
|
+
assert_equal SettingsDB::Defaults[:foo], defaults[:default][:foo]
|
56
|
+
end
|
57
|
+
|
58
|
+
test "config method given block runs code" do
|
59
|
+
x = 1
|
60
|
+
prc = Proc.new { x += 1 }
|
61
|
+
config = SettingsDB::Defaults.config do |c|
|
62
|
+
prc.call
|
63
|
+
c[:oof] = :rab
|
64
|
+
c[:zab, :oof] = :arb
|
65
|
+
end
|
66
|
+
assert_equal 2, x
|
67
|
+
assert_equal :rab, SettingsDB::Defaults[:oof]
|
68
|
+
assert_equal :arb, SettingsDB::Defaults[:zab, :oof]
|
69
|
+
assert_equal :rab, config[:oof]
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'rails/generators/test_case'
|
3
|
+
require 'generators/settingsdb/install_generator'
|
4
|
+
|
5
|
+
class SettingsDBGeneratorTest < Rails::Generators::TestCase
|
6
|
+
tests SettingsDB::Generators::InstallGenerator
|
7
|
+
destination File.expand_path('../tmp', File.dirname(__FILE__))
|
8
|
+
setup :prepare_destination
|
9
|
+
|
10
|
+
test "Assert all files are properly created with default options" do
|
11
|
+
run_generator
|
12
|
+
assert_migration "db/migrate/settingsdb_create_settings.rb" do |migration|
|
13
|
+
assert_match migration, /t\.string\s+:namespace\s*,\s*:null\s*=>\s*false\s*,\s*:default\s*=>\s*'default'/
|
14
|
+
assert_match migration, /t\.string\s+:name\s*,\s*:null\s*=>\s*false/
|
15
|
+
assert_match migration, /t\.text\s+:value/
|
16
|
+
assert_match migration, /add_index\s+:settings\s*,\s*\[:namespace\s*,\s*:name\]\s*,\s*:unique\s*=>\s*true/
|
17
|
+
assert_match migration, /add_index\s+:settings\s*,\s*:name/
|
18
|
+
end
|
19
|
+
assert_file "app/models/setting.rb" do |model|
|
20
|
+
assert_match model, /acts_as_setting/
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
test "assert model and migration has custom table name when given" do
|
25
|
+
run_generator %w(my_setting)
|
26
|
+
assert_migration "db/migrate/settingsdb_create_my_settings.rb" do |migration|
|
27
|
+
assert_match migration, /create_table\s+:my_settings/
|
28
|
+
assert_match migration, /add_index\s+:my_settings/
|
29
|
+
end
|
30
|
+
assert_file "app/models/my_setting.rb" do |model|
|
31
|
+
assert_match model, /class\s+MySetting/
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
test "assert model and migration with custom attributes" do
|
36
|
+
run_generator %w(setting mycolumn:string)
|
37
|
+
assert_migration "db/migrate/settingsdb_create_settings.rb" do |migration|
|
38
|
+
assert_match migration, /t\.string\s+:mycolumn/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
metadata
ADDED
@@ -0,0 +1,215 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: settingsdb-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.5
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Michael Grubb
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-04-08 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: &70197088177760 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.1.4
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70197088177760
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: sqlite3
|
27
|
+
requirement: &70197088174980 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :development
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70197088174980
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: turn
|
38
|
+
requirement: &70197088173120 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70197088173120
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: pry
|
49
|
+
requirement: &70197088171620 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *70197088171620
|
58
|
+
description: Keep application settings in the database
|
59
|
+
email:
|
60
|
+
- spamtrap@dailyvoid.com
|
61
|
+
executables: []
|
62
|
+
extensions: []
|
63
|
+
extra_rdoc_files: []
|
64
|
+
files:
|
65
|
+
- lib/generators/settingsdb/install_generator.rb
|
66
|
+
- lib/generators/settingsdb/templates/initializer.rb
|
67
|
+
- lib/generators/settingsdb/templates/migration.rb
|
68
|
+
- lib/generators/settingsdb/templates/migration_exists.rb
|
69
|
+
- lib/generators/settingsdb/USAGE
|
70
|
+
- lib/settingsdb/acts_as_setting.rb
|
71
|
+
- lib/settingsdb/defaults.rb
|
72
|
+
- lib/settingsdb/generators/generated_attribute.rb
|
73
|
+
- lib/settingsdb/settings.rb
|
74
|
+
- lib/settingsdb/version.rb
|
75
|
+
- lib/settingsdb-rails.rb
|
76
|
+
- MIT-LICENSE
|
77
|
+
- Rakefile
|
78
|
+
- README.rdoc
|
79
|
+
- test/acts_as_setting_test.rb
|
80
|
+
- test/dummy/app/assets/javascripts/application.js
|
81
|
+
- test/dummy/app/assets/stylesheets/application.css
|
82
|
+
- test/dummy/app/controllers/application_controller.rb
|
83
|
+
- test/dummy/app/helpers/application_helper.rb
|
84
|
+
- test/dummy/app/models/config_a.rb
|
85
|
+
- test/dummy/app/models/config_b.rb
|
86
|
+
- test/dummy/app/models/test_setting.rb
|
87
|
+
- test/dummy/app/views/layouts/application.html.erb
|
88
|
+
- test/dummy/config/application.rb
|
89
|
+
- test/dummy/config/boot.rb
|
90
|
+
- test/dummy/config/database.yml
|
91
|
+
- test/dummy/config/environment.rb
|
92
|
+
- test/dummy/config/environments/development.rb
|
93
|
+
- test/dummy/config/environments/production.rb
|
94
|
+
- test/dummy/config/environments/test.rb
|
95
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
96
|
+
- test/dummy/config/initializers/inflections.rb
|
97
|
+
- test/dummy/config/initializers/mime_types.rb
|
98
|
+
- test/dummy/config/initializers/secret_token.rb
|
99
|
+
- test/dummy/config/initializers/session_store.rb
|
100
|
+
- test/dummy/config/initializers/settingsdb.rb
|
101
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
102
|
+
- test/dummy/config/locales/en.yml
|
103
|
+
- test/dummy/config/routes.rb
|
104
|
+
- test/dummy/config.ru
|
105
|
+
- test/dummy/db/development.sqlite3
|
106
|
+
- test/dummy/db/migrate/20120327011030_settingsdb_create_test_settings.rb
|
107
|
+
- test/dummy/db/migrate/20120327011127_settingsdb_create_config_as.rb
|
108
|
+
- test/dummy/db/migrate/20120327011134_settingsdb_create_config_bs.rb
|
109
|
+
- test/dummy/db/schema.rb
|
110
|
+
- test/dummy/db/test.sqlite3
|
111
|
+
- test/dummy/log/development.log
|
112
|
+
- test/dummy/log/test.log
|
113
|
+
- test/dummy/public/404.html
|
114
|
+
- test/dummy/public/422.html
|
115
|
+
- test/dummy/public/500.html
|
116
|
+
- test/dummy/public/favicon.ico
|
117
|
+
- test/dummy/Rakefile
|
118
|
+
- test/dummy/script/rails
|
119
|
+
- test/dummy/test/fixtures/config_as.yml
|
120
|
+
- test/dummy/test/fixtures/config_bs.yml
|
121
|
+
- test/dummy/test/fixtures/configurations.yml
|
122
|
+
- test/dummy/test/fixtures/settings.yml
|
123
|
+
- test/dummy/test/fixtures/test_settings.yml
|
124
|
+
- test/dummy/test/unit/config_a_test.rb
|
125
|
+
- test/dummy/test/unit/config_b_test.rb
|
126
|
+
- test/dummy/test/unit/configuration_test.rb
|
127
|
+
- test/dummy/test/unit/setting_test.rb
|
128
|
+
- test/dummy/test/unit/test_setting_test.rb
|
129
|
+
- test/settingsdb_defaults_test.rb
|
130
|
+
- test/settingsdb_generator_test.rb
|
131
|
+
- test/test_helper.rb
|
132
|
+
homepage: https://github.com/mgrubb/settingsdb-rails
|
133
|
+
licenses: []
|
134
|
+
post_install_message:
|
135
|
+
rdoc_options: []
|
136
|
+
require_paths:
|
137
|
+
- lib
|
138
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ! '>='
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
segments:
|
145
|
+
- 0
|
146
|
+
hash: 2402832574775597821
|
147
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
148
|
+
none: false
|
149
|
+
requirements:
|
150
|
+
- - ! '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
segments:
|
154
|
+
- 0
|
155
|
+
hash: 2402832574775597821
|
156
|
+
requirements: []
|
157
|
+
rubyforge_project:
|
158
|
+
rubygems_version: 1.8.11
|
159
|
+
signing_key:
|
160
|
+
specification_version: 3
|
161
|
+
summary: Keep application settings in the database
|
162
|
+
test_files:
|
163
|
+
- test/acts_as_setting_test.rb
|
164
|
+
- test/dummy/app/assets/javascripts/application.js
|
165
|
+
- test/dummy/app/assets/stylesheets/application.css
|
166
|
+
- test/dummy/app/controllers/application_controller.rb
|
167
|
+
- test/dummy/app/helpers/application_helper.rb
|
168
|
+
- test/dummy/app/models/config_a.rb
|
169
|
+
- test/dummy/app/models/config_b.rb
|
170
|
+
- test/dummy/app/models/test_setting.rb
|
171
|
+
- test/dummy/app/views/layouts/application.html.erb
|
172
|
+
- test/dummy/config/application.rb
|
173
|
+
- test/dummy/config/boot.rb
|
174
|
+
- test/dummy/config/database.yml
|
175
|
+
- test/dummy/config/environment.rb
|
176
|
+
- test/dummy/config/environments/development.rb
|
177
|
+
- test/dummy/config/environments/production.rb
|
178
|
+
- test/dummy/config/environments/test.rb
|
179
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
180
|
+
- test/dummy/config/initializers/inflections.rb
|
181
|
+
- test/dummy/config/initializers/mime_types.rb
|
182
|
+
- test/dummy/config/initializers/secret_token.rb
|
183
|
+
- test/dummy/config/initializers/session_store.rb
|
184
|
+
- test/dummy/config/initializers/settingsdb.rb
|
185
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
186
|
+
- test/dummy/config/locales/en.yml
|
187
|
+
- test/dummy/config/routes.rb
|
188
|
+
- test/dummy/config.ru
|
189
|
+
- test/dummy/db/development.sqlite3
|
190
|
+
- test/dummy/db/migrate/20120327011030_settingsdb_create_test_settings.rb
|
191
|
+
- test/dummy/db/migrate/20120327011127_settingsdb_create_config_as.rb
|
192
|
+
- test/dummy/db/migrate/20120327011134_settingsdb_create_config_bs.rb
|
193
|
+
- test/dummy/db/schema.rb
|
194
|
+
- test/dummy/db/test.sqlite3
|
195
|
+
- test/dummy/log/development.log
|
196
|
+
- test/dummy/log/test.log
|
197
|
+
- test/dummy/public/404.html
|
198
|
+
- test/dummy/public/422.html
|
199
|
+
- test/dummy/public/500.html
|
200
|
+
- test/dummy/public/favicon.ico
|
201
|
+
- test/dummy/Rakefile
|
202
|
+
- test/dummy/script/rails
|
203
|
+
- test/dummy/test/fixtures/config_as.yml
|
204
|
+
- test/dummy/test/fixtures/config_bs.yml
|
205
|
+
- test/dummy/test/fixtures/configurations.yml
|
206
|
+
- test/dummy/test/fixtures/settings.yml
|
207
|
+
- test/dummy/test/fixtures/test_settings.yml
|
208
|
+
- test/dummy/test/unit/config_a_test.rb
|
209
|
+
- test/dummy/test/unit/config_b_test.rb
|
210
|
+
- test/dummy/test/unit/configuration_test.rb
|
211
|
+
- test/dummy/test/unit/setting_test.rb
|
212
|
+
- test/dummy/test/unit/test_setting_test.rb
|
213
|
+
- test/settingsdb_defaults_test.rb
|
214
|
+
- test/settingsdb_generator_test.rb
|
215
|
+
- test/test_helper.rb
|