songkick_ruby 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,35 @@
1
+ module Songkick
2
+ class Client
3
+ module User
4
+
5
+ # Find past events that a user attended
6
+ # For upcoming events use user_calendar method
7
+ # Important:
8
+ # Only public profiles are considered
9
+ #
10
+ # Example:
11
+ # sg = Songkick.new("myapikey")
12
+ # gigs = song.gigography("saleandro")
13
+ def gigography(username, page = 1)
14
+ get "users/#{username}/gigography.#{format}", page
15
+ end
16
+
17
+ # Get tracked locations for a user
18
+ # Example:
19
+ # sg = Songkick.new("myapikey")
20
+ # locations = sg.tracked_locations("saleandro")
21
+ def tracked_locations(username, page = 1)
22
+ get "users/#{username}/metro_areas/tracked.json", page
23
+ end
24
+
25
+ # Get tracked artists for a user
26
+ # Example:
27
+ # sg = Songkick.new("myapikey")
28
+ # artists = sg.tracked_artists("saleandro")
29
+ def tracked_artists(username, page = 1)
30
+ get "users/#{username}/artists/tracked.json", page
31
+ end
32
+
33
+ end
34
+ end
35
+ end
@@ -2,6 +2,7 @@ require "songkick/client/calendar.rb"
2
2
  require "songkick/client/event.rb"
3
3
  require "songkick/client/request.rb"
4
4
  require "songkick/client/search.rb"
5
+ require "songkick/client/user.rb"
5
6
 
6
7
  module Songkick
7
8
  class Client
@@ -34,6 +35,7 @@ module Songkick
34
35
  include Songkick::Client::Calendar
35
36
  include Songkick::Client::Event
36
37
  include Songkick::Client::Search
38
+ include Songkick::Client::User
37
39
  include Songkick::Client::Request
38
40
 
39
41
  end
@@ -1,3 +1,3 @@
1
1
  module Songkick
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.3'
3
3
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "songkick_ruby"
3
- s.version = "1.1.2"
3
+ s.version = "1.1.3"
4
4
  s.author = "Gregory Marcilhacy"
5
5
  s.email = "g.marcilhacy@gmail.com"
6
6
  s.homepage = "http://github.com/gregorym/songkick_ruby"
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
19
19
  lib/songkick/client/calendar.rb
20
20
  lib/songkick/client/event.rb
21
21
  lib/songkick/client/search.rb
22
+ lib/songkick/client/user.rb
22
23
  lib/songkick/client/request.rb
23
24
  )
24
25
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: songkick_ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 2
10
- version: 1.1.2
9
+ - 3
10
+ version: 1.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gregory Marcilhacy
@@ -51,6 +51,7 @@ files:
51
51
  - lib/songkick/client/calendar.rb
52
52
  - lib/songkick/client/event.rb
53
53
  - lib/songkick/client/search.rb
54
+ - lib/songkick/client/user.rb
54
55
  - lib/songkick/client/request.rb
55
56
  has_rdoc: true
56
57
  homepage: http://github.com/gregorym/songkick_ruby