vhx-ruby 0.0.9 → 0.0.10

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: 56058d63c232a5221d030477f8de29ebea8efd62
4
- data.tar.gz: 807adb8c7fc959aaa2fe7749a9618aaa07d2d1c1
3
+ metadata.gz: 14dd5f32d0d98ba5fb73c449ccd1d2577f7c168d
4
+ data.tar.gz: '075257692946be758131b7416d809b549bbdafe2'
5
5
  SHA512:
6
- metadata.gz: 574e551381081eb677a163544611b61d1daec286b5441f3cd60328df803ab80d0356413afe850ac1ec27fe3f151bb35691d505c2e467742a4c6d660408112504
7
- data.tar.gz: 9714c5b4e9e6a702afa07db4ca965d187afa1dbbc5efdc3c9287f8d52a422deb1d2da796bdc9402b7162df0ee3d2c6a6e8fe63b1fb0fbf194bd50f4e83c27048
6
+ metadata.gz: 48122f1ef7d5ee986f4ca788d9048995562e33b83d1c5a973bfc0a3934bb1fc7cc1ef83d2c1009428705bd92ce1d587d2158d370305e157d140f7410e658a575
7
+ data.tar.gz: f007e75f75c74117b83dc15ddb2672ab375cfcc9caf1f52e61b25bbe57ffb4c21c01f62232e7c45f9602f593758b4ba0872c0e3dd2e5ddc99abd483d2f69417d
data/README.md CHANGED
@@ -29,6 +29,11 @@ irb(main)> require 'vhx'
29
29
  rspec .
30
30
  ```
31
31
 
32
+ #### Publishing to RubyGems
33
+ ```shell
34
+ gem push vhx-ruby-#.#.#.gem
35
+ ```
36
+
32
37
  ### Documentation
33
38
 
34
39
  Documentation is available at http://dev.vhx.tv/docs/api/ruby.
@@ -75,12 +75,12 @@ module Vhx
75
75
  associations = (obj_hash.fetch('_links', {}).keys | obj_hash.fetch('_embedded', {}).keys).select{|k| ASSOCIATION_WHITELIST.include?(k)}
76
76
  associations.each do |association_method|
77
77
  self.class.send(:define_method, association_method) do |payload = {}|
78
- if payload.empty? && obj_hash['_embedded'] && obj_hash['_embedded'].has_key?(association_method)
79
- return instance_variable_set("@#{association_method}", fetch_embedded_association(obj_hash, association_method))
78
+ if payload.empty? && @obj_hash['_embedded'] && @obj_hash['_embedded'].has_key?(association_method)
79
+ return instance_variable_set("@#{association_method}", fetch_embedded_association(@obj_hash, association_method))
80
80
  end
81
81
 
82
- if obj_hash['_links'] && obj_hash['_links'].has_key?(association_method)
83
- return instance_variable_set("@#{association_method}", fetch_linked_association(obj_hash, association_method, payload))
82
+ if @obj_hash['_links'] && @obj_hash['_links'].has_key?(association_method)
83
+ return instance_variable_set("@#{association_method}", fetch_linked_association(@obj_hash, association_method, payload))
84
84
  end
85
85
 
86
86
  raise InvalidResourceError.new 'Association does not exist'
@@ -1,3 +1,3 @@
1
1
  module Vhx
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vhx-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sagar Shah
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubyforge_project:
166
- rubygems_version: 2.5.1
166
+ rubygems_version: 2.5.2
167
167
  signing_key:
168
168
  specification_version: 4
169
169
  summary: A Ruby wrapper for the VHX developer API.