has_many_emails 0.2.7 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  spec/db/has_many_emails.sqlite3.db
2
2
  /spec/db/log/test.log
3
3
  pkg
4
+ spec/debug.log
data/Rakefile CHANGED
@@ -13,8 +13,13 @@ begin
13
13
  gem.email = "danil@orionet.ru"
14
14
  gem.homepage = "http://github.com/dapi/has_many_emails"
15
15
  gem.authors = ["Danil Pismenny"]
16
- gem.add_development_dependency 'attribute_normalizer', ">= 0"
16
+
17
+ gem.add_dependency 'attribute_normalizer', ">= 0"
18
+ gem.add_dependency 'validate_email', ">= 0"
19
+
17
20
  gem.add_development_dependency 'validate_email', ">= 0"
21
+ gem.add_development_dependency 'activerecord', ">= 0"
22
+ gem.add_development_dependency 'remarkable_activerecord', ">= 0"
18
23
 
19
24
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
20
25
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.7
1
+ 0.2.10
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{has_many_emails}
8
- s.version = "0.2.7"
8
+ s.version = "0.2.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Danil Pismenny"]
@@ -34,8 +34,6 @@ Gem::Specification.new do |s|
34
34
  "spec/db/create_db.rb",
35
35
  "spec/db/database.yml",
36
36
  "spec/db/models/user.rb",
37
- "spec/debug.log",
38
- "spec/factories.rb",
39
37
  "spec/models/email_spec.rb",
40
38
  "spec/models/exampels_spec.rb",
41
39
  "spec/models/user_emails_spec.rb",
@@ -50,8 +48,7 @@ Gem::Specification.new do |s|
50
48
  s.rubygems_version = %q{1.3.7}
51
49
  s.summary = %q{Add multiply emails features to models like User without changing common behaviour of the email attribute}
52
50
  s.test_files = [
53
- "spec/factories.rb",
54
- "spec/models/exampels_spec.rb",
51
+ "spec/models/exampels_spec.rb",
55
52
  "spec/models/user_emails_spec.rb",
56
53
  "spec/models/email_spec.rb",
57
54
  "spec/models/user_spec.rb",
@@ -67,15 +64,24 @@ Gem::Specification.new do |s|
67
64
  s.specification_version = 3
68
65
 
69
66
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
70
- s.add_development_dependency(%q<attribute_normalizer>, [">= 0"])
67
+ s.add_runtime_dependency(%q<attribute_normalizer>, [">= 0"])
68
+ s.add_runtime_dependency(%q<validate_email>, [">= 0"])
71
69
  s.add_development_dependency(%q<validate_email>, [">= 0"])
70
+ s.add_development_dependency(%q<activerecord>, [">= 0"])
71
+ s.add_development_dependency(%q<remarkable_activerecord>, [">= 0"])
72
72
  else
73
73
  s.add_dependency(%q<attribute_normalizer>, [">= 0"])
74
74
  s.add_dependency(%q<validate_email>, [">= 0"])
75
+ s.add_dependency(%q<validate_email>, [">= 0"])
76
+ s.add_dependency(%q<activerecord>, [">= 0"])
77
+ s.add_dependency(%q<remarkable_activerecord>, [">= 0"])
75
78
  end
76
79
  else
77
80
  s.add_dependency(%q<attribute_normalizer>, [">= 0"])
78
81
  s.add_dependency(%q<validate_email>, [">= 0"])
82
+ s.add_dependency(%q<validate_email>, [">= 0"])
83
+ s.add_dependency(%q<activerecord>, [">= 0"])
84
+ s.add_dependency(%q<remarkable_activerecord>, [">= 0"])
79
85
  end
80
86
  end
81
87
 
@@ -6,8 +6,9 @@ require 'has_many_emails/class_methods'
6
6
  require 'has_many_emails/instance_methods'
7
7
 
8
8
  module HasManyEmails
9
- VERSION = '0.2.?'
10
- # def has_many_emails(attribute_name, attribute_model_name)
9
+
10
+ # TODO: def has_many_emails(attribute_name, attribute_model_name)
11
+
11
12
  def has_many_emails
12
13
  class_eval <<-EOV
13
14
 
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: 25
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 7
10
- version: 0.2.7
9
+ - 10
10
+ version: 0.2.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Danil Pismenny
@@ -30,7 +30,7 @@ dependencies:
30
30
  segments:
31
31
  - 0
32
32
  version: "0"
33
- type: :development
33
+ type: :runtime
34
34
  version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: validate_email
@@ -44,8 +44,50 @@ dependencies:
44
44
  segments:
45
45
  - 0
46
46
  version: "0"
47
- type: :development
47
+ type: :runtime
48
48
  version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: validate_email
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ none: false
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ hash: 3
58
+ segments:
59
+ - 0
60
+ version: "0"
61
+ type: :development
62
+ version_requirements: *id003
63
+ - !ruby/object:Gem::Dependency
64
+ name: activerecord
65
+ prerelease: false
66
+ requirement: &id004 !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
74
+ version: "0"
75
+ type: :development
76
+ version_requirements: *id004
77
+ - !ruby/object:Gem::Dependency
78
+ name: remarkable_activerecord
79
+ prerelease: false
80
+ requirement: &id005 !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ hash: 3
86
+ segments:
87
+ - 0
88
+ version: "0"
89
+ type: :development
90
+ version_requirements: *id005
49
91
  description: Add multiply emails features to models like User without changing common behaviour of the email attribute
50
92
  email: danil@orionet.ru
51
93
  executables: []
@@ -73,8 +115,6 @@ files:
73
115
  - spec/db/create_db.rb
74
116
  - spec/db/database.yml
75
117
  - spec/db/models/user.rb
76
- - spec/debug.log
77
- - spec/factories.rb
78
118
  - spec/models/email_spec.rb
79
119
  - spec/models/exampels_spec.rb
80
120
  - spec/models/user_emails_spec.rb
@@ -117,7 +157,6 @@ signing_key:
117
157
  specification_version: 3
118
158
  summary: Add multiply emails features to models like User without changing common behaviour of the email attribute
119
159
  test_files:
120
- - spec/factories.rb
121
160
  - spec/models/exampels_spec.rb
122
161
  - spec/models/user_emails_spec.rb
123
162
  - spec/models/email_spec.rb
data/spec/debug.log DELETED
@@ -1 +0,0 @@
1
- # Logfile created on Mon Oct 18 21:29:57 +0400 2010 by logger.rb/22285
data/spec/factories.rb DELETED
@@ -1,9 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
-
3
- Factory.define :bob, :class=>User do |u| #, :default_strategy => :create
4
- u.sequence(:name) { |n| "bob#{n}" }
5
- end
6
-
7
- Factory.define :john, :class=>User do |u|
8
- u.sequence(:name) { |n| "john#{n}" }
9
- end