merb-auth 1.0.15 → 1.1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +44 -89
  2. data/lib/merb-auth/version.rb +5 -0
  3. metadata +18 -16
data/Rakefile CHANGED
@@ -1,108 +1,63 @@
1
- require File.expand_path(File.join(File.dirname(__FILE__), "..", "rake_helpers"))
2
- require 'fileutils'
3
- include FileUtils
4
- require 'rake/clean'
1
+ require 'rubygems'
2
+ require 'rake'
5
3
 
6
- RUBY_FORGE_PROJECT = "merb-auth"
7
- PROJECT_URL = "http://merbivore.com"
8
- PROJECT_SUMMARY = "merb-auth. The official authentication plugin for merb. Setup for the default stack"
9
- PROJECT_DESCRIPTION = PROJECT_SUMMARY
4
+ # Assume a typical dev checkout to fetch the current merb-core version
5
+ require File.expand_path('../../../merb/merb-core/lib/merb-core/version', __FILE__)
10
6
 
11
- GEM_AUTHOR = "Daniel Neighman"
12
- GEM_EMAIL = "has.sox@gmail.com"
7
+ # Load this library's version information
8
+ require File.expand_path('../lib/merb-auth/version', __FILE__)
13
9
 
14
- GEM_NAME = "merb-auth"
15
- PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
16
- GEM_VERSION = Merb::VERSION + PKG_BUILD
10
+ begin
17
11
 
18
- RELEASE_NAME = "REL #{GEM_VERSION}"
12
+ require 'jeweler'
19
13
 
20
- gems = %w[
21
- merb-auth-core merb-auth-more merb-auth-slice-password
22
- ]
14
+ Jeweler::Tasks.new do |gemspec|
23
15
 
24
- desc "Publish Merb More gem to RubyForge, one by one."
25
- task :release do
26
- packages = %w( gem tgz zip ).collect{ |ext| "pkg/#{GEM_NAME}-#{GEM_VERSION}.#{ext}" }
16
+ gemspec.version = Merb::Auth::VERSION
27
17
 
