unidom-certificate 2.0.5 → 2.1

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: ca0e580e879911b3072e2cb3851d950dd9ef8da4
4
- data.tar.gz: 498b1f4a7b64734fb93caa4776e69c9eab858e1b
3
+ metadata.gz: 364da9418346c3ba8762a9ef20f57b8e997ae1a5
4
+ data.tar.gz: b8b8e9dcf061908f5a5c8a19eb2a0c56b36aa46c
5
5
  SHA512:
6
- metadata.gz: 87ed53486673f17662470856658a9ce9b714b86d1b031551fe0de9bc3099ad660468eb7436ee94f75c7613cfde2676339bbeabe5f0afbd9a53fb8d2d5c4e175a
7
- data.tar.gz: ec53b9a4f1edc6dc05e336aa1f02836ed2d1456ec35830b5af62608528dd543e99310e187a6cde84e638b576260a6249030a1eaa2ebef8fee1eeaac578b4ad99
6
+ metadata.gz: 647d837db97b0993e9cb6e5a9698470acda03692f39efdf031b14ef7078ddc2777be687c53a8ceec583d3b2d4e38868634507455d5cae31fce484f5bcb140ed1
7
+ data.tar.gz: 5fb4eec191e06ede9d7af3b22eaebcbc7c4c857f40c89119734e7f87f51a7c23f5a7d32aa0db02eadf3d046c4281dd76a89a2d3f5e6e7c47f04b487d4499709d
data/README.md CHANGED
@@ -82,3 +82,18 @@ Unidom::Common.configure do |options|
82
82
 
83
83
  end
84
84
  ```
85
+
86
+
87
+
88
+ ## RSpec examples
89
+
90
+ ```ruby
91
+ # spec/models/unidom_spec.rb
92
+ require 'unidom/certificate/models_rspec'
93
+
94
+ # spec/types/unidom_spec.rb
95
+ require 'unidom/certificate/types_rspec'
96
+
97
+ # spec/validators/unidom_spec.rb
98
+ require 'unidom/certificate/validators_rspec'
99
+ ```
@@ -0,0 +1,24 @@
1
+ describe Unidom::Certificate::Certificating, 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
+ certificator_id: SecureRandom.uuid,
13
+ certificator_type: 'Unidom::Certificate::Certificator::Mock',
14
+ certificated_id: SecureRandom.uuid,
15
+ certificated_type: 'Unidom::Certificate::Certificated::Mock',
16
+ certification_id: SecureRandom.uuid,
17
+ certification_type: 'Unidom::Certificate::Certification::Mock'
18
+ }
19
+
20
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
21
+
22
+ end
23
+
24
+ end
@@ -0,0 +1 @@
1
+ require 'rspec/models/unidom/certificate/certificating_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Certificate::Certificating'
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Certificate
3
- VERSION = '2.0.5'.freeze
3
+ VERSION = '2.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-certificate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: '2.1'
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-20 00:00:00.000000000 Z
11
+ date: 2017-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -50,9 +50,13 @@ files:
50
50
  - app/views/layouts/unidom/certificate/application.html.erb
51
51
  - config/routes.rb
52
52
  - db/migrate/20010201000000_create_unidom_certificatings.rb
53
+ - lib/rspec/models/unidom/certificate/certificating_spec.rb
53
54
  - lib/tasks/certificate_tasks.rake
54
55
  - lib/unidom/certificate.rb
55
56
  - lib/unidom/certificate/engine.rb
57
+ - lib/unidom/certificate/models_rspec.rb
58
+ - lib/unidom/certificate/types_rspec.rb
59
+ - lib/unidom/certificate/validators_rspec.rb
56
60
  - lib/unidom/certificate/version.rb
57
61
  homepage: https://github.com/topbitdu/unidom-certificate
58
62
  licenses: