actv 1.1.1 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/actv.gemspec +1 -1
- data/lib/actv/asset.rb +29 -1
- data/lib/actv/default.rb +1 -1
- data/lib/actv/version.rb +1 -1
- data/spec/actv/client_spec.rb +1 -1
- data/spec/support/helper.rb +8 -8
- metadata +190 -232
data/README.md
CHANGED
data/actv.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |gem|
|
|
23
23
|
gem.email = ["Nathaniel.Barnes@activenetwork.com"]
|
24
24
|
gem.description = %q{A Ruby wrapper for the Active API}
|
25
25
|
gem.summary = %q{Active API}
|
26
|
-
gem.homepage = ""
|
26
|
+
gem.homepage = "http://developer.active.com"
|
27
27
|
gem.license = "MIT"
|
28
28
|
|
29
29
|
gem.files = `git ls-files`.split($\)
|
data/lib/actv/asset.rb
CHANGED
@@ -40,7 +40,11 @@ module ACTV
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def place_timezone
|
43
|
-
@
|
43
|
+
@place_timezone ||= place[:timezone] unless place[:timezone].nil?
|
44
|
+
end
|
45
|
+
|
46
|
+
def org_timezone
|
47
|
+
@org_timezone ||= @attrs[:localTimeZoneId] unless @attrs[:localTimeZoneId].nil?
|
44
48
|
end
|
45
49
|
|
46
50
|
def descriptions
|
@@ -178,6 +182,30 @@ module ACTV
|
|
178
182
|
self.evergreenAssetFlag.downcase == 'true' rescue false
|
179
183
|
end
|
180
184
|
|
185
|
+
def regcenter?
|
186
|
+
self.sourceSystem[:legacyGuid].upcase == "EA4E860A-9DCD-4DAA-A7CA-4A77AD194F65" rescue false
|
187
|
+
end
|
188
|
+
|
189
|
+
def regcenter2?
|
190
|
+
self.sourceSystem[:legacyGuid].upcase == "3BF82BBE-CF88-4E8C-A56F-78F5CE87E4C6" rescue false
|
191
|
+
end
|
192
|
+
|
193
|
+
def awendurance?
|
194
|
+
self.sourceSystem[:legacyGuid].upcase == "DFAA997A-D591-44CA-9FB7-BF4A4C8984F1" rescue false
|
195
|
+
end
|
196
|
+
|
197
|
+
def awsports?
|
198
|
+
self.sourceSystem[:legacyGuid].upcase == "F036B0FF-2B21-43A9-8C20-7F447D3AB105" rescue false
|
199
|
+
end
|
200
|
+
|
201
|
+
def awcamps?
|
202
|
+
self.sourceSystem[:legacyGuid].upcase == "2B22B4E6-5AA4-44D7-BF06-F7A71F9FA8A6" rescue false
|
203
|
+
end
|
204
|
+
|
205
|
+
def thriva?
|
206
|
+
self.sourceSystem[:legacyGuid].upcase == "2BA50ABA-080E-4E3D-A01C-1B4F56648A2E" rescue false
|
207
|
+
end
|
208
|
+
|
181
209
|
def registration_status
|
182
210
|
@registration_status ||= nil
|
183
211
|
end
|
data/lib/actv/default.rb
CHANGED
@@ -20,7 +20,7 @@ module ACTV
|
|
20
20
|
# @see http://staff.tumblr.com/post/287703110/api
|
21
21
|
# @see http://developer.typepad.com/typepad-twitter-api/twitter-api.html
|
22
22
|
def endpoint
|
23
|
-
@endpoint ||= '
|
23
|
+
@endpoint ||= 'http://api.amp.active.com'
|
24
24
|
end
|
25
25
|
|
26
26
|
def media_endpoint
|
data/lib/actv/version.rb
CHANGED
data/spec/actv/client_spec.rb
CHANGED
@@ -100,7 +100,7 @@ describe ACTV::Client do
|
|
100
100
|
end
|
101
101
|
|
102
102
|
it "does something" do
|
103
|
-
stub_request(:get, "
|
103
|
+
stub_request(:get, "http://api.amp.active.com/system_health").
|
104
104
|
with(:headers => {'Accept'=>'application/json'}).
|
105
105
|
to_return(:status => 200, :body => '{"status":"not implemented"}', :headers => {})
|
106
106
|
|
data/spec/support/helper.rb
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
require 'webmock/rspec'
|
2
2
|
|
3
3
|
|
4
|
-
def a_delete(path, endpoint=
|
4
|
+
def a_delete(path, endpoint=ACTV::Default.endpoint)
|
5
5
|
a_request(:delete, endpoint + path)
|
6
6
|
end
|
7
7
|
|
8
|
-
def a_get(path, endpoint=
|
8
|
+
def a_get(path, endpoint=ACTV::Default.endpoint)
|
9
9
|
a_request(:get, endpoint + path)
|
10
10
|
end
|
11
11
|
|
12
|
-
def a_post(path, endpoint=
|
12
|
+
def a_post(path, endpoint=ACTV::Default.endpoint)
|
13
13
|
a_request(:post, endpoint + path)
|
14
14
|
end
|
15
15
|
|
16
|
-
def a_put(path, endpoint=
|
16
|
+
def a_put(path, endpoint=ACTV::Default.endpoint)
|
17
17
|
a_request(:put, endpoint + path)
|
18
18
|
end
|
19
19
|
|
20
|
-
def stub_delete(path, endpoint=
|
20
|
+
def stub_delete(path, endpoint=ACTV::Default.endpoint)
|
21
21
|
stub_request(:delete, endpoint + path)
|
22
22
|
end
|
23
23
|
|
24
|
-
def stub_get(path, endpoint=
|
24
|
+
def stub_get(path, endpoint=ACTV::Default.endpoint)
|
25
25
|
stub_request(:get, endpoint + path)
|
26
26
|
end
|
27
27
|
|
28
|
-
def stub_post(path, endpoint=
|
28
|
+
def stub_post(path, endpoint=ACTV::Default.endpoint)
|
29
29
|
stub_request(:post, endpoint + path)
|
30
30
|
end
|
31
31
|
|
32
|
-
def stub_put(path, endpoint=
|
32
|
+
def stub_put(path, endpoint=ACTV::Default.endpoint)
|
33
33
|
stub_request(:put, endpoint + path)
|
34
34
|
end
|
35
35
|
|
metadata
CHANGED
@@ -1,263 +1,216 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: actv
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 1
|
8
|
+
- 3
|
9
|
+
version: 1.1.3
|
6
10
|
platform: ruby
|
7
|
-
authors:
|
11
|
+
authors:
|
8
12
|
- Nathaniel Barnes
|
9
13
|
autorequire:
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
16
|
+
|
17
|
+
date: 2013-09-21 00:00:00 -07:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: faraday
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0.8'
|
22
|
-
type: :runtime
|
23
22
|
prerelease: false
|
24
|
-
|
25
|
-
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0.8'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: multi_json
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
35
25
|
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 8
|
30
|
+
version: "0.8"
|
38
31
|
type: :runtime
|
32
|
+
version_requirements: *id001
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: multi_json
|
39
35
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '1.3'
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: simple_oauth
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
51
38
|
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
segments:
|
41
|
+
- 1
|
42
|
+
- 3
|
43
|
+
version: "1.3"
|
54
44
|
type: :runtime
|
45
|
+
version_requirements: *id002
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: simple_oauth
|
55
48
|
prerelease: false
|
56
|
-
|
57
|
-
|
58
|
-
requirements:
|
49
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
59
51
|
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
segments:
|
54
|
+
- 0
|
55
|
+
- 1
|
56
|
+
- 6
|
61
57
|
version: 0.1.6
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: nokogiri
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ! '>='
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
70
58
|
type: :runtime
|
59
|
+
version_requirements: *id003
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: nokogiri
|
71
62
|
prerelease: false
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
63
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
segments:
|
68
|
+
- 0
|
69
|
+
version: "0"
|
70
|
+
type: :runtime
|
71
|
+
version_requirements: *id004
|
72
|
+
- !ruby/object:Gem::Dependency
|
79
73
|
name: json
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
|
-
requirements:
|
83
|
-
- - ! '>='
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
version: '0'
|
86
|
-
type: :development
|
87
74
|
prerelease: false
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
name: maruku
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
|
-
requirements:
|
99
|
-
- - ! '>='
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '0'
|
75
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
segments:
|
80
|
+
- 0
|
81
|
+
version: "0"
|
102
82
|
type: :development
|
83
|
+
version_requirements: *id005
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: maruku
|
103
86
|
prerelease: false
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
name: pry
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
|
-
requirements:
|
115
|
-
- - ! '>='
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
87
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
segments:
|
92
|
+
- 0
|
93
|
+
version: "0"
|
118
94
|
type: :development
|
95
|
+
version_requirements: *id006
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: pry
|
119
98
|
prerelease: false
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
name: rake
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
|
-
requirements:
|
131
|
-
- - ! '>='
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: '0'
|
99
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
segments:
|
104
|
+
- 0
|
105
|
+
version: "0"
|
134
106
|
type: :development
|
107
|
+
version_requirements: *id007
|
108
|
+
- !ruby/object:Gem::Dependency
|
109
|
+
name: rake
|
135
110
|
prerelease: false
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
name: rspec
|
144
|
-
requirement: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
|
-
requirements:
|
147
|
-
- - ! '>='
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: '0'
|
111
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
segments:
|
116
|
+
- 0
|
117
|
+
version: "0"
|
150
118
|
type: :development
|
119
|
+
version_requirements: *id008
|
120
|
+
- !ruby/object:Gem::Dependency
|
121
|
+
name: rspec
|
151
122
|
prerelease: false
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
name: simplecov
|
160
|
-
requirement: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
|
-
requirements:
|
163
|
-
- - ! '>='
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: '0'
|
123
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
124
|
+
requirements:
|
125
|
+
- - ">="
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
segments:
|
128
|
+
- 0
|
129
|
+
version: "0"
|
166
130
|
type: :development
|
131
|
+
version_requirements: *id009
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: simplecov
|
167
134
|
prerelease: false
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
name: timecop
|
176
|
-
requirement: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
|
-
requirements:
|
179
|
-
- - ! '>='
|
180
|
-
- !ruby/object:Gem::Version
|
181
|
-
version: '0'
|
135
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
segments:
|
140
|
+
- 0
|
141
|
+
version: "0"
|
182
142
|
type: :development
|
143
|
+
version_requirements: *id010
|
144
|
+
- !ruby/object:Gem::Dependency
|
145
|
+
name: timecop
|
183
146
|
prerelease: false
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
name: webmock
|
192
|
-
requirement: !ruby/object:Gem::Requirement
|
193
|
-
none: false
|
194
|
-
requirements:
|
195
|
-
- - ! '>='
|
196
|
-
- !ruby/object:Gem::Version
|
197
|
-
version: '0'
|
147
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
segments:
|
152
|
+
- 0
|
153
|
+
version: "0"
|
198
154
|
type: :development
|
155
|
+
version_requirements: *id011
|
156
|
+
- !ruby/object:Gem::Dependency
|
157
|
+
name: webmock
|
199
158
|
prerelease: false
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
name: yard
|
208
|
-
requirement: !ruby/object:Gem::Requirement
|
209
|
-
none: false
|
210
|
-
requirements:
|
211
|
-
- - ! '>='
|
212
|
-
- !ruby/object:Gem::Version
|
213
|
-
version: '0'
|
159
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
segments:
|
164
|
+
- 0
|
165
|
+
version: "0"
|
214
166
|
type: :development
|
167
|
+
version_requirements: *id012
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: yard
|
215
170
|
prerelease: false
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
name: guard-rspec
|
224
|
-
requirement: !ruby/object:Gem::Requirement
|
225
|
-
none: false
|
226
|
-
requirements:
|
227
|
-
- - ! '>='
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: '0'
|
171
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
173
|
+
- - ">="
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
segments:
|
176
|
+
- 0
|
177
|
+
version: "0"
|
230
178
|
type: :development
|
179
|
+
version_requirements: *id013
|
180
|
+
- !ruby/object:Gem::Dependency
|
181
|
+
name: guard-rspec
|
231
182
|
prerelease: false
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
name: active_support
|
240
|
-
requirement: !ruby/object:Gem::Requirement
|
241
|
-
none: false
|
242
|
-
requirements:
|
243
|
-
- - ! '>='
|
244
|
-
- !ruby/object:Gem::Version
|
245
|
-
version: '0'
|
183
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
segments:
|
188
|
+
- 0
|
189
|
+
version: "0"
|
246
190
|
type: :development
|
191
|
+
version_requirements: *id014
|
192
|
+
- !ruby/object:Gem::Dependency
|
193
|
+
name: active_support
|
247
194
|
prerelease: false
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
195
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - ">="
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
segments:
|
200
|
+
- 0
|
201
|
+
version: "0"
|
202
|
+
type: :development
|
203
|
+
version_requirements: *id015
|
254
204
|
description: A Ruby wrapper for the Active API
|
255
|
-
email:
|
205
|
+
email:
|
256
206
|
- Nathaniel.Barnes@activenetwork.com
|
257
207
|
executables: []
|
208
|
+
|
258
209
|
extensions: []
|
210
|
+
|
259
211
|
extra_rdoc_files: []
|
260
|
-
|
212
|
+
|
213
|
+
files:
|
261
214
|
- .gitignore
|
262
215
|
- .rspec
|
263
216
|
- .ruby-gemset
|
@@ -366,32 +319,37 @@ files:
|
|
366
319
|
- spec/fixtures/valid_search_no_results.json
|
367
320
|
- spec/spec_helper.rb
|
368
321
|
- spec/support/helper.rb
|
369
|
-
|
370
|
-
|
322
|
+
has_rdoc: true
|
323
|
+
homepage: http://developer.active.com
|
324
|
+
licenses:
|
371
325
|
- MIT
|
372
326
|
post_install_message:
|
373
327
|
rdoc_options: []
|
374
|
-
|
328
|
+
|
329
|
+
require_paths:
|
375
330
|
- lib
|
376
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
requirements:
|
385
|
-
- -
|
386
|
-
- !ruby/object:Gem::Version
|
387
|
-
|
331
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
332
|
+
requirements:
|
333
|
+
- - ">="
|
334
|
+
- !ruby/object:Gem::Version
|
335
|
+
segments:
|
336
|
+
- 0
|
337
|
+
version: "0"
|
338
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
339
|
+
requirements:
|
340
|
+
- - ">="
|
341
|
+
- !ruby/object:Gem::Version
|
342
|
+
segments:
|
343
|
+
- 0
|
344
|
+
version: "0"
|
388
345
|
requirements: []
|
346
|
+
|
389
347
|
rubyforge_project:
|
390
|
-
rubygems_version: 1.
|
348
|
+
rubygems_version: 1.3.6
|
391
349
|
signing_key:
|
392
350
|
specification_version: 3
|
393
351
|
summary: Active API
|
394
|
-
test_files:
|
352
|
+
test_files:
|
395
353
|
- spec/actv/article_search_results_spec.rb
|
396
354
|
- spec/actv/article_spec.rb
|
397
355
|
- spec/actv/asset_channel_spec.rb
|