teamsnap_rb 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/teamsnap_rb/item.rb +1 -1
- data/lib/teamsnap_rb/version.rb +1 -1
- data/spec/item_spec.rb +19 -1
- metadata +1 -2
- data/Gemfile.lock +0 -78
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee6713987eed0b0f7f4a226d42b231fd4cd3b62e
|
4
|
+
data.tar.gz: e82f3f683e6fedf48bd19c806a1225a0055e7b4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3610ade4641f2decf863efd96d8b4024c70d9da0eb02bfe583f31d2a3204159118bf912e3ba8b77a2a33378caa27012df8262913e8b1880557899acdadf6d8b3
|
7
|
+
data.tar.gz: b1b4c282fdf34f89f6f7c06b44da03e4a943dd19579903d80cccd0d6c6a20bd19f6590bf11157ccf2e753d38cc6e9e3fb0d3904592acdecaf16687220a571d9a
|
data/.gitignore
CHANGED
data/lib/teamsnap_rb/item.rb
CHANGED
data/lib/teamsnap_rb/version.rb
CHANGED
data/spec/item_spec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require "spec_helper"
|
2
2
|
|
3
3
|
describe TeamsnapRb::Item do
|
4
|
-
use_vcr_cassette "team", :allow_playback_repeats => true
|
4
|
+
use_vcr_cassette "team", :allow_playback_repeats => true, :match_requests_on => [:host, :path, :body, :method]
|
5
5
|
let(:team_collection) { TeamsnapRb::Collection.new("http://localhost:3003/teams/1", {}, TeamsnapRb::Config.new) }
|
6
6
|
let(:team_item) { team_collection[0] }
|
7
7
|
|
@@ -63,6 +63,24 @@ describe TeamsnapRb::Item do
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
+
describe "#commands" do
|
67
|
+
it "returns a TeamsnapRb::CommandsProxy" do
|
68
|
+
expect(team_item.commands).to be_a(TeamsnapRb::CommandsProxy)
|
69
|
+
end
|
70
|
+
|
71
|
+
it "returns a 400 when the command is executed without correct arguments" do
|
72
|
+
expect(team_item.invite.status).to eq(400)
|
73
|
+
end
|
74
|
+
|
75
|
+
it "returns a 202 when the command is executed with correct arguments" do
|
76
|
+
expect(
|
77
|
+
team_item.invite(
|
78
|
+
:team_id => 1, :member_id => 8, :notify_as_member_id => 1
|
79
|
+
).status
|
80
|
+
).to eq(202)
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
66
84
|
describe "#template" do
|
67
85
|
it "returns a TeamsnapRb::Template" do
|
68
86
|
expect(team_item.template).to be_a(TeamsnapRb::Template)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamsnap_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Party Chicken
|
@@ -117,7 +117,6 @@ extra_rdoc_files: []
|
|
117
117
|
files:
|
118
118
|
- ".gitignore"
|
119
119
|
- Gemfile
|
120
|
-
- Gemfile.lock
|
121
120
|
- LICENSE
|
122
121
|
- README.md
|
123
122
|
- Rakefile
|
data/Gemfile.lock
DELETED
@@ -1,78 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
teamsnap_rb (0.0.5)
|
5
|
-
conglomerate (>= 0.15.0)
|
6
|
-
faraday (~> 0.9.0)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
addressable (2.3.6)
|
12
|
-
coderay (1.1.0)
|
13
|
-
conglomerate (0.16.0)
|
14
|
-
coveralls (0.7.1)
|
15
|
-
multi_json (~> 1.3)
|
16
|
-
rest-client
|
17
|
-
simplecov (>= 0.7)
|
18
|
-
term-ansicolor
|
19
|
-
thor
|
20
|
-
crack (0.4.2)
|
21
|
-
safe_yaml (~> 1.0.0)
|
22
|
-
diff-lcs (1.2.5)
|
23
|
-
docile (1.1.5)
|
24
|
-
faraday (0.9.0)
|
25
|
-
multipart-post (>= 1.2, < 3)
|
26
|
-
method_source (0.8.2)
|
27
|
-
mime-types (2.4.3)
|
28
|
-
multi_json (1.10.1)
|
29
|
-
multipart-post (2.0.0)
|
30
|
-
netrc (0.8.0)
|
31
|
-
pry (0.9.12.4)
|
32
|
-
coderay (~> 1.0)
|
33
|
-
method_source (~> 0.8)
|
34
|
-
slop (~> 3.4)
|
35
|
-
rake (10.1.1)
|
36
|
-
rest-client (1.7.2)
|
37
|
-
mime-types (>= 1.16, < 3.0)
|
38
|
-
netrc (~> 0.7)
|
39
|
-
rspec (3.0.0)
|
40
|
-
rspec-core (~> 3.0.0)
|
41
|
-
rspec-expectations (~> 3.0.0)
|
42
|
-
rspec-mocks (~> 3.0.0)
|
43
|
-
rspec-core (3.0.3)
|
44
|
-
rspec-support (~> 3.0.0)
|
45
|
-
rspec-expectations (3.0.3)
|
46
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
47
|
-
rspec-support (~> 3.0.0)
|
48
|
-
rspec-mocks (3.0.3)
|
49
|
-
rspec-support (~> 3.0.0)
|
50
|
-
rspec-support (3.0.3)
|
51
|
-
safe_yaml (1.0.4)
|
52
|
-
simplecov (0.9.1)
|
53
|
-
docile (~> 1.1.0)
|
54
|
-
multi_json (~> 1.0)
|
55
|
-
simplecov-html (~> 0.8.0)
|
56
|
-
simplecov-html (0.8.0)
|
57
|
-
slop (3.4.7)
|
58
|
-
term-ansicolor (1.3.0)
|
59
|
-
tins (~> 1.0)
|
60
|
-
thor (0.19.1)
|
61
|
-
tins (1.3.3)
|
62
|
-
vcr (2.9.3)
|
63
|
-
webmock (1.20.4)
|
64
|
-
addressable (>= 2.3.6)
|
65
|
-
crack (>= 0.3.2)
|
66
|
-
|
67
|
-
PLATFORMS
|
68
|
-
ruby
|
69
|
-
|
70
|
-
DEPENDENCIES
|
71
|
-
bundler (~> 1.5)
|
72
|
-
coveralls
|
73
|
-
pry
|
74
|
-
rake
|
75
|
-
rspec (>= 3.0.0)
|
76
|
-
teamsnap_rb!
|
77
|
-
vcr
|
78
|
-
webmock
|