merb-auth-slice-password 1.0.15 → 1.1.0.pre

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,48 +1,59 @@
1
- require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "rake_helpers"))
2
-
3
- RUBY_FORGE_PROJECT = "merb-auth"
4
- GEM_NAME = "merb-auth-slice-password"
5
- AUTHOR = "Daniel Neighman"
6
- EMAIL = "has.sox@gmail.com"
7
- HOMEPAGE = "http://merbivore.com/"
8
- SUMMARY = "Merb Slice that provides UI for password strategy of merb-auth."
9
- PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
10
- GEM_VERSION = Merb::VERSION + PKG_BUILD
11
-
12
- spec = Gem::Specification.new do |s|
13
- s.rubyforge_project = 'merb'
14
- s.name = GEM_NAME
15
- s.version = GEM_VERSION
16
- s.platform = Gem::Platform::RUBY
17
- s.has_rdoc = true
18
- s.extra_rdoc_files = ["README.textile", "LICENSE", 'TODO']
19
- s.summary = SUMMARY
20
- s.description = s.summary
21
- s.author = AUTHOR
22
- s.email = EMAIL
23
- s.homepage = HOMEPAGE
24
- s.add_dependency('merb-slices', ">= #{Merb::VERSION}")
25
- s.add_dependency('merb-auth-core', ">= #{Merb::VERSION}")
26
- s.add_dependency('merb-auth-more', ">= #{Merb::VERSION}")
27
- s.require_path = 'lib'
28
- s.files = %w(LICENSE README.textile Rakefile TODO) + Dir.glob("{lib,spec,app,public,stubs}/**/*")
29
- end
1
+ require 'rubygems'
2
+ require 'rake'
30
3
 
31
- Rake::GemPackageTask.new(spec) do |pkg|
32
- pkg.gem_spec = spec
33
- end
4
+ # Load merb-slices, merb-auth-core and merb-auth-more version information
5
+ require File.expand_path('../../../merb/merb-slices/lib/merb-slices/version', __FILE__)
6
+ require File.expand_path('../../merb-auth-core/lib/merb-auth-core/version', __FILE__)
7
+ require File.expand_path('../../merb-auth-more/lib/merb-auth-more/version', __FILE__)
34
8
 
35
- desc "Install MerbAuthSlicePassword as a gem"
36
- task :install do
37
- Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
38
- end
9
+ # Load this library's version information
10
+ require File.expand_path('../lib/merb-auth-slice-password/version', __FILE__)
11
+
12
+ begin
13
+
14
+ require 'jeweler'
15
+
16
+ Jeweler::Tasks.new do |gemspec|
17
+
18
+ gemspec.version = Merb::Auth::More::VERSION
19
+
20
+ gemspec.name = "merb-auth-slice-password"
21
+ gemspec.description = "Merb Slice with password UI support"
22
+ gemspec.summary = "Merb Slice that provides UI for password strategy of merb-auth."
23
+
24
+ gemspec.authors = [ "Daniel Neighman" ]
25
+ gemspec.email = "has.sox@gmail.com"
26
+ gemspec.homepage = "http://merbivore.com/"
27
+
28
+ gemspec.files = %w(LICENSE Rakefile README.textile TODO) + Dir[
29
+ '{app,config,lib,public,spec,stubs}/**/*'
30
+ ]
31
+
32
+ # Runtime dependencies
33
+ gemspec.add_dependency 'merb-slices', "~> #{Merb::Slices::VERSION}"
34
+ gemspec.add_dependency 'merb-auth-core', "~> #{Merb::Auth::Core::VERSION}"
35
+ gemspec.add_dependency 'merb-auth-more', "~> #{Merb::Auth::More::VERSION}"
36
+
37
+ # Development dependencies
38
+ gemspec.add_development_dependency 'rspec', ">= 1.2.9"
39
39
 
40
- desc "Create a gemspec file"
41
- task :gemspec do
42
- File.open("#{GEM_NAME}.gemspec", "w") do |file|
43
- file.puts spec.to_ruby
44
40
  end
