unidom-standard 0.3 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/models/unidom/standard/standard_associating.rb +2 -2
- data/lib/unidom/standard/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: 709e3186c38064f456d3d5f1763b68f21df970b7
|
4
|
+
data.tar.gz: b370013cae84f380235008c67f6cafdbd2500898
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16c9124169073de44cecc128477df115275b5faf70fa063c2a6b23b07ac32b380f9bfa4ade4cfcb9c7efe456fb643647397296bdbd5a3df75d44b5d0a2917909
|
7
|
+
data.tar.gz: 42afdc78c2e11e29bca93c1918b6c3d5a82c9d5cb11a6df366c855b65ec3c944e6b5ee67529e45854952c5b45a336b4a4cfc5bce419b056e1b68dcc4c13862ae
|
data/README.md
CHANGED
@@ -30,5 +30,5 @@ gbk.target_standards.merge(Unidom::Standard::StandardAssociating.association_cod
|
|
30
30
|
# The standards revised by GBK, such as GB2312.
|
31
31
|
|
32
32
|
# GBK revise GB2312
|
33
|
-
Unidom::Standard::StandardAssociating.associate! gbk, gb2312, 'REVS'
|
33
|
+
Unidom::Standard::StandardAssociating.associate! gbk, with: gb2312, due_to: 'REVS'
|
34
34
|
```
|
@@ -12,8 +12,8 @@ class Unidom::Standard::StandardAssociating < ActiveRecord::Base
|
|
12
12
|
belongs_to :source, class_name: 'Unidom::Standard::Standard', foreign_key: :source_id
|
13
13
|
belongs_to :target, class_name: 'Unidom::Standard::Standard', foreign_key: :target_id
|
14
14
|
|
15
|
-
def self.associate!(source, target,
|
16
|
-
create! source_id: to_id(source), target_id: to_id(
|
15
|
+
def self.associate!(source, with: target, due_to: 'REVS', at: Time.now)
|
16
|
+
create! source_id: to_id(source), target_id: to_id(with), association_code: due_to, opened_at: at
|
17
17
|
end
|
18
18
|
|
19
19
|
end
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unidom-standard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0
|
4
|
+
version: '1.0'
|
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-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unidom-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0.9'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0.9'
|
27
27
|
description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
|