echelon 1.0.6 → 1.1.0

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: 676b7d99575027b1fa5e18a06117e384e58ad258
4
- data.tar.gz: dd9fe87404e5b31f57b3f3724048bcafe0225e9f
3
+ metadata.gz: 6db8ffc614e877aaa80a190647cd3d118aaf1e0b
4
+ data.tar.gz: a014dc3dc316ac322f5bff057745989c9bc4e56d
5
5
  SHA512:
6
- metadata.gz: 2627b88a6b044f5f97f75960ae5513675f4cd0bde69350a15cec9d55d4c8a49ad6060f15fbdd1068a49216bda2120fbc99a725414bd98458feb81fbca8ad170e
7
- data.tar.gz: c1eed9cadec1579bedc32bf21d36350e88beb2102c119821546927263c7286982f0db1239942146d6c9435ee9a467900438da286cb96d4c13fd6ea1246791b6e
6
+ metadata.gz: e609d13237b27a8c65ae7240b616767e8b8c0b97b04682bdbeedb182369c7d7713571622ea8bbd98e3086d29676498e73c457140dbb8e9ac4448ee1c422924ee
7
+ data.tar.gz: a9b16e3b8190184efbc42d3ab5ae09864a41ed4c73995399cf3a14014dc40515f679aade147a9238e7b44fe4a7849fe771b266013e1affebbd3f62b21641609f
@@ -1,3 +1,9 @@
1
+ === 1.1.0 2015-03-29
2
+
3
+ * Breaking change in the Walt Disney World data as 'actual' is no longer reported by their API, removed reference
4
+ * Fixed issue with Universal Orlando server rejecting all our auth requests once DST begins
5
+ * Added missing ride 'Ratatouille' to Disneyland Paris
6
+
1
7
  === 1.0.6 2015-01-17
2
8
 
3
9
  * Added active flag for UO/IoA
@@ -2,8 +2,6 @@
2
2
 
3
3
  * http://github.com/lloydpick/echelon
4
4
 
5
- {<img src="https://secure.travis-ci.org/lloydpick/echelon.png?branch=master" alt="Build Status" />}[http://travis-ci.org/lloydpick/echelon]
6
-
7
5
  == DESCRIPTION:
8
6
 
9
7
  RubyGem to give quick access to Theme Park queue times
@@ -11,12 +11,13 @@ Gem::Specification.new do |s|
11
11
  s.homepage = 'http://github.com/lloydpick/echelon'
12
12
  s.summary = 'RubyGem to give quick access to Theme Park queue times'
13
13
  s.description = 'RubyGem to give quick access to Theme Park queue times (Alton Towers, Disney World Animal Kingdom, Disney World Epcot, Disney World Hollywood Studios, Disney World Magic Kingdom, Disneyland, Disneyland California Adventure, Disneyland Paris, Seaworld San Antonio, Seaworld San Diego, Seaworld Orlando, Thorpe Park)'
14
+ s.license = 'MIT'
14
15
 
15
16
  s.required_rubygems_version = '>= 1.3.6'
16
17
  s.rubyforge_project = 'echelon'
17
18
 
18
- s.add_development_dependency 'bundler', '>= 1.0.0'
19
- s.add_development_dependency 'rspec', '>= 2.4.0'
19
+ s.add_development_dependency 'bundler', '~> 1.0'
20
+ s.add_development_dependency 'rspec', '~> 2.4'
20
21
 
21
22
  s.add_dependency 'json_pure', '1.8.1'
22
23
  s.add_dependency 'zip', '2.0.2'
@@ -72,17 +72,14 @@ module Echelon
72
72
  status = 0 if ride_status == 'Closed'
73
73
  status = -1 if ride_status == 'Down'
74
74
 
75
- queue_times = {
76
- actual: ride['waitTime']['actualWaitMinutes'].to_i,
77
- posted: ride['waitTime']['postedWaitMinutes'].to_i
78
- }
75
+ queue_time = ride['waitTime']['postedWaitMinutes'].to_i
79
76
 
80
77
  meta = {
81
78
  fastpass_available: ride['waitTime']['fastPass']['available'],
82
79
  single_rider: ride['waitTime']['singleRider']
83
80
  }
84
81
 
85
- return Ride.new(name: ride_list[ref], queue_time: queue_times, active: status, meta: meta)
82
+ return Ride.new(name: ride_list[ref], queue_time: queue_time, active: status, meta: meta)
86
83
  end
87
84
  end
88
85
  end
@@ -46,7 +46,8 @@ module Echelon
46
46
  'P2XA08' => 'Slinky Dog Zigzag Spin',
47
47
  'P2ZA00' => 'Armageddon : les Effets Spéciaux',
48
48
  'P2ZA01' => 'Rock\'n\'Roller Coaster starring Aerosmith',
49
- 'P2ZA02' => 'The Twilight Zone Tower of Terror'
49
+ 'P2ZA02' => 'The Twilight Zone Tower of Terror',
50
+ 'P2XA09' => 'Ratatouille : L\'Aventure Totalement Toquée de Rémy'
50
51
  }
51
52
  end
52
53
 
@@ -30,8 +30,8 @@ module Echelon
30
30
  http.use_ssl = true
31
31
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
32
32
 
33
- # date is always GMT, and actual GMT time, because buh?
34
- date = DateTime.now.strftime("%a, %d %b %Y %H:%M:%S GMT")
33
+ # time is UTC, but their server expects to be told it's GMT
34
+ date = Time.now.utc.strftime("%a, %d %b %Y %H:%M:%S GMT")
35
35
  digest = OpenSSL::HMAC.digest('sha256', SECRET, "#{KEY}\n#{date}\n")
36
36
  signature = Base64.encode64(digest).strip.gsub(/\=$/, "\u003d")
37
37
  params = { apikey: 'AndroidMobileApp', signature: signature }.to_json
@@ -1,3 +1,3 @@
1
1
  module Echelon
2
- VERSION = '1.0.6'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: echelon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lloyd Pick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-17 00:00:00.000000000 Z
11
+ date: 2015-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0
19
+ version: '1.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.0.0
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.4.0
33
+ version: '2.4'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.4.0
40
+ version: '2.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json_pure
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -121,7 +121,8 @@ files:
121
121
  - spec/seaworld_san_antonio_spec.rb
122
122
  - spec/thorpe_park_spec.rb
123
123
  homepage: http://github.com/lloydpick/echelon
124
- licenses: []
124
+ licenses:
125
+ - MIT
125
126
  metadata: {}
126
127
  post_install_message:
127
128
  rdoc_options: []