has_many_emails 0.2.0 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/VERSION +1 -1
- data/init.rb +2 -1
- data/install.rb +1 -0
- data/lib/has_many_emails.rb +7 -1
- data/rails/init.rb +1 -7
- metadata +4 -4
- data/has_many_emails.gemspec +0 -81
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.5
|
data/init.rb
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
require
|
1
|
+
require 'has_many_emails'
|
2
|
+
|
data/install.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
puts IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
|
data/lib/has_many_emails.rb
CHANGED
@@ -6,7 +6,7 @@ require 'has_many_emails/class_methods'
|
|
6
6
|
require 'has_many_emails/instance_methods'
|
7
7
|
|
8
8
|
module HasManyEmails
|
9
|
-
|
9
|
+
VERSION = '0.2.?'
|
10
10
|
# def has_many_emails(attribute_name, attribute_model_name)
|
11
11
|
def has_many_emails
|
12
12
|
class_eval <<-EOV
|
@@ -25,3 +25,9 @@ module HasManyEmails
|
|
25
25
|
end
|
26
26
|
|
27
27
|
|
28
|
+
ActiveRecord::Base.class_eval do
|
29
|
+
extend HasManyEmails
|
30
|
+
end
|
31
|
+
|
32
|
+
# ActiveRecord::Base.send(:include, ActsAsArchive::Base)
|
33
|
+
# ActiveRecord::Migration.send(:include, ActsAsArchive::Migration)
|
data/rails/init.rb
CHANGED
@@ -1,8 +1,2 @@
|
|
1
|
-
require
|
1
|
+
require File.dirname(__FILE__) + "/../init"
|
2
2
|
|
3
|
-
ActiveRecord::Base.class_eval do
|
4
|
-
extend HasManyEmails
|
5
|
-
end
|
6
|
-
|
7
|
-
# ActiveRecord::Base.send(:include, ActsAsArchive::Base)
|
8
|
-
# ActiveRecord::Migration.send(:include, ActsAsArchive::Migration)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_many_emails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 5
|
10
|
+
version: 0.2.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Danil Pismenny
|
@@ -61,8 +61,8 @@ files:
|
|
61
61
|
- Rakefile
|
62
62
|
- VERSION
|
63
63
|
- app/models/email_address.rb
|
64
|
-
- has_many_emails.gemspec
|
65
64
|
- init.rb
|
65
|
+
- install.rb
|
66
66
|
- lib/generators/USAGE
|
67
67
|
- lib/generators/has_many_emails_generator.rb
|
68
68
|
- lib/generators/templates/create_email_address.rb
|
data/has_many_emails.gemspec
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = %q{has_many_emails}
|
8
|
-
s.version = "0.2.0"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Danil Pismenny"]
|
12
|
-
s.date = %q{2010-10-20}
|
13
|
-
s.description = %q{Add multiply emails features to models like User without changing common behaviour of the email attribute}
|
14
|
-
s.email = %q{danil@orionet.ru}
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"README.rdoc"
|
17
|
-
]
|
18
|
-
s.files = [
|
19
|
-
".gitignore",
|
20
|
-
"MIT-LICENSE",
|
21
|
-
"README.rdoc",
|
22
|
-
"Rakefile",
|
23
|
-
"VERSION",
|
24
|
-
"app/models/email_address.rb",
|
25
|
-
"has_many_emails.gemspec",
|
26
|
-
"init.rb",
|
27
|
-
"lib/generators/USAGE",
|
28
|
-
"lib/generators/has_many_emails_generator.rb",
|
29
|
-
"lib/generators/templates/create_email_address.rb",
|
30
|
-
"lib/has_many_emails.rb",
|
31
|
-
"lib/has_many_emails/class_methods.rb",
|
32
|
-
"lib/has_many_emails/instance_methods.rb",
|
33
|
-
"rails/init.rb",
|
34
|
-
"spec/db/create_db.rb",
|
35
|
-
"spec/db/database.yml",
|
36
|
-
"spec/db/models/user.rb",
|
37
|
-
"spec/debug.log",
|
38
|
-
"spec/factories.rb",
|
39
|
-
"spec/models/email_spec.rb",
|
40
|
-
"spec/models/exampels_spec.rb",
|
41
|
-
"spec/models/user_emails_spec.rb",
|
42
|
-
"spec/models/user_spec.rb",
|
43
|
-
"spec/spec_helper.rb",
|
44
|
-
"test/helper.rb",
|
45
|
-
"test/test_has_many_emails.rb"
|
46
|
-
]
|
47
|
-
s.homepage = %q{http://github.com/dapi/has_many_emails}
|
48
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
49
|
-
s.require_paths = ["lib"]
|
50
|
-
s.rubygems_version = %q{1.3.7}
|
51
|
-
s.summary = %q{Add multiply emails features to models like User without changing common behaviour of the email attribute}
|
52
|
-
s.test_files = [
|
53
|
-
"spec/factories.rb",
|
54
|
-
"spec/models/exampels_spec.rb",
|
55
|
-
"spec/models/user_emails_spec.rb",
|
56
|
-
"spec/models/email_spec.rb",
|
57
|
-
"spec/models/user_spec.rb",
|
58
|
-
"spec/db/models/user.rb",
|
59
|
-
"spec/db/create_db.rb",
|
60
|
-
"spec/spec_helper.rb",
|
61
|
-
"test/helper.rb",
|
62
|
-
"test/test_has_many_emails.rb"
|
63
|
-
]
|
64
|
-
|
65
|
-
if s.respond_to? :specification_version then
|
66
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
67
|
-
s.specification_version = 3
|
68
|
-
|
69
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
70
|
-
s.add_development_dependency(%q<attribute_normalizer>, [">= 0"])
|
71
|
-
s.add_development_dependency(%q<validate_email>, [">= 0"])
|
72
|
-
else
|
73
|
-
s.add_dependency(%q<attribute_normalizer>, [">= 0"])
|
74
|
-
s.add_dependency(%q<validate_email>, [">= 0"])
|
75
|
-
end
|
76
|
-
else
|
77
|
-
s.add_dependency(%q<attribute_normalizer>, [">= 0"])
|
78
|
-
s.add_dependency(%q<validate_email>, [">= 0"])
|
79
|
-
end
|
80
|
-
end
|
81
|
-
|