neuron-client 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -21
- data/README.md +2 -2
- data/lib/neuron-client/model/admin/base.rb +1 -1
- data/lib/neuron-client/version.rb +1 -1
- data/neuron-client.gemspec +8 -8
- metadata +108 -43
data/.rvmrc
CHANGED
@@ -1,21 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
ruby_string="1.8.7"
|
4
|
-
gemset_name="neuron-client"
|
5
|
-
|
6
|
-
if rvm list strings | grep -q "${ruby_string}" ; then
|
7
|
-
|
8
|
-
# Load or create the specified environment
|
9
|
-
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
|
10
|
-
&& -s "${rvm_path:-$HOME/.rvm}/environments/${ruby_string}@${gemset_name}" ]] ; then
|
11
|
-
\. "${rvm_path:-$HOME/.rvm}/environments/${ruby_string}@${gemset_name}"
|
12
|
-
else
|
13
|
-
rvm --create "${ruby_string}@${gemset_name}"
|
14
|
-
fi
|
15
|
-
|
16
|
-
else
|
17
|
-
|
18
|
-
# Notify the user to install the desired interpreter before proceeding.
|
19
|
-
echo "${ruby_string} was not found, please run 'rvm install ${ruby_string}' and then cd back into the project directory."
|
20
|
-
|
21
|
-
fi
|
1
|
+
rvm 1.8.7@neuron-client --create
|
data/README.md
CHANGED
@@ -42,12 +42,12 @@ Zones
|
|
42
42
|
|
43
43
|
Create a zone:
|
44
44
|
|
45
|
-
zone = Neuron::Client::Model::Zone.new(:
|
45
|
+
zone = Neuron::Client::Model::Zone.new(:name => 'test', :response_type => 'Redirect')
|
46
46
|
zone.save
|
47
47
|
|
48
48
|
... or simply:
|
49
49
|
|
50
|
-
Neuron::Client::Model::Zone.create(:
|
50
|
+
Neuron::Client::Model::Zone.create(:name => 'test', :response_type => 'Redirect')
|
51
51
|
|
52
52
|
List all zones:
|
53
53
|
|
data/neuron-client.gemspec
CHANGED
@@ -18,21 +18,21 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
s.add_dependency "rest-client", "~> 1.6.3"
|
21
|
-
s.add_dependency "yajl-ruby", "
|
21
|
+
s.add_dependency "yajl-ruby", ">= 0.8.2", "< 1.2"
|
22
22
|
s.add_dependency "activesupport", ">= 2.3.11", "< 3.2"
|
23
23
|
s.add_dependency "tzinfo", "~> 0.3.29"
|
24
24
|
s.add_dependency "i18n", ">= 0.5.0", "< 0.7"
|
25
|
-
s.add_dependency "dalli", "
|
25
|
+
s.add_dependency "dalli", ">= 1.0.5", "< 1.2"
|
26
26
|
s.add_dependency "lrucache", "~> 0.1.0"
|
27
27
|
|
28
|
-
s.add_development_dependency "rspec", "~> 2.
|
29
|
-
s.add_development_dependency "simplecov", "~> 0.4
|
28
|
+
s.add_development_dependency "rspec", "~> 2.7.0"
|
29
|
+
s.add_development_dependency "simplecov", "~> 0.5.4"
|
30
30
|
s.add_development_dependency("rb-fsevent", "~> 0.4.3") if RUBY_PLATFORM =~ /darwin/i
|
31
|
-
s.add_development_dependency "guard", "~> 0.
|
31
|
+
s.add_development_dependency "guard", "~> 0.8.8"
|
32
32
|
s.add_development_dependency "guard-bundler", "~> 0.1.3"
|
33
|
-
s.add_development_dependency "guard-rspec", "~> 0.4
|
33
|
+
s.add_development_dependency "guard-rspec", "~> 0.5.4"
|
34
34
|
s.add_development_dependency "fakeweb", "~> 1.3.0"
|
35
|
-
s.add_development_dependency "vcr", "~> 1.11.
|
35
|
+
s.add_development_dependency "vcr", "~> 1.11.3"
|
36
36
|
s.add_development_dependency "timecop", "~> 0.3.5"
|
37
|
-
s.add_development_dependency "chronic", "~> 0.6.
|
37
|
+
s.add_development_dependency "chronic", "~> 0.6.5"
|
38
38
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neuron-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 6
|
10
|
+
version: 0.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- RMM Online
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-11-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-11-15 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rest-client
|
@@ -40,7 +39,7 @@ dependencies:
|
|
40
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
40
|
none: false
|
42
41
|
requirements:
|
43
|
-
- -
|
42
|
+
- - ">="
|
44
43
|
- !ruby/object:Gem::Version
|
45
44
|
hash: 59
|
46
45
|
segments:
|
@@ -48,6 +47,13 @@ dependencies:
|
|
48
47
|
- 8
|
49
48
|
- 2
|
50
49
|
version: 0.8.2
|
50
|
+
- - <
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
hash: 11
|
53
|
+
segments:
|
54
|
+
- 1
|
55
|
+
- 2
|
56
|
+
version: "1.2"
|
51
57
|
type: :runtime
|
52
58
|
version_requirements: *id002
|
53
59
|
- !ruby/object:Gem::Dependency
|
@@ -118,7 +124,7 @@ dependencies:
|
|
118
124
|
requirement: &id006 !ruby/object:Gem::Requirement
|
119
125
|
none: false
|
120
126
|
requirements:
|
121
|
-
- -
|
127
|
+
- - ">="
|
122
128
|
- !ruby/object:Gem::Version
|
123
129
|
hash: 29
|
124
130
|
segments:
|
@@ -126,6 +132,13 @@ dependencies:
|
|
126
132
|
- 0
|
127
133
|
- 5
|
128
134
|
version: 1.0.5
|
135
|
+
- - <
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
hash: 11
|
138
|
+
segments:
|
139
|
+
- 1
|
140
|
+
- 2
|
141
|
+
version: "1.2"
|
129
142
|
type: :runtime
|
130
143
|
version_requirements: *id006
|
131
144
|
- !ruby/object:Gem::Dependency
|
@@ -152,12 +165,12 @@ dependencies:
|
|
152
165
|
requirements:
|
153
166
|
- - ~>
|
154
167
|
- !ruby/object:Gem::Version
|
155
|
-
hash:
|
168
|
+
hash: 19
|
156
169
|
segments:
|
157
170
|
- 2
|
158
|
-
-
|
171
|
+
- 7
|
159
172
|
- 0
|
160
|
-
version: 2.
|
173
|
+
version: 2.7.0
|
161
174
|
type: :development
|
162
175
|
version_requirements: *id008
|
163
176
|
- !ruby/object:Gem::Dependency
|
@@ -168,34 +181,50 @@ dependencies:
|
|
168
181
|
requirements:
|
169
182
|
- - ~>
|
170
183
|
- !ruby/object:Gem::Version
|
171
|
-
hash:
|
184
|
+
hash: 3
|
172
185
|
segments:
|
173
186
|
- 0
|
187
|
+
- 5
|
174
188
|
- 4
|
175
|
-
|
176
|
-
version: 0.4.2
|
189
|
+
version: 0.5.4
|
177
190
|
type: :development
|
178
191
|
version_requirements: *id009
|
179
192
|
- !ruby/object:Gem::Dependency
|
180
|
-
name:
|
193
|
+
name: rb-fsevent
|
181
194
|
prerelease: false
|
182
195
|
requirement: &id010 !ruby/object:Gem::Requirement
|
183
196
|
none: false
|
184
197
|
requirements:
|
185
198
|
- - ~>
|
186
199
|
- !ruby/object:Gem::Version
|
187
|
-
hash:
|
200
|
+
hash: 9
|
188
201
|
segments:
|
189
202
|
- 0
|
190
|
-
-
|
191
|
-
-
|
192
|
-
version: 0.
|
203
|
+
- 4
|
204
|
+
- 3
|
205
|
+
version: 0.4.3
|
193
206
|
type: :development
|
194
207
|
version_requirements: *id010
|
195
208
|
- !ruby/object:Gem::Dependency
|
196
|
-
name: guard
|
209
|
+
name: guard
|
197
210
|
prerelease: false
|
198
211
|
requirement: &id011 !ruby/object:Gem::Requirement
|
212
|
+
none: false
|
213
|
+
requirements:
|
214
|
+
- - ~>
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
hash: 47
|
217
|
+
segments:
|
218
|
+
- 0
|
219
|
+
- 8
|
220
|
+
- 8
|
221
|
+
version: 0.8.8
|
222
|
+
type: :development
|
223
|
+
version_requirements: *id011
|
224
|
+
- !ruby/object:Gem::Dependency
|
225
|
+
name: guard-bundler
|
226
|
+
prerelease: false
|
227
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
199
228
|
none: false
|
200
229
|
requirements:
|
201
230
|
- - ~>
|
@@ -207,27 +236,27 @@ dependencies:
|
|
207
236
|
- 3
|
208
237
|
version: 0.1.3
|
209
238
|
type: :development
|
210
|
-
version_requirements: *
|
239
|
+
version_requirements: *id012
|
211
240
|
- !ruby/object:Gem::Dependency
|
212
241
|
name: guard-rspec
|
213
242
|
prerelease: false
|
214
|
-
requirement: &
|
243
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
215
244
|
none: false
|
216
245
|
requirements:
|
217
246
|
- - ~>
|
218
247
|
- !ruby/object:Gem::Version
|
219
|
-
hash:
|
248
|
+
hash: 3
|
220
249
|
segments:
|
221
250
|
- 0
|
251
|
+
- 5
|
222
252
|
- 4
|
223
|
-
|
224
|
-
version: 0.4.2
|
253
|
+
version: 0.5.4
|
225
254
|
type: :development
|
226
|
-
version_requirements: *
|
255
|
+
version_requirements: *id013
|
227
256
|
- !ruby/object:Gem::Dependency
|
228
257
|
name: fakeweb
|
229
258
|
prerelease: false
|
230
|
-
requirement: &
|
259
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
231
260
|
none: false
|
232
261
|
requirements:
|
233
262
|
- - ~>
|
@@ -239,27 +268,27 @@ dependencies:
|
|
239
268
|
- 0
|
240
269
|
version: 1.3.0
|
241
270
|
type: :development
|
242
|
-
version_requirements: *
|
271
|
+
version_requirements: *id014
|
243
272
|
- !ruby/object:Gem::Dependency
|
244
273
|
name: vcr
|
245
274
|
prerelease: false
|
246
|
-
requirement: &
|
275
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
247
276
|
none: false
|
248
277
|
requirements:
|
249
278
|
- - ~>
|
250
279
|
- !ruby/object:Gem::Version
|
251
|
-
hash:
|
280
|
+
hash: 61
|
252
281
|
segments:
|
253
282
|
- 1
|
254
283
|
- 11
|
255
|
-
-
|
256
|
-
version: 1.11.
|
284
|
+
- 3
|
285
|
+
version: 1.11.3
|
257
286
|
type: :development
|
258
|
-
version_requirements: *
|
287
|
+
version_requirements: *id015
|
259
288
|
- !ruby/object:Gem::Dependency
|
260
289
|
name: timecop
|
261
290
|
prerelease: false
|
262
|
-
requirement: &
|
291
|
+
requirement: &id016 !ruby/object:Gem::Requirement
|
263
292
|
none: false
|
264
293
|
requirements:
|
265
294
|
- - ~>
|
@@ -271,23 +300,23 @@ dependencies:
|
|
271
300
|
- 5
|
272
301
|
version: 0.3.5
|
273
302
|
type: :development
|
274
|
-
version_requirements: *
|
303
|
+
version_requirements: *id016
|
275
304
|
- !ruby/object:Gem::Dependency
|
276
305
|
name: chronic
|
277
306
|
prerelease: false
|
278
|
-
requirement: &
|
307
|
+
requirement: &id017 !ruby/object:Gem::Requirement
|
279
308
|
none: false
|
280
309
|
requirements:
|
281
310
|
- - ~>
|
282
311
|
- !ruby/object:Gem::Version
|
283
|
-
hash:
|
312
|
+
hash: 13
|
284
313
|
segments:
|
285
314
|
- 0
|
286
315
|
- 6
|
287
|
-
-
|
288
|
-
version: 0.6.
|
316
|
+
- 5
|
317
|
+
version: 0.6.5
|
289
318
|
type: :development
|
290
|
-
version_requirements: *
|
319
|
+
version_requirements: *id017
|
291
320
|
description: Neuron Admin Client Gem
|
292
321
|
email:
|
293
322
|
- devteam@rmmonline.com
|
@@ -382,7 +411,6 @@ files:
|
|
382
411
|
- spec/lib/old_spec.rb
|
383
412
|
- spec/lib/s3_file_spec.rb
|
384
413
|
- spec/spec_helper.rb
|
385
|
-
has_rdoc: true
|
386
414
|
homepage: http://github.com/rmm/neuron-client
|
387
415
|
licenses: []
|
388
416
|
|
@@ -412,9 +440,46 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
412
440
|
requirements: []
|
413
441
|
|
414
442
|
rubyforge_project: neuron-client
|
415
|
-
rubygems_version: 1.
|
443
|
+
rubygems_version: 1.8.10
|
416
444
|
signing_key:
|
417
445
|
specification_version: 3
|
418
446
|
summary: Neuron Admin Client Gem
|
419
|
-
test_files:
|
420
|
-
|
447
|
+
test_files:
|
448
|
+
- spec/fixtures/vcr_cassettes/s3_file.yml
|
449
|
+
- spec/lib/admin_connection_spec.rb
|
450
|
+
- spec/lib/api_spec.rb
|
451
|
+
- spec/lib/membase_connection_spec.rb
|
452
|
+
- spec/lib/model/admin/ad_spec.rb
|
453
|
+
- spec/lib/model/admin/ad_zone_spec.rb
|
454
|
+
- spec/lib/model/admin/base_spec.rb
|
455
|
+
- spec/lib/model/admin/blocked_referer_spec.rb
|
456
|
+
- spec/lib/model/admin/blocked_user_agent_spec.rb
|
457
|
+
- spec/lib/model/admin/geo_target_spec.rb
|
458
|
+
- spec/lib/model/admin/report_spec.rb
|
459
|
+
- spec/lib/model/admin/s3_spec.rb
|
460
|
+
- spec/lib/model/admin/zone_spec.rb
|
461
|
+
- spec/lib/model/base_spec.rb
|
462
|
+
- spec/lib/model/common/ad_calculations_spec.rb
|
463
|
+
- spec/lib/model/common/ad_spec.rb
|
464
|
+
- spec/lib/model/common/ad_zone_spec.rb
|
465
|
+
- spec/lib/model/common/base_spec.rb
|
466
|
+
- spec/lib/model/common/blocked_referer_spec.rb
|
467
|
+
- spec/lib/model/common/blocked_user_agent_spec.rb
|
468
|
+
- spec/lib/model/common/geo_target_spec.rb
|
469
|
+
- spec/lib/model/common/report_spec.rb
|
470
|
+
- spec/lib/model/common/s3_spec.rb
|
471
|
+
- spec/lib/model/common/zone_calculations_spec.rb
|
472
|
+
- spec/lib/model/common/zone_spec.rb
|
473
|
+
- spec/lib/model/membase/ad_spec.rb
|
474
|
+
- spec/lib/model/membase/ad_zone_spec.rb
|
475
|
+
- spec/lib/model/membase/base_spec.rb
|
476
|
+
- spec/lib/model/membase/blocked_referer_spec.rb
|
477
|
+
- spec/lib/model/membase/blocked_user_agent_spec.rb
|
478
|
+
- spec/lib/model/membase/geo_target_spec.rb
|
479
|
+
- spec/lib/model/membase/pixel_spec.rb
|
480
|
+
- spec/lib/model/membase/report_spec.rb
|
481
|
+
- spec/lib/model/membase/s3_spec.rb
|
482
|
+
- spec/lib/model/membase/zone_spec.rb
|
483
|
+
- spec/lib/old_spec.rb
|
484
|
+
- spec/lib/s3_file_spec.rb
|
485
|
+
- spec/spec_helper.rb
|