area_cn 0.0.5 → 0.0.6

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.
data/lib/area_cn/area.rb CHANGED
@@ -51,7 +51,7 @@ module AreaCN
51
51
  end
52
52
 
53
53
  def inspect
54
- to_hash
54
+ to_hash.inspect
55
55
  end
56
56
  end
57
57
 
@@ -1,3 +1,3 @@
1
1
  module AreaCN
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/area_cn.rb CHANGED
@@ -19,6 +19,7 @@ module AreaCN
19
19
  def find_by_code(code, area_level = nil)
20
20
  areas.find_by_code(code, area_level)
21
21
  end
22
+ alias_method :get, :find_by_code
22
23
 
23
24
  def match(name, area_level = nil)
24
25
  areas.match(name, area_level)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: area_cn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: