streamsend 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -9
- data/lib/streamsend/api/resource.rb +3 -0
- data/lib/streamsend/api/subscriber.rb +0 -1
- data/spec/integration/fixtures/vcr_cassettes/streamsend.yml +6831 -0
- data/spec/integration/subscriber_spec.rb +24 -0
- data/spec/integration/user_spec.rb +0 -1
- data/spec/lib/streamsend/api/subscriber_spec.rb +9 -0
- data/streamsend.gemspec +3 -2
- data/watcher_config.rb +2 -0
- metadata +28 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e61be8f0dbd41447e476d4910db11a7f4d860fa
|
4
|
+
data.tar.gz: 5ca77625cf5941bb0b947e504e07d4a20f1df55a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1dbb65d585166e0fed66484cecb556c44d559de6ff8e0effc80da9b4711d1207d85e18a5a2aa1d6b0eb86e3b8954453f2a7526bbfb7777a81e8299d2c8a4e8e
|
7
|
+
data.tar.gz: a546c213c265d6e810d3031405ea15e51209883229bd8d6ede350abedfcaaa368d2c27d08444bfcd7df91a95c99a22255f6d4d28c12804e85bbe3dede199e418
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
streamsend (0.
|
4
|
+
streamsend (0.2.0)
|
5
5
|
activesupport (~> 3.2)
|
6
6
|
builder
|
7
7
|
httparty
|
@@ -14,15 +14,8 @@ GEM
|
|
14
14
|
multi_json (~> 1.0)
|
15
15
|
addressable (2.3.5)
|
16
16
|
builder (3.2.2)
|
17
|
-
columnize (0.3.6)
|
18
17
|
crack (0.4.0)
|
19
18
|
safe_yaml (~> 0.9.0)
|
20
|
-
debugger (1.6.0)
|
21
|
-
columnize (>= 0.3.1)
|
22
|
-
debugger-linecache (~> 1.2.0)
|
23
|
-
debugger-ruby_core_source (~> 1.2.1)
|
24
|
-
debugger-linecache (1.2.0)
|
25
|
-
debugger-ruby_core_source (1.2.3)
|
26
19
|
diff-lcs (1.2.4)
|
27
20
|
httparty (0.11.0)
|
28
21
|
multi_json (~> 1.0)
|
@@ -38,8 +31,10 @@ GEM
|
|
38
31
|
rspec-expectations (2.13.0)
|
39
32
|
diff-lcs (>= 1.1.3, < 2.0)
|
40
33
|
rspec-mocks (2.13.1)
|
34
|
+
ruby-fsevent (0.2.1)
|
41
35
|
safe_yaml (0.9.3)
|
42
36
|
vcr (2.5.0)
|
37
|
+
watchr (0.7)
|
43
38
|
webmock (1.12.3)
|
44
39
|
addressable (>= 2.2.7)
|
45
40
|
crack (>= 0.3.2)
|
@@ -48,8 +43,9 @@ PLATFORMS
|
|
48
43
|
ruby
|
49
44
|
|
50
45
|
DEPENDENCIES
|
51
|
-
debugger
|
52
46
|
rspec
|
47
|
+
ruby-fsevent
|
53
48
|
streamsend!
|
54
49
|
vcr
|
50
|
+
watchr
|
55
51
|
webmock (~> 1.6)
|
@@ -28,6 +28,9 @@ module StreamSend
|
|
28
28
|
audiences_repsonse = StreamSend::Api.get("/audiences.xml")
|
29
29
|
audiences_entity = audiences_repsonse.parsed_response
|
30
30
|
audiences = audiences_entity["audiences"]
|
31
|
+
if audiences_entity["audiences"].nil?
|
32
|
+
raise StreamSend::Api::Exception.new("Invalid response when fetching audience. Are your credentials valid?")
|
33
|
+
end
|
31
34
|
audience = audiences.first
|
32
35
|
@audience_id = audience["id"]
|
33
36
|
end
|