actv 1.1.3 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/actv/asset.rb +4 -0
- data/lib/actv/search_results.rb +8 -1
- data/lib/actv/suggestion.rb +7 -0
- data/lib/actv/version.rb +1 -1
- metadata +202 -190
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MjMxZTNkYTMzMjFjYTNhODQwOGVhYzg3OTc1YmRhMmQ1NDY3NzVmZg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YWExMGVhMmJkODRiNWRhZmUxZDM5ODNjMzYzMjFlYmNlMTZkZmE5Mg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
OGU3NjU4YWM4N2IxNzhiMmRmMWVlOGUyNDM0MzFiZDAxMDMzYjJlNzk1OTA2
|
10
|
+
NThlNGU5MTc3YmRjNGJjNTA2YmYzMjc0MDMyNTI0YjYxNTdiODcwYWEzNzcw
|
11
|
+
ZjU0OTBjYTAwOGIzYTU1MGQ1N2Q0YWZmZmRjOWQyNjU4N2U2NTg=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NGVlYjJhNGU2MWJhOTI0OTBiMzg4ODU5MDc1NDFhNzE2YzlhMzMyOTlkNDcz
|
14
|
+
MzIyNTRkMmMzYzE3NDk5ZjIzYTcxYTIxZDhkMmI3ZjI0OWM0NTM1NGI2NGRk
|
15
|
+
OThiM2E2MDEwNTE4OGU0YmM1Mzc1YzcxODI1Y2JlNmU5NTc3ZmE=
|
data/lib/actv/asset.rb
CHANGED
@@ -47,6 +47,10 @@ module ACTV
|
|
47
47
|
@org_timezone ||= @attrs[:localTimeZoneId] unless @attrs[:localTimeZoneId].nil?
|
48
48
|
end
|
49
49
|
|
50
|
+
def version
|
51
|
+
@asset_version ||= @attrs[:assetVersion] unless @attrs[:assetVersion].nil?
|
52
|
+
end
|
53
|
+
|
50
54
|
def descriptions
|
51
55
|
@descriptions ||= Array(@attrs[:assetDescriptions]).map do |description|
|
52
56
|
ACTV::AssetDescription.new(description)
|
data/lib/actv/search_results.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
require 'actv/base'
|
2
2
|
require 'actv/facet'
|
3
3
|
require 'actv/facet_value'
|
4
|
+
require 'actv/suggestion'
|
4
5
|
|
5
6
|
module ACTV
|
6
7
|
class SearchResults < ACTV::Base
|
7
|
-
attr_reader :items_per_page, :start_index, :total_results
|
8
|
+
attr_reader :items_per_page, :start_index, :total_results, :original_query, :actual_query
|
8
9
|
|
9
10
|
# @return [Array<ACTV::Asset>]
|
10
11
|
def results
|
@@ -26,5 +27,11 @@ module ACTV
|
|
26
27
|
ACTV::FacetValue.new(facet_value)
|
27
28
|
end
|
28
29
|
end
|
30
|
+
|
31
|
+
def suggestions
|
32
|
+
@suggestions ||= Array(@attrs[:suggestions]).map do |suggestion|
|
33
|
+
ACTV::Suggestion.new(suggestion)
|
34
|
+
end
|
35
|
+
end
|
29
36
|
end
|
30
37
|
end
|
data/lib/actv/version.rb
CHANGED
metadata
CHANGED
@@ -1,216 +1,232 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: actv
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 1
|
7
|
-
- 1
|
8
|
-
- 3
|
9
|
-
version: 1.1.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.5
|
10
5
|
platform: ruby
|
11
|
-
authors:
|
6
|
+
authors:
|
12
7
|
- Nathaniel Barnes
|
13
8
|
autorequire:
|
14
9
|
bindir: bin
|
15
10
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2013-10-29 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: faraday
|
22
|
-
|
23
|
-
|
24
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
25
17
|
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
- 0
|
29
|
-
- 8
|
30
|
-
version: "0.8"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.8'
|
31
20
|
type: :runtime
|
32
|
-
version_requirements: *id001
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: multi_json
|
35
21
|
prerelease: false
|
36
|
-
|
37
|
-
requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.8'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: multi_json
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
38
31
|
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
|
41
|
-
- 1
|
42
|
-
- 3
|
43
|
-
version: "1.3"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
44
34
|
type: :runtime
|
45
|
-
version_requirements: *id002
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: simple_oauth
|
48
35
|
prerelease: false
|
49
|
-
|
50
|
-
requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: simple_oauth
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
51
45
|
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
segments:
|
54
|
-
- 0
|
55
|
-
- 1
|
56
|
-
- 6
|
46
|
+
- !ruby/object:Gem::Version
|
57
47
|
version: 0.1.6
|
58
48
|
type: :runtime
|
59
|
-
version_requirements: *id003
|
60
|
-
- !ruby/object:Gem::Dependency
|
61
|
-
name: nokogiri
|
62
49
|
prerelease: false
|
63
|
-
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
|
68
|
-
|
69
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.1.6
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: nokogiri
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
70
62
|
type: :runtime
|
71
|
-
version_requirements: *id004
|
72
|
-
- !ruby/object:Gem::Dependency
|
73
|
-
name: json
|
74
63
|
prerelease: false
|
75
|
-
|
76
|
-
requirements:
|
77
|
-
- -
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
|
80
|
-
|
81
|
-
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: json
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
82
76
|
type: :development
|
83
|
-
version_requirements: *id005
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: maruku
|
86
77
|
prerelease: false
|
87
|
-
|
88
|
-
requirements:
|
89
|
-
- -
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
|
92
|
-
|
93
|
-
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: maruku
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
94
90
|
type: :development
|
95
|
-
version_requirements: *id006
|
96
|
-
- !ruby/object:Gem::Dependency
|
97
|
-
name: pry
|
98
91
|
prerelease: false
|
99
|
-
|
100
|
-
requirements:
|
101
|
-
- -
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
|
104
|
-
|
105
|
-
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ! '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pry
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
106
104
|
type: :development
|
107
|
-
version_requirements: *id007
|
108
|
-
- !ruby/object:Gem::Dependency
|
109
|
-
name: rake
|
110
105
|
prerelease: false
|
111
|
-
|
112
|
-
requirements:
|
113
|
-
- -
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
|
116
|
-
|
117
|
-
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rake
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
118
|
type: :development
|
119
|
-
version_requirements: *id008
|
120
|
-
- !ruby/object:Gem::Dependency
|
121
|
-
name: rspec
|
122
119
|
prerelease: false
|
123
|
-
|
124
|
-
requirements:
|
125
|
-
- -
|
126
|
-
- !ruby/object:Gem::Version
|
127
|
-
|
128
|
-
|
129
|
-
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rspec
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
130
132
|
type: :development
|
131
|
-
version_requirements: *id009
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
|
-
name: simplecov
|
134
133
|
prerelease: false
|
135
|
-
|
136
|
-
requirements:
|
137
|
-
- -
|
138
|
-
- !ruby/object:Gem::Version
|
139
|
-
|
140
|
-
|
141
|
-
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ! '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: simplecov
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ! '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
142
146
|
type: :development
|
143
|
-
version_requirements: *id010
|
144
|
-
- !ruby/object:Gem::Dependency
|
145
|
-
name: timecop
|
146
147
|
prerelease: false
|
147
|
-
|
148
|
-
requirements:
|
149
|
-
- -
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
|
152
|
-
|
153
|
-
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ! '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: timecop
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ! '>='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
154
160
|
type: :development
|
155
|
-
version_requirements: *id011
|
156
|
-
- !ruby/object:Gem::Dependency
|
157
|
-
name: webmock
|
158
161
|
prerelease: false
|
159
|
-
|
160
|
-
requirements:
|
161
|
-
- -
|
162
|
-
- !ruby/object:Gem::Version
|
163
|
-
|
164
|
-
|
165
|
-
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ! '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: webmock
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
166
174
|
type: :development
|
167
|
-
version_requirements: *id012
|
168
|
-
- !ruby/object:Gem::Dependency
|
169
|
-
name: yard
|
170
175
|
prerelease: false
|
171
|
-
|
172
|
-
requirements:
|
173
|
-
- -
|
174
|
-
- !ruby/object:Gem::Version
|
175
|
-
|
176
|
-
|
177
|
-
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ! '>='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: yard
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ! '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
178
188
|
type: :development
|
179
|
-
version_requirements: *id013
|
180
|
-
- !ruby/object:Gem::Dependency
|
181
|
-
name: guard-rspec
|
182
189
|
prerelease: false
|
183
|
-
|
184
|
-
requirements:
|
185
|
-
- -
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ! '>='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: guard-rspec
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ! '>='
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
190
202
|
type: :development
|
191
|
-
version_requirements: *id014
|
192
|
-
- !ruby/object:Gem::Dependency
|
193
|
-
name: active_support
|
194
203
|
prerelease: false
|
195
|
-
|
196
|
-
requirements:
|
197
|
-
- -
|
198
|
-
- !ruby/object:Gem::Version
|
199
|
-
|
200
|
-
|
201
|
-
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ! '>='
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: active_support
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ! '>='
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
202
216
|
type: :development
|
203
|
-
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ! '>='
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
204
223
|
description: A Ruby wrapper for the Active API
|
205
|
-
email:
|
224
|
+
email:
|
206
225
|
- Nathaniel.Barnes@activenetwork.com
|
207
226
|
executables: []
|
208
|
-
|
209
227
|
extensions: []
|
210
|
-
|
211
228
|
extra_rdoc_files: []
|
212
|
-
|
213
|
-
files:
|
229
|
+
files:
|
214
230
|
- .gitignore
|
215
231
|
- .rspec
|
216
232
|
- .ruby-gemset
|
@@ -276,6 +292,7 @@ files:
|
|
276
292
|
- lib/actv/response/raise_server_error.rb
|
277
293
|
- lib/actv/search_results.rb
|
278
294
|
- lib/actv/sub_event.rb
|
295
|
+
- lib/actv/suggestion.rb
|
279
296
|
- lib/actv/tag.rb
|
280
297
|
- lib/actv/topic.rb
|
281
298
|
- lib/actv/user.rb
|
@@ -319,37 +336,31 @@ files:
|
|
319
336
|
- spec/fixtures/valid_search_no_results.json
|
320
337
|
- spec/spec_helper.rb
|
321
338
|
- spec/support/helper.rb
|
322
|
-
has_rdoc: true
|
323
339
|
homepage: http://developer.active.com
|
324
|
-
licenses:
|
340
|
+
licenses:
|
325
341
|
- MIT
|
342
|
+
metadata: {}
|
326
343
|
post_install_message:
|
327
344
|
rdoc_options: []
|
328
|
-
|
329
|
-
require_paths:
|
345
|
+
require_paths:
|
330
346
|
- lib
|
331
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
332
|
-
requirements:
|
333
|
-
- -
|
334
|
-
- !ruby/object:Gem::Version
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
- !ruby/object:Gem::Version
|
342
|
-
segments:
|
343
|
-
- 0
|
344
|
-
version: "0"
|
347
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
348
|
+
requirements:
|
349
|
+
- - ! '>='
|
350
|
+
- !ruby/object:Gem::Version
|
351
|
+
version: '0'
|
352
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
353
|
+
requirements:
|
354
|
+
- - ! '>='
|
355
|
+
- !ruby/object:Gem::Version
|
356
|
+
version: '0'
|
345
357
|
requirements: []
|
346
|
-
|
347
358
|
rubyforge_project:
|
348
|
-
rubygems_version: 1.
|
359
|
+
rubygems_version: 2.1.4
|
349
360
|
signing_key:
|
350
|
-
specification_version:
|
361
|
+
specification_version: 4
|
351
362
|
summary: Active API
|
352
|
-
test_files:
|
363
|
+
test_files:
|
353
364
|
- spec/actv/article_search_results_spec.rb
|
354
365
|
- spec/actv/article_spec.rb
|
355
366
|
- spec/actv/asset_channel_spec.rb
|
@@ -389,3 +400,4 @@ test_files:
|
|
389
400
|
- spec/fixtures/valid_search_no_results.json
|
390
401
|
- spec/spec_helper.rb
|
391
402
|
- spec/support/helper.rb
|
403
|
+
has_rdoc:
|