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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee5fec3f6402f4e2263a1ed12b89e1f2ef50db0b
4
- data.tar.gz: 88af1ecc49d7b3187553e75eca0e6c78ba7c5d4c
3
+ metadata.gz: 709e3186c38064f456d3d5f1763b68f21df970b7
4
+ data.tar.gz: b370013cae84f380235008c67f6cafdbd2500898
5
5
  SHA512:
6
- metadata.gz: ce388958435617dc9f4a20a703603a86cc409d7380e8d72f91337da49dc9267361c1c1fae3fd75d119eee50a18576306bbb81529c4547e75a2714c2194a28424
7
- data.tar.gz: d32b835cc4670fe291e022514bd7c94a0332b36753c9778c0427e940fe677493e658fc925c73d20699fb97d7f8da0210fb7235b1a2b7b45ad3545195dc16a3e6
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, association_code = 'REVS', opened_at: Time.now)
16
- create! source_id: to_id(source), target_id: to_id(target), association_code: association_code, opened_at: opened_at
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
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Standard
3
- VERSION = '0.3'.freeze
3
+ VERSION = '1.0'.freeze
4
4
  end
5
5
  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.3'
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-07-21 00:00:00.000000000 Z
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.