buff-config 0.2.0 → 0.3.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
- data/CONTRIBUTING.md +2 -2
- data/LICENSE +1 -1
- data/README.md +2 -1
- data/buff-config.gemspec +2 -2
- data/lib/buff/config/json.rb +7 -0
- data/lib/buff/config/version.rb +1 -1
- data/spec/buff/config/json_spec.rb +8 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59ca4b29daeba44f9f01e9fe35a4af3f5bf581ae
|
4
|
+
data.tar.gz: 1aef7ba41b927028a6f905392864db21439ab587
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b9d110f280832d85d71d474b284a4145eb0d55f8928b6e2e54d0ed9b31caeb815f21401c7c314183af77ed37fff4b3a42f6004bd0e3400a3188a66f128b54d4
|
7
|
+
data.tar.gz: f452c2678758fa962a8de4eb828669668e3875b523f664f7e4524f99f98eef705bb94581a778e0a378bb362f0a01e788e6826f59a8bebe911757805bbc2aeead
|
data/CONTRIBUTING.md
CHANGED
@@ -10,11 +10,11 @@ Install the latest version of [Bundler](http://gembundler.com)
|
|
10
10
|
|
11
11
|
Clone the project
|
12
12
|
|
13
|
-
$ git clone git://github.com/RiotGames/buff-
|
13
|
+
$ git clone git://github.com/RiotGames/buff-config.git
|
14
14
|
|
15
15
|
and run:
|
16
16
|
|
17
|
-
$ cd buff-
|
17
|
+
$ cd buff-config
|
18
18
|
$ bundle install
|
19
19
|
|
20
20
|
Bundler will install all gems and their dependencies required for testing and developing.
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -31,6 +31,7 @@ Or install it yourself as:
|
|
31
31
|
|
32
32
|
# Authors and Contributors
|
33
33
|
|
34
|
-
* Jamie Winsor (<
|
34
|
+
* Jamie Winsor (<jamie@vialstudios.com>)
|
35
|
+
* Kyle Allan (<kallan@riotgames.com>)
|
35
36
|
|
36
37
|
Thank you to all of our [Contributors](https://github.com/RiotGames/buff-config/graphs/contributors), testers, and users.
|
data/buff-config.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'buff/config/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "buff-config"
|
8
8
|
spec.version = Buff::Config::VERSION
|
9
|
-
spec.authors = ["Jamie Winsor"]
|
10
|
-
spec.email = ["
|
9
|
+
spec.authors = ["Jamie Winsor", "Kyle Allan"]
|
10
|
+
spec.email = ["jamie@vialstudios.com", "kallan@riotgames.com"]
|
11
11
|
spec.description = %q{A simple configuration class}
|
12
12
|
spec.summary = spec.description
|
13
13
|
spec.homepage = "https://github.com/RiotGames/buff-config"
|
data/lib/buff/config/json.rb
CHANGED
data/lib/buff/config/version.rb
CHANGED
@@ -20,6 +20,14 @@ describe Buff::Config::JSON do
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
+
describe "::from_hash" do
|
24
|
+
let(:hash) { JSON.parse(json) }
|
25
|
+
|
26
|
+
it "returns an instance of the inheriting class" do
|
27
|
+
expect(subject.from_hash(hash)).to be_a(subject)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
23
31
|
describe "::from_json" do
|
24
32
|
it "returns an instance of the inheriting class" do
|
25
33
|
expect(subject.from_json(json)).to be_a(subject)
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buff-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Winsor
|
8
|
+
- Kyle Allan
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
+
date: 2013-07-29 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: varia_model
|
@@ -194,7 +195,8 @@ dependencies:
|
|
194
195
|
version: '0'
|
195
196
|
description: A simple configuration class
|
196
197
|
email:
|
197
|
-
-
|
198
|
+
- jamie@vialstudios.com
|
199
|
+
- kallan@riotgames.com
|
198
200
|
executables: []
|
199
201
|
extensions: []
|
200
202
|
extra_rdoc_files: []
|