zanoxrb 0.5 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2972b4fe3fec25d73833848f7585a732de4e7c5
4
- data.tar.gz: ec85cc77504d167494692ba309c9bf1d1769e0a3
3
+ metadata.gz: d5b6e382795916bc884bc3b083b4c5f2d44d5468
4
+ data.tar.gz: 3bc0f8db7f08be9c1be2c0f3d7714ab2800425a7
5
5
  SHA512:
6
- metadata.gz: b94269bfb5f10350e230fba309c2c9bc41bd4a87598ba7a0226ba339a958f05ba3af36ab2c74049bec552826dc2da3c4beb0ad2644ae51794e76ac133b51df23
7
- data.tar.gz: 89a2f98563bc8b42579a66edda97297554fe9eb81584727f586638c5db8e88b3f7144904e70c740364e041e80da5aea4cdcec58ac35720ab2da4b562646a1882
6
+ metadata.gz: 2d7ad30b8e8c75d8dd0d59452ef60ce83d79c15e381e9461962d7138ff7e28ee63f97e29f706df3898181344aac108de218d9b4f2064fda7d3f3704ec19620c1
7
+ data.tar.gz: 5abcf4dec634cf59fa8738b8618842a289f323f216273ba9959ef6f97a938a90b6092d30e93ecdd1209ccb9c62946eec822ba5114dee38e04ad9b8c737c605a5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zanoxrb (0.5)
4
+ zanoxrb (0.5.1)
5
5
  httparty (~> 0.13)
6
6
  ruby-try (~> 1.1)
7
7
 
@@ -26,7 +26,7 @@ module Zanox
26
26
  module Hashable
27
27
  def to_hash
28
28
  attributes.each_with_object({}) do |attr, hash|
29
- key = attr.to_s.delete('@')
29
+ key = attr.to_s.delete('@').to_sym
30
30
  hash[key] = attribute(attr)
31
31
  end
32
32
  end
@@ -78,7 +78,7 @@ module Zanox
78
78
  end
79
79
 
80
80
  def find_by_id(id, args = {})
81
- response = ::Zanox::API.request("programs/program/#{id}", args)
81
+ response = API.request("programs/program/#{id}", args)
82
82
  response.program_item.map { |program| new(program) }
83
83
  end
84
84
 
data/lib/zanox/version.rb CHANGED
@@ -23,5 +23,5 @@
23
23
  #++
24
24
 
25
25
  module Zanox
26
- VERSION = '0.5'
26
+ VERSION = '0.5.1'
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zanoxrb
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Capuano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-30 00:00:00.000000000 Z
11
+ date: 2015-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  version_requirements: !ruby/object:Gem::Requirement