unidom-common 1.7 → 1.7.1

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: e320e5e90fd5fc0f4d5a89fc873887e6be8ee99c
4
- data.tar.gz: bcf811c16e6dc629b18809935f1323a6ff6fdc7d
3
+ metadata.gz: 3bb89444016240132128a60d0665118f9c4cf44d
4
+ data.tar.gz: 66dbb7bf981e7036b5fe87fb24786c74d784bb5a
5
5
  SHA512:
6
- metadata.gz: 2a5fd79dc8b1908c83bc7e762423ddda6c4f606d838e7cd093991e6984b1c65d6b646bbe217bbd14f3cfee280d1296febc01767f9b97caa53fc57dcf617eb7f7
7
- data.tar.gz: fd0ab0632d930873c4df54d8f14bad5a8f31a2200f0dbe6e60c7f354b69194559da1683f2d5b6ebfeadab3dccb0cd222899b7d1a4f91f108019fb14cccc7f2e8
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 :software_process, SoftwareProcess
60
- # SoftwareProcess is a enum type per ProgneTapera
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 = "#{Rails.application.secrets[:secret_key_base]}@#{Rails.root}/#{klass.table_name}##{name}=#{value}"
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
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Common
3
- VERSION = '1.7'.freeze
3
+ VERSION = '1.7.1'.freeze
4
4
  end
5
5
  end
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: '1.7'
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-10-30 00:00:00.000000000 Z
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.1'
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.1'
54
+ version: '0.4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement