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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8f5e42bd6932da70daf32dd3550c7e7823c559b
4
- data.tar.gz: 755c92dc260b78049bdc446a2043d84f0a97ff65
3
+ metadata.gz: 7e61be8f0dbd41447e476d4910db11a7f4d860fa
4
+ data.tar.gz: 5ca77625cf5941bb0b947e504e07d4a20f1df55a
5
5
  SHA512:
6
- metadata.gz: e409054d8e1ebad47497c99bad42ba8b3618149defd0b95878531c8414f42aabc0bc88b9b4caf03588822e05ae84dfa74dcbcf9c1308cb687885e2eacda49030
7
- data.tar.gz: 112fddfa2ff633eea42cd41052d4fd59d375360ae92e31d4646b779d6a0eee409969fe6f7c95f582edba6ee8eba06ce2de0a8c5f01f3bce6689661c0b373f0f1
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.1.4)
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
@@ -1,5 +1,4 @@
1
1
  require File.expand_path(__FILE__, "exception")
2
- require 'debugger'
3
2
 
4
3
  module StreamSend
5
4
  module Api