41
+
42
+ Jeweler::GemcutterTasks.new
43
+
44
+ rescue LoadError
45
+ puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
46
+ end
47
+
48
+ require 'spec/rake/spectask'
49
+ Spec::Rake::SpecTask.new(:spec) do |spec|
50
+ spec.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
51
+ spec.libs << 'lib' << 'spec'
52
+ spec.spec_files = FileList['spec/**/*_spec.rb']
45
53
  end
46
54
 
47
- desc 'Default: run spec examples'
48
- task :default => 'spec'
55
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
56
+ spec.libs << 'lib' << 'spec'
57
+ spec.pattern = 'spec/**/*_spec.rb'
58
+ spec.rcov = true
59
+ end
data/config/init.rb ADDED
@@ -0,0 +1,43 @@
1
+ #
2
+ # ==== Standalone MerbAuthSlicePassword configuration
3
+ #
4
+ # This configuration/environment file is only loaded by bin/slice, which can be
5
+ # used during development of the slice. It has no effect on this slice being
6
+ # loaded in a host application. To run your slice in standalone mode, just
7
+ # run 'slice' from its directory. The 'slice' command is very similar to
8
+ # the 'merb' command, and takes all the same options, including -i to drop
9
+ # into an irb session for example.
10
+ #
11
+ # The usual Merb configuration directives and init.rb setup methods apply,
12
+ # including use_orm and before_app_loads/after_app_loads.
13
+ #
14
+ # If you need need different configurations for different environments you can
15
+ # even create the specific environment file in config/environments/ just like
16
+ # in a regular Merb application.
17
+ #
18
+ # In fact, a slice is no different from a normal # Merb application - it only
19
+ # differs by the fact that seamlessly integrates into a so called 'host'
20
+ # application, which in turn can override or finetune the slice implementation
21
+ # code and views.
22
+ #
23
+
24
+ Merb::Config.use do |c|
25
+
26
+ # Sets up a custom session id key which is used for the session persistence
27
+ # cookie name. If not specified, defaults to '_session_id'.
28
+ # c[:session_id_key] = '_session_id'
29
+
30
+ # The session_secret_key is only required for the cookie session store.
31
+ c[:session_secret_key] = '8355682a717c7e6b2f84dd731f7fb338087793b1'
32
+
33
+ # There are various options here, by default Merb comes with 'cookie',
34
+ # 'memory', 'memcache' or 'container'.
35
+ # You can of course use your favorite ORM instead:
36
+ # 'datamapper', 'sequel' or 'activerecord'.
37
+ c[:session_store] = 'cookie'
38
+
39
+ # When running a slice standalone, you're usually developing it,
40
+ # so enable template reloading by default.
41
+ c[:reload_templates] = true
42
+
43
+ end
@@ -0,0 +1,7 @@
1
+ module Merb
2
+ module Auth
3
+ module SlicePassword
4
+ VERSION = '1.1.0.pre'.freeze
5
+ end
6
+ end
7
+ end
@@ -1 +1 @@
1
- require File.dirname(__FILE__) + '/spec_helper'
1
+ require 'spec_helper'
data/spec/spec.opts ADDED
@@ -0,0 +1,2 @@
1
+ --format specdoc
2
+ --colour
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,29 @@
1
- require 'rubygems'
1
+ require "rubygems"
2
+
3
+ # Use current merb-core sources if running from a typical dev checkout.
4
+ lib = File.expand_path('../../../../merb/merb-core/lib', __FILE__)
5
+ $LOAD_PATH.unshift(lib) if File.directory?(lib)
2
6
  require 'merb-core'
7
+
8
+ # Use current merb-slices sources if running from a typical dev checkout.
9
+ lib = File.expand_path('../../../../merb/merb-slices/lib', __FILE__)
10
+ $LOAD_PATH.unshift(lib) if File.directory?(lib)
3
11
  require 'merb-slices'
4
- require 'spec'
12
+
13
+ # Use current merb-auth-core sources if running from a typical dev checkout.
14
+ lib = File.expand_path('../../../merb-auth-core/lib', __FILE__)
15
+ $LOAD_PATH.unshift(lib) if File.directory?(lib)
5
16
  require 'merb-auth-core'
