unidom-common 1.7 → 1.7.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 +4 -4
- data/README.md +4 -2
- data/app/models/unidom/common/concerns/exact_column.rb +3 -2
- data/lib/unidom/common/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3bb89444016240132128a60d0665118f9c4cf44d
|
|
4
|
+
data.tar.gz: 66dbb7bf981e7036b5fe87fb24786c74d784bb5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 658852f3c1b108d6767cffaf141db6a7a8e1b2c4c577b452cff75716979733479205e5f200e8b5c675661afc06bb2d990eda5b200eb1a259436f0d10785dc088
|
|
7
|
+
data.tar.gz: 6b228c16f1a451dfc870dfe76c4f3641d76f227848d7e041516eca4676cbc28776c8ba26b4900e47bb34c80ca63b3a14efce43b5f1ee5ba53b8833eee0f9b4bd
|
data/README.md
CHANGED
|
@@ -56,8 +56,9 @@ class Project < ActiveRecord::Base
|
|
|
56
56
|
belongs_to :team
|
|
57
57
|
belongs_to :place
|
|
58
58
|
|
|
59
|
-
code :
|
|
60
|
-
#
|
|
59
|
+
code :process, Process
|
|
60
|
+
# Process is a enum type per ProgneTapera,
|
|
61
|
+
# the typical values are: waterfall, agile, lean, scrum, extreme_programming, and etc.
|
|
61
62
|
|
|
62
63
|
# other fields: code, description
|
|
63
64
|
|
|
@@ -790,6 +791,7 @@ hex_digested == Unidom::Common::Numeration.hex digested # true
|
|
|
790
791
|
The YMM part should be identical to the relative part of the Domain Models.
|
|
791
792
|
The NNN is the numeric code of [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1 "codes for the names of countries, dependent territories, and special areas of geographical interest").
|
|
792
793
|
The numeric code of China is 156.
|
|
794
|
+
* unidom-party-china: 2001019156MMSS
|
|
793
795
|
* unidom-certificate-china: 2001029156MMSS
|
|
794
796
|
* unidom-contact-china: 2001039156MMSS
|
|
795
797
|
* unidom-geo-china: 2001049156MMSS
|
|
@@ -25,8 +25,9 @@ module Unidom::Common::Concerns::ExactColumn
|
|
|
25
25
|
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
def exact_signature(klass, name, value)
|
|
29
|
-
text = "#{
|
|
28
|
+
def exact_signature(klass, name, value, secret_key_base: Rails.application.secrets[:secret_key_base])
|
|
29
|
+
text = "#{secret_key_base}/#{klass.table_name}##{name}=#{value}"
|
|
30
|
+
#text = "#{Rails.application.secrets[:secret_key_base]}@#{Rails.root}/#{klass.table_name}##{name}=#{value}"
|
|
30
31
|
"#{Digest::MD5.digest(text)}#{Digest::SHA512.digest(text)}"
|
|
31
32
|
end
|
|
32
33
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: unidom-common
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.7.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: 2016-
|
|
11
|
+
date: 2016-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -44,14 +44,14 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - ">="
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: '0.
|
|
47
|
+
version: '0.4'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
52
|
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: '0.
|
|
54
|
+
version: '0.4'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: bundler
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|