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 +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +2 -0
- data/app/models/province.rb +1 -1
- data/lib/china_regions/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c8df7cd52e1ba2259ae5f84635fc7319c8ac993b22d148ed1f9bf8fbf89598a
|
4
|
+
data.tar.gz: 2c5eddaad1e5dba0dadfe7e41fd6c4a65ad2c0fd2ae6b530080d8992cb9205ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 329fb0afdf5363cd5c2b5a8bdbed0dc3cc1ba006914090e591d4a2e9b69e8f526c5acd98ad4aebb5317875379cd0609c1fc6b1da58f30cfbe94fdf393aa709ca
|
7
|
+
data.tar.gz: 9255c6956892d177069482849d08b056e4653bf47eecf189a8cf26da61d873d5b87f6d7f86163a8407f757e1357eb6b925389bf9022a922ba88092804d3ce2a5
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/app/models/province.rb
CHANGED
@@ -12,5 +12,5 @@ class Province < ApplicationRecord
|
|
12
12
|
has_many :districts, through: :cities
|
13
13
|
|
14
14
|
# Filter by name
|
15
|
-
scope :
|
15
|
+
scope :filter_by, ->(fname) { where(["name_en = :name or name = :name", name: fname]) }
|
16
16
|
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.
|
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:
|
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.
|