unidom-contact 1.3.3 → 1.3.4

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: f162c0bfe117e1e31b1326dc5cba523dad282e4d
4
- data.tar.gz: 76f3b722bd8b48f05cad11e839ee5cd171fe1a02
3
+ metadata.gz: b874d3ba342e76d007a360b44b328984fe4eb8a5
4
+ data.tar.gz: 757534342d0edbd0a4348c86a079a03b2249414d
5
5
  SHA512:
6
- metadata.gz: 2c5f37ea7b2438277565094280acc42b478e6fa131bcc6a26a218a534d4da2211e46cf4cd20339e99732bff558db065a1db9242f3d797b3ce91aa057a7111d34
7
- data.tar.gz: 416b8492aef1d9586b3370877ec0a22ad37d87a55306a7983ccf4c0bb10d54c08c26c9aa088977c7fad79d03fcdf4a95208a5c5b4a2d53af43b42347c61058c4
6
+ metadata.gz: 8ddb3d1d2a2199740a0eee46fc8927a8e5bbbbbdc61f5018d369c3b948ac718d9439cd092cf24d7dc7c8308d91f12a3a21500e460de548ad6b65d244ac129fd2
7
+ data.tar.gz: f8cfe18ac85bc1de6a59cf241e66c2d13f2ce85f201ec218c5acc823a0cecf1d9e5873c9114f7c3e247537280e891d19461fee89fdaaff87e57f30eee685ff59
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Contact Subscription 是联系方式和参与者之间的关联关系。
2
3
 
3
4
  class Unidom::Contact::ContactSubscription < Unidom::Contact::ApplicationRecord
@@ -1,3 +1,4 @@
1
+ ##
1
2
  # Email Address 是电子邮箱地址。
2
3
 
3
4
  class Unidom::Contact::EmailAddress < Unidom::Contact::ApplicationRecord
@@ -28,7 +29,7 @@ class Unidom::Contact::EmailAddress < Unidom::Contact::ApplicationRecord
28
29
  /**
29
30
  Validate an email address.
30
31
  Provide email address (raw input)
31
- Returns true if the email address has the email
32
+ Returns true if the email address has the email
32
33
  address format and the domain exists.
33
34
  */
34
35
  function validEmail($email)
@@ -78,7 +79,7 @@ class Unidom::Contact::EmailAddress < Unidom::Contact::ApplicationRecord
78
79
  else if (!preg_match('/^(\\\\.|[A-Za-z0-9!#%&`_=\\/$\'*+?^{}|~.-])+$/',
79
80
  str_replace("\\\\","",$local)))
80
81
  {
81
- // character not valid in local part unless
82
+ // character not valid in local part unless
82
83
  // local part is quoted
83
84
  if (!preg_match('/^"(\\\\"|[^"])+"$/',
84
85
  str_replace("\\\\","",$local)))
@@ -3,11 +3,11 @@ module Unidom
3
3
 
4
4
  class Engine < ::Rails::Engine
5
5
 
6
+ include Unidom::Common::EngineExtension
7
+
6
8
  isolate_namespace Unidom::Contact
7
9
 
8
- initializer :append_migrations do |app|
9
- config.paths['db/migrate'].expanded.each { |expanded_path| app.config.paths['db/migrate'] << expanded_path } unless app.root.to_s.match root.to_s
10
- end
10
+ enable_initializer enum_enabled: false, migration_enabled: true
11
11
 
12
12
  end
13
13
 
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Contact
3
- VERSION = '1.3.3'.freeze
3
+ VERSION = '1.3.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-contact
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
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-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
- 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 Contact domain model engine includes Contact Subscription and Email Address
29
29
  models. Unidom (统一领域对象模型)是一系列的领域模型引擎。联系方式领域模型引擎包括联系方式订阅和电子邮箱地址的模型。