unidom-dictionary 0.2.2 → 0.3

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: 78e95e4693a58be14dc8bea5e10037440e60b892
4
- data.tar.gz: 3c4b6151219850d5df4a2c6970ceaa0bf8f14d67
3
+ metadata.gz: 0b3c5191d9ca3ae4260874183afde8837dab4dd6
4
+ data.tar.gz: 33f15d9c71a4b2c9a7545d6bd66af05b55b2e5e0
5
5
  SHA512:
6
- metadata.gz: 0fb5cf4defcd72fb4e030bb8444507e20ca96c50e03eb95e5983dbda3fce5ec646269ec7e01f938b3673a82c3370fe377c107da792965f8cd71bdce1a97b6459
7
- data.tar.gz: d82bd5c408dd189cb52ddafb08935819d3c6c5dab992301c06e49d0601f840febca18ceae45bc717cd50a525d0fa75152afe5149a561a2b82cb62086ccbad3ea
6
+ metadata.gz: 4341a07a44484a355b52843286b00bae22df50722afa23e4529bb03e7798545683f5af3dc982ad1886a9a9a276696e7ef68b34dee64a6f05124f3401d6d0261a
7
+ data.tar.gz: c9788483de660ffe4c304e52bf0039ac553a414d5d71cdf168be3075315b25eda511ec3504575e3c1d8fa6b36c02116697329b99527218f23cebad9b7469469d
data/README.md CHANGED
@@ -65,3 +65,18 @@ Unidom::Common.configure do |options|
65
65
 
66
66
  end
67
67
  ```
68
+
69
+
70
+
71
+ ## RSpec examples
72
+
73
+ ```ruby
74
+ # spec/models/unidom_spec.rb
75
+ require 'unidom/dictionary/models_rspec'
76
+
77
+ # spec/types/unidom_spec.rb
78
+ require 'unidom/dictionary/types_rspec'
79
+
80
+ # spec/validators/unidom_spec.rb
81
+ require 'unidom/dictionary/validators_rspec'
82
+ ```
@@ -4,7 +4,7 @@ class CreateUnidomDictionaryItems < ActiveRecord::Migration
4
4
 
5
5
  create_table :unidom_dictionary_items, id: :uuid do |t|
6
6
 
7
- t.column :dictionary_code, 'char(4)', null: false, default: 'C'
7
+ t.column :dictionary_code, 'char(4)', null: false, default: 'ZZZZ'
8
8
  t.string :code, null: true, default: nil, limit: 64
9
9
 
10
10
  t.string :value, null: false, default: '', limit: 200
@@ -0,0 +1,21 @@
1
+ describe Unidom::Dictionary::DictionaryItem, 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
+ dictionary_code: 'ZZZZ',
13
+ code: 'OTHR',
14
+ value: 'other'
15
+ }
16
+
17
+ it_behaves_like 'Unidom::Common::Concerns::ModelExtension', model_attributes
18
+
19
+ end
20
+
21
+ end
@@ -0,0 +1 @@
1
+ require 'rspec/models/unidom/dictionary/dictionary_item_spec' unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Dictionary::DictionaryItem'
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Dictionary
3
- VERSION = '0.2.2'.freeze
3
+ VERSION = '0.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-dictionary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: '0.3'
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-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -48,9 +48,13 @@ files:
48
48
  - app/views/layouts/unidom/dictionary/application.html.erb
49
49
  - config/routes.rb
50
50
  - db/migrate/20000701000000_create_unidom_dictionary_items.rb
51
+ - lib/rspec/models/unidom/dictionary/dictionary_item_spec.rb
51
52
  - lib/tasks/dictionary_tasks.rake
52
53
  - lib/unidom/dictionary.rb
53
54
  - lib/unidom/dictionary/engine.rb
55
+ - lib/unidom/dictionary/models_rspec.rb
56
+ - lib/unidom/dictionary/types_rspec.rb
57
+ - lib/unidom/dictionary/validators_rspec.rb
54
58
  - lib/unidom/dictionary/version.rb
55
59
  homepage: https://github.com/topbitdu/unidom-dictionary
56
60
  licenses: