druthers 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.travis.yml +4 -4
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +1 -1
- data/README.md +2 -2
- data/ci/Gemfile.rails-4.1.x +1 -1
- data/ci/{Gemfile.rails-3.2.x → Gemfile.rails-4.2.x} +1 -1
- data/druthers.gemspec +1 -1
- data/lib/druthers/def.rb +1 -1
- data/lib/druthers/version.rb +1 -1
- data/test/minitest_helper.rb +6 -5
- metadata +28 -29
- data/ci/Gemfile.rails-4.0.x +0 -4
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MjkzYTgzOWJhYmUyMTgzMTQ4NDYwYjczMzUxNzkxNDUxNDZkZDJhNQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 996d00386b8235ba48470b978d9f0708deeca881
|
4
|
+
data.tar.gz: 6777f2901de5b2d8dd828516ca9cf2339e2dc1c3
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ZGJhYmRiNmI5NzFjOTUyOGYyNThmZGY0OTNlODU4ZjIyMjg2YWZlZGM4MGMx
|
11
|
-
MmI1N2E5NjllMzBlNTNjZTcwMjY0YjQzZWRiNWY0MzM3YTg0Yjg=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MzAxNWMyZDMxMDdiOTE2YzIzYmFkODA0MmNhM2ZlMmM2NjEzODJhYjcxMGJm
|
14
|
-
NDBhZGE2MmVmOGMwM2ZjMTUxYmM0ZDcyNzg2YzVmYWMzMmU5NTZjZGI2MGQx
|
15
|
-
MWQ0NjdjNjBjY2JkNTcxOTNmNWEyMzIyYTUyZTZjOTRlYjVhZmI=
|
6
|
+
metadata.gz: 420931fdcea8fd695686744287639411cf7450a6313fadde7267bb385c5a4502483aed3e3a1f87e6c1e8ff2a0e82a0b968ff2789fb6bb20ba3ce45c629cc5c0e
|
7
|
+
data.tar.gz: 8468eec33a6c49479a636cd6d1327c6ea519268f28d13823331cc041a1a9436865adf0a6fb6b51dc6bcab3c35854cb49bb0f617fb4575968060e18af38235fda
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -23,8 +23,8 @@ As opposed to ```rails-settings``` and forks, ```method_missing``` isn't used an
|
|
23
23
|
## Supported versions
|
24
24
|
|
25
25
|
The latest versions of
|
26
|
-
* Rails
|
27
|
-
* Ruby
|
26
|
+
* Rails 4.1 & 4.2
|
27
|
+
* Ruby 2.2
|
28
28
|
* SQLite, MySQL, and PostgreSQL
|
29
29
|
|
30
30
|
Every valid combination is [tested via Travis](https://travis-ci.org/mceachen/druthers).
|
data/ci/Gemfile.rails-4.1.x
CHANGED
data/druthers.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = %w(lib)
|
20
20
|
|
21
|
-
spec.add_dependency 'activerecord', '>=
|
21
|
+
spec.add_dependency 'activerecord', '>= 4.1'
|
22
22
|
spec.add_development_dependency 'rake'
|
23
23
|
spec.add_development_dependency 'bundler'
|
24
24
|
spec.add_development_dependency 'yard'
|
data/lib/druthers/def.rb
CHANGED
@@ -6,7 +6,7 @@ module Druthers
|
|
6
6
|
def def_druthers(*keys)
|
7
7
|
include Support
|
8
8
|
keys.each do |ea|
|
9
|
-
fail
|
9
|
+
fail 'key names must be alphanumeric' unless ea.to_s =~ Druthers::VALID_METHOD_NAME
|
10
10
|
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
11
11
|
def self.#{ea}=(value)
|
12
12
|
self.set_druther(:#{ea}, value)
|
data/lib/druthers/version.rb
CHANGED
data/test/minitest_helper.rb
CHANGED
@@ -3,11 +3,11 @@ require 'active_record'
|
|
3
3
|
require 'druthers'
|
4
4
|
require 'tmpdir'
|
5
5
|
|
6
|
-
db_config = File.expand_path(
|
6
|
+
db_config = File.expand_path('database.yml', File.dirname(__FILE__))
|
7
7
|
ActiveRecord::Base.configurations = YAML::load(ERB.new(IO.read(db_config)).result)
|
8
8
|
|
9
9
|
def env_db
|
10
|
-
ENV[
|
10
|
+
ENV['DB'] || 'mysql'
|
11
11
|
end
|
12
12
|
|
13
13
|
ActiveRecord::Base.establish_connection(env_db)
|
@@ -16,7 +16,8 @@ ActiveRecord::Migration.verbose = false
|
|
16
16
|
require 'test_models'
|
17
17
|
require 'minitest/autorun'
|
18
18
|
require 'minitest/great_expectations'
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
unless ENV['CI']
|
20
|
+
require 'minitest/reporters'
|
21
|
+
Minitest::Reporters.use! [Minitest::Reporters::SpecReporter.new]
|
22
|
+
end
|
22
23
|
Thread.abort_on_exception = true
|
metadata
CHANGED
@@ -1,139 +1,139 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: druthers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew McEachen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: yard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mysql2
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: pg
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: sqlite3
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: minitest-great_expectations
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: minitest-reporters
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
description: Simple, performant settings for your Rails application
|
@@ -143,16 +143,15 @@ executables: []
|
|
143
143
|
extensions: []
|
144
144
|
extra_rdoc_files: []
|
145
145
|
files:
|
146
|
-
- .gitignore
|
147
|
-
- .travis.yml
|
146
|
+
- ".gitignore"
|
147
|
+
- ".travis.yml"
|
148
148
|
- CHANGELOG.md
|
149
149
|
- Gemfile
|
150
150
|
- LICENSE.txt
|
151
151
|
- README.md
|
152
152
|
- Rakefile
|
153
|
-
- ci/Gemfile.rails-3.2.x
|
154
|
-
- ci/Gemfile.rails-4.0.x
|
155
153
|
- ci/Gemfile.rails-4.1.x
|
154
|
+
- ci/Gemfile.rails-4.2.x
|
156
155
|
- druthers.gemspec
|
157
156
|
- lib/druthers.rb
|
158
157
|
- lib/druthers/def.rb
|
@@ -172,17 +171,17 @@ require_paths:
|
|
172
171
|
- lib
|
173
172
|
required_ruby_version: !ruby/object:Gem::Requirement
|
174
173
|
requirements:
|
175
|
-
- -
|
174
|
+
- - ">="
|
176
175
|
- !ruby/object:Gem::Version
|
177
176
|
version: '0'
|
178
177
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
179
178
|
requirements:
|
180
|
-
- -
|
179
|
+
- - ">="
|
181
180
|
- !ruby/object:Gem::Version
|
182
181
|
version: '0'
|
183
182
|
requirements: []
|
184
183
|
rubyforge_project:
|
185
|
-
rubygems_version: 2.
|
184
|
+
rubygems_version: 2.4.5.1
|
186
185
|
signing_key:
|
187
186
|
specification_version: 4
|
188
187
|
summary: ''
|
data/ci/Gemfile.rails-4.0.x
DELETED