oeffi 0.0.3 → 0.0.4

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: 2e32f11bfa40cbcfe0d2921c912d83bde602064b
4
- data.tar.gz: 289024b98b846ce03cb3f75ab51434113edacef9
3
+ metadata.gz: c14110f609002b1dba11eedd9a7390ab6d2f94e3
4
+ data.tar.gz: 69e7e1cbeaa98ed9f4d95a79999142a73b8956d8
5
5
  SHA512:
6
- metadata.gz: e664ab6eff4acd3c1ff76d7eb5528c764adf7dceef7ab8a65aa106914b332af1fbf8f1778842d58abaf714137adb449085c219fb8fa9199c594b45e52d86dc0f
7
- data.tar.gz: 8b3df35dc7257bf8495bf101ad297ac1aa2d0137611f0bfbf75f99f9291b0e280ff30cb169a6a7154f78164dd2f5d9dd240dc67d1ecf40cef969b0a8bdd6c15e
6
+ metadata.gz: ebcbb79db097411b91ce9046363365906b42af0493dce760ed840de2849627a4dd19bb50728219ce6ebf75ad7e8f5d8f36cebfe6100a896136ef5494f2039e4f
7
+ data.tar.gz: 4e2a8061fe6511fc986e12a523231115e8463f6b1eddead7e71ddd96a7b456cae4f01d91b01b46e99202c3a330e8ae5a6d9baa5c2da38703f1668908bffee634
@@ -19,7 +19,7 @@ module Queries
19
19
  def perform
20
20
  result = super :autocompleteStations, [@string]
21
21
  result.to_a.map do |station|
22
- Locations::Location.new station
22
+ Locations::Location.new(station).as_json
23
23
  end
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Oeffi
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  require "spec_helper"
2
+ require "pry"
2
3
  require "lib/oeffi"
3
4
 
4
5
  describe "Oeffi module" do
@@ -32,13 +33,8 @@ describe "Oeffi module" do
32
33
  it "should provide a method to autocomplete based on a given string" do
33
34
  result = Oeffi::autocomplete("Leipzig")
34
35
  result.should be_a Array
35
- end
36
-
37
- it "should provide a set of Stations for when autocompleting" do
38
- result = Oeffi::autocomplete("Halle")
39
- result.should_not be_empty
40
- result.each do |res|
41
- res.should be_a Oeffi::Location
36
+ result.each do |station|
37
+ station.should be_a Hash
42
38
  end
43
39
  end
44
40
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oeffi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Kraft