arcgis_vrps 0.0.1 → 0.0.2.1

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: 8dda2496db8bb2a4214da8203dccbe0b7ace24e0
4
- data.tar.gz: 977b2fe7977ecb1be83eb274c824a0366b143174
3
+ metadata.gz: efed1acbb3635ceace46ddc8f06f8f2e6b693154
4
+ data.tar.gz: e60638a995344f0ee9fb9a165d2d98ab285e03af
5
5
  SHA512:
6
- metadata.gz: d24b9942d55a14952a9bcd13e9e45b09cea9f7b0fd6992b84e486276b1ca5f4a94b206372f92c8d4302dbb0cf974a7fa3ce19f16e36c725567df89f929161cf0
7
- data.tar.gz: 3b13e00ca6a146e88a2cf65952680a474a95528984de5c26a800fa2a9872ca46b661e3785374a08b17e10334998f5f33518da3f376c90764c2fd0fd58802afdf
6
+ metadata.gz: 2c33fc1bdc389abc94fb995155a14827946de2cdbcc0554adbce10392e037177671096d01288c70b4107064cdce09862e54a022d0450610d49c686037353da7d
7
+ data.tar.gz: 5fbaea051725e894cb647c21ad30dc16c8e56a24b339b6cf4777048659022af027cfa2cb2963bd7c2ef39cae337b9c9df21f052ea0b41fa9125b0fd8e7c9c12b
data/lib/arcgis_vrps.rb CHANGED
@@ -1,5 +1,10 @@
1
1
  class Arcgis_Vrps
2
- def self.hi
3
- puts "Hello world!"
2
+ def self.hi(language = "english")
3
+ translator = Translator.new(language)
4
+ translator.hi
4
5
  end
5
- end
6
+ end
7
+
8
+ # This require has to be below cause the above is using it.
9
+ # Else, you'll get error: Uninitialized constant
10
+ require 'arcgis_vrps/sample'
@@ -0,0 +1,14 @@
1
+ class Arcgis_Vrps::Translator
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "spanish"
9
+ "hola mundo"
10
+ else
11
+ "hello world"
12
+ end
13
+ end
14
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcgis_vrps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kiong
@@ -10,14 +10,16 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2015-09-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: A ruby gem interface for ArcGIS Vehicle Routing Problem service REST
14
- API
13
+ description: "A ruby gem interface for ArcGIS (platform of Esri) Vehicle Routing Problem
14
+ service REST API\n\n You can find the code here => https://github.com/tlkiong/arcgis_vrps\n
15
+ \ "
15
16
  email: kiong90@gmail.com
16
17
  executables: []
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
21
  - lib/arcgis_vrps.rb
22
+ - lib/arcgis_vrps/sample.rb
21
23
  homepage: http://rubygems.org/gems/arcgis_vrps
22
24
  licenses:
23
25
  - MIT