validates_as_email_address 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG.rdoc +4 -0
  2. data/README.rdoc +2 -2
  3. data/Rakefile +18 -16
  4. metadata +11 -16
@@ -1,5 +1,9 @@
1
1
  == master
2
2
 
3
+ == 0.2.4 / 2010-03-07
4
+
5
+ * Release gems via rake-gemcutter instead of rubyforge
6
+
3
7
  == 0.2.3 / 2009-04-13
4
8
 
5
9
  * Update docs
@@ -54,6 +54,6 @@ To run against a specific version of Rails:
54
54
 
55
55
  * Cal Henderson - {Parsing Email Adresses in PHP}[http://iamcal.com/publish/articles/php/parsing_email]
56
56
  * Tim Fletcher - {Ruby Translation}[http://tfletcher.com/lib/rfc822.rb]
57
- * Dan Kubb[dan.kubb@autopilotmarketing.com]
58
- * Ximon Eighteen[ximon.eightee@int.greenpeace.org]
57
+ * {Dan Kubb}[dan.kubb@autopilotmarketing.com]
58
+ * {Ximon Eighteen}[ximon.eightee@int.greenpeace.org]
59
59
  * Thijs van der Vossen - validates_as_email[https://svn.greenpeace.org/repositories/rails_plugins/validates_as_email]
data/Rakefile CHANGED
@@ -1,13 +1,15 @@
1
+ require 'rubygems'
2
+ require 'rake'
1
3
  require 'rake/testtask'
2
4
  require 'rake/rdoctask'
3
5
  require 'rake/gempackagetask'
4
- require 'rake/contrib/sshpublisher'
5
6
 
6
7
  spec = Gem::Specification.new do |s|
7
8
  s.name = 'validates_as_email_address'
8
- s.version = '0.2.3'
9
+ s.version = '0.2.4'
9
10
  s.platform = Gem::Platform::RUBY
10
- s.summary = 'Adds support for validating the format/length of email addresses'
11
+ s.summary = 'Adds support for validating the format/length of email addresses in ActiveRecord'
12
+ s.description = s.summary
11
13
 
12
14
  s.files = FileList['{lib,test}/**/*'] + %w(CHANGELOG.rdoc init.rb LICENSE Rakefile README.rdoc) - FileList['test/app_root/{log,log/*,script,script/*}']
13
15
  s.require_path = 'lib'
@@ -52,20 +54,27 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
52
54
  rdoc.options << '--line-numbers' << '--inline-source'
53
55
  rdoc.rdoc_files.include('README.rdoc', 'CHANGELOG.rdoc', 'LICENSE', 'lib/**/*.rb')
54
56
  end
55
-
57
+
58
+ desc 'Generate a gemspec file.'
59
+ task :gemspec do
60
+ File.open("#{spec.name}.gemspec", 'w') do |f|
61
+ f.write spec.to_ruby
62
+ end
63
+ end
64
+
56
65
  Rake::GemPackageTask.new(spec) do |p|
57
66
  p.gem_spec = spec
58
- p.need_tar = true
59
- p.need_zip = true
60
67
  end
61
68
 
62
69
  desc 'Publish the beta gem.'
63
70
  task :pgem => [:package] do
71
+ require 'rake/contrib/sshpublisher'
64
72
  Rake::SshFilePublisher.new('aaron@pluginaweek.org', '/home/aaron/gems.pluginaweek.org/public/gems', 'pkg', "#{spec.name}-#{spec.version}.gem").upload
65
73
  end
66
74
 
67
75
  desc 'Publish the API documentation.'
68
76
  task :pdoc => [:rdoc] do
77
+ require 'rake/contrib/sshpublisher'
69
78
  Rake::SshDirPublisher.new('aaron@pluginaweek.org', "/home/aaron/api.pluginaweek.org/public/#{spec.name}", 'rdoc').upload
70
79
  end
71
80
 
@@ -74,15 +83,8 @@ task :publish => [:pgem, :pdoc, :release]
74
83
 
75
84
  desc 'Publish the release files to RubyForge.'
76
85
  task :release => [:gem, :package] do
77
- require 'rubyforge'
78
-
79
- ruby_forge = RubyForge.new.configure
80
- ruby_forge.login
86
+ require 'rake/gemcutter'
81
87
 
82
- %w(gem tgz zip).each do |ext|
83
- file = "pkg/#{spec.name}-#{spec.version}.#{ext}"
84
- puts "Releasing #{File.basename(file)}..."
85
-
86
- ruby_forge.add_release(spec.rubyforge_project, spec.name, spec.version, file)
87
- end
88
+ Rake::Gemcutter::Tasks.new(spec)
89
+ Rake::Task['gem:push'].invoke
88
90
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validates_as_email_address
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Pfeifer
@@ -9,11 +9,11 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-13 00:00:00 -04:00
12
+ date: 2010-03-07 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
- description:
16
+ description: Adds support for validating the format/length of email addresses in ActiveRecord
17
17
  email: aaron@pluginaweek.org
18
18
  executables: []
19
19
 
@@ -22,22 +22,15 @@ extensions: []
22
22
  extra_rdoc_files: []
23
23
 
24
24
  files:
25
- - lib/validates_as_email_address
25
+ - lib/validates_as_email_address/rfc_1035.rb
26
26
  - lib/validates_as_email_address/rfc_822.rb
27
27
  - lib/validates_as_email_address/locale.rb
28
- - lib/validates_as_email_address/rfc_1035.rb
29
28
  - lib/validates_as_email_address.rb
30
- - test/factory.rb
31
- - test/test_helper.rb
32
- - test/unit
33
29
  - test/unit/validates_as_email_address_test.rb
34
- - test/app_root
35
- - test/app_root/db
36
- - test/app_root/db/migrate
37
30
  - test/app_root/db/migrate/001_create_users.rb
38
- - test/app_root/app
39
- - test/app_root/app/models
40
31
  - test/app_root/app/models/user.rb
32
+ - test/test_helper.rb
33
+ - test/factory.rb
41
34
  - CHANGELOG.rdoc
42
35
  - init.rb
43
36
  - LICENSE
@@ -45,6 +38,8 @@ files:
45
38
  - README.rdoc
46
39
  has_rdoc: true
47
40
  homepage: http://www.pluginaweek.org
41
+ licenses: []
42
+
48
43
  post_install_message:
49
44
  rdoc_options: []
50
45
 
@@ -65,9 +60,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
60
  requirements: []
66
61
 
67
62
  rubyforge_project: pluginaweek
68
- rubygems_version: 1.3.1
63
+ rubygems_version: 1.3.5
69
64
  signing_key:
70
- specification_version: 2
71
- summary: Adds support for validating the format/length of email addresses
65
+ specification_version: 3
66
+ summary: Adds support for validating the format/length of email addresses in ActiveRecord
72
67
  test_files:
73
68
  - test/unit/validates_as_email_address_test.rb