easy_contact 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/easy_contact/birthday.rb +2 -0
- data/app/models/easy_contact/employment.rb +2 -0
- data/app/models/easy_contact/messenger.rb +2 -0
- data/config/locales/easy_contact.en.yml +11 -0
- data/config/locales/easy_contact.zh_TW.yml +35 -0
- data/lib/easy_contact/contactable.rb +11 -1
- data/lib/easy_contact/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +7 -2
- metadata.gz.sig +0 -0
@@ -0,0 +1,35 @@
|
|
1
|
+
zh-TW:
|
2
|
+
activerecord:
|
3
|
+
models:
|
4
|
+
easy_contact/entry: '項目'
|
5
|
+
easy_contact/name: '姓名'
|
6
|
+
easy_contact/address: '地址'
|
7
|
+
easy_contact/phone: '電話'
|
8
|
+
easy_contact/email: '電子郵件'
|
9
|
+
easy_contact/messenger: '即時通訊'
|
10
|
+
easy_contact/birthday: '紀念日'
|
11
|
+
easy_contact/employment: '履歷'
|
12
|
+
easy_contact/website: '網站'
|
13
|
+
attributes:
|
14
|
+
easy_contact/entry:
|
15
|
+
content: 'content'
|
16
|
+
easy_contact/name:
|
17
|
+
label: '標籤'
|
18
|
+
locale: '語言'
|
19
|
+
content: '姓名'
|
20
|
+
easy_contact/address:
|
21
|
+
label: '標籤'
|
22
|
+
locale: '語言'
|
23
|
+
content: '地址'
|
24
|
+
country: '國家'
|
25
|
+
easy_contact/phone:
|
26
|
+
label: '標籤'
|
27
|
+
content: '電話號碼'
|
28
|
+
easy_contact/email:
|
29
|
+
label: '標籤'
|
30
|
+
content: '電子郵件'
|
31
|
+
easy_contact/employment:
|
32
|
+
label: '標籤'
|
33
|
+
content: '單位'
|
34
|
+
addition: '年份'
|
35
|
+
extra: '職位'
|
@@ -21,9 +21,19 @@ module EasyContact
|
|
21
21
|
has_many :websites, :dependent => :destroy,
|
22
22
|
:class_name => 'EasyContact::Website',
|
23
23
|
:foreign_key => 'contactable_id'
|
24
|
+
has_many :messengers, :dependent => :destroy,
|
25
|
+
:class_name => 'EasyContact::Messenger',
|
26
|
+
:foreign_key => 'contactable_id'
|
27
|
+
has_many :birthdays, :dependent => :destroy,
|
28
|
+
:class_name => 'EasyContact::Birthday',
|
29
|
+
:foreign_key => 'contactable_id'
|
30
|
+
has_many :employments, :dependent => :destroy,
|
31
|
+
:class_name => 'EasyContact::Employment',
|
32
|
+
:foreign_key => 'contactable_id'
|
24
33
|
|
25
34
|
accepts_nested_attributes_for :entries,
|
26
|
-
:names, :phones, :addresses, :emails, :websites,
|
35
|
+
:names, :phones, :addresses, :emails, :websites,
|
36
|
+
:messengers, :birthdays, :employments,
|
27
37
|
:reject_if => :reject_entries,
|
28
38
|
:allow_destroy => true
|
29
39
|
end
|
data/lib/easy_contact/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_contact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
M0lBc1Z2QzJZa0d3SjA5cUZWM1dRV1daU1NYUkp5ajUKMER3VStLZlV0YTRI
|
37
37
|
V1JyK2psKzRrWWVpVUtnYW1kdjJwUTRWYUo4M1ZHQzNGSXBVazlUVUxDTTN2
|
38
38
|
NWlIYkRRdQpvWnNXQ1E9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
39
|
-
date: 2013-
|
39
|
+
date: 2013-03-19 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rails
|
@@ -78,12 +78,17 @@ extensions: []
|
|
78
78
|
extra_rdoc_files: []
|
79
79
|
files:
|
80
80
|
- app/models/easy_contact/address.rb
|
81
|
+
- app/models/easy_contact/birthday.rb
|
81
82
|
- app/models/easy_contact/email.rb
|
83
|
+
- app/models/easy_contact/employment.rb
|
82
84
|
- app/models/easy_contact/entry.rb
|
85
|
+
- app/models/easy_contact/messenger.rb
|
83
86
|
- app/models/easy_contact/name.rb
|
84
87
|
- app/models/easy_contact/phone.rb
|
85
88
|
- app/models/easy_contact/website.rb
|
86
89
|
- app/models/easy_contact.rb
|
90
|
+
- config/locales/easy_contact.en.yml
|
91
|
+
- config/locales/easy_contact.zh_TW.yml
|
87
92
|
- config/routes.rb
|
88
93
|
- lib/easy_contact/contactable.rb
|
89
94
|
- lib/easy_contact/engine.rb
|
metadata.gz.sig
CHANGED
Binary file
|