restcountry 0.5.2 → 0.6.0

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
- SHA1:
3
- metadata.gz: 0772e628d7e33207c1cfd7342b4e68a39ea85768
4
- data.tar.gz: fabef54668f31e8473624fde5ab80b3b15de7202
2
+ SHA256:
3
+ metadata.gz: 483f79a2d38889be69e8a51b2f567374ecb452794258a0293a486bdc93ea1223
4
+ data.tar.gz: f522279ad2a0773a117ef40f1eee89656dddf0fd0c8d6b6256026f6cb6f12583
5
5
  SHA512:
6
- metadata.gz: 815261d29b8a01fb33b892ca7c07a12e09373e7504c598dd18f807a004824e9c259383dffe1c8c4100b71e4f83ef2f77e05bce4b4da45abf635113940c0e413d
7
- data.tar.gz: 11e634be63f78605b7239d1d7bb1e0196901639610bf1052d809ef091c52c714612aa109e6dedf563caf2c808f8dc532770c05363e2890d22bfc66d4e8ec5180
6
+ metadata.gz: 348939dba6055c47c422126b9cd2f6d1e7a2db8027cd00f04fb2c576c6a5805ff7f2beb33ffa0f9e77b9e6a7f3214be4e17d1efab38dc4a8eede083b23f348f7
7
+ data.tar.gz: 863cd13875e2a2eec2cf9e960ed0ba7e24875720a7af01d42a5424413fc4c3f33e4f71351de01f98da3c205629a90a198c4991ee76e289e708e5838d1c799621
data/README.md CHANGED
@@ -48,7 +48,7 @@ country.name
48
48
  countries = Restcountry::Country.find_by_lang('it')
49
49
 
50
50
  countries.first
51
- #=> Italy
51
+ #=> Holy See
52
52
 
53
53
  ```
54
54
  ## Attributes
@@ -2,7 +2,7 @@ require 'faraday'
2
2
  require 'json'
3
3
  require 'uri'
4
4
 
5
- API_URL = 'https://restcountries.eu/rest/v1'
5
+ API_URL = 'https://restcountries.eu/rest/v2'
6
6
 
7
7
  module Restcountry
8
8
  class Country
@@ -1,3 +1,3 @@
1
1
  module Restcountry
2
- VERSION = "0.5.2"
2
+ VERSION = "0.6.0"
3
3
  end
@@ -59,7 +59,7 @@ describe Restcountry do
59
59
  it 'get name from first country from language it' do
60
60
  VCR.use_cassette 'find_by_lang' do
61
61
  countries = Restcountry::Country.find_by_lang('it')
62
- expect(countries.first.name).to eq('Italy')
62
+ expect(countries.first.name).to eq('Holy See')
63
63
  end
64
64
  end
65
65
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restcountry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Davide Santangelo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-18 00:00:00.000000000 Z
11
+ date: 2019-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -149,8 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubyforge_project:
153
- rubygems_version: 2.4.6
152
+ rubygems_version: 3.0.2
154
153
  signing_key:
155
154
  specification_version: 4
156
155
  summary: Gem to wrap restcountries.eu API