unidom-geo 1.4.5 → 1.5

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
  SHA1:
3
- metadata.gz: ec75e08c0307987c1cacab5fea9dbf31588fcd50
4
- data.tar.gz: b86578703813ca367aad0f47f46023b2661e2c4f
3
+ metadata.gz: e5c48b2efc49b7ab440bcc47274a121f5f9673af
4
+ data.tar.gz: 7be351ff2e1c03884d7285232a5570259b9574f3
5
5
  SHA512:
6
- metadata.gz: 6234b6e1cf61e8437a1bde7ff3c270bc62d3665fcbf47e3259deef7dee7be212cd35620ab528993b19a982251cb4c7ae31b62b56ef8dee333a778e1bcc7557d2
7
- data.tar.gz: 375120d30f4cc6941e003b389516ec8041529d6097063c579fc39fb26a0fc0503052608f39ae900da2d3289cf4d73b6ec70aa29f6ed38bda0d95ef7a5b5feca4
6
+ metadata.gz: 22b90eec2e6eb2adb4505812d4945281081e341953a05b013e09a78657e4329aac0129d4a62cab5dbee7e888bc4237504c88e14f99167d2519eded02de9b8025
7
+ data.tar.gz: fbb494f0c089a6a32f94d21bceaefcae7eb2b802e6d0fd290284eedeedf8b64ffec32cbc4d3d82d074b79a5ff8fc44b0d23352bb0436ad1000cb37c84f565410
data/README.md CHANGED
@@ -97,3 +97,18 @@ Unidom::Common.configure do |options|
97
97
 
98
98
  end
99
99
  ```
100
+
101
+
102
+
103
+ ## RSpec examples
104
+
105
+ ```ruby
106
+ # spec/models/unidom_spec.rb
107
+ require 'unidom/geo/models_rspec'
108
+
109
+ # spec/types/unidom_spec.rb
110
+ require 'unidom/geo/types_rspec'
111
+
112
+ # spec/validators/unidom_spec.rb
113
+ require 'unidom/geo/validators_rspec'
114
+ ```
@@ -0,0 +1,23 @@
1
+ describe Unidom::Geo::Locating, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ context do
10
+
11
+ model_attributes = {
12
+ location_id: SecureRandom.uuid,
13
+ located_id: SecureRandom.uuid,
14
+ located_type: 'Unidom::Geo::Located::Mock',
15
+ locator_id: SecureRandom.uuid,
16
+ locator_type: 'Unidom::Geo::Locator::Mock'
17
+ }
18
+
19
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
20
+
21
+ end
22
+
23
+ end
@@ -0,0 +1,28 @@
1
+ describe Unidom::Geo::Location, type: :model do
2
+
3
+ before :each do
4
+ end
5
+
6
+ after :each do
7
+ end
8
+
9
+ context do
10
+
11
+ model_attributes = {
12
+ region_id: SecureRandom.uuid,
13
+ region_type: 'Unidom::Geo::Region::Mock',
14
+ longitude: 120.000000,
15
+ latitude: 31.000000,
16
+ postal_address: 'Somewhere',
17
+ postal_code: '812345',
18
+ minimum_longitude: 119.990000,
19
+ minimum_latitude: 30.990000,
20
+ maximum_longitude: 120.010000,
21
+ maximum_latitude: 31.010000
22
+ }
23
+
24
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
25
+
26
+ end
27
+
28
+ end
@@ -0,0 +1,2 @@
1
+ require 'rspec/models/unidom/geo/location_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Geo::Location'
2
+ require 'rspec/models/unidom/geo/locating_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Geo::Locating'
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Geo
3
- VERSION = '1.4.5'.freeze
3
+ VERSION = '1.5'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-geo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: '1.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Topbit Du
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-22 00:00:00.000000000 Z
11
+ date: 2017-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -52,9 +52,14 @@ files:
52
52
  - config/routes.rb
53
53
  - db/migrate/20010401000000_create_unidom_locations.rb
54
54
  - db/migrate/20010402000000_create_unidom_locatings.rb
55
+ - lib/rspec/models/unidom/geo/locating_spec.rb
56
+ - lib/rspec/models/unidom/geo/location_spec.rb
55
57
  - lib/tasks/geo_tasks.rake
56
58
  - lib/unidom/geo.rb
57
59
  - lib/unidom/geo/engine.rb
60
+ - lib/unidom/geo/models_rspec.rb
61
+ - lib/unidom/geo/types_rspec.rb
62
+ - lib/unidom/geo/validators_rspec.rb
58
63
  - lib/unidom/geo/version.rb
59
64
  homepage: https://github.com/topbitdu/unidom-geo
60
65
  licenses: