seat_geek 0.4.0 → 0.4.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: 1f2e2a0eff442fb4e1cdd7bf9bca93e0f6372bc1
4
- data.tar.gz: de2a4cd0093292f2c056255336dd674e3163bed0
3
+ metadata.gz: fd5d921349d85661378ff27d9ecb023856482865
4
+ data.tar.gz: f0ea333ebcfc479f84ef8cc3df29b0ae60d0a404
5
5
  SHA512:
6
- metadata.gz: 04a81267b2fdf4c66a37dcf14c7cd23fa307b780cb64ea44eae952933aeadc40bc337a393e6fe1e4d18981449f00913dc067f056668d867df066235658ee8b84
7
- data.tar.gz: edae3c7a21842412f2cce83fdfbb2d8008f014299187aa434d0e8a2245882654e8d4cc4f2aa36a4448fa576d300969e44966a5fd6ec3b056124eabee2071b510
6
+ metadata.gz: 3b50f96f6adede224ce97c039b84bae72f5a6f0d768fe417dd0d91192376464da8fa41830ff630259d51b87d6a1db645384a91fcb49421c1b6db6a3a07cf6dbb
7
+ data.tar.gz: e76ec66f3a866c2862fb987cc5f5a7a08a5e035cbd6b7d31b6e44fc9c8b304b24e5349e664bd6045ae45ec9393c51d4561681ba61401fa62a4b43f256d86e231
data/README.md CHANGED
@@ -21,11 +21,34 @@ Or install it yourself as:
21
21
  ## Usage
22
22
 
23
23
 
24
- Taxonomies
24
+ Taxonomy
25
25
 
26
26
  ```ruby
27
- SeatGeek.get_taxonomies
27
+ taxonomy = SeatGeek::Taxonomy.new()
28
+
29
+ taxonomy.all
28
30
  # => GET http://api.seatgeek.com/2/taxonomies
31
+
32
+ taxonomy.professional_sports
33
+ # 7 professional sports
34
+ # mlb
35
+ # nba
36
+ # nfl
37
+ # nhl
38
+ # mls
39
+ # pga
40
+ # mma
41
+
42
+
43
+ taxonomy.concerts
44
+ # 7 conerts related events
45
+ # classical
46
+ # theater
47
+ # concert
48
+ # music_festival is index
49
+ # comedy
50
+ # dance_performance_tour
51
+ # broadway_tickets_national
29
52
  ```
30
53
  Events (accepts five parameters or none)
31
54
  ```ruby
@@ -39,18 +62,14 @@ SeatGeek.get_events(month_of_the_year: '2016-03',
39
62
  seat_geek_partner_id:)
40
63
  ```
41
64
 
42
- ## Development
43
-
44
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
45
-
46
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
47
-
48
65
  ## Contributing
49
66
 
50
- Bug reports and pull requests are welcome on GitHub at https://github.com/jmoon/seat_geek. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
67
+ Bug reports and pull requests are welcome on GitHub at https://github.com/jmoon/seat_geek.
51
68
 
52
69
  please write tests with each pull request
53
70
 
71
+ If you're lookig for features to work on, please check out https://github.com/jmoon90/seat_geek/issues
72
+
54
73
  ## License
55
74
 
56
75
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -26,11 +26,27 @@ module SeatGeek
26
26
  end
27
27
 
28
28
  def concerts
29
- #TODO finish code
29
+ concerts = []
30
+ conert_ids = [2,6,9,15,19,33,37]
31
+ result = SeatGeek::Taxonomy.new.all
32
+
33
+ conert_ids.each do |x|
34
+ concerts << result[x]
35
+ end
36
+
37
+ concerts
30
38
  end
31
39
 
32
- def minor_sports
33
- #TODO finish code
40
+ def minor_league_sports
41
+ minor = []
42
+ minorSports = [2,6,9,15,19,33,37]
43
+ result = SeatGeek::Taxonomy.new.all
44
+
45
+ minorSports.each do |x|
46
+ minor << result[x]
47
+ end
48
+
49
+ minor
34
50
  end
35
51
 
36
52
  private
@@ -1,3 +1,3 @@
1
1
  module SeatGeek
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seat_geek
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
  - John Moon