china_regions 1.0.7 → 1.0.8

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: 52363c84e85e6b373320f94fc33027e6b3dba71bbe3253d13d01ca67387887d4
4
- data.tar.gz: ca0cb6d87a8ec401b7627bf80028864a0d57097d7c726592db4279c13baf3149
3
+ metadata.gz: 3c8df7cd52e1ba2259ae5f84635fc7319c8ac993b22d148ed1f9bf8fbf89598a
4
+ data.tar.gz: 2c5eddaad1e5dba0dadfe7e41fd6c4a65ad2c0fd2ae6b530080d8992cb9205ba
5
5
  SHA512:
6
- metadata.gz: 97ad44858d1eb5f9e30735c03de5441d603b46844122af355918f2562d07bac28a39c2cffb77001164ad6a23affedfe8d9d217915172f267151e3be1b7101510
7
- data.tar.gz: efa30965246b4805b3bd8f6307b623dc3fd6ce706db090c05adcb58b4e6b975ac272c46f544278bf8a9768ca524b47af9c0316f86d9d33dd119ce14c739ae2a0
6
+ metadata.gz: 329fb0afdf5363cd5c2b5a8bdbed0dc3cc1ba006914090e591d4a2e9b69e8f526c5acd98ad4aebb5317875379cd0609c1fc6b1da58f30cfbe94fdf393aa709ca
7
+ data.tar.gz: 9255c6956892d177069482849d08b056e4653bf47eecf189a8cf26da61d873d5b87f6d7f86163a8407f757e1357eb6b925389bf9022a922ba88092804d3ce2a5
data/.gitignore CHANGED
@@ -3,7 +3,9 @@
3
3
  .DS_Store
4
4
  .ruby-version
5
5
  .rvmrc
6
+
6
7
  Gemfile.lock
8
+
7
9
  pkg/*
8
10
  doc/
9
11
  coverage/
data/.travis.yml CHANGED
@@ -5,6 +5,8 @@ rvm:
5
5
  - 2.5.0
6
6
  - 2.6.0
7
7
  - 2.7.0
8
+ - 3.0.0
9
+ - 3.0.1
8
10
 
9
11
  before_install:
10
12
  - gem install bundler
@@ -12,5 +12,5 @@ class Province < ApplicationRecord
12
12
  has_many :districts, through: :cities
13
13
 
14
14
  # Filter by name
15
- scope :filter, ->(fname) { where(["name_en = :name or name = :name", name: fname]) }
15
+ scope :filter_by, ->(fname) { where(["name_en = :name or name = :name", name: fname]) }
16
16
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ChinaRegions
4
- VERSION = '1.0.7'
4
+ VERSION = '1.0.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: china_regions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Encore Shao
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-19 00:00:00.000000000 Z
11
+ date: 2021-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: down
@@ -147,7 +147,7 @@ homepage: https://github.com/encoreshao/china_regions
147
147
  licenses:
148
148
  - MIT
149
149
  metadata: {}
150
- post_install_message:
150
+ post_install_message:
151
151
  rdoc_options: []
152
152
  require_paths:
153
153
  - lib
@@ -163,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  version: '0'
164
164
  requirements: []
165
165
  rubygems_version: 3.0.3
166
- signing_key:
166
+ signing_key:
167
167
  specification_version: 4
168
168
  summary: Rails 4+ version of dropdowns for all provinces, cities, and districts in
169
169
  China.