inkling_api 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -266,12 +266,12 @@ module InklingApi
266
266
 
267
267
  def comments(market_id)
268
268
  trades = get("/markets/#{market_id}/trades.xml")["trades"]
269
- ugly_comments = trades.select!{ |t| !t["reason"].nil? }
269
+ ugly_comments = trades.select{ |t| !t["reason"].nil? }
270
270
  pretty_comments = Array.new
271
+ ugly_comments = [] if ugly_comments.nil?
271
272
  ugly_comments.each do |c|
272
273
  pretty_comments << { c["membership"]["id"] => c["reason"] }
273
274
  end
274
- pretty_comments
275
275
  end
276
276
 
277
277
  end
@@ -1,3 +1,3 @@
1
1
  module InklingApi
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inkling_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,12 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-10-04 00:00:00.000000000 +00:00
15
- default_executable:
14
+ date: 2011-10-12 00:00:00.000000000Z
16
15
  dependencies:
17
16
  - !ruby/object:Gem::Dependency
18
17
  name: faraday
19
- requirement: &7615600 !ruby/object:Gem::Requirement
18
+ requirement: &7173080 !ruby/object:Gem::Requirement
20
19
  none: false
21
20
  requirements:
22
21
  - - ~>
@@ -24,10 +23,10 @@ dependencies:
24
23
  version: 0.7.4
25
24
  type: :runtime
26
25
  prerelease: false
27
- version_requirements: *7615600
26
+ version_requirements: *7173080
28
27
  - !ruby/object:Gem::Dependency
29
28
  name: faraday-stack
30
- requirement: &7615100 !ruby/object:Gem::Requirement
29
+ requirement: &7172580 !ruby/object:Gem::Requirement
31
30
  none: false
32
31
  requirements:
33
32
  - - ~>
@@ -35,10 +34,10 @@ dependencies:
35
34
  version: 0.1.3
36
35
  type: :runtime
37
36
  prerelease: false
38
- version_requirements: *7615100
37
+ version_requirements: *7172580
39
38
  - !ruby/object:Gem::Dependency
40
39
  name: hashie
41
- requirement: &7614640 !ruby/object:Gem::Requirement
40
+ requirement: &7172100 !ruby/object:Gem::Requirement
42
41
  none: false
43
42
  requirements:
44
43
  - - ~>
@@ -46,10 +45,10 @@ dependencies:
46
45
  version: 1.1.0
47
46
  type: :runtime
48
47
  prerelease: false
49
- version_requirements: *7614640
48
+ version_requirements: *7172100
50
49
  - !ruby/object:Gem::Dependency
51
50
  name: activesupport
52
- requirement: &7614180 !ruby/object:Gem::Requirement
51
+ requirement: &7171620 !ruby/object:Gem::Requirement
53
52
  none: false
54
53
  requirements:
55
54
  - - ~>
@@ -57,10 +56,10 @@ dependencies:
57
56
  version: 3.1.0.rc5
58
57
  type: :runtime
59
58
  prerelease: false
60
- version_requirements: *7614180
59
+ version_requirements: *7171620
61
60
  - !ruby/object:Gem::Dependency
62
61
  name: i18n
63
- requirement: &7613720 !ruby/object:Gem::Requirement
62
+ requirement: &7171140 !ruby/object:Gem::Requirement
64
63
  none: false
65
64
  requirements:
66
65
  - - ~>
@@ -68,10 +67,10 @@ dependencies:
68
67
  version: 0.6.0
69
68
  type: :runtime
70
69
  prerelease: false
71
- version_requirements: *7613720
70
+ version_requirements: *7171140
72
71
  - !ruby/object:Gem::Dependency
73
72
  name: builder
74
- requirement: &7646680 !ruby/object:Gem::Requirement
73
+ requirement: &7170680 !ruby/object:Gem::Requirement
75
74
  none: false
76
75
  requirements:
77
76
  - - ~>
@@ -79,10 +78,10 @@ dependencies:
79
78
  version: 3.0.0
80
79
  type: :runtime
81
80
  prerelease: false
82
- version_requirements: *7646680
81
+ version_requirements: *7170680
83
82
  - !ruby/object:Gem::Dependency
84
83
  name: rspec
85
- requirement: &7646220 !ruby/object:Gem::Requirement
84
+ requirement: &7170220 !ruby/object:Gem::Requirement
86
85
  none: false
87
86
  requirements:
88
87
  - - ~>
@@ -90,10 +89,10 @@ dependencies:
90
89
  version: 2.6.0
91
90
  type: :development
92
91
  prerelease: false
93
- version_requirements: *7646220
92
+ version_requirements: *7170220
94
93
  - !ruby/object:Gem::Dependency
95
94
  name: rspec-core
96
- requirement: &7645760 !ruby/object:Gem::Requirement
95
+ requirement: &7169760 !ruby/object:Gem::Requirement
97
96
  none: false
98
97
  requirements:
99
98
  - - ~>
@@ -101,10 +100,10 @@ dependencies:
101
100
  version: 2.6.0
102
101
  type: :development
103
102
  prerelease: false
104
- version_requirements: *7645760
103
+ version_requirements: *7169760
105
104
  - !ruby/object:Gem::Dependency
106
105
  name: json_spec
107
- requirement: &7645300 !ruby/object:Gem::Requirement
106
+ requirement: &7160180 !ruby/object:Gem::Requirement
108
107
  none: false
109
108
  requirements:
110
109
  - - ~>
@@ -112,10 +111,10 @@ dependencies:
112
111
  version: 0.6.0
113
112
  type: :development
114
113
  prerelease: false
115
- version_requirements: *7645300
114
+ version_requirements: *7160180
116
115
  - !ruby/object:Gem::Dependency
117
116
  name: shoulda
118
- requirement: &7644840 !ruby/object:Gem::Requirement
117
+ requirement: &7159440 !ruby/object:Gem::Requirement
119
118
  none: false
120
119
  requirements:
121
120
  - - ~>
@@ -123,10 +122,10 @@ dependencies:
123
122
  version: 2.11.3
124
123
  type: :development
125
124
  prerelease: false
126
- version_requirements: *7644840
125
+ version_requirements: *7159440
127
126
  - !ruby/object:Gem::Dependency
128
127
  name: ruby-debug19
129
- requirement: &7644460 !ruby/object:Gem::Requirement
128
+ requirement: &7159040 !ruby/object:Gem::Requirement
130
129
  none: false
131
130
  requirements:
132
131
  - - ! '>='
@@ -134,7 +133,7 @@ dependencies:
134
133
  version: '0'
135
134
  type: :development
136
135
  prerelease: false
137
- version_requirements: *7644460
136
+ version_requirements: *7159040
138
137
  description: Gem to interact with inkling markets API
139
138
  email:
140
139
  - david@isotope11.com
@@ -182,7 +181,6 @@ files:
182
181
  - lib/inkling_api/version.rb
183
182
  - spec/inkling_api_spec.rb
184
183
  - spec/spec_helper.rb
185
- has_rdoc: true
186
184
  homepage: http://www.isotope11.com/
187
185
  licenses: []
188
186
  post_install_message:
@@ -203,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
201
  version: '0'
204
202
  requirements: []
205
203
  rubyforge_project: inkling_api
206
- rubygems_version: 1.6.2
204
+ rubygems_version: 1.8.11
207
205
  signing_key:
208
206
  specification_version: 3
209
207
  summary: Gem to interact with inkling markets API