ticketfly 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.rdoc +9 -6
  2. data/VERSION +1 -1
  3. data/lib/ticketfly.rb +4 -0
  4. data/ticketfly.gemspec +1 -1
  5. metadata +12 -12
@@ -2,15 +2,19 @@
2
2
 
3
3
  A ruby implementation of the Ticketfly event and venue API.
4
4
 
5
- == usage
5
+ == simple consumption
6
+ gem 'ticketfly'
6
7
 
7
- * simple consumption
8
8
  venues = Ticketfly::Venues.get_all
9
- events = Ticketfly::Events.get_by_venue_id(venues.third.id)
10
- artist = events.first.headliners.first
11
9
 
12
- * event searching
10
+ venue_events = venues.third.events
11
+
12
+ next_headliner = venue_events.first.headliners.first.name
13
+
14
+ == event searching
15
+
13
16
  events = Ticketfly::Events.search('SEARCH_STRING') <- artist name or city string
17
+
14
18
  venue = events.first.venue
15
19
 
16
20
  == coming soon
@@ -22,4 +26,3 @@ venue = events.first.venue
22
26
 
23
27
  Copyright (c) 2012 Charley Hine. See LICENSE.txt for
24
28
  further details.
25
-
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
@@ -23,6 +23,10 @@ module Ticketfly
23
23
  venue
24
24
  end
25
25
 
26
+ def events
27
+ Events.get_by_venue_id(self.id)
28
+ end
29
+
26
30
  def next_event
27
31
  Events.get_next_by_venue_id(self.id)
28
32
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "ticketfly"
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Charley Hine"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketfly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
- requirement: &70227900784740 !ruby/object:Gem::Requirement
16
+ requirement: &70252391811640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70227900784740
24
+ version_requirements: *70252391811640
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: shoulda
27
- requirement: &70227900784020 !ruby/object:Gem::Requirement
27
+ requirement: &70252391810960 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70227900784020
35
+ version_requirements: *70252391810960
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rdoc
38
- requirement: &70227900783300 !ruby/object:Gem::Requirement
38
+ requirement: &70252391810240 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.12'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70227900783300
46
+ version_requirements: *70252391810240
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &70227900781940 !ruby/object:Gem::Requirement
49
+ requirement: &70252391808880 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70227900781940
57
+ version_requirements: *70252391808880
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &70227900793740 !ruby/object:Gem::Requirement
60
+ requirement: &70252391820680 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 1.8.3
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70227900793740
68
+ version_requirements: *70252391820680
69
69
  description: A ruby implementation of the Ticketfly event and venue API.
70
70
  email: charles.hine@gmail.com
71
71
  executables: []
@@ -100,7 +100,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  segments:
102
102
  - 0
103
- hash: -2173984146617654640
103
+ hash: 540818808287328507
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements: