unidom-category 1.5.5 → 1.6

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: 3cf9e49d71c90a9c481326d894c7732dd9d11448
4
- data.tar.gz: 90fa319d17a4d5f8c2839195efe789004a16aa41
3
+ metadata.gz: a32aaa9333f970a89491d7d057f3e8cbab3e0c70
4
+ data.tar.gz: 7ab2debc42fe1b92dd3dab1de0928b18ed004feb
5
5
  SHA512:
6
- metadata.gz: 7e1523a1109f18d34975673eb6b0389e01a22d5070c835193d3ef48efdd630648511a3b4d378cd66efe1673d16af83b7456eb9f93ed9dae2e7d8a34bfc8e5dcd
7
- data.tar.gz: 29701235a9a5351867cfe96b8f19176286169f72c475b82e028b809d54455233bc45ee034d98b9ebabd3cdc1835d9600a6198afd03ac4b9ae8f7e0604b1df717
6
+ metadata.gz: baa38a5402d98209fb94c88efb5950b4955c8ff994d72621e6f3ef5e09724cbae190e014283311c996c1b93f5100ae8bc151ba9c1491f6223ba37b179a5acd08
7
+ data.tar.gz: bf97279c61b3b74d117f6aefecfd86679f545cc6a1fa6b34b3a3d36f1f2c2a3464b97b4447bbea5be93eae54c860cd4338d35fa812bfa9ca5ee2b4155e0a6e32
data/README.md CHANGED
@@ -104,3 +104,18 @@ Unidom::Common.configure do |options|
104
104
 
105
105
  end
106
106
  ```
107
+
108
+
109
+
110
+ ## RSpec examples
111
+
112
+ ```ruby
113
+ # spec/models/unidom_spec.rb
114
+ require 'unidom/category/models_rspec'
115
+
116
+ # spec/types/unidom_spec.rb
117
+ require 'unidom/category/types_rspec'
118
+
119
+ # spec/validators/unidom_spec.rb
120
+ require 'unidom/category/validators_rspec'
121
+ ```
@@ -0,0 +1,21 @@
1
+ describe Unidom::Category::Categorizing, 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
+ category_id: SecureRandom.uuid,
13
+ categorized_id: SecureRandom.uuid,
14
+ categorized_type: 'Unidom::Category::Categorized::Mock'
15
+ }
16
+
17
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
18
+
19
+ end
20
+
21
+ end
@@ -0,0 +1,20 @@
1
+ describe Unidom::Category::CategoryRollup, 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
+ ancestor_category_id: SecureRandom.uuid,
13
+ descendant_category_id: SecureRandom.uuid
14
+ }
15
+
16
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
17
+
18
+ end
19
+
20
+ end
@@ -0,0 +1,21 @@
1
+ describe Unidom::Category::CategoryScheme, 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
+ owner_id: SecureRandom.uuid,
13
+ owner_type: 'Unidom::Category::Owner::Mock',
14
+ name: 'Scheme #1'
15
+ }
16
+
17
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
18
+
19
+ end
20
+
21
+ end
@@ -0,0 +1,22 @@
1
+ describe Unidom::Category::Category, 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
+ scheme_id: SecureRandom.uuid,
13
+ code: 'XC',
14
+ name: 'Top Category',
15
+ abbreviation: 'TopCat'
16
+ }
17
+
18
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
19
+
20
+ end
21
+
22
+ end
@@ -0,0 +1,4 @@
1
+ require 'rspec/models/unidom/category/categorizing_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Category::Categorizing'
2
+ require 'rspec/models/unidom/category/category_rollup_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Category::CategoryRollup'
3
+ require 'rspec/models/unidom/category/category_scheme_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Category::CategoryScheme'
4
+ require 'rspec/models/unidom/category/category_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Category::Category'
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Category
3
- VERSION = '1.5.5'.freeze
3
+ VERSION = '1.6'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-category
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.5
4
+ version: '1.6'
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-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -58,9 +58,16 @@ files:
58
58
  - db/migrate/20000302000000_create_unidom_categories.rb
59
59
  - db/migrate/20000303000000_create_unidom_category_rollups.rb
60
60
  - db/migrate/20000304000000_create_unidom_categorizings.rb
61
+ - lib/rspec/models/unidom/category/categorizing_spec.rb
62
+ - lib/rspec/models/unidom/category/category_rollup_spec.rb
63
+ - lib/rspec/models/unidom/category/category_scheme_spec.rb
64
+ - lib/rspec/models/unidom/category/category_spec.rb
61
65
  - lib/tasks/category_tasks.rake
62
66
  - lib/unidom/category.rb
63
67
  - lib/unidom/category/engine.rb
68
+ - lib/unidom/category/models_rspec.rb
69
+ - lib/unidom/category/types_rspec.rb
70
+ - lib/unidom/category/validators_rspec.rb
64
71
  - lib/unidom/category/version.rb
65
72
  homepage: https://github.com/topbitdu/unidom-category
66
73
  licenses: