auth-slice 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,42 @@
1
+ require 'rubygems'
2
+ require 'merb-core'
3
+ require 'spec'
4
+
5
+ # Add the dependency in a before_app_loads hook
6
+ Merb::BootLoader.before_app_loads { require(File.join(File.dirname(__FILE__), '..', 'lib', 'auth-slice')) }
7
+
8
+ # Using Merb.root below makes sure that the correct root is set for
9
+ # - testing standalone, without being installed as a gem and no host application
10
+ # - testing from within the host application; its root will be used
11
+ Merb.start_environment(
12
+ :testing => true,
13
+ :adapter => 'runner',
14
+ :environment => ENV['MERB_ENV'] || 'test',
15
+ :merb_root => Merb.root,
16
+ :session_store => 'memory'
17
+ )
18
+
19
+ module Merb
20
+ module Test
21
+ module SliceHelper
22
+
23
+ # The absolute path to the current slice
24
+ def current_slice_root
25
+ @current_slice_root ||= File.expand_path(File.join(File.dirname(__FILE__), '..'))
26
+ end
27
+
28
+ # Whether the specs are being run from a host application or standalone
29
+ def standalone?
30
+ not $SLICED_APP
31
+ end
32
+
33
+ end
34
+ end
35
+ end
36
+
37
+ Spec::Runner.configure do |config|
38
+ config.include(Merb::Test::ViewHelper)
39
+ config.include(Merb::Test::RouteHelper)
40
+ config.include(Merb::Test::ControllerHelper)
41
+ config.include(Merb::Test::SliceHelper)
42
+ end
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: auth-slice
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Cuong Tran
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-06-10 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: merb-slices
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.9.4
23
+ version:
24
+ description: Merb Slice that provides user authentication
25
+ email: ctran@pragmaquest.com
26
+ executables: []
27
+
28
+ extensions: []
29
+
30
+ extra_rdoc_files:
31
+ - README
32
+ - LICENSE
33
+ files:
34
+ - LICENSE
35
+ - README
36
+ - Rakefile
37
+ - lib/auth-slice
38
+ - lib/auth-slice/merbtasks.rb
39
+ - lib/auth-slice/model.rb
40
+ - lib/auth-slice.rb
41
+ - spec/auth-slice_spec.rb
42
+ - spec/controllers
43
+ - spec/controllers/router_spec.rb
44
+ - spec/controllers/session_spec.rb
45
+ - spec/controllers/users_spec.rb
46
+ - spec/controllers/view_helper_spec.rb
47
+ - spec/models
48
+ - spec/models/ar_user_spec.rb
49
+ - spec/models/dm_user_spec.rb
50
+ - spec/models/shared_user_spec.rb
51
+ - spec/spec_helper.rb
52
+ - app/controllers
53
+ - app/controllers/application.rb
54
+ - app/controllers/controller_mixin.rb
55
+ - app/controllers/users.rb
56
+ - app/helpers
57
+ - app/helpers/application_helper.rb
58
+ - app/models
59
+ - app/models/adapter
60
+ - app/models/adapter/activerecord.rb
61
+ - app/models/adapter/datamapper.rb
62
+ - app/models/base_model.rb
63
+ - app/views
64
+ - app/views/layout
65
+ - app/views/layout/auth_slice.html.erb
66
+ - app/views/main
67
+ - app/views/session
68
+ - app/views/users
69
+ - app/views/users/login.html.erb
70
+ - app/views/users/signup.html.erb
71
+ - public/javascripts
72
+ - public/stylesheets
73
+ - public/stylesheets/master.css
74
+ has_rdoc: true
75
+ homepage: http://merb-slices.rubyforge.org/auth-slice/
76
+ post_install_message:
77
+ rdoc_options: []
78
+
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: "0"
86
+ version:
87
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: "0"
92
+ version:
93
+ requirements: []
94
+
95
+ rubyforge_project:
96
+ rubygems_version: 1.1.1
97
+ signing_key:
98
+ specification_version: 2
99
+ summary: Merb Slice that provides user authentication
100
+ test_files: []
101
+