tunefish_client 0.1.0
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 +7 -0
- data/.gitignore +22 -0
- data/Gemfile +3 -0
- data/LICENSE.txt +22 -0
- data/README.md +47 -0
- data/Rakefile +8 -0
- data/lib/tunefish_client.rb +4 -0
- data/lib/tunefish_client/activity.rb +9 -0
- data/lib/tunefish_client/client.rb +53 -0
- data/lib/tunefish_client/user.rb +10 -0
- data/lib/tunefish_client/version.rb +3 -0
- data/test/fixtures/vcr_cassettes/activities.yml +48 -0
- data/test/fixtures/vcr_cassettes/user.yml +48 -0
- data/test/fixtures/vcr_cassettes/user_activities.yml +48 -0
- data/test/fixtures/vcr_cassettes/users.yml +49 -0
- data/test/test_helper.rb +10 -0
- data/test/tunefish_test.rb +54 -0
- data/tunefish_client.gemspec +28 -0
- metadata +166 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 04c2c671d23cc9e68be66d4d4873f041ed447387
|
4
|
+
data.tar.gz: e54530eae5f2d5745e2e97d959c5b860a877ed37
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 73fd84841008d05cda427b989437d2e45613b91701c30c2cae12e2edcb68d1606c007877d7e7da823768c0b75de950647fae01c32e96aa4ff6718d1b1ed3a865
|
7
|
+
data.tar.gz: 743718cf19a23d1204eb158fc8930c7e51660998cb2a3410010e8616c3b822b683507919c98cbce12c3ebaa38041dcf67cfc689de413ff4471872be6ba978819
|
data/.gitignore
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
9
|
+
coverage
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
pkg
|
13
|
+
rdoc
|
14
|
+
spec/reports
|
15
|
+
test/tmp
|
16
|
+
test/version_tmp
|
17
|
+
tmp
|
18
|
+
*.bundle
|
19
|
+
*.so
|
20
|
+
*.o
|
21
|
+
*.a
|
22
|
+
mkmf.log
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Will Faurot
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# Tunefish Client
|
2
|
+
|
3
|
+
A client for the [Tunefish](https://github.com/tyrbo/tunefish) RESTful API. Tunefish is a music aggregation service that lets users link accounts from services like Soundcloud and Youtube, and populates an activity feed with relevant new music. "Activities" are either youtube videos, soundcloud tracks, or tweets with the hashtag "#tf". The Tunefish API currently supports users and activities. You can find:
|
4
|
+
|
5
|
+
* All activities
|
6
|
+
* Activities for a given user
|
7
|
+
* All users
|
8
|
+
* Information for a specific user
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add it to your Gemfile:
|
13
|
+
|
14
|
+
`gem 'tunefish'`
|
15
|
+
|
16
|
+
Bundle:
|
17
|
+
|
18
|
+
`$ bundle`
|
19
|
+
|
20
|
+
Or install it yourself as:
|
21
|
+
|
22
|
+
`$ gem install tunefish`
|
23
|
+
|
24
|
+
## Usage
|
25
|
+
|
26
|
+
Instantiate a new client specifying the API version like so:
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
require 'tunefish_client'
|
30
|
+
|
31
|
+
client = TunefishClient::Client.new(version: "v1")
|
32
|
+
|
33
|
+
# retrieve a list of user objects
|
34
|
+
client.users
|
35
|
+
|
36
|
+
# retrieve a single user's information
|
37
|
+
user_id = 1
|
38
|
+
client.user(user_id)
|
39
|
+
|
40
|
+
# retrieve a list of activities
|
41
|
+
client.activities
|
42
|
+
|
43
|
+
# retrieve a list of activities for a given user
|
44
|
+
user_id = 1
|
45
|
+
client.user_activitites(user_id)
|
46
|
+
```
|
47
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'json'
|
3
|
+
require_relative 'user'
|
4
|
+
require_relative 'activity'
|
5
|
+
|
6
|
+
module TunefishClient
|
7
|
+
class Client
|
8
|
+
attr_reader :connection
|
9
|
+
|
10
|
+
def initialize(host: "http://tunefi.sh", version: "v1")
|
11
|
+
@connection = Faraday.new(url: host)
|
12
|
+
@version = version
|
13
|
+
end
|
14
|
+
|
15
|
+
def user(id)
|
16
|
+
response = connection.get("#{base_url}/users/#{id}")
|
17
|
+
data = parse_response_body(response.body)
|
18
|
+
User.new(data["user"])
|
19
|
+
end
|
20
|
+
|
21
|
+
def users
|
22
|
+
response = connection.get("#{base_url}/users")
|
23
|
+
data = parse_response_body(response.body)
|
24
|
+
data["users"].map { |user_data| User.new(user_data) }
|
25
|
+
end
|
26
|
+
|
27
|
+
def user_activities(id)
|
28
|
+
response = connection.get("#{base_url}/users/#{id}/activities")
|
29
|
+
data = parse_response_body(response.body)
|
30
|
+
build_activity_objects(data["activities"])
|
31
|
+
end
|
32
|
+
|
33
|
+
def activities
|
34
|
+
response = connection.get("#{base_url}/activities")
|
35
|
+
data = parse_response_body(response.body)
|
36
|
+
build_activity_objects(data["activities"])
|
37
|
+
end
|
38
|
+
|
39
|
+
private
|
40
|
+
|
41
|
+
def parse_response_body(body)
|
42
|
+
JSON.parse(body)
|
43
|
+
end
|
44
|
+
|
45
|
+
def base_url
|
46
|
+
"/api/#{@version}"
|
47
|
+
end
|
48
|
+
|
49
|
+
def build_activity_objects(activities)
|
50
|
+
activities.map { |activity_data| Activity.new(activity_data) }
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/v1/activities
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
X-Frame-Options:
|
22
|
+
- SAMEORIGIN
|
23
|
+
X-Xss-Protection:
|
24
|
+
- 1; mode=block
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
Access-Control-Request-Method:
|
30
|
+
- "*"
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- '"4d71ad78b0da2881b5b98be9d53bd686"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- e358e792-8cc1-4957-84b1-6ea48c4f558c
|
39
|
+
X-Runtime:
|
40
|
+
- '0.108539'
|
41
|
+
Transfer-Encoding:
|
42
|
+
- chunked
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"activities":[{"id":3,"url":"http://www.youtube.com/embed/XGSy3_Czz8k","user_id":2,"created_at":"2014-11-13T02:32:01.753Z","updated_at":"2014-11-13T02:32:01.753Z","provider":"youtube"},{"id":4,"url":"https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/143444724\u0026amp;auto_play=false\u0026amp;hide_related=false\u0026amp;show_comments=true\u0026amp;show_user=true\u0026amp;show_reposts=false\u0026amp;visual=true","user_id":2,"created_at":"2014-11-13T02:36:08.796Z","updated_at":"2014-11-13T02:36:08.796Z","provider":"soundcloud"},{"id":5,"url":null,"user_id":2,"created_at":"2014-11-13T02:39:52.541Z","updated_at":"2014-11-13T02:39:52.541Z","provider":"soundcloud"}]}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Thu, 13 Nov 2014 03:12:17 GMT
|
48
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/v1/users/2
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
X-Frame-Options:
|
22
|
+
- SAMEORIGIN
|
23
|
+
X-Xss-Protection:
|
24
|
+
- 1; mode=block
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
Access-Control-Request-Method:
|
30
|
+
- "*"
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- '"e0ebc772720f232807e86e359e33c2ed"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- 918738be-6656-4e7b-b309-5acc990dda62
|
39
|
+
X-Runtime:
|
40
|
+
- '0.764081'
|
41
|
+
Transfer-Encoding:
|
42
|
+
- chunked
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"user":{"id":2,"name":"John Doe","photo":null,"activity_ids":[3,4,5]},"activities":[{"id":3,"url":"http://www.youtube.com/embed/XGSy3_Czz8k","user_id":2,"created_at":"2014-11-13T02:32:01.753Z","updated_at":"2014-11-13T02:32:01.753Z","provider":"youtube"},{"id":4,"url":"https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/143444724\u0026amp;auto_play=false\u0026amp;hide_related=false\u0026amp;show_comments=true\u0026amp;show_user=true\u0026amp;show_reposts=false\u0026amp;visual=true","user_id":2,"created_at":"2014-11-13T02:36:08.796Z","updated_at":"2014-11-13T02:36:08.796Z","provider":"soundcloud"},{"id":5,"url":null,"user_id":2,"created_at":"2014-11-13T02:39:52.541Z","updated_at":"2014-11-13T02:39:52.541Z","provider":"soundcloud"}]}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Thu, 13 Nov 2014 02:47:44 GMT
|
48
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/v1/users/2/activities
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
X-Frame-Options:
|
22
|
+
- SAMEORIGIN
|
23
|
+
X-Xss-Protection:
|
24
|
+
- 1; mode=block
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
Access-Control-Request-Method:
|
30
|
+
- "*"
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- '"4d71ad78b0da2881b5b98be9d53bd686"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- 580f5f1f-988d-4ee8-8221-ebc0777d8497
|
39
|
+
X-Runtime:
|
40
|
+
- '0.162024'
|
41
|
+
Transfer-Encoding:
|
42
|
+
- chunked
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"activities":[{"id":3,"url":"http://www.youtube.com/embed/XGSy3_Czz8k","user_id":2,"created_at":"2014-11-13T02:32:01.753Z","updated_at":"2014-11-13T02:32:01.753Z","provider":"youtube"},{"id":4,"url":"https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/143444724\u0026amp;auto_play=false\u0026amp;hide_related=false\u0026amp;show_comments=true\u0026amp;show_user=true\u0026amp;show_reposts=false\u0026amp;visual=true","user_id":2,"created_at":"2014-11-13T02:36:08.796Z","updated_at":"2014-11-13T02:36:08.796Z","provider":"soundcloud"},{"id":5,"url":null,"user_id":2,"created_at":"2014-11-13T02:39:52.541Z","updated_at":"2014-11-13T02:39:52.541Z","provider":"soundcloud"}]}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Thu, 13 Nov 2014 03:02:12 GMT
|
48
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,49 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/v1/users
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.9.0
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
X-Frame-Options:
|
22
|
+
- SAMEORIGIN
|
23
|
+
X-Xss-Protection:
|
24
|
+
- 1; mode=block
|
25
|
+
X-Content-Type-Options:
|
26
|
+
- nosniff
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
Access-Control-Request-Method:
|
30
|
+
- "*"
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Etag:
|
34
|
+
- '"11197fca87aa2104bf3418f093792c83"'
|
35
|
+
Cache-Control:
|
36
|
+
- max-age=0, private, must-revalidate
|
37
|
+
X-Request-Id:
|
38
|
+
- c541d0d7-79a6-4262-8196-eecbbbc502be
|
39
|
+
X-Runtime:
|
40
|
+
- '0.100882'
|
41
|
+
Transfer-Encoding:
|
42
|
+
- chunked
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"users":[{"id":2,"name":"John Doe","photo":null,"activity_ids":[3,4,5]},{"id":3,"name":"Jane
|
46
|
+
Doe","photo":null,"activity_ids":[]},{"id":4,"name":"Jon Snow","photo":null,"activity_ids":[]}],"activities":[{"id":3,"url":"http://www.youtube.com/embed/XGSy3_Czz8k","user_id":2,"created_at":"2014-11-13T02:32:01.753Z","updated_at":"2014-11-13T02:32:01.753Z","provider":"youtube"},{"id":4,"url":"https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/143444724\u0026amp;auto_play=false\u0026amp;hide_related=false\u0026amp;show_comments=true\u0026amp;show_user=true\u0026amp;show_reposts=false\u0026amp;visual=true","user_id":2,"created_at":"2014-11-13T02:36:08.796Z","updated_at":"2014-11-13T02:36:08.796Z","provider":"soundcloud"},{"id":5,"url":null,"user_id":2,"created_at":"2014-11-13T02:39:52.541Z","updated_at":"2014-11-13T02:39:52.541Z","provider":"soundcloud"}]}'
|
47
|
+
http_version:
|
48
|
+
recorded_at: Thu, 13 Nov 2014 02:54:17 GMT
|
49
|
+
recorded_with: VCR 2.9.3
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
require './lib/tunefish_client/client'
|
2
|
+
require_relative 'test_helper'
|
3
|
+
|
4
|
+
class TunefishClientTest < Minitest::Test
|
5
|
+
def setup
|
6
|
+
@client = TunefishClient::Client.new(host: 'http://localhost:3000')
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_it_exists
|
10
|
+
assert TunefishClient::Client
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_it_finds_a_user
|
14
|
+
VCR.use_cassette('user') do
|
15
|
+
user = @client.user(2)
|
16
|
+
assert_equal "John Doe", user.name
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_it_finds_all_users
|
21
|
+
VCR.use_cassette('users') do
|
22
|
+
users = @client.users
|
23
|
+
assert_equal "John Doe", users.first.name
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_it_finds_activity_for_a_user
|
28
|
+
VCR.use_cassette('user_activities') do
|
29
|
+
activities = @client.user_activities(2)
|
30
|
+
assert_equal "youtube", activities.first.provider
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_it_finds_all_activity
|
35
|
+
VCR.use_cassette('activities') do
|
36
|
+
activities = @client.activities
|
37
|
+
assert_equal "youtube", activities.first.provider
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
class UserTest < Minitest::Test
|
42
|
+
def test_it_exists_and_has_attributes
|
43
|
+
user = User.new("name" => "John Doe", "photo" => "example.com/img", "id" => "1", "activity_ids" => ["1", "2"])
|
44
|
+
assert_equal "John Doe", user.name
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
class ActivityTest < Minitest::Test
|
49
|
+
def test_it_exists_and_has_attributes
|
50
|
+
activity = Activity.new("id" => "1", "url" => "http://aurl.com", "provider" => "youtube")
|
51
|
+
assert_equal "youtube", activity.provider
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'tunefish_client/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "tunefish_client"
|
8
|
+
spec.version = TunefishClient::VERSION
|
9
|
+
spec.authors = ["Will Faurot"]
|
10
|
+
spec.email = ["wfaurot@gmail.com"]
|
11
|
+
spec.summary = "Client for the Tunefish RESTful API."
|
12
|
+
spec.description = ""
|
13
|
+
spec.homepage = "http://tunefi.sh"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.6"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "minitest"
|
24
|
+
spec.add_development_dependency "webmock"
|
25
|
+
spec.add_development_dependency "vcr"
|
26
|
+
spec.add_dependency "faraday"
|
27
|
+
spec.add_dependency "json"
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,166 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tunefish_client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Will Faurot
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: webmock
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: vcr
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: faraday
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: json
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: ''
|
112
|
+
email:
|
113
|
+
- wfaurot@gmail.com
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- Gemfile
|
120
|
+
- LICENSE.txt
|
121
|
+
- README.md
|
122
|
+
- Rakefile
|
123
|
+
- lib/tunefish_client.rb
|
124
|
+
- lib/tunefish_client/activity.rb
|
125
|
+
- lib/tunefish_client/client.rb
|
126
|
+
- lib/tunefish_client/user.rb
|
127
|
+
- lib/tunefish_client/version.rb
|
128
|
+
- test/fixtures/vcr_cassettes/activities.yml
|
129
|
+
- test/fixtures/vcr_cassettes/user.yml
|
130
|
+
- test/fixtures/vcr_cassettes/user_activities.yml
|
131
|
+
- test/fixtures/vcr_cassettes/users.yml
|
132
|
+
- test/test_helper.rb
|
133
|
+
- test/tunefish_test.rb
|
134
|
+
- tunefish_client.gemspec
|
135
|
+
homepage: http://tunefi.sh
|
136
|
+
licenses:
|
137
|
+
- MIT
|
138
|
+
metadata: {}
|
139
|
+
post_install_message:
|
140
|
+
rdoc_options: []
|
141
|
+
require_paths:
|
142
|
+
- lib
|
143
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
requirements: []
|
154
|
+
rubyforge_project:
|
155
|
+
rubygems_version: 2.2.2
|
156
|
+
signing_key:
|
157
|
+
specification_version: 4
|
158
|
+
summary: Client for the Tunefish RESTful API.
|
159
|
+
test_files:
|
160
|
+
- test/fixtures/vcr_cassettes/activities.yml
|
161
|
+
- test/fixtures/vcr_cassettes/user.yml
|
162
|
+
- test/fixtures/vcr_cassettes/user_activities.yml
|
163
|
+
- test/fixtures/vcr_cassettes/users.yml
|
164
|
+
- test/test_helper.rb
|
165
|
+
- test/tunefish_test.rb
|
166
|
+
has_rdoc:
|