songkickr 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -1
- data/Gemfile.lock +1 -1
- data/README.rdoc +4 -4
- data/lib/songkickr/event.rb +2 -1
- data/lib/songkickr/venue.rb +1 -1
- data/lib/songkickr/version.rb +1 -1
- data/test/songkickr/test_venue.rb +6 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32f22a8b893cd6fce8e9ae0dc224d6f2678d8ff5
|
4
|
+
data.tar.gz: 8a716b162776d24ccb1bca9554266d828584be50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb4fec6ac524b7829a7ce02bba143f5fe585cc5b6273bfaf97f85c33876b3d41361eb04d2dea15e4154867611d74603bce1098e0ac09ef47952aea4d5617afaf
|
7
|
+
data.tar.gz: 43a9dd1d22eb2a323c4414a8e7af3b0f84c6e83750a3c04f91adf449615ef1d5a596e9c95740e83498a563ad142ac79e9ae594586b71b5d35e804c0e5453eb26
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
@@ -28,7 +28,7 @@ Get a users events by username:
|
|
28
28
|
Get a the setlists of a concert by event ID:
|
29
29
|
results = remote.concert_setlists(2680726)
|
30
30
|
|
31
|
-
More
|
31
|
+
*More*: As of v0.4.0 songkickr supports all of Songkick's APIs. Check the RDocs for the Songkickr::RemoteApi classes.
|
32
32
|
|
33
33
|
|
34
34
|
== Note on Patches/Pull Requests
|
@@ -37,9 +37,9 @@ More: As of v0.4.0 songkickr supports all of Songkick's APIs. Check the RDocs fo
|
|
37
37
|
* Make your feature addition or bug fix.
|
38
38
|
* Add tests for it. This is important so I don't break it in a
|
39
39
|
future version unintentionally.
|
40
|
-
* Commit
|
40
|
+
* Commit and please do not mess with version or history.
|
41
41
|
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
42
|
-
* Send me a pull request
|
42
|
+
* Send me a pull request against the *develop* branch.
|
43
43
|
|
44
44
|
== Copyright
|
45
45
|
|
@@ -47,7 +47,7 @@ Copyright (c) 2010-2013 Jared Mehle. See LICENSE for details.
|
|
47
47
|
|
48
48
|
== Contributors
|
49
49
|
|
50
|
-
Thanks to Andrew Chen, Akshay Dodeja, Tomasz Stachewicz,
|
50
|
+
Thanks to Andrew Chen, Akshay Dodeja, Tomasz Stachewicz, Dave Knapik, Matt Ruzicka, and Alex Beregszaszi for submitting code and pull requests.
|
51
51
|
|
52
52
|
A special thank you to Jon Nunemaker for httparty which is used extensively within this
|
53
53
|
gem and for the twitter gem as inspiration.
|
data/lib/songkickr/event.rb
CHANGED
@@ -37,7 +37,7 @@ module Songkickr
|
|
37
37
|
#
|
38
38
|
# http://www.songkick.com/developer/artist-search
|
39
39
|
class Event
|
40
|
-
attr_accessor :popularity, :type, :display_name, :location, :start, :uri, :id, :performances, :status, :venue, :tickets_uri
|
40
|
+
attr_accessor :popularity, :type, :display_name, :location, :start, :uri, :id, :performances, :status, :venue, :tickets_uri, :series
|
41
41
|
|
42
42
|
def initialize(event_hash)
|
43
43
|
@popularity = event_hash["popularity"].to_f
|
@@ -51,6 +51,7 @@ module Songkickr
|
|
51
51
|
@performances = parse_performance event_hash["performance"]
|
52
52
|
@id = event_hash["id"]
|
53
53
|
@tickets_uri = event_hash["ticketsUri"]
|
54
|
+
@series = event_hash["series"]["displayName"] if event_hash["series"] && event_hash["series"]["displayName"]
|
54
55
|
end
|
55
56
|
|
56
57
|
protected
|
data/lib/songkickr/venue.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Songkickr
|
2
2
|
class Venue
|
3
|
-
attr_accessor :capacity, :display_name, :description, :id, :lat, :lng, :phone, :street, :uri, :website, :zip
|
3
|
+
attr_accessor :capacity, :display_name, :description, :id, :lat, :lng, :metro_area, :phone, :street, :uri, :website, :zip
|
4
4
|
|
5
5
|
def initialize(venue_hash)
|
6
6
|
@capacity = venue_hash["capacity"]
|
data/lib/songkickr/version.rb
CHANGED
@@ -3,14 +3,15 @@ require 'helper'
|
|
3
3
|
class TestVenue < Test::Unit::TestCase
|
4
4
|
context "Given an Venue from fixture" do
|
5
5
|
setup do
|
6
|
-
@
|
6
|
+
@venue = Songkickr::Venue.new(fixture_hash('venue_1276231.json')["resultsPage"]["results"]["venue"])
|
7
7
|
end
|
8
8
|
|
9
9
|
should "properly load data from JSON" do
|
10
|
-
assert_equal "Branch House Amphitheater", @
|
11
|
-
assert_equal 1276231, @
|
12
|
-
assert_equal 38.558191, @
|
13
|
-
assert_equal -122.584747, @
|
10
|
+
assert_equal "Branch House Amphitheater", @venue.display_name
|
11
|
+
assert_equal 1276231, @venue.id
|
12
|
+
assert_equal 38.558191, @venue.lat
|
13
|
+
assert_equal -122.584747, @venue.lng
|
14
|
+
assert_not_nil @venue.metro_area
|
14
15
|
end
|
15
16
|
end
|
16
17
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: songkickr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jared Mehle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shoulda
|
@@ -254,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
254
254
|
version: '0'
|
255
255
|
requirements: []
|
256
256
|
rubyforge_project:
|
257
|
-
rubygems_version: 2.
|
257
|
+
rubygems_version: 2.1.9
|
258
258
|
signing_key:
|
259
259
|
specification_version: 4
|
260
260
|
summary: A Ruby wrapper around the Songkick API.
|