17
+
18
+ # Use current merb-auth-more sources if running from a typical dev checkout.
19
+ lib = File.expand_path('../../../merb-auth-more/lib', __FILE__)
20
+ $LOAD_PATH.unshift(lib) if File.directory?(lib)
21
+ require 'merb-auth-more'
22
+
23
+ # Satisfies Autotest and anyone else not using the Rake tasks
24
+ require 'spec'
25
+
26
+
6
27
  # Add mauth_password_slice.rb to the search path
7
28
  Merb::Plugins.config[:merb_slices][:auto_register] = true
8
29
  Merb::Plugins.config[:merb_slices][:search_path] = File.join(File.dirname(__FILE__), '..', 'lib', 'merb-auth-slice-password.rb')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-auth-slice-password
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
@@ -18,9 +18,9 @@ dependencies:
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
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
@@ -28,57 +28,69 @@ dependencies:
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
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
37
37
  type: :runtime
38
38
  version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: 1.1.0.pre
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: rspec
47
+ type: :development
48
+ version_requirement:
39
49
  version_requirements: !ruby/object:Gem::Requirement
40
50
  requirements:
41
51
  - - ">="
42
52
  - !ruby/object:Gem::Version
43
- version: 1.0.15
53
+ version: 1.2.9
44
54
  version:
45
- description: Merb Slice that provides UI for password strategy of merb-auth.
55
+ description: Merb Slice with password UI support
46
56
  email: has.sox@gmail.com
47
57
  executables: []
48
58
 
49
59
  extensions: []
50
60
 
51
61
  extra_rdoc_files:
52
- - README.textile
53
62
  - LICENSE
54
- - TODO
63
+ - README.textile
55
64
  files:
56
65
  - LICENSE
57
66
  - README.textile
58
67
  - Rakefile
59
68
  - TODO
60
- - lib/merb-auth-slice-password/merbtasks.rb
61
- - lib/merb-auth-slice-password/slicetasks.rb
62
- - lib/merb-auth-slice-password/spectasks.rb
63
- - lib/merb-auth-slice-password.rb
64
- - spec/merb-auth-slice-password_spec.rb
65
- - spec/spec_helper.rb
66
69
  - app/controllers/application.rb
67
70
  - app/controllers/exceptions.rb
68
71
  - app/controllers/sessions.rb
69
72
  - app/helpers/application_helper.rb
70
73
  - app/views/exceptions/unauthenticated.html.erb
71
74
  - app/views/layout/merb-auth-slice-password.html.erb
75
+ - config/init.rb
76
+ - lib/merb-auth-slice-password.rb
77
+ - lib/merb-auth-slice-password/merbtasks.rb
78
+ - lib/merb-auth-slice-password/slicetasks.rb
79
+ - lib/merb-auth-slice-password/spectasks.rb
80
+ - lib/merb-auth-slice-password/version.rb
72
81
  - public/javascripts/master.js
73
82
  - public/stylesheets/master.css
83
+ - spec/merb-auth-slice-password_spec.rb
84
+ - spec/spec.opts
85
+ - spec/spec_helper.rb
74
86
  - stubs/app/controllers/sessions.rb
75
87
  has_rdoc: true
76
88
  homepage: http://merbivore.com/
77
89
  licenses: []
78
90
 
79
91
  post_install_message:
80
- rdoc_options: []
81
-
92
+ rdoc_options:
93
+ - --charset=UTF-8
82
94
  require_paths:
83
95
  - lib
84
96
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -89,13 +101,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
101
  version:
90
102
  required_rubygems_version: !ruby/object:Gem::Requirement
91
103
  requirements:
92
- - - ">="
104
+ - - ">"
93
105
  - !ruby/object:Gem::Version
94
- version: "0"
106
+ version: 1.3.1
95
107
  version:
96
108
  requirements: []
97
109
 
98
- rubyforge_project: merb
110
+ rubyforge_project:
99
111
  rubygems_version: 1.3.5
100
112
  signing_key:
101
113
  specification_version: 3