unidom-requirement 0.3.1 → 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
- SHA1:
3
- metadata.gz: 435daf43ca285b24fd1b8036bff45653150ab993
4
- data.tar.gz: 623f8842d96ce22c7347faab25d479e4b14d1e7e
2
+ SHA256:
3
+ metadata.gz: b28a64e884444b149665141ea9d730460306beeaae28c3d15e98c04b12296e13
4
+ data.tar.gz: 728650782209b22f4ed2ef3ff2948359654cda3b69fe1cf2905cc717d56520d2
5
5
  SHA512:
6
- metadata.gz: cba4606273076ed43ed8f41038a618474603a61934798dc5be730e9f6130f8b870d44a635c4bb7a2dd2f642f9d306ba932f5de18db0ce277ff94a334d726b189
7
- data.tar.gz: 7473ed9ad0f2a1e0538fd5d72b3b6f9fdc2d25e4a2e2e4924c53e8f20b7a01e1eecc02dd995393a56e0c9ed18a649298e6c38950d494f382fb443e9a5245b25b
6
+ metadata.gz: 4876a7c7027d80980f7bb315b45beab4878867ef8790fbee53555bba0d9839e59f0820678376f4d3d0d9009b38f2334fe2e5d9e56d72a85f7b8a39d13ac07ce2
7
+ data.tar.gz: 744ad4958065cb85d6b70aa9cf44a880b82f48ffc90dcb51a5aa8d895ab3a615907b988f6e0a18c00866b40d8f93b5c3981e4ebe697333558efb748d1b9c9e78
@@ -7,8 +7,11 @@ class Unidom::Requirement::Requirement < Unidom::Requirement::ApplicationRecord
7
7
 
8
8
  include Unidom::Common::Concerns::ModelExtension
9
9
 
10
- validates :estimated_budget, presence: true, numericality: { less_than: 1_000_000_000, greater_than: 0 }
11
- validates :quantity, presence: true, numericality: { less_than: 1_000_000_000, greater_than: 0 }
10
+ #validates :estimated_budget, presence: true, numericality: { less_than: 1_000_000_000, greater_than: 0 }
11
+ #validates :quantity, presence: true, numericality: { less_than: 1_000_000_000, greater_than: 0 }
12
+
13
+ validates :estimated_budget, presence: true, numericality: { less_than: Unidom::Common::MAXIMUM_AMOUNT, greater_than: 0 }
14
+ validates :quantity, presence: true, numericality: { less_than: Unidom::Common::MAXIMUM_AMOUNT, greater_than: 0 }
12
15
 
13
16
  belongs_to :superior_requirement, class_name: 'Unidom::Requirement::Requirement'
14
17
  belongs_to :requirer, polymorphic: true
@@ -24,8 +24,8 @@ class CreateUnidomRequirements < ActiveRecord::Migration
24
24
  t.text :instruction
25
25
 
26
26
  t.column :state, 'char(1)', null: false, default: 'C'
27
- t.datetime :opened_at, null: false, default: Time.utc(1970)
28
- t.datetime :closed_at, null: false, default: Time.utc(3000)
27
+ t.datetime :opened_at, null: false, default: Unidom::Common::OPENED_AT
28
+ t.datetime :closed_at, null: false, default: Unidom::Common::CLOSED_AT
29
29
  t.boolean :defunct, null: false, default: false
30
30
  t.jsonb :notation, null: false, default: {}
31
31
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Requirement
3
- VERSION = '0.3.1'.freeze
3
+ VERSION = '1.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-requirement
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
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: 2017-02-13 00:00:00.000000000 Z
11
+ date: 2020-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.9'
19
+ version: '2.0'
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
- version: '1.9'
26
+ version: '2.0'
27
27
  description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
28
28
  The Requirement domain model engine includes the Requirement and the Order Requirement
29
29
  Commitment model. Unidom (统一领域对象模型)是一系列的领域模型引擎。需求领域模型引擎包括需求和订单需求委托的模型。
@@ -75,8 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubyforge_project:
79
- rubygems_version: 2.6.4
78
+ rubygems_version: 3.1.2
80
79
  signing_key:
81
80
  specification_version: 4
82
81
  summary: Unidom Requirement Domain Model Engine 需求领域模型引擎