croudia 1.0.15 → 1.1.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.
@@ -0,0 +1,20 @@
1
+ {
2
+ "as_of": "Thu, 05 Dec 2013 16:50:00",
3
+ "created_at": "Thu, 05 Dec 2013 16:47:17",
4
+ "locations": {
5
+ "name": "Worldwide",
6
+ "id": 1
7
+ },
8
+ "trends": [
9
+ {
10
+ "name": "foo",
11
+ "query": "foo",
12
+ "promoted_content": true
13
+ },
14
+ {
15
+ "name": "bar",
16
+ "query": "bar",
17
+ "promoted_content": false
18
+ }
19
+ ]
20
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: croudia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - wktk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-24 00:00:00.000000000 Z
11
+ date: 2013-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -118,6 +118,7 @@ files:
118
118
  - lib/croudia/api/secret_mails.rb
119
119
  - lib/croudia/api/statuses.rb
120
120
  - lib/croudia/api/timelines.rb
121
+ - lib/croudia/api/trends.rb
121
122
  - lib/croudia/api/users.rb
122
123
  - lib/croudia/api/utils.rb
123
124
  - lib/croudia/base.rb
@@ -129,8 +130,8 @@ files:
129
130
  - lib/croudia/entities.rb
130
131
  - lib/croudia/entity/media.rb
131
132
  - lib/croudia/error.rb
132
- - lib/croudia/ext/openssl.rb
133
133
  - lib/croudia/identity.rb
134
+ - lib/croudia/place.rb
134
135
  - lib/croudia/relationship.rb
135
136
  - lib/croudia/request/multipart_with_file.rb
136
137
  - lib/croudia/request/raise_error.rb
@@ -141,6 +142,8 @@ files:
141
142
  - lib/croudia/secret_mail.rb
142
143
  - lib/croudia/source.rb
143
144
  - lib/croudia/status.rb
145
+ - lib/croudia/trend.rb
146
+ - lib/croudia/trend_results.rb
144
147
  - lib/croudia/user.rb
145
148
  - lib/croudia/version.rb
146
149
  - spec/croudia/api/account_spec.rb
@@ -151,6 +154,7 @@ files:
151
154
  - spec/croudia/api/secret_mails_spec.rb
152
155
  - spec/croudia/api/statuses_spec.rb
153
156
  - spec/croudia/api/timelines_spec.rb
157
+ - spec/croudia/api/trends_spec.rb
154
158
  - spec/croudia/api/users_spec.rb
155
159
  - spec/croudia/base_spec.rb
156
160
  - spec/croudia/client_spec.rb
@@ -173,6 +177,7 @@ files:
173
177
  - spec/fixtures/secret_mails.json
174
178
  - spec/fixtures/status.json
175
179
  - spec/fixtures/timeline.json
180
+ - spec/fixtures/trends.json
176
181
  - spec/fixtures/user.json
177
182
  - spec/fixtures/users.json
178
183
  - spec/fixtures/users_with_cursor.json
@@ -187,17 +192,17 @@ require_paths:
187
192
  - lib
188
193
  required_ruby_version: !ruby/object:Gem::Requirement
189
194
  requirements:
190
- - - '>='
195
+ - - ! '>='
191
196
  - !ruby/object:Gem::Version
192
197
  version: '0'
193
198
  required_rubygems_version: !ruby/object:Gem::Requirement
194
199
  requirements:
195
- - - '>='
200
+ - - ! '>='
196
201
  - !ruby/object:Gem::Version
197
202
  version: '0'
198
203
  requirements: []
199
204
  rubyforge_project:
200
- rubygems_version: 2.0.3
205
+ rubygems_version: 2.1.11
201
206
  signing_key:
202
207
  specification_version: 4
203
208
  summary: Croudia API
@@ -210,6 +215,7 @@ test_files:
210
215
  - spec/croudia/api/secret_mails_spec.rb
211
216
  - spec/croudia/api/statuses_spec.rb
212
217
  - spec/croudia/api/timelines_spec.rb
218
+ - spec/croudia/api/trends_spec.rb
213
219
  - spec/croudia/api/users_spec.rb
214
220
  - spec/croudia/base_spec.rb
215
221
  - spec/croudia/client_spec.rb
@@ -232,6 +238,7 @@ test_files:
232
238
  - spec/fixtures/secret_mails.json
233
239
  - spec/fixtures/status.json
234
240
  - spec/fixtures/timeline.json
241
+ - spec/fixtures/trends.json
235
242
  - spec/fixtures/user.json
236
243
  - spec/fixtures/users.json
237
244
  - spec/fixtures/users_with_cursor.json
@@ -1,19 +0,0 @@
1
- require 'openssl'
2
-
3
- class OpenSSL::SSL::SSLSocket
4
- # As of writing, https://api.croudia.com returns a valid cert for
5
- # "croudia.com", but not for "api.croudia.com". When the original check
6
- # process fails with "api.croudia.com", recheck as "croudia.com" and catch
7
- # the error if it looks valid.
8
- alias_method :croudia_original_pcc, :post_connection_check
9
-
10
- def post_connection_check(hostname)
11
- croudia_original_pcc(hostname)
12
- rescue OpenSSL::SSL::SSLError => e
13
- if hostname == 'api.croudia.com'
14
- croudia_original_pcc('croudia.com')
15
- else
16
- raise e
17
- end
18
- end
19
- end