gem_config 0.2.1 → 0.2.2
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
- data/.travis.yml +7 -0
- data/README.md +0 -14
- data/lib/gem_config/rules.rb +1 -1
- data/lib/gem_config/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3884ec7a3e75afa1440ce91c28a37e8ef82fe328
|
4
|
+
data.tar.gz: 22e1710b408d91857f52af23336b848a637a3070
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 054de8598131e48cab13217f89385afb336f2b81b9276f1134ae5294a3adb7727b29244e346bc729c563629f3165f70457f95ae0fc8a038890e06c2a3a5d2772
|
7
|
+
data.tar.gz: 6e5a43f927021ed8a80be3274785deb3d3e90e32032681ddf5a5c6d334d42bbc5446384fa235d00ed1244dbd73ce66f37b33a303da0bfc5086ecd412c83edb4e
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -7,20 +7,6 @@
|
|
7
7
|
|
8
8
|
A nifty way to make your gem configurable.
|
9
9
|
|
10
|
-
## Installation
|
11
|
-
|
12
|
-
Add this line to your application's Gemfile:
|
13
|
-
|
14
|
-
gem 'gem_config'
|
15
|
-
|
16
|
-
And then execute:
|
17
|
-
|
18
|
-
$ bundle
|
19
|
-
|
20
|
-
Or install it yourself as:
|
21
|
-
|
22
|
-
$ gem install gem_config
|
23
|
-
|
24
10
|
## Usage
|
25
11
|
|
26
12
|
### As a gem author
|
data/lib/gem_config/rules.rb
CHANGED
@@ -52,7 +52,7 @@ module GemConfig
|
|
52
52
|
|
53
53
|
if attrs.has_key?(:values)
|
54
54
|
default_not_in_values = !Array(attrs[:values]).include?(attrs[:default])
|
55
|
-
raise ArgumentError, 'Value of :default parameter must have the type of one of the defined :
|
55
|
+
raise ArgumentError, 'Value of :default parameter must have the type of one of the defined :values.' if default_not_in_values
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
data/lib/gem_config/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Meurer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -58,6 +58,7 @@ executables: []
|
|
58
58
|
extensions: []
|
59
59
|
extra_rdoc_files: []
|
60
60
|
files:
|
61
|
+
- .travis.yml
|
61
62
|
- Gemfile
|
62
63
|
- LICENSE.txt
|
63
64
|
- README.md
|