unidom-geo 0.1 → 0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a11115c8685e48e0e25e316fa37d0d2a03b1ff67
4
- data.tar.gz: cea7e9c320d8016ea500283c3744e9504db9fdb8
3
+ metadata.gz: 99edf34802dae03b1030d2f753953e5e18ddb968
4
+ data.tar.gz: 4459523b9f18b844f3a3779ba76b5249f8c934c5
5
5
  SHA512:
6
- metadata.gz: 210a93b25ca3047b5aa9d4e37c8cb923529d4b171eb13983e35b783f07a7c9ae05598a15d2ae79b02f84cdd6a56f80daef949588f5bc4623de2e797dce451a3b
7
- data.tar.gz: 7023c5e4cf4b37762ff601669056381bf31d14f47ff6e0b1a3379b42deaef8d25ed80d22d24e0834eb3de2d62c7545d0253d84ae85dccfe6547e5e4dcb9c9fed
6
+ metadata.gz: 6be77f01de86483d6ced96685375d5f46ef2e27cb5c0d25a648ea1bf050c0a3d9389410c13d2e057675c299fdafdfb7eb61ce996d960985b4a6365517086efaa
7
+ data.tar.gz: e45571e16c68a5040dacf4eccdaf76db4275f1243c511c6c3607aa908fe9107404fc8109e942e85303661f1fe9a1482021402a85c5066c231a1f3ec727c80f07
data/README.md ADDED
@@ -0,0 +1,22 @@
1
+ # Unidom Geo 地理领域模型引擎
2
+
3
+ [![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)
4
+ [![Gem Version](https://badge.fury.io/rb/unidom-geo.svg)](https://badge.fury.io/rb/unidom-geo)
5
+
6
+ Unidom (UNIfied Domain Object Model) is a series of domain model engines. The Geo domain model engine includes Town and Location models.
7
+ Unidom (统一领域对象模型)是一系列的领域模型引擎。地理领域模型引擎包括乡镇和街道地址的模型。
8
+
9
+ ## Usage in Gemfile:
10
+ ```ruby
11
+ gem 'unidom-geo'
12
+ ```
13
+
14
+ ## Run the Database Migration:
15
+ ```shell
16
+ rake db:migrate
17
+ ```
18
+
19
+ ## Call the Model:
20
+ ```ruby
21
+ Unidom::Geo::Location.valid_at.alive.first.region
22
+ ```
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ require 'rdoc/task'
8
8
 
9
9
  RDoc::Task.new(:rdoc) do |rdoc|
10
10
  rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'Geo'
11
+ rdoc.title = 'Unidom Geo'
12
12
  rdoc.options << '--line-numbers'
13
13
  rdoc.rdoc_files.include('README.rdoc')
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
@@ -12,4 +12,6 @@ class Unidom::Geo::Location < ActiveRecord::Base
12
12
  scope :located_is, ->(located) { where located: located }
13
13
  scope :located_by, ->(locator) { where locator: locator }
14
14
 
15
+ include Unidom::Common::Concerns::ModelExtension
16
+
15
17
  end
@@ -20,4 +20,6 @@ class Unidom::Geo::Location < ActiveRecord::Base
20
20
  scope :region_is, ->(region) { where region: region }
21
21
  scope :postal_address_is, ->(postal_address) { where postal_address: postal_address }
22
22
 
23
+ include Unidom::Common::Concerns::ModelExtension
24
+
23
25
  end
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Geo
3
- VERSION = '0.1'
3
+ VERSION = '0.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,43 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-geo
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Topbit Du
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-16 00:00:00.000000000 Z
11
+ date: 2016-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: unidom-common
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.2'
19
+ version: '0.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.2'
27
- - !ruby/object:Gem::Dependency
28
- name: pg
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0'
26
+ version: '0.2'
41
27
  description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
42
28
  The Geo domain model engine includes Region, Town, and Location models. Unidom (统一领域对象模型)是一系列的领域模型引擎。地理领域模型引擎包括行政区划、乡镇和街道地址的模型。
43
29
  email:
@@ -47,7 +33,7 @@ extensions: []
47
33
  extra_rdoc_files: []
48
34
  files:
49
35
  - MIT-LICENSE
50
- - README.rdoc
36
+ - README.md
51
37
  - Rakefile
52
38
  - app/assets/javascripts/unidom/geo/application.js
53
39
  - app/assets/stylesheets/unidom/geo/application.css
@@ -83,8 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
69
  version: '0'
84
70
  requirements: []
85
71
  rubyforge_project:
86
- rubygems_version: 2.4.7
72
+ rubygems_version: 2.4.5.1
87
73
  signing_key:
88
74
  specification_version: 4
89
- summary: The Geo domain model engine includes Region, Town, and Location models.
75
+ summary: Unidom Geo Domain Model Engine 地理领域模型引擎
90
76
  test_files: []
data/README.rdoc DELETED
@@ -1,4 +0,0 @@
1
- = Geo
2
-
3
- Unidom (UNIfied Domain Object Model) is a series of domain model engines. The Geo domain model engine includes Region, Town, and Location models.
4
- Unidom (统一领域对象模型)是一系列的领域模型引擎。地理领域模型引擎包括行政区划、乡镇和街道地址的模型。