jsos 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/jsos.gemspec +1 -1
  4. data/lib/jsos.rb +4 -0
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9412f7bbfd53a242bd550d7a7b9369a1bb61baf
4
- data.tar.gz: de58cc657d6a008c89476e05fb8203acd3b993a4
3
+ metadata.gz: 5017d52aafb4da08828b5e6c6632aca0495f3faa
4
+ data.tar.gz: 7c8c9c0408fb5700d4af286094dd18e5d2cba523
5
5
  SHA512:
6
- metadata.gz: 5463f4da5331a4c2b5501308a2481c8ca57daacc070b6fe8e8e1ffbc740a31b002eee4cd57ce73e88aa01ecfec3a170e5bca5e6b29dc07031d46b306f5b88c3c
7
- data.tar.gz: bc204f6bdf1b43be6fd98ff5e15c872af2845f4425a2b84c5f4e20d4aeff7cee3fafc74cc30e34367088d03d54269e3760673068d0a874e2c30de92d52ed36ff
6
+ metadata.gz: 5573d049d3a16ff1f5035db0a1130446d23b3619f461ebd6ae7783072e28d956fe4223af5c601a3517dde4b656b810cc07ed6372bf460f8dea47ba08e92c6e0f
7
+ data.tar.gz: 18467c15348709c8e1cda425f8680f7f116cd04ef7576edf00d344a16ed7d62efd397d374b8ff19cb19f42985860b5ba808473cd5398b2c1118f1fcdab41dbfc
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.1.0 (Jan 12, 2016)
4
+ * Add `JSOS#each`
5
+
3
6
  ## v1.0.1 (Jan 07, 2016)
4
7
  * Fix issue where initial nested data was not converted into new JSOS objects (#1)
5
8
  * Create CHANGELOG
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "jsos"
7
- spec.version = "1.0.1"
7
+ spec.version = "1.1.0"
8
8
  spec.authors = ["Johnson Denen"]
9
9
  spec.email = ["johnson.denen@gmail.com"]
10
10
 
@@ -69,6 +69,10 @@ class JSOS < OpenStruct
69
69
  self.to_h.values
70
70
  end
71
71
 
72
+ def each &block
73
+ self.to_h.each{ |k, v| yield k, v }
74
+ end
75
+
72
76
  # @return [true|false]
73
77
  def empty?
74
78
  @table.empty?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsos
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johnson Denen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-07 00:00:00.000000000 Z
11
+ date: 2016-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler