ine-places 0.1.1 → 0.1.2

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: b1d5baf94a1ba569c3ac7935e3d5fd9faed8885f
4
- data.tar.gz: 75728534fc49aa207cd83dcd7b96c567e3361764
3
+ metadata.gz: 6e2037115921b85b7e91750def0f31064e0d6608
4
+ data.tar.gz: 751eafe0f8f2fe9218df0db7d5f0fc86fe63a92f
5
5
  SHA512:
6
- metadata.gz: 15bf45e03b9a9fa11b5addcc7f29d5e4ce833ead66e2c7764acd8ed80b1ec134a12bc282895fd199aee74eb54583c88dec03e7a606cf31da5101cddedcc2b651
7
- data.tar.gz: 98e3a400affb297eadb45847dbe2ef548727fe25982f879f50b47d3ec16415b3927f5d54ee46db4f4bc08bf2b40af5a3fbeb2213603a585cd6986cc230142a15
6
+ metadata.gz: 93a49f4d9ea61c92b4768d56029d2e33fd80da0786f260ecc66f3cb73ce4698b8bebda9d095be4e5809df196b20e2c1b6ee16bae64512252f007fb2df9031ab2
7
+ data.tar.gz: 271e6e6aaf07fe55dbe5a828bc7b1aff2ecac2c9b2024765a3a90e2d3dc5d954ea41ebe5ab77ab639349b2a0e79863be58c9cf808528da91e64417fa8f4dd094
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require_relative "../lib/ine/places/places"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -26,7 +26,7 @@ module INE::Places::CSVRecord
26
26
  def find(id)
27
27
  raise ArgumentError if id.blank?
28
28
 
29
- collection_klass.records.detect{|obj| obj.id == id }
29
+ collection_klass.records.detect{|obj| obj.id.to_i == id.to_i }
30
30
  end
31
31
  end
32
32
  end
@@ -1,5 +1,5 @@
1
1
  module INE
2
2
  module Places
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ine-places
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
  - Fernando Blat
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-10-29 00:00:00.000000000 Z
11
+ date: 2015-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -87,6 +87,8 @@ files:
87
87
  - LICENSE.txt
88
88
  - README.md
89
89
  - Rakefile
90
+ - bin/console
91
+ - bin/setup
90
92
  - ine-places.gemspec
91
93
  - lib/ine/places/autonomous_region.rb
92
94
  - lib/ine/places/autonomous_regions_collection.rb