google_suggest 1.0.1 → 1.0.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
  SHA256:
3
- metadata.gz: 33a827514c56513e207d9e9716f5cae26873ea1289ac16657599c52cfb63e210
4
- data.tar.gz: a4e7608c0a3bbbcbacbd43eda9528040c27944bf518538ea197e29b0576170d7
3
+ metadata.gz: cda7a8c51269519a0b274daf814125cc62438dc749a969b1287befa05481282a
4
+ data.tar.gz: a3d5628a8ac383e32ecaa008b594e56491ba07905b799d25061ceabd3b062713
5
5
  SHA512:
6
- metadata.gz: 60f031165824f5c440852e0c963a925cfb3959e36c4707bd78a5145f3933021a4f600261034118ffd79a8fbd4a7823b8574b75ee654debef46eed5c93182aab1
7
- data.tar.gz: 79d99ff6c0be42d5794daae83d1567dee1ac8649b74c99ad23066ff9d3bdb9166b88ddcec154cabd04135280e948ae15e4439348bd1a00a5ecb92e7b1eccc972
6
+ metadata.gz: 1595d5acf65ae8e05c1367dee6cd8702093e0f6de4e5d6703edd73ad9b01278a1b5e9b157e2596fb4ff72ce02b665093476fed827ede375f94e1122b57e15a89
7
+ data.tar.gz: cbf6177ab3bfd89da79ffd9ba50e380609b50ef48f514229073b36b51fbff91f6bf149671b4e847867424918d1d912090456a767887543199e54767972a0ae37
data/CHANGELOG.md CHANGED
@@ -1,10 +1,16 @@
1
+ # ChangeLog
2
+
3
+ ## (Next Release)
4
+
5
+ * Drop ruby 2.3 from supported ruby versions. [#25](https://github.com/satoryu/google_suggest/pull/25)
6
+ * Made `Region` module since it has never been instantiated. [#26](https://github.com/satoryu/google_suggest/pull/26)
7
+
1
8
  ## GoogleSuggest 1.0.1
2
9
 
3
10
  * Drop ruby 2.1 and 2.2 from and add ruby 2.5 supported ruby versions. [#19](https://github.com/satoryu/google_suggest/pull/19)
4
11
  [#22](https://github.com/satoryu/google_suggest/pull/22)
5
12
  * Starting use Webmock and RSpec 3.[#15](https://github.com/satoryu/google_suggest/pull/15)[#21](https://github.com/satoryu/google_suggest/pull/21)
6
13
 
7
-
8
14
  ## GoogleSuggest 1.0.0
9
15
 
10
16
  * Removing the dependency on `nokogiri`, use REXML. [#10](https://github.com/satoryu/google_suggest/pull/10)
data/Gemfile.lock CHANGED
@@ -1,23 +1,23 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- google_suggest (1.0.1)
4
+ google_suggest (1.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  addressable (2.5.2)
10
10
  public_suffix (>= 2.0.2, < 4.0)
11
- codeclimate-test-reporter (1.0.8)
11
+ codeclimate-test-reporter (1.0.9)
12
12
  simplecov (<= 0.13)
13
13
  crack (0.4.3)
14
14
  safe_yaml (~> 1.0.0)
15
- diff-lcs (1.2.5)
15
+ diff-lcs (1.3)
16
16
  docile (1.1.5)
17
- hashdiff (0.3.7)
17
+ hashdiff (0.3.8)
18
18
  json (2.1.0)
19
- public_suffix (3.0.1)
20
- rake (12.0.0)
19
+ public_suffix (3.0.3)
20
+ rake (12.3.2)
21
21
  rspec (3.5.0)
22
22
  rspec-core (~> 3.5.0)
23
23
  rspec-expectations (~> 3.5.0)
@@ -53,4 +53,4 @@ DEPENDENCIES
53
53
  webmock (~> 3.2.1)
54
54
 
55
55
  BUNDLED WITH
56
- 1.16.1
56
+ 1.17.2
@@ -1,5 +1,5 @@
1
1
  class GoogleSuggest
2
- class Region
2
+ module Region
3
3
  GOOGLE_HOSTS = { # :nodoc:
4
4
  ac: 'www.google.ac',
5
5
  ad: 'www.google.ad',
@@ -199,13 +199,15 @@ class GoogleSuggest
199
199
  zw: 'www.google.co.zw'
200
200
  }.freeze
201
201
 
202
- def self.host_for(region_code = nil)
202
+ def host_for(region_code = nil)
203
203
  region_code = region_code.to_sym if region_code.is_a?(String)
204
204
  GOOGLE_HOSTS[region_code] || GOOGLE_HOSTS[:com]
205
205
  end
206
206
 
207
- def self.codes
207
+ def codes
208
208
  GOOGLE_HOSTS.keys
209
209
  end
210
+
211
+ module_function :host_for, :codes
210
212
  end
211
213
  end
@@ -1,3 +1,3 @@
1
1
  class GoogleSuggest
2
- VERSION = '1.0.1'.freeze
2
+ VERSION = '1.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_suggest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tatsuya Sato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-03 00:00:00.000000000 Z
11
+ date: 2019-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -86,15 +86,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 2.3.0
89
+ version: 2.4.0
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubyforge_project:
97
- rubygems_version: 2.7.3
96
+ rubygems_version: 3.0.1
98
97
  signing_key:
99
98
  specification_version: 4
100
99
  summary: A gem which allows us to retrieve suggest words from Google in your Ruby