unidom-standard 1.3.6 → 1.4

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: f747bd52df4025823cb5650614dd49f3b997d1c7
4
- data.tar.gz: 1ad8efedaa8ee292c6be2a013861bada1b79e359
3
+ metadata.gz: cebcbca409ec994550be2208bec440723ea724d1
4
+ data.tar.gz: 7daec7f6026996bd27bfd96006ac5a5942676d17
5
5
  SHA512:
6
- metadata.gz: b5cfcb39c05026075931a8334fe8be5391aa6022bcdc36d85acab1d7d6ff630e216c8ef515e84edfb6621f4248776c4f4d835c8d391eb10f1d02b1935bc2494a
7
- data.tar.gz: bb8030080168436661714346a6830bec57b3aa3a04a331c275cb78de2b2af78429418cdab8ef1e4f6f647e4f83282fe095ec89a506aee6389a4b2b569e8ee78e
6
+ metadata.gz: 2bc63993872b71a8593b9b08a849506bf48af81784bd8ec0047acf81149a688dde24d05c62de2712920bc7248523fdf3830db403d26a70d6935135900a5d5f57
7
+ data.tar.gz: d784ced9ab18d70da3a830a9bad586c0fac5b21b4bd388520cad2ea69f7f3b5fa05d99a75cdda750ea90ca4d7692080fb0d7f5206291b1133bccfb2493d92018
data/README.md CHANGED
@@ -88,3 +88,18 @@ Unidom::Common.configure do |options|
88
88
 
89
89
  end
90
90
  ```
91
+
92
+
93
+
94
+ ## RSpec examples
95
+
96
+ ```ruby
97
+ # spec/models/unidom_spec.rb
98
+ require 'unidom/standard/models_rspec'
99
+
100
+ # spec/types/unidom_spec.rb
101
+ require 'unidom/standard/types_rspec'
102
+
103
+ # spec/validators/unidom_spec.rb
104
+ require 'unidom/standard/validators_rspec'
105
+ ```
@@ -0,0 +1,21 @@
1
+ describe Unidom::Standard::StandardAssociating, 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
+ source_id: SecureRandom.uuid,
13
+ target_id: SecureRandom.uuid,
14
+ association_code: 'REVS'
15
+ }
16
+
17
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
18
+
19
+ end
20
+
21
+ end
@@ -0,0 +1,24 @@
1
+ describe Unidom::Standard::Standard, 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
+ name: 'Some Name',
13
+ number: 'GB/T 3259-2008',
14
+ ics_code: '11-23-68',
15
+ published_on: Date.current-1.year,
16
+ applied_on: Date.current,
17
+ obsoleted_on: Date.current+20.years
18
+ }
19
+
20
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
21
+
22
+ end
23
+
24
+ end
@@ -0,0 +1,2 @@
1
+ require 'rspec/models/unidom/standard/standard_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Standard::Standard'
2
+ require 'rspec/models/unidom/standard/standard_associating_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Standard::StandardAssociating'
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Standard
3
- VERSION = '1.3.6'.freeze
3
+ VERSION = '1.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.6
4
+ version: '1.4'
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-02-01 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/20000601000000_create_unidom_standards.rb
54
54
  - db/migrate/20000602000000_create_unidom_standard_associatings.rb
55
+ - lib/rspec/models/unidom/standard/standard_associating_spec.rb
56
+ - lib/rspec/models/unidom/standard/standard_spec.rb
55
57
  - lib/tasks/standard_tasks.rake
56
58
  - lib/unidom/standard.rb
57
59
  - lib/unidom/standard/engine.rb
60
+ - lib/unidom/standard/models_rspec.rb
61
+ - lib/unidom/standard/types_rspec.rb
62
+ - lib/unidom/standard/validators_rspec.rb
58
63
  - lib/unidom/standard/version.rb
59
64
  homepage: https://github.com/topbitdu/unidom-standard
60
65
  licenses: