limores_hopstop 0.1.2 → 0.2.0

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.
Files changed (3) hide show
  1. data/lib/app_id.rb +6 -4
  2. data/lib/hopstop.rb +2 -2
  3. metadata +1 -1
data/lib/app_id.rb CHANGED
@@ -1,5 +1,7 @@
1
- module LimoresHopstop
2
- module Hopstop
3
- APP_ID = "bieilq6dov2muo8x"
1
+ module Limores
2
+ module Mashups
3
+ module Hopstop
4
+ APP_ID = "REPLACE WITH YOUR KEY"
5
+ end
4
6
  end
5
- end
7
+ end
data/lib/hopstop.rb CHANGED
@@ -47,7 +47,7 @@ module Limores
47
47
  private
48
48
 
49
49
  def self.fetch_cities
50
- url = "http://www.hopstop.com/ws/GetCities?licenseKey=#{LimoresHopstop::Hopstop::APP_ID}"
50
+ url = "http://www.hopstop.com/ws/GetCities?licenseKey=#{Limores::Mashups::Hopstop::APP_ID}"
51
51
 
52
52
  begin
53
53
  xml = open(URI.encode(url)).read
@@ -147,7 +147,7 @@ module Limores
147
147
  end
148
148
 
149
149
  def self.fetch_route(params={})
150
- url = "http://www.hopstop.com/ws/GetRoute?licenseKey=#{LimoresHopstop::Hopstop::APP_ID}"
150
+ url = "http://www.hopstop.com/ws/GetRoute?licenseKey=#{Limores::Mashups::Hopstop::APP_ID}"
151
151
  params.each do |param, value|
152
152
  url += "&#{param.to_s}=#{value}"
153
153
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: limores_hopstop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Milan Burmaja