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 +8 -8
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/streamsend.rb +1 -0
- data/lib/streamsend/api/owner.rb +25 -0
- data/lib/streamsend/version.rb +1 -1
- data/spec/lib/streamsend/api/integration/owner_spec.rb +45 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDExZGU1YWY0NTMzMTJkY2ExZjMzOWRhZTVkNDNhZmJhZTA0NjMyOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2NhNGExYmY2YTEzZjZlZTgyZGE0ZjY4Y2I3MmQ3NGEyN2I4ZjgwMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmI5YTg4MzgyNjkzYzZmOTdmZjMzZDdjZWFlYzJlMTQ4YmY0YTg1NTZkN2E1
|
10
|
+
NjNjNjY3OTE4ZTk1NWIyNGRiZTU1MmJjNjg1NTYyNmE0OGJkOWM2NzI5ZjMy
|
11
|
+
N2ZmYzJkMDlhNjUwZDg2YWQyZTM1MjhmM2E0ZjdlYmJhM2MxYTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTM4ODliM2NiNWZlYTY1ZmI0Nzc2NGMxMTM3Yzg5ZTY4OTJlOWM5NzJkYTJh
|
14
|
+
ODJhY2Y4NGE5MDQ2ZDZhMmRjYzkwN2Y0OWM0NzNkOTAwMjBkMGQ5Y2NjYzg4
|
15
|
+
ZmMwODlmOGNmMzc1MTI3NzMyYWNiMzRkNTMyYTNiZjE3ODBiZGE=
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/streamsend.rb
CHANGED
@@ -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
|
data/lib/streamsend/version.rb
CHANGED
@@ -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.
|
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-
|
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
|