ipcountry 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: a7e7cd2da87a4288e825bbd8f34702e518775304
4
- data.tar.gz: bfbfe3e58b80a6dd8bcb2c281443b79c06345b47
3
+ metadata.gz: 94e4f06cf8b63e6220ae2cec30d8be54da51253d
4
+ data.tar.gz: 8798ec4a2248cb315cfe9eb6d9170400ab08dde0
5
5
  SHA512:
6
- metadata.gz: b53ca649dfcee681e392a03b09361736b35807ba112c68751ecdf06a64696cd4eefab817ee8c4d5ffda484c20af545002189b38c1eecfe9a9e3b4cbfeb7c7111
7
- data.tar.gz: dd4fa776a7d03b06560d1977523fde0d42985fd067c240592b07b349d1d688d1d4d86d8634c083d6baaa270a32f1c086959600aaab4d26b12eca4aee887f7f24
6
+ metadata.gz: e52e130a850dbaebabdad395aaf3fae912e009ab33f34e74e7a4d7131fecdf4543cd34109580898751cd8492615a0d3679bc7b47ef5d43999cc56f1bf32cdf23
7
+ data.tar.gz: 7db8e56750ab4a9c748972f5988238bed209fc7d03a236515b6e87383b7938480d4a333e2e758c064bb4554bd2cae9787f7b15a6d80b1a7414abf00b47f6ec39
data/bin/ipcountry CHANGED
@@ -2,12 +2,14 @@
2
2
 
3
3
  require 'ipcountry'
4
4
 
5
- info = Ipcountry::Info.new(ARGV[0])
6
- result = ''
7
- if info.status == 'success'
8
- result = info.query + ':' + info.country
9
- else
10
- result = info.query + ':' + info.message
11
- end
5
+ ARGV.each{ |arg|
6
+ info = Ipcountry::Info.new(arg)
7
+ result = ''
8
+ if info.status == 'success'
9
+ result = info.query + ':' + info.country
10
+ else
11
+ result = info.query + ':' + info.message
12
+ end
13
+ p result
14
+ }
12
15
 
13
- p result
@@ -1,3 +1,3 @@
1
1
  module Ipcountry
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ipcountry
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
  - Yusuke Ohashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-10 00:00:00.000000000 Z
11
+ date: 2014-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler