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 CHANGED
@@ -1,3 +1,5 @@
1
+ [![Build Status](https://travis-ci.org/activenetwork/actv.png)](https://travis-ci.org/activenetwork/actv)
2
+
1
3
  # ACTV
2
4
 
3
5
  A Ruby wrapper for The ACTIVE Network 3.0 API. You can get your v2
@@ -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($\)
@@ -40,7 +40,11 @@ module ACTV
40
40
  end
41
41
 
42
42
  def place_timezone
43
- @timezone ||= place[:timezone] unless place[:timezone].nil?
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
@@ -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 ||= 'https://api.active.com'
23
+ @endpoint ||= 'http://api.amp.active.com'
24
24
  end
25
25
 
26
26
  def media_endpoint
@@ -1,3 +1,3 @@
1
1
  module ACTV
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.3"
3
3
  end
@@ -100,7 +100,7 @@ describe ACTV::Client do
100
100
  end
101
101
 
102
102
  it "does something" do
103
- stub_request(:get, "https://api.active.com/system_health").
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
 
@@ -1,35 +1,35 @@
1
1
  require 'webmock/rspec'
2
2
 
3
3
 
4
- def a_delete(path, endpoint='https://api.active.com')
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='https://api.active.com')
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='https://api.active.com')
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='https://api.active.com')
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='https://api.active.com')
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='https://api.active.com')
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='https://api.active.com')
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='https://api.active.com')
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
- version: 1.1.1
5
- prerelease:
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
- date: 2013-08-29 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
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
- version: '1.3'
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
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
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
- version: 0.1.6
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
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
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
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ! '>='
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ! '>='
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ! '>='
140
- - !ruby/object:Gem::Version
141
- version: '0'
142
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ! '>='
156
- - !ruby/object:Gem::Version
157
- version: '0'
158
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
169
- none: false
170
- requirements:
171
- - - ! '>='
172
- - !ruby/object:Gem::Version
173
- version: '0'
174
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
185
- none: false
186
- requirements:
187
- - - ! '>='
188
- - !ruby/object:Gem::Version
189
- version: '0'
190
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
201
- none: false
202
- requirements:
203
- - - ! '>='
204
- - !ruby/object:Gem::Version
205
- version: '0'
206
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
217
- none: false
218
- requirements:
219
- - - ! '>='
220
- - !ruby/object:Gem::Version
221
- version: '0'
222
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
233
- none: false
234
- requirements:
235
- - - ! '>='
236
- - !ruby/object:Gem::Version
237
- version: '0'
238
- - !ruby/object:Gem::Dependency
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
- version_requirements: !ruby/object:Gem::Requirement
249
- none: false
250
- requirements:
251
- - - ! '>='
252
- - !ruby/object:Gem::Version
253
- version: '0'
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
- files:
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
- homepage: ''
370
- licenses:
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
- require_paths:
328
+
329
+ require_paths:
375
330
  - lib
376
- required_ruby_version: !ruby/object:Gem::Requirement
377
- none: false
378
- requirements:
379
- - - ! '>='
380
- - !ruby/object:Gem::Version
381
- version: '0'
382
- required_rubygems_version: !ruby/object:Gem::Requirement
383
- none: false
384
- requirements:
385
- - - ! '>='
386
- - !ruby/object:Gem::Version
387
- version: '0'
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.8.25
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