28
- begin
29
- sh %{rubyforge login}
30
- sh %{rubyforge add_release #{RUBY_FORGE_PROJECT} #{GEM_NAME} #{GEM_VERSION} #{packages.join(' ')}}
31
- sh %{rubyforge add_file #{RUBY_FORGE_PROJECT} #{GEM_NAME} #{GEM_VERSION} #{packages.join(' ')}}
32
- rescue Exception => e
33
- puts
34
- puts "Release failed: #{e.message}"
35
- puts
36
- puts "Set PKG_BUILD environment variable if you do a subrelease (0.9.4.2008_08_02 when version is 0.9.4)"
37
- end
38
-
39
- %w(merb-auth-core merb-auth-more merb-auth-slice-password).each do |gem|
40
- Dir.chdir(gem){ sh "#{Gem.ruby} -S rake release" }
41
- end
42
- end
18
+ gemspec.name = "merb-auth"
19
+ gemspec.description = "Merb plugin that provides authentication support"
20
+ gemspec.summary = "The official authentication plugin for merb. Setup for the default stack"
43
21
 
44
- merb_auth_spec = Gem::Specification.new do |s|
45
- s.rubyforge_project = RUBY_FORGE_PROJECT
46
- s.name = GEM_NAME
47
- s.version = GEM_VERSION
48
- s.platform = Gem::Platform::RUBY
49
- s.author = GEM_AUTHOR
50
- s.email = GEM_EMAIL
51
- s.homepage = "http://www.merbivore.com"
52
- s.summary = PROJECT_SUMMARY
53
- s.description = PROJECT_SUMMARY
54
- s.files = %w(LICENSE README.textile Rakefile TODO) + Dir.glob("{lib,spec}/**/*")
55
- s.add_dependency "merb-core", "~> #{GEM_VERSION}"
56
- gems.each do |gem|
57
- s.add_dependency gem, "~> #{GEM_VERSION}"
58
- end
59
- end
22
+ gemspec.authors = [ "Daniel Neighman" ]
23
+ gemspec.email = "has.sox@gmail.com"
24
+ gemspec.homepage = "http://merbivore.com/"
60
25
 
61
- CLEAN.include ["**/.*.sw?", "pkg", "lib/*.bundle", "*.gem", "doc/rdoc", ".config", "coverage", "cache"]
26
+ # Needs to be listed explicitly because jeweler
27
+ # otherwise thinks that everything inside the
28
+ # merb-auth repo belongs to the merb-auth meta gem
29
+ gemspec.files = [
30
+ 'LICENSE',
31
+ 'Rakefile',
32
+ 'README.textile',
33
+ 'TODO',
34
+ 'lib/merb-auth.rb',
35
+ 'lib/merb-auth/version.rb'
36
+ ]
62
37
 
63
- Rake::GemPackageTask.new(merb_auth_spec) do |package|
64
- package.gem_spec = merb_auth_spec
65
- end
38
+ # Runtime dependencies
39
+ gemspec.add_dependency 'merb-core', "~> #{Merb::VERSION}"
40
+ gemspec.add_dependency 'merb-auth-core', "~> #{Merb::VERSION}"
41
+ gemspec.add_dependency 'merb-auth-more', "~> #{Merb::VERSION}"
42
+ gemspec.add_dependency 'merb-auth-slice-password', "~> #{Merb::VERSION}"
66
43
 
67
- task :package => ["lib/merb-auth.rb", :build_children]
68
- desc "Create merb-auth.rb"
69
- task "lib/merb-auth.rb" do
70
- mkdir_p "lib"
71
- File.open("lib/merb-auth.rb","w+") do |file|
72
- file.puts "### AUTOMATICALLY GENERATED. DO NOT EDIT!"
73
- gems.each do |gem|
74
- next if gem == "merb-gen"
75
- file.puts "require '#{gem}'"
76
- end
77
44
  end
78
- end
79
-
80
- task :build_children do
81
- %w(merb-auth-core merb-auth-more merb-auth-slice-password).each do |dir|
82
- Dir.chdir(dir) { sh "#{Gem.ruby} -S rake package" }
83
- end
84
- end
85
45
 
86
- desc "install the plugin as a gem"
87
- task :install do
88
- Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
89
- end
46
+ Jeweler::GemcutterTasks.new
90
47
 
91
- desc "Uninstall the gem"
92
- task :uninstall do
93
- Merb::RakeHelper.uninstall(GEM_NAME, :version => GEM_VERSION)
48
+ rescue LoadError
49
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
94
50
  end
95
51
 
96
- desc "Create a gemspec file"
97
- task :gemspec do
98
- File.open("#{GEM_NAME}.gemspec", "w") do |file|
99
- file.puts spec.to_ruby
100
- end
52
+ require 'spec/rake/spectask'
53
+ Spec::Rake::SpecTask.new(:spec) do |spec|
54
+ spec.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
55
+ spec.libs << 'lib' << 'spec'
56
+ spec.spec_files = FileList['spec/**/*_spec.rb']
101
57
  end
102
58
 
103
- desc "Run all specs"
104
- task :spec do
105
- gems.each do |gem|
106
- Dir.chdir(gem) { sh "#{Gem.ruby} -S rake spec" }
107
- end
59
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
60
+ spec.libs << 'lib' << 'spec'
61
+ spec.pattern = 'spec/**/*_spec.rb'
62
+ spec.rcov = true
108
63
  end
@@ -0,0 +1,5 @@
1
+ module Merb
2
+ module Auth
3
+ VERSION = '1.1.0.pre'
4
+ end
5
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.15
4
+ version: 1.1.0.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Neighman
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-04 00:00:00 +00:00
12
+ date: 2009-11-17 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 1.0.15
23
+ version: 1.1.0.pre
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: merb-auth-core
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.15
33
+ version: 1.1.0.pre
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: merb-auth-more
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: 1.0.15
43
+ version: 1.1.0.pre
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: merb-auth-slice-password
@@ -50,29 +50,31 @@ dependencies:
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: 1.0.15
53
+ version: 1.1.0.pre
54
54
  version:
55
- description: merb-auth. The official authentication plugin for merb. Setup for the default stack
55
+ description: Merb plugin that provides authentication support
56
56
  email: has.sox@gmail.com
57
57
  executables: []
58
58
 
59
59
  extensions: []
60
60
 
61
- extra_rdoc_files: []
62
-
61
+ extra_rdoc_files:
62
+ - LICENSE
63
+ - README.textile
63
64
  files:
64
65
  - LICENSE
65
66
  - README.textile
66
67
  - Rakefile
67
68
  - TODO
68
69
  - lib/merb-auth.rb
70
+ - lib/merb-auth/version.rb
69
71
  has_rdoc: true
70
- homepage: http://www.merbivore.com
72
+ homepage: http://merbivore.com/
71
73
  licenses: []
72
74
 
73
75
  post_install_message:
74
- rdoc_options: []
75
-
76
+ rdoc_options:
77
+ - --charset=UTF-8
76
78
  require_paths:
77
79
  - lib
78
80
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -83,16 +85,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
83
85
  version:
84
86
  required_rubygems_version: !ruby/object:Gem::Requirement
85
87
  requirements:
86
- - - ">="
88
+ - - ">"
87
89
  - !ruby/object:Gem::Version
88
- version: "0"
90
+ version: 1.3.1
89
91
  version:
90
92
  requirements: []
91
93
 
92
- rubyforge_project: merb-auth
94
+ rubyforge_project:
93
95
  rubygems_version: 1.3.5
94
96
  signing_key:
95
97
  specification_version: 3
96
- summary: merb-auth. The official authentication plugin for merb. Setup for the default stack
98
+ summary: The official authentication plugin for merb. Setup for the default stack
97
99
  test_files: []
98
100