streamsend 1.0.0.rc7 → 1.0.0.rc8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWNhNDU5ZTliYzI2ZWE2ZWRmNzNiMGQ5OTE0MWE4ZTE2NWMwMTg5OQ==
4
+ NDExZGU1YWY0NTMzMTJkY2ExZjMzOWRhZTVkNDNhZmJhZTA0NjMyOQ==
5
5
  data.tar.gz: !binary |-
6
- MjVmMGRmNjEzNDFlNjVmY2E3YWQxN2YxZDQ2NGUyNTQzOGVjMDJjOQ==
6
+ M2NhNGExYmY2YTEzZjZlZTgyZGE0ZjY4Y2I3MmQ3NGEyN2I4ZjgwMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWJjZGEwZWIzYWIxZTQ5ZjI1NzllOGI4ODJiNmIwZmNmNzRiMzc1NjgxYzA5
10
- YmY0MTMzM2NiMjRlNTJiNzlhNDQ0NDY4NjBiNzY4MTQ4NjNjZDcwYTc3YzAw
11
- ZWZhYzc3MGJkMjU3NzY2YjE0NjAwNDcxYTdhM2YyZDNhZWVhMGQ=
9
+ ZmI5YTg4MzgyNjkzYzZmOTdmZjMzZDdjZWFlYzJlMTQ4YmY0YTg1NTZkN2E1
10
+ NjNjNjY3OTE4ZTk1NWIyNGRiZTU1MmJjNjg1NTYyNmE0OGJkOWM2NzI5ZjMy
11
+ N2ZmYzJkMDlhNjUwZDg2YWQyZTM1MjhmM2E0ZjdlYmJhM2MxYTY=
12
12
  data.tar.gz: !binary |-
13
- ZTUyOGQwNGM2NDFiYjIxNTI2NzZlZTRmZTE2ZGRjNWYyNTkyMDc2MWU5N2U4
14
- ZTMxNGRmNTEwYzUyOTU3YzU2ZWQ5N2VlNzM0NmMxOGQyMDQwM2I0NzhhNmE3
15
- MTRkNmY3NjRjNTM1ZGNlMjczN2U4ZTE5ZDAwNWE2OWY1MjQ2OTA=
13
+ MTM4ODliM2NiNWZlYTY1ZmI0Nzc2NGMxMTM3Yzg5ZTY4OTJlOWM5NzJkYTJh
14
+ ODJhY2Y4NGE5MDQ2ZDZhMmRjYzkwN2Y0OWM0NzNkOTAwMjBkMGQ5Y2NjYzg4
15
+ ZmMwODlmOGNmMzc1MTI3NzMyYWNiMzRkNTMyYTNiZjE3ODBiZGE=
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- streamsend (1.0.0.rc7)
4
+ streamsend (1.0.0.rc8)
5
5
  activesupport (~> 3.2)
6
6
  builder
7
7
  httmultiparty
data/README.md CHANGED
@@ -17,6 +17,7 @@ Set via environment variables:
17
17
  Set via config file (gem checks for config/streamsend-ruby.yml):
18
18
 
19
19
  root_account:
20
+ base_uri: "http://example.com"
20
21
  username: "my_ss_api_username"
21
22
  password: "secret_api_password"
22
23
 
@@ -18,6 +18,7 @@ require "streamsend/api/audience"
18
18
  require "streamsend/api/session"
19
19
 
20
20
  require "streamsend/api/account"
21
+ require "streamsend/api/owner"
21
22
  require "streamsend/api/blast"
22
23
  require "streamsend/api/bounce"
23
24
  require "streamsend/api/click"
@@ -0,0 +1,25 @@
1
+ require "open-uri"
2
+
3
+ module StreamSend
4
+ module Api
5
+ module Owner
6
+ class Index < StreamSend::Api::Call::Index
7
+ end
8
+
9
+ class Show < StreamSend::Api::Call::Show
10
+ def id
11
+ URI::encode(@id)
12
+ end
13
+ end
14
+
15
+ class Update < StreamSend::Api::Call::Update
16
+ end
17
+
18
+ class Destroy < StreamSend::Api::Call::Destroy
19
+ end
20
+
21
+ class Create < StreamSend::Api::Call::Create
22
+ end
23
+ end
24
+ end
25
+ end
@@ -1,3 +1,3 @@
1
1
  module StreamSend
2
- VERSION = "1.0.0.rc7"
2
+ VERSION = "1.0.0.rc8"
3
3
  end
@@ -0,0 +1,45 @@
1
+ require "spec_helper"
2
+
3
+ module StreamSend
4
+ module Api
5
+ module Owner
6
+ describe "Owner calls" do
7
+ let(:session){ StreamSend::Api::Session.new() }
8
+ let(:franchise_code) { "IHOP 5" }
9
+ let(:owner_hash) { {:owner => {
10
+ :name => "Inter House of Pancakes",
11
+ :franchise_code => franchise_code,
12
+ :street_address_1 => "123 Sesame St",
13
+ :city => "Birmingham",
14
+ :state => "NC",
15
+ :zip => "27613",
16
+ :country => "Somalia",
17
+ :from_email_address => "donkey@kong.com"} }}
18
+
19
+ before do
20
+ WebMock.disable!
21
+ end
22
+
23
+ after do
24
+ WebMock.enable!
25
+ end
26
+
27
+ describe Index do
28
+ it "returns the owners" do
29
+ pending "not implemented in web app yet"
30
+ owners = StreamSend::Api::Owner::Index.new(session).execute
31
+ expect(owners.count).to be > 0
32
+ end
33
+ end
34
+
35
+ describe Show do
36
+ it "shows a owner by id" do
37
+ shower = StreamSend::Api::Owner::Show.new(session)
38
+ owner = shower.execute(franchise_code)
39
+ expect(owner.owner_id).to eq(franchise_code)
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: streamsend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc7
4
+ version: 1.0.0.rc8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Yeo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-03 00:00:00.000000000 Z
11
+ date: 2014-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httmultiparty
@@ -175,6 +175,7 @@ files:
175
175
  - lib/streamsend/api/link.rb
176
176
  - lib/streamsend/api/list.rb
177
177
  - lib/streamsend/api/membership.rb
178
+ - lib/streamsend/api/owner.rb
178
179
  - lib/streamsend/api/person.rb
179
180
  - lib/streamsend/api/result.rb
180
181
  - lib/streamsend/api/rss_trigger.rb
@@ -199,6 +200,7 @@ files:
199
200
  - spec/lib/streamsend/api/integration/link_spec.rb
200
201
  - spec/lib/streamsend/api/integration/list_spec.rb
201
202
  - spec/lib/streamsend/api/integration/membership_spec.rb
203
+ - spec/lib/streamsend/api/integration/owner_spec.rb
202
204
  - spec/lib/streamsend/api/integration/person_spec.rb
203
205
  - spec/lib/streamsend/api/integration/unsubscribe_spec.rb
204
206
  - spec/lib/streamsend/api/integration/upload_spec.rb
@@ -265,6 +267,7 @@ test_files:
265
267
  - spec/lib/streamsend/api/integration/link_spec.rb
266
268
  - spec/lib/streamsend/api/integration/list_spec.rb
267
269
  - spec/lib/streamsend/api/integration/membership_spec.rb
270
+ - spec/lib/streamsend/api/integration/owner_spec.rb
268
271
  - spec/lib/streamsend/api/integration/person_spec.rb
269
272
  - spec/lib/streamsend/api/integration/unsubscribe_spec.rb
270
273
  - spec/lib/streamsend/api/integration/upload_spec.rb