ticketfly_plus 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ea445457d503aec27cf2870793d60f32754ec80
4
- data.tar.gz: 226d703bbd1704e51b22bb69eff2bf28d50cec32
3
+ metadata.gz: 52f062d5b05d7f8365730167462a2d721bd9a495
4
+ data.tar.gz: 42667ac83bce6a0db88499a0185f5d061983df20
5
5
  SHA512:
6
- metadata.gz: ca3b2c1f2120722385fc23521d02506aac6866dc272bf77298bb8a895f544a30106c3395e3d888852e7e3afb1c9d6dd3110500669098494d34f71aac1f95d4d2
7
- data.tar.gz: d10633af6a8dc618df4e1d0e882669527b7dac7b7cbf01b493f8f9b33c5795982cfebc828db0739f02dcec87d29b72c95e59f6a9773ddc7e6f77b5786c4fe041
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?' + get_params_lists.join.to_s
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
@@ -1,3 +1,3 @@
1
1
  module TicketflyPlus
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-07-11 00:00:00.000000000 Z
11
+ date: 2014-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler