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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d347acbb0fa6ed84ad0d56cf83cab5af5e16cec7
4
- data.tar.gz: 6b5dcf947c5e0467cd8653e86c0f0b12d5011e66
3
+ metadata.gz: 32f22a8b893cd6fce8e9ae0dc224d6f2678d8ff5
4
+ data.tar.gz: 8a716b162776d24ccb1bca9554266d828584be50
5
5
  SHA512:
6
- metadata.gz: 82aaa7def7817b654c7672426ca465c04f848076d64034c7dfda77b5f6a0c969e4bdb71f96217924c690b6fe7c4b9b1e7bbf9869b3b7fc6bcecff9ce854c37e3
7
- data.tar.gz: e20637db3e43e5eff60e3d03c5b775b5a051be2316610bcdf8df2dd5a8d80eb77e9bb4f06b2685961881c76d015f705dacc8df3a7f4d534a6e990cc1d10c9d9a
6
+ metadata.gz: cb4fec6ac524b7829a7ce02bba143f5fe585cc5b6273bfaf97f85c33876b3d41361eb04d2dea15e4154867611d74603bce1098e0ac09ef47952aea4d5617afaf
7
+ data.tar.gz: 43a9dd1d22eb2a323c4414a8e7af3b0f84c6e83750a3c04f91adf449615ef1d5a596e9c95740e83498a563ad142ac79e9ae594586b71b5d35e804c0e5453eb26
data/.travis.yml CHANGED
@@ -4,5 +4,8 @@ rvm:
4
4
  - 2.0.0
5
5
  - jruby-19mode
6
6
  - rbx-19mode
7
- - ruby-head
7
+ # - ruby-head
8
8
  - jruby-head
9
+ matrix:
10
+ allow_failures:
11
+ - rvm: ruby-head
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- songkickr (0.4.0)
4
+ songkickr (0.4.1)
5
5
  httparty (~> 0.8.3)
6
6
 
7
7
  GEM
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: As of v0.4.0 songkickr supports all of Songkick's APIs. Check the RDocs for the Songkickr::RemoteApi classes.
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, do not mess with Rakefile, version, or history.
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. Bonus points for topic branches.
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, and Dave Knapik for submitting code and pull requests.
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.
@@ -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
@@ -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"]
@@ -1,3 +1,3 @@
1
1
  module Songkickr
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -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
- @event = Songkickr::Venue.new(fixture_hash('venue_1276231.json')["resultsPage"]["results"]["venue"])
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", @event.display_name
11
- assert_equal 1276231, @event.id
12
- assert_equal 38.558191, @event.lat
13
- assert_equal -122.584747, @event.lng
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.0
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-08-10 00:00:00.000000000 Z
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.0.6
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.