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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0093e2b1a2758408cc99fa9589d4485226506fec
4
- data.tar.gz: 4b1432e19086a328d91ed4b35a2750979c24a1b9
3
+ metadata.gz: 59ca4b29daeba44f9f01e9fe35a4af3f5bf581ae
4
+ data.tar.gz: 1aef7ba41b927028a6f905392864db21439ab587
5
5
  SHA512:
6
- metadata.gz: 47714f8fb416f8d171bcc7923afce1e6fd2471047976bc861c3d49f7e5456d414dfc7456f1eeaf65a4f0ea173985bf3559282ec195975d6cf9d5638b561f74fc
7
- data.tar.gz: df6eecb04d69de2d7e2c05eb92afbcc9193d12bf9c37121859c726a178f5b3756d8a7bddc8321a0880aa6a68d86b29277c4b1eb6e58879e38c491abc0cc009b8
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-ruby_engine.git
13
+ $ git clone git://github.com/RiotGames/buff-config.git
14
14
 
15
15
  and run:
16
16
 
17
- $ cd buff-ruby_engine
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
@@ -1,6 +1,6 @@
1
1
  Copyright 2012-2013 Riot Games
2
2
 
3
- Jamie Winsor (<reset@riotgames.com>)
3
+ Jamie Winsor (<jamie@vialstudios.com>)
4
4
 
5
5
  Licensed under the Apache License, Version 2.0 (the "License");
6
6
  you may not use this file except in compliance with the License.
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 (<reset@riotgames.com>)
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 = ["reset@riotgames.com"]
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"
@@ -12,6 +12,13 @@ module Buff
12
12
  new.from_json(data)
13
13
  end
14
14
 
15
+ # @param [Hash] hash
16
+ #
17
+ # @return [Buff::Config::JSON]
18
+ def from_hash(hash)
19
+ new.from_hash(hash)
20
+ end
21
+
15
22
  # @param [String] path
16
23
  #
17
24
  # @raise [Buff::Errors::ConfigNotFound]
@@ -1,5 +1,5 @@
1
1
  module Buff
2
2
  module Config
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -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.2.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-06-30 00:00:00.000000000 Z
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
- - reset@riotgames.com
198
+ - jamie@vialstudios.com
199
+ - kallan@riotgames.com
198
200
  executables: []
199
201
  extensions: []
200
202
  extra_rdoc_files: []