netbox-client-ruby 0.1.4 → 0.2.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: 4c2790971b77b46de9951fa49827fb7af234c5ec
4
- data.tar.gz: c1df33a387651063eafc6106f3aa9c3161920a44
3
+ metadata.gz: 8a33a9e231e8aa997c0091b3f7c6e474ceb563af
4
+ data.tar.gz: 80460916076882c8f7e7dd25f8fca52ca9c2a1f8
5
5
  SHA512:
6
- metadata.gz: ac02e9bd64f9105a65f90b6436476b16224f2b32df3bb67703c38252e4e8d310272d5bbc8abdce6d81cd8c30546cdfc2d90d70a3baa70452c54bd7fea2628dc8
7
- data.tar.gz: 2df624834a8dbcff6776e63c61a62323f67288fed3b0c302d926791bb40541330ff267c6705134bcb3c918f4a6f4441eb2aae3a3b55edd4997b2620964a311ff
6
+ metadata.gz: c7fdcff4cf3a59a6e9359699c76ead967a9d402ac5418ad4c241760337a2efb2c9e27c7cab4919f865f36ca5b036b09bfdff7d467027e5cafcb9456adc4a2c21
7
+ data.tar.gz: 229f848553b8114bf08de8549e7cbc9191b546d09571f1f7ff33f5d6bb1c3fb4ee6c37d399086da62d47af64520063a16ecf97b0c8f6eda73bfca680dd8ca742
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- netbox-client-ruby (0.1.4)
4
+ netbox-client-ruby (0.2.0)
5
5
  dry-configurable (~> 0.1)
6
6
  faraday (>= 0.11.0)
7
7
  faraday-detailed_logger (~> 2.1)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.2.0
@@ -4,6 +4,7 @@ require 'netbox_client_ruby/error/local_error'
4
4
  module NetboxClientRuby
5
5
  module Entities
6
6
  include NetboxClientRuby::Communication
7
+ include Enumerable
7
8
 
8
9
  def self.included(other_klass)
9
10
  other_klass.extend ClassMethods
@@ -120,8 +121,8 @@ module NetboxClientRuby
120
121
  as_entity raw_data_array[index]
121
122
  end
122
123
 
123
- def as_array
124
- raw_data_array.map { |raw_entity| as_entity raw_entity }
124
+ def each
125
+ raw_data_array.each { |raw_entity| yield as_entity(raw_entity) }
125
126
  end
126
127
 
127
128
  ##
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netbox-client-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Mäder
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-30 00:00:00.000000000 Z
11
+ date: 2017-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable