unidom-party 1.8.2 → 1.8.3

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: c26b18790301762b2800099fff9bb7b6774f7c1f
4
- data.tar.gz: 47d12dbaa82e964ca1e765f3cfa6818e693e9749
3
+ metadata.gz: e030a862fe84fe801b63730bc222b8fbfebb0f95
4
+ data.tar.gz: b0da6eab49b098a8be4b606756f90f7f30589867
5
5
  SHA512:
6
- metadata.gz: 1e4d7cbf0cfc36a331ef2a09e5af526045e9a8708390efa4a88830a9c2feb35f8ff5fa57fb1b145a2c8be52213bbb8e605bbc875ad1d62d73be67156419748e7
7
- data.tar.gz: 1109286fc72a11000448b24caadfeec73c0b63fe47a0276fb69b1d08e3f7b488c55a98cfe02462b0f3334374723e66c2dc9f9556183dfb136a3ca21ab9fda6dc
6
+ metadata.gz: c7e25d786eeb0851d3135f3af985bca87e9b3e53d760a3bc4142983db348b78f9953ca85099f1d4331c71c0e5c6d5856dc5e438b4d4e60e9ac17e74174a01ac4
7
+ data.tar.gz: f1430d1a8c3143c448f2bd4b344230bda6d1b3d14d9c95dfd397abd2407ae9f1427e4d8e9d08356679157a4fdb0a144f5b7197904d0f6332156cc8c9e2fe3b41
@@ -6,8 +6,8 @@ class Unidom::Party::PartyRelation < Unidom::Party::ApplicationRecord
6
6
 
7
7
  include Unidom::Common::Concerns::ModelExtension
8
8
 
9
- validates :grade, presence: true, numericality: { integer_only: true }
10
- validates :priority, presence: true, numericality: { integer_only: true }
9
+ #validates :grade, presence: true, numericality: { integer_only: true }
10
+ #validates :priority, presence: true, numericality: { integer_only: true }
11
11
 
12
12
  belongs_to :source_party, polymorphic: true
13
13
  belongs_to :target_party, polymorphic: true
@@ -2,14 +2,14 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Unidom Party</title>
5
- <%= stylesheet_link_tag "unidom/party/application", media: "all" %>
5
+ <%= stylesheet_link_tag 'unidom/party/application', media: "all" %>
6
6
  <%= csrf_meta_tags %>
7
7
  </head>
8
8
  <body>
9
9
 
10
10
  <%= yield %>
11
11
 
12
- <%= javascript_include_tag 'party/application' %>
12
+ <%= javascript_include_tag 'unidom/party/application' %>
13
13
 
14
14
  </body>
15
15
  </html>
@@ -1,18 +1,12 @@
1
- require 'unidom/common/yaml_helper'
2
-
3
1
  module Unidom
4
2
  module Party
5
3
  class Engine < ::Rails::Engine
6
4
 
7
5
  isolate_namespace ::Unidom::Party
8
6
 
9
- initializer :load_config_initializers do |app|
10
- Unidom::Common::YamlHelper.load_enum config: app.config, root: config.root
11
- end
7
+ include Unidom::Common::EngineExtension
12
8
 
13
- initializer :append_migrations do |app|
14
- config.paths['db/migrate'].expanded.each { |expanded_path| app.config.paths['db/migrate'] << expanded_path } unless app.root.to_s.match root.to_s
15
- end
9
+ enable_initializer enum_enabled: true, migration_enabled: true
16
10
 
17
11
  end
18
12
  end
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Party
3
- VERSION = '1.8.2'.freeze
3
+ VERSION = '1.8.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-party
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: 1.8.3
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-12-06 00:00:00.000000000 Z
11
+ date: 2017-01-01 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
- version: 1.7.1
19
+ version: '1.8'
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.7.1
26
+ version: '1.8'
27
27
  description: Unidom (UNIfied Domain Object Model) is a series of domain model engines.
28
28
  The Party domain model engine includes Person, Shop, and Company models. Unidom
29
29
  (统一领域对象模型)是一系列的领域模型引擎。参与者领域模型引擎包括个人、店铺、公司的模型。