teamsnap_rb 0.0.8 → 1.0.0.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +13 -0
- data/Gemfile +2 -1
- data/LICENSE +1 -1
- data/README.md +31 -79
- data/Rakefile +19 -1
- data/lib/teamsnap/version.rb +3 -0
- data/lib/teamsnap.rb +270 -0
- data/spec/cassettes/apiv3-init.yml +1963 -0
- data/spec/cassettes/teamsnap_rb/adds_find_if_search_is_available.yml +56 -0
- data/spec/cassettes/teamsnap_rb/can_follow_plural_links.yml +111 -0
- data/spec/cassettes/teamsnap_rb/can_follow_singular_links.yml +105 -0
- data/spec/cassettes/teamsnap_rb/can_handle_an_empty_bulk_load.yml +52 -0
- data/spec/cassettes/teamsnap_rb/can_handle_an_error_with_bulk_load.yml +50 -0
- data/spec/cassettes/teamsnap_rb/can_handle_errors_generated_by_command.yml +50 -0
- data/spec/cassettes/teamsnap_rb/can_handle_links_with_no_data.yml +101 -0
- data/spec/cassettes/teamsnap_rb/can_use_bulk_load.yml +61 -0
- data/spec/cassettes/teamsnap_rb/handles_executing_an_action_via_commands.yml +54 -0
- data/spec/cassettes/teamsnap_rb/handles_fetching_data_via_queries.yml +56 -0
- data/spec/cassettes/teamsnap_rb/handles_queries_with_no_data.yml +53 -0
- data/spec/cassettes/teamsnap_rb/raises_an_exception_if_find_returns_nothing.yml +53 -0
- data/spec/spec_helper.rb +18 -13
- data/spec/teamsnap_spec.rb +125 -0
- data/teamsnap_rb.gemspec +17 -15
- metadata +100 -84
- data/lib/teamsnap_rb/client.rb +0 -8
- data/lib/teamsnap_rb/collection.rb +0 -179
- data/lib/teamsnap_rb/command.rb +0 -39
- data/lib/teamsnap_rb/commands.rb +0 -40
- data/lib/teamsnap_rb/config.rb +0 -14
- data/lib/teamsnap_rb/exceptions.rb +0 -3
- data/lib/teamsnap_rb/item.rb +0 -136
- data/lib/teamsnap_rb/link.rb +0 -24
- data/lib/teamsnap_rb/links_proxy.rb +0 -40
- data/lib/teamsnap_rb/models/event.rb +0 -4
- data/lib/teamsnap_rb/models/user.rb +0 -4
- data/lib/teamsnap_rb/queries_proxy.rb +0 -68
- data/lib/teamsnap_rb/request_builder.rb +0 -67
- data/lib/teamsnap_rb/template.rb +0 -37
- data/lib/teamsnap_rb/version.rb +0 -3
- data/lib/teamsnap_rb.rb +0 -22
- data/spec/client_spec.rb +0 -39
- data/spec/collection_spec.rb +0 -175
- data/spec/command_spec.rb +0 -60
- data/spec/commands_spec.rb +0 -35
- data/spec/config_spec.rb +0 -16
- data/spec/fixtures/cassettes/production_root.yml +0 -59
- data/spec/fixtures/cassettes/root.yml +0 -573
- data/spec/fixtures/cassettes/team.yml +0 -4858
- data/spec/fixtures/cassettes/teams.yml +0 -160
- data/spec/item_spec.rb +0 -133
- data/spec/link_spec.rb +0 -43
- data/spec/links_proxy_spec.rb +0 -32
- data/spec/queries_proxy_spec.rb +0 -31
- data/spec/template_spec.rb +0 -57
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/teams/search?id=0
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.1
|
12
|
+
Authorization:
|
13
|
+
- Bearer 97b68bef90ad6631db140c6c1f887a6bccd19be4c64956fa49c101b18e5d350d
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: 'OK '
|
18
|
+
headers:
|
19
|
+
Content-Type:
|
20
|
+
- application/vnd.collection+json
|
21
|
+
Content-Length:
|
22
|
+
- '3295'
|
23
|
+
X-Content-Type-Options:
|
24
|
+
- nosniff
|
25
|
+
X-Ratelimit-Limit:
|
26
|
+
- '5000'
|
27
|
+
X-Ratelimit-Remaining:
|
28
|
+
- '4422'
|
29
|
+
X-Ratelimit-Reset:
|
30
|
+
- '1424096737'
|
31
|
+
Etag:
|
32
|
+
- '"7d793a0a4ffd011ba9b91a3b87d94e5a"'
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
X-Request-Id:
|
36
|
+
- be497531-4216-448c-a512-790abdd23605
|
37
|
+
X-Runtime:
|
38
|
+
- '0.025089'
|
39
|
+
Server:
|
40
|
+
- WEBrick/1.3.1 (Ruby/2.1.5/2014-11-13)
|
41
|
+
Date:
|
42
|
+
- Mon, 16 Feb 2015 14:25:33 GMT
|
43
|
+
Connection:
|
44
|
+
- Keep-Alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"collection":{"version":"3.33.0","href":"http://localhost:3000/teams","template":{"data":[{"name":"name","value":null},{"name":"location_country","value":null},{"name":"location_postal_code","value":null},{"name":"time_zone","value":null},{"name":"sport_id","value":null},{"name":"division_name","value":null},{"name":"season_name","value":null},{"name":"league_name","value":null},{"name":"league_url","value":null}]},"links":[{"rel":"active_season_team","href":"http://localhost:3000/teams"},{"rel":"assignments","href":"http://localhost:3000/assignments"},{"rel":"availabilities","href":"http://localhost:3000/availabilities"},{"rel":"contact_email_addresses","href":"http://localhost:3000/contact_email_addresses"},{"rel":"contact_phone_numbers","href":"http://localhost:3000/contact_phone_numbers"},{"rel":"contacts","href":"http://localhost:3000/contacts"},{"rel":"custom_data","href":"http://localhost:3000/custom_data"},{"rel":"custom_fields","href":"http://localhost:3000/custom_fields"},{"rel":"events","href":"http://localhost:3000/events"},{"rel":"forum_posts","href":"http://localhost:3000/forum_posts"},{"rel":"forum_subscriptions","href":"http://localhost:3000/forum_subscriptions"},{"rel":"forum_topics","href":"http://localhost:3000/forum_topics"},{"rel":"locations","href":"http://localhost:3000/locations"},{"rel":"managers","href":"http://localhost:3000/members"},{"rel":"member_email_addresses","href":"http://localhost:3000/member_email_addresses"},{"rel":"member_files","href":"http://localhost:3000/member_files"},{"rel":"member_links","href":"http://localhost:3000/member_links"},{"rel":"member_phone_numbers","href":"http://localhost:3000/member_phone_numbers"},{"rel":"members","href":"http://localhost:3000/members"},{"rel":"members_preferences","href":"http://localhost:3000/members_preferences"},{"rel":"opponents","href":"http://localhost:3000/opponents"},{"rel":"opponents_results","href":"http://localhost:3000/opponents_results"},{"rel":"owner","href":"http://localhost:3000/members"},{"rel":"plan","href":"http://localhost:3000/plans"},{"rel":"sponsors","href":"http://localhost:3000/sponsors"},{"rel":"sport","href":"http://localhost:3000/sports"},{"rel":"team_fees","href":"http://localhost:3000/team_fees"},{"rel":"team_files","href":"http://localhost:3000/team_files"},{"rel":"team_preferences","href":"http://localhost:3000/teams_preferences"},{"rel":"team_public_site","href":"http://localhost:3000/team_public_sites"},{"rel":"team_results","href":"http://localhost:3000/teams_results"},{"rel":"tracked_item_statuses","href":"http://localhost:3000/tracked_item_statuses"},{"rel":"tracked_items","href":"http://localhost:3000/tracked_items"},{"rel":"root","href":"http://localhost:3000/"},{"rel":"self","href":"http://localhost:3000/teams/search?id=0"}],"queries":[{"rel":"search","href":"http://localhost:3000/teams/search","data":[{"name":"id","value":null},{"name":"team_id","value":null},{"name":"user_id","value":null}]}],"commands":[{"rel":"invite","href":"http://localhost:3000/teams/invite","prompt":"invite
|
48
|
+
team members or contacts to join TeamSnap.","data":[{"name":"team_id","value":null},{"name":"contact_id","value":null},{"name":"member_id","value":null},{"name":"introduction","value":null},{"name":"notify_as_member_id","value":null}]}]}}'
|
49
|
+
http_version: '1.1'
|
50
|
+
adapter_metadata:
|
51
|
+
effective_url: http://localhost:3000/teams/search?id=0
|
52
|
+
recorded_at: Mon, 16 Feb 2015 14:25:33 GMT
|
53
|
+
recorded_with: VCR 2.9.3
|
data/spec/spec_helper.rb
CHANGED
@@ -1,19 +1,24 @@
|
|
1
|
-
require
|
2
|
-
|
1
|
+
require "simplecov"
|
2
|
+
require "coveralls"
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
config.extend VCR::RSpec::Macros
|
11
|
-
config.color = true
|
12
|
-
config.order = "random"
|
4
|
+
SimpleCov::Formatter::MultiFormatter[
|
5
|
+
SimpleCov::Formatter::HTMLFormatter,
|
6
|
+
Coveralls::SimpleCov::Formatter
|
7
|
+
]
|
8
|
+
SimpleCov.start do
|
9
|
+
add_filter "vendor"
|
13
10
|
end
|
14
11
|
|
12
|
+
require "vcr"
|
13
|
+
|
15
14
|
VCR.configure do |c|
|
15
|
+
c.cassette_library_dir = "spec/cassettes"
|
16
|
+
c.hook_into :typhoeus
|
16
17
|
c.configure_rspec_metadata!
|
17
|
-
|
18
|
-
|
18
|
+
end
|
19
|
+
|
20
|
+
RSpec.configure do |c|
|
21
|
+
c.expose_dsl_globally = false
|
22
|
+
c.order = "random"
|
23
|
+
c.backtrace_inclusion_patterns = []
|
19
24
|
end
|
@@ -0,0 +1,125 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
require "teamsnap"
|
3
|
+
|
4
|
+
RSpec.describe "teamsnap_rb", :vcr => true do
|
5
|
+
before(:all) do
|
6
|
+
VCR.use_cassette("apiv3-init") do
|
7
|
+
TeamSnap.init(:token => "97b68bef90ad6631db140c6c1f887a6bccd19be4c64956fa49c101b18e5d350d")
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
it "registers new classes via introspection of the root collection" do
|
12
|
+
expect { TeamSnap::Team }.to_not raise_error
|
13
|
+
end
|
14
|
+
|
15
|
+
it "handles fetching data via queries" do
|
16
|
+
ts = TeamSnap::Team.search(:id => 1)
|
17
|
+
|
18
|
+
expect(ts).to_not be_empty
|
19
|
+
expect(ts[0].id).to eq(1)
|
20
|
+
end
|
21
|
+
|
22
|
+
it "handles queries with no data" do
|
23
|
+
ts = TeamSnap::Team.search(:id => 0)
|
24
|
+
|
25
|
+
expect(ts).to be_empty
|
26
|
+
end
|
27
|
+
|
28
|
+
it "raises an exception when a query is invalid" do
|
29
|
+
expect {
|
30
|
+
TeamSnap::Team.search(:foo => :bar)
|
31
|
+
}.to raise_error(
|
32
|
+
ArgumentError,
|
33
|
+
"Invalid argument(s). Valid argument(s) are [:id, :team_id, :user_id]"
|
34
|
+
)
|
35
|
+
end
|
36
|
+
|
37
|
+
it "handles executing an action via commands" do
|
38
|
+
ms = TeamSnap::Member.disable_member(:member_id => 1)
|
39
|
+
|
40
|
+
expect(ms).to_not be_empty
|
41
|
+
expect(ms[0].id).to eq(1)
|
42
|
+
end
|
43
|
+
|
44
|
+
it "raises and exception when a command is invalid" do
|
45
|
+
expect {
|
46
|
+
TeamSnap::Member.disable_member(:foo => :bar)
|
47
|
+
}.to raise_error(
|
48
|
+
ArgumentError,
|
49
|
+
"Invalid argument(s). Valid argument(s) are [:member_id]"
|
50
|
+
)
|
51
|
+
end
|
52
|
+
|
53
|
+
it "can handle errors generated by command" do
|
54
|
+
expect {
|
55
|
+
TeamSnap::Member.disable_member
|
56
|
+
}.to raise_error(
|
57
|
+
TeamSnap::Error,
|
58
|
+
"You must provide the member_id."
|
59
|
+
)
|
60
|
+
end
|
61
|
+
|
62
|
+
it "adds .find if .search is available" do
|
63
|
+
t = TeamSnap::Team.find(1)
|
64
|
+
|
65
|
+
expect(t.id).to eq(1)
|
66
|
+
end
|
67
|
+
|
68
|
+
it "raises an exception if .find returns nothing" do
|
69
|
+
expect {
|
70
|
+
TeamSnap::Team.find(0)
|
71
|
+
}.to raise_error(
|
72
|
+
TeamSnap::NotFound,
|
73
|
+
"Could not find a TeamSnap::Team with an id of '0'."
|
74
|
+
)
|
75
|
+
end
|
76
|
+
|
77
|
+
it "can follow singular links" do
|
78
|
+
m = TeamSnap::Member.find(1)
|
79
|
+
t = m.team
|
80
|
+
|
81
|
+
expect(t.id).to eq(1)
|
82
|
+
end
|
83
|
+
|
84
|
+
it "can handle links with no data" do
|
85
|
+
m = TeamSnap::Member.find(1)
|
86
|
+
as = m.assignments
|
87
|
+
|
88
|
+
expect(as).to be_empty
|
89
|
+
end
|
90
|
+
|
91
|
+
it "can follow plural links" do
|
92
|
+
t = TeamSnap::Team.find(1)
|
93
|
+
ms = t.members
|
94
|
+
|
95
|
+
expect(ms.size).to eq(10)
|
96
|
+
end
|
97
|
+
|
98
|
+
it "can use bulk load" do
|
99
|
+
cs = TeamSnap.bulk_load(:team_id => 1, :types => "team,member")
|
100
|
+
|
101
|
+
expect(cs).to_not be_empty
|
102
|
+
expect(cs.size).to eq(11)
|
103
|
+
expect(cs[0]).to be_a(TeamSnap::Team)
|
104
|
+
expect(cs[0].id).to eq(1)
|
105
|
+
cs[1..10].each_with_index do |c, idx|
|
106
|
+
expect(c).to be_a(TeamSnap::Member)
|
107
|
+
expect(c.id).to eq(idx+1)
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
it "can handle an empty bulk load" do
|
112
|
+
cs = TeamSnap.bulk_load(:team_id => 0, :types => "team,member")
|
113
|
+
|
114
|
+
expect(cs).to be_empty
|
115
|
+
end
|
116
|
+
|
117
|
+
it "can handle an error with bulk load" do
|
118
|
+
expect {
|
119
|
+
TeamSnap.bulk_load
|
120
|
+
}.to raise_error(
|
121
|
+
TeamSnap::Error,
|
122
|
+
"You must include a team_id parameter"
|
123
|
+
)
|
124
|
+
end
|
125
|
+
end
|
data/teamsnap_rb.gemspec
CHANGED
@@ -1,30 +1,32 @@
|
|
1
1
|
# coding: utf-8
|
2
|
-
lib = File.expand_path(
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require
|
4
|
+
require "teamsnap/version"
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "teamsnap_rb"
|
8
|
-
spec.version =
|
9
|
-
spec.authors = ["
|
8
|
+
spec.version = TeamSnap::VERSION
|
9
|
+
spec.authors = ["Shane Emmons", "Kyle Ries"]
|
10
10
|
spec.email = ["api@teamsnap.com"]
|
11
|
-
spec.summary = %q{A gem interact with TeamSnap's API}
|
12
|
-
spec.description = %q{}
|
13
|
-
spec.homepage = "http://
|
11
|
+
spec.summary = %q{A gem to interact with TeamSnap's API}
|
12
|
+
spec.description = %q{A gem to interact with TeamSnap's API}
|
13
|
+
spec.homepage = "http://developer.teamsnap.com/"
|
14
14
|
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version =
|
15
|
+
spec.required_ruby_version = ">= 1.9.3"
|
16
16
|
|
17
17
|
spec.files = `git ls-files`.split($/)
|
18
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
|
-
spec.test_files = spec.files.grep(%r{^
|
19
|
+
spec.test_files = spec.files.grep(%r{^spec/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_development_dependency "bundler", "~> 1.5"
|
23
22
|
spec.add_development_dependency "rake"
|
24
|
-
spec.add_development_dependency "
|
25
|
-
spec.add_development_dependency "
|
26
|
-
spec.add_development_dependency "vcr"
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
24
|
+
spec.add_development_dependency "rspec", "~> 3.2.0"
|
25
|
+
spec.add_development_dependency "vcr", "~> 2.9.3"
|
27
26
|
|
28
|
-
spec.add_dependency "faraday",
|
29
|
-
spec.add_dependency "
|
27
|
+
spec.add_dependency "faraday", "~> 0.9.1"
|
28
|
+
spec.add_dependency "typhoeus", "~> 0.7.1"
|
29
|
+
spec.add_dependency "oj", "~> 2.11.4"
|
30
|
+
spec.add_dependency "inflecto", "~> 0.0.2"
|
31
|
+
spec.add_dependency "virtus", "~> 1.0.4"
|
30
32
|
end
|
metadata
CHANGED
@@ -1,114 +1,143 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamsnap_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 1.0.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Shane Emmons
|
8
|
+
- Kyle Ries
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2015-
|
12
|
+
date: 2015-02-16 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ">="
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
21
|
+
type: :development
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '0'
|
13
28
|
- !ruby/object:Gem::Dependency
|
14
29
|
name: bundler
|
15
30
|
requirement: !ruby/object:Gem::Requirement
|
16
31
|
requirements:
|
17
32
|
- - "~>"
|
18
33
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
34
|
+
version: '1.7'
|
20
35
|
type: :development
|
21
36
|
prerelease: false
|
22
37
|
version_requirements: !ruby/object:Gem::Requirement
|
23
38
|
requirements:
|
24
39
|
- - "~>"
|
25
40
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
41
|
+
version: '1.7'
|
27
42
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
43
|
+
name: rspec
|
29
44
|
requirement: !ruby/object:Gem::Requirement
|
30
45
|
requirements:
|
31
|
-
- - "
|
46
|
+
- - "~>"
|
32
47
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
48
|
+
version: 3.2.0
|
34
49
|
type: :development
|
35
50
|
prerelease: false
|
36
51
|
version_requirements: !ruby/object:Gem::Requirement
|
37
52
|
requirements:
|
38
|
-
- - "
|
53
|
+
- - "~>"
|
39
54
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
55
|
+
version: 3.2.0
|
41
56
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
57
|
+
name: vcr
|
43
58
|
requirement: !ruby/object:Gem::Requirement
|
44
59
|
requirements:
|
45
|
-
- - "
|
60
|
+
- - "~>"
|
46
61
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
62
|
+
version: 2.9.3
|
48
63
|
type: :development
|
49
64
|
prerelease: false
|
50
65
|
version_requirements: !ruby/object:Gem::Requirement
|
51
66
|
requirements:
|
52
|
-
- - "
|
67
|
+
- - "~>"
|
53
68
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
69
|
+
version: 2.9.3
|
55
70
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
71
|
+
name: faraday
|
57
72
|
requirement: !ruby/object:Gem::Requirement
|
58
73
|
requirements:
|
59
|
-
- - "
|
74
|
+
- - "~>"
|
60
75
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
62
|
-
type: :
|
76
|
+
version: 0.9.1
|
77
|
+
type: :runtime
|
63
78
|
prerelease: false
|
64
79
|
version_requirements: !ruby/object:Gem::Requirement
|
65
80
|
requirements:
|
66
|
-
- - "
|
81
|
+
- - "~>"
|
67
82
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
83
|
+
version: 0.9.1
|
69
84
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
85
|
+
name: typhoeus
|
71
86
|
requirement: !ruby/object:Gem::Requirement
|
72
87
|
requirements:
|
73
|
-
- - "
|
88
|
+
- - "~>"
|
74
89
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
76
|
-
type: :
|
90
|
+
version: 0.7.1
|
91
|
+
type: :runtime
|
77
92
|
prerelease: false
|
78
93
|
version_requirements: !ruby/object:Gem::Requirement
|
79
94
|
requirements:
|
80
|
-
- - "
|
95
|
+
- - "~>"
|
81
96
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
97
|
+
version: 0.7.1
|
83
98
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
99
|
+
name: oj
|
85
100
|
requirement: !ruby/object:Gem::Requirement
|
86
101
|
requirements:
|
87
102
|
- - "~>"
|
88
103
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
104
|
+
version: 2.11.4
|
90
105
|
type: :runtime
|
91
106
|
prerelease: false
|
92
107
|
version_requirements: !ruby/object:Gem::Requirement
|
93
108
|
requirements:
|
94
109
|
- - "~>"
|
95
110
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
111
|
+
version: 2.11.4
|
97
112
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
113
|
+
name: inflecto
|
99
114
|
requirement: !ruby/object:Gem::Requirement
|
100
115
|
requirements:
|
101
|
-
- - "
|
116
|
+
- - "~>"
|
102
117
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
118
|
+
version: 0.0.2
|
104
119
|
type: :runtime
|
105
120
|
prerelease: false
|
106
121
|
version_requirements: !ruby/object:Gem::Requirement
|
107
122
|
requirements:
|
108
|
-
- - "
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 0.0.2
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: virtus
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - "~>"
|
109
131
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
111
|
-
|
132
|
+
version: 1.0.4
|
133
|
+
type: :runtime
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: 1.0.4
|
140
|
+
description: A gem to interact with TeamSnap's API
|
112
141
|
email:
|
113
142
|
- api@teamsnap.com
|
114
143
|
executables: []
|
@@ -116,43 +145,30 @@ extensions: []
|
|
116
145
|
extra_rdoc_files: []
|
117
146
|
files:
|
118
147
|
- ".gitignore"
|
148
|
+
- ".travis.yml"
|
119
149
|
- Gemfile
|
120
150
|
- LICENSE
|
121
151
|
- README.md
|
122
152
|
- Rakefile
|
123
|
-
- lib/
|
124
|
-
- lib/
|
125
|
-
-
|
126
|
-
-
|
127
|
-
-
|
128
|
-
-
|
129
|
-
-
|
130
|
-
-
|
131
|
-
-
|
132
|
-
-
|
133
|
-
-
|
134
|
-
-
|
135
|
-
-
|
136
|
-
-
|
137
|
-
-
|
138
|
-
- lib/teamsnap_rb/version.rb
|
139
|
-
- spec/client_spec.rb
|
140
|
-
- spec/collection_spec.rb
|
141
|
-
- spec/command_spec.rb
|
142
|
-
- spec/commands_spec.rb
|
143
|
-
- spec/config_spec.rb
|
144
|
-
- spec/fixtures/cassettes/production_root.yml
|
145
|
-
- spec/fixtures/cassettes/root.yml
|
146
|
-
- spec/fixtures/cassettes/team.yml
|
147
|
-
- spec/fixtures/cassettes/teams.yml
|
148
|
-
- spec/item_spec.rb
|
149
|
-
- spec/link_spec.rb
|
150
|
-
- spec/links_proxy_spec.rb
|
151
|
-
- spec/queries_proxy_spec.rb
|
153
|
+
- lib/teamsnap.rb
|
154
|
+
- lib/teamsnap/version.rb
|
155
|
+
- spec/cassettes/apiv3-init.yml
|
156
|
+
- spec/cassettes/teamsnap_rb/adds_find_if_search_is_available.yml
|
157
|
+
- spec/cassettes/teamsnap_rb/can_follow_plural_links.yml
|
158
|
+
- spec/cassettes/teamsnap_rb/can_follow_singular_links.yml
|
159
|
+
- spec/cassettes/teamsnap_rb/can_handle_an_empty_bulk_load.yml
|
160
|
+
- spec/cassettes/teamsnap_rb/can_handle_an_error_with_bulk_load.yml
|
161
|
+
- spec/cassettes/teamsnap_rb/can_handle_errors_generated_by_command.yml
|
162
|
+
- spec/cassettes/teamsnap_rb/can_handle_links_with_no_data.yml
|
163
|
+
- spec/cassettes/teamsnap_rb/can_use_bulk_load.yml
|
164
|
+
- spec/cassettes/teamsnap_rb/handles_executing_an_action_via_commands.yml
|
165
|
+
- spec/cassettes/teamsnap_rb/handles_fetching_data_via_queries.yml
|
166
|
+
- spec/cassettes/teamsnap_rb/handles_queries_with_no_data.yml
|
167
|
+
- spec/cassettes/teamsnap_rb/raises_an_exception_if_find_returns_nothing.yml
|
152
168
|
- spec/spec_helper.rb
|
153
|
-
- spec/
|
169
|
+
- spec/teamsnap_spec.rb
|
154
170
|
- teamsnap_rb.gemspec
|
155
|
-
homepage: http://
|
171
|
+
homepage: http://developer.teamsnap.com/
|
156
172
|
licenses:
|
157
173
|
- MIT
|
158
174
|
metadata: {}
|
@@ -167,28 +183,28 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
167
183
|
version: 1.9.3
|
168
184
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
185
|
requirements:
|
170
|
-
- - "
|
186
|
+
- - ">"
|
171
187
|
- !ruby/object:Gem::Version
|
172
|
-
version:
|
188
|
+
version: 1.3.1
|
173
189
|
requirements: []
|
174
190
|
rubyforge_project:
|
175
191
|
rubygems_version: 2.2.2
|
176
192
|
signing_key:
|
177
193
|
specification_version: 4
|
178
|
-
summary: A gem interact with TeamSnap's API
|
194
|
+
summary: A gem to interact with TeamSnap's API
|
179
195
|
test_files:
|
180
|
-
- spec/
|
181
|
-
- spec/
|
182
|
-
- spec/
|
183
|
-
- spec/
|
184
|
-
- spec/
|
185
|
-
- spec/
|
186
|
-
- spec/
|
187
|
-
- spec/
|
188
|
-
- spec/
|
189
|
-
- spec/
|
190
|
-
- spec/
|
191
|
-
- spec/
|
192
|
-
- spec/
|
196
|
+
- spec/cassettes/apiv3-init.yml
|
197
|
+
- spec/cassettes/teamsnap_rb/adds_find_if_search_is_available.yml
|
198
|
+
- spec/cassettes/teamsnap_rb/can_follow_plural_links.yml
|
199
|
+
- spec/cassettes/teamsnap_rb/can_follow_singular_links.yml
|
200
|
+
- spec/cassettes/teamsnap_rb/can_handle_an_empty_bulk_load.yml
|
201
|
+
- spec/cassettes/teamsnap_rb/can_handle_an_error_with_bulk_load.yml
|
202
|
+
- spec/cassettes/teamsnap_rb/can_handle_errors_generated_by_command.yml
|
203
|
+
- spec/cassettes/teamsnap_rb/can_handle_links_with_no_data.yml
|
204
|
+
- spec/cassettes/teamsnap_rb/can_use_bulk_load.yml
|
205
|
+
- spec/cassettes/teamsnap_rb/handles_executing_an_action_via_commands.yml
|
206
|
+
- spec/cassettes/teamsnap_rb/handles_fetching_data_via_queries.yml
|
207
|
+
- spec/cassettes/teamsnap_rb/handles_queries_with_no_data.yml
|
208
|
+
- spec/cassettes/teamsnap_rb/raises_an_exception_if_find_returns_nothing.yml
|
193
209
|
- spec/spec_helper.rb
|
194
|
-
- spec/
|
210
|
+
- spec/teamsnap_spec.rb
|