limores_hopstop 0.1.1 → 0.1.2

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/hopstop.rb +5 -5
  2. data/spec/spec_helper.rb +1 -1
  3. metadata +1 -1
data/lib/hopstop.rb CHANGED
@@ -2,9 +2,9 @@ require 'open-uri'
2
2
  require 'rexml/document'
3
3
  require File.expand_path(File.dirname(__FILE__) + '/app_id')
4
4
 
5
- module LimoresHopstop
6
- module Hopstop
7
- module Mashup
5
+ module Limores
6
+ module Mashups
7
+ module Hopstop
8
8
  def self.populate_with_response_status(result, doc)
9
9
  result.result_code =
10
10
  (doc.root.elements["//ResponseStatus/ResultCode"] || doc.root.elements["//ResponseStatus/FaultCode"]).text.to_i
@@ -19,7 +19,7 @@ module LimoresHopstop
19
19
  doc = REXML::Document.new(fetch_cities)
20
20
  results = new
21
21
 
22
- Mashup.populate_with_response_status results, doc
22
+ Hopstop.populate_with_response_status results, doc
23
23
 
24
24
  doc.root.elements.each('//Cities/item') do |city|
25
25
  data = city.elements
@@ -166,7 +166,7 @@ module LimoresHopstop
166
166
  doc = REXML::Document.new(xml)
167
167
  result = new
168
168
 
169
- Mashup.populate_with_response_status result, doc
169
+ Hopstop.populate_with_response_status result, doc
170
170
  if result.valid?
171
171
  result.populate_as_valid(doc)
172
172
  elsif result.multi_choice?
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../lib/hopstop')
2
- include LimoresHopstop::Hopstop::Mashup
2
+ include Limores::Mashups::Hopstop
3
3
 
4
4
  Spec::Runner.configure do |config|
5
5
  config.mock_with :mocha
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Milan Burmaja