ticketfly_plus 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ticketfly_plus/requestors.rb +19 -2
- data/lib/ticketfly_plus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52f062d5b05d7f8365730167462a2d721bd9a495
|
4
|
+
data.tar.gz: 42667ac83bce6a0db88499a0185f5d061983df20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c52be0a188663fcf8d4bf4367ed93caf58be2e8aae531a286322eb8d402e111fe588bd2cf23cf0b80ca29d764bd1ee7f127a937e37bba4677d2a7b098d058eb2
|
7
|
+
data.tar.gz: faa8869e48c2b5e68d42680c942bf1a5c3c4b16d74b7f44fe8e102fd5209bb0543d75c54744c3bc11b907c106de45207bd837b5c32e32f7499a0399ca313fed4
|
@@ -84,7 +84,6 @@ module TicketflyPlus
|
|
84
84
|
@ip = stringify('location=ip:', options[:ip])
|
85
85
|
@clientip = stringify('location=clientip', options[:clientip])
|
86
86
|
@distance = stringify('distance=', options[:distance])
|
87
|
-
|
88
87
|
end
|
89
88
|
|
90
89
|
def list
|
@@ -98,10 +97,22 @@ module TicketflyPlus
|
|
98
97
|
end
|
99
98
|
|
100
99
|
def featured
|
101
|
-
string = EVENTS_STRING + '/featured.json?' +
|
100
|
+
string = EVENTS_STRING + '/featured.json?' + get_params_list.join.to_s
|
102
101
|
request(string)
|
103
102
|
end
|
104
103
|
|
104
|
+
def all_upcoming
|
105
|
+
string = EVENTS_STRING + '/upcoming.json?' + get_params_list.join.to_s
|
106
|
+
req = request(string)
|
107
|
+
(2..req['totalPages']).count do |page_num|
|
108
|
+
puts page_num
|
109
|
+
update_page_number(page_num)
|
110
|
+
string = EVENTS_STRING + '/upcoming.json?' + get_params_list.join.to_s
|
111
|
+
req['events'] = req['events'] + request(string)['events']
|
112
|
+
end
|
113
|
+
req
|
114
|
+
end
|
115
|
+
|
105
116
|
def just_announced
|
106
117
|
string = EVENTS_STRING + '/justAnnounced.json?' + get_params_list.join.to_s
|
107
118
|
request(string)
|
@@ -116,6 +127,12 @@ module TicketflyPlus
|
|
116
127
|
string = EVENTS_STRING + '/onsale.json?' + get_params_list.join.to_s
|
117
128
|
request(string)
|
118
129
|
end
|
130
|
+
|
131
|
+
private
|
132
|
+
|
133
|
+
def update_page_number(num)
|
134
|
+
@pageNum = stringify("pageNum=", num)
|
135
|
+
end
|
119
136
|
end
|
120
137
|
|
121
138
|
class Event < Requestors::Base
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticketfly_plus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Nathaniel Miller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|