super_simple_admin 0.2.2 → 0.2.4
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.
- data/README.textile +6 -1
- data/VERSION +1 -1
- data/lib/super_simple_admin.rb +3 -3
- data/pkg/super_simple_admin-0.2.2.gem +0 -0
- data/pkg/super_simple_admin-0.2.3.gem +0 -0
- data/pkg/super_simple_admin-0.2.4.gem +0 -0
- data/spec/rails3/Gemfile.lock +3 -3
- data/super_simple_admin.gemspec +83 -83
- metadata +11 -9
- data/.gitignore +0 -1
data/README.textile
CHANGED
@@ -35,6 +35,8 @@ bc. #login_form
|
|
35
35
|
|
36
36
|
You can now use the @admin?@ helper method in any of your views to change what website users see based on whether they are logged in and also use @authorize@ in before filters in your controllers to restrict access as you see fit.
|
37
37
|
|
38
|
+
Oh - and one last thing. You'll also want to add some routes in your routes.rb file for the sessions_path to work, as well as for nice login route so that the @/login@ and @/logout@ paths do what you would expect.
|
39
|
+
|
38
40
|
And that's it!
|
39
41
|
|
40
42
|
h2. Customization, configuration and defaults
|
@@ -87,7 +89,10 @@ These are the ideas I have for improvements. If you feel inspired to help with a
|
|
87
89
|
* Consider if there is a way to be more supportive of gems like cancan
|
88
90
|
* Auto setup of login and logout routes
|
89
91
|
* Specs (sorry - when this was started, I didn't know how to spec rails gems, and I haven't had time yet to go back and spec)
|
92
|
+
* Cucumber steps for logging in
|
93
|
+
* An install rake task which maybe sets up the routes as well as the config file.
|
94
|
+
|
90
95
|
|
91
96
|
h3. Fixes
|
92
97
|
|
93
|
-
|
98
|
+
* Seem to be having trouble specifying :login_failure_message from the config file
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/lib/super_simple_admin.rb
CHANGED
@@ -22,8 +22,8 @@ module SuperSimpleAdmin
|
|
22
22
|
begin
|
23
23
|
raw_config = File.read(Rails.root.to_s + "/config/admin_config.yml")
|
24
24
|
yml = YAML.load(raw_config)
|
25
|
-
@config.merge yml["all_environments"].symbolize_keys
|
26
|
-
@config.merge yml[
|
25
|
+
@config.merge! yml["all_environments"].symbolize_keys
|
26
|
+
@config.merge! yml[Rails.env].symbolize_keys
|
27
27
|
rescue Errno::ENOENT
|
28
28
|
end
|
29
29
|
|
@@ -75,4 +75,4 @@ module SuperSimpleAdmin
|
|
75
75
|
|
76
76
|
end
|
77
77
|
end
|
78
|
-
end
|
78
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
data/spec/rails3/Gemfile.lock
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
PATH
|
2
|
-
remote:
|
2
|
+
remote: ../..
|
3
3
|
specs:
|
4
|
-
super_simple_admin (0.2.
|
4
|
+
super_simple_admin (0.2.2)
|
5
5
|
RedCloth
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
RedCloth (4.2.
|
10
|
+
RedCloth (4.2.7)
|
11
11
|
abstract (1.0.0)
|
12
12
|
actionmailer (3.0.2)
|
13
13
|
actionpack (= 3.0.2)
|
data/super_simple_admin.gemspec
CHANGED
@@ -1,110 +1,110 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{super_simple_admin}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["metasoarous"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-02-15}
|
13
13
|
s.description = %q{Provides super simple authentication al a Ryan Bates old screen cast. Creates admin access feature which allows for a single password login for admin tool access.}
|
14
14
|
s.email = %q{metasoarous@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README.textile"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
-
"
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
20
|
+
"Changelog",
|
21
|
+
"LICENSE",
|
22
|
+
"README.textile",
|
23
|
+
"Rakefile",
|
24
|
+
"VERSION",
|
25
|
+
"lib/super_simple_admin.rb",
|
26
|
+
"pkg/super_simple_admin-0.2.1.gem",
|
27
|
+
"pkg/super_simple_admin-0.2.2.gem",
|
28
|
+
"pkg/super_simple_admin-0.2.3.gem",
|
29
|
+
"pkg/super_simple_admin-0.2.4.gem",
|
30
|
+
"spec/rails3/Gemfile",
|
31
|
+
"spec/rails3/Gemfile.lock",
|
32
|
+
"spec/rails3/Rakefile",
|
33
|
+
"spec/rails3/app_root/.gitignore",
|
34
|
+
"spec/rails3/app_root/README",
|
35
|
+
"spec/rails3/app_root/app/controllers/application_controller.rb",
|
36
|
+
"spec/rails3/app_root/app/controllers/sessions_controller.rb",
|
37
|
+
"spec/rails3/app_root/app/helpers/application_helper.rb",
|
38
|
+
"spec/rails3/app_root/app/views/layouts/application.html.erb",
|
39
|
+
"spec/rails3/app_root/app/views/sessions/new.html.haml",
|
40
|
+
"spec/rails3/app_root/config.ru",
|
41
|
+
"spec/rails3/app_root/config/application.rb",
|
42
|
+
"spec/rails3/app_root/config/boot.rb",
|
43
|
+
"spec/rails3/app_root/config/database.yml",
|
44
|
+
"spec/rails3/app_root/config/environment.rb",
|
45
|
+
"spec/rails3/app_root/config/environments/development.rb",
|
46
|
+
"spec/rails3/app_root/config/environments/in_memory.rb",
|
47
|
+
"spec/rails3/app_root/config/environments/production.rb",
|
48
|
+
"spec/rails3/app_root/config/environments/test.rb",
|
49
|
+
"spec/rails3/app_root/config/initializers/backtrace_silencers.rb",
|
50
|
+
"spec/rails3/app_root/config/initializers/inflections.rb",
|
51
|
+
"spec/rails3/app_root/config/initializers/mime_types.rb",
|
52
|
+
"spec/rails3/app_root/config/initializers/secret_token.rb",
|
53
|
+
"spec/rails3/app_root/config/initializers/session_store.rb",
|
54
|
+
"spec/rails3/app_root/config/locales/en.yml",
|
55
|
+
"spec/rails3/app_root/config/routes.rb",
|
56
|
+
"spec/rails3/app_root/db/seeds.rb",
|
57
|
+
"spec/rails3/app_root/doc/README_FOR_APP",
|
58
|
+
"spec/rails3/app_root/lib/tasks/.gitkeep",
|
59
|
+
"spec/rails3/app_root/public/404.html",
|
60
|
+
"spec/rails3/app_root/public/422.html",
|
61
|
+
"spec/rails3/app_root/public/500.html",
|
62
|
+
"spec/rails3/app_root/public/favicon.ico",
|
63
|
+
"spec/rails3/app_root/public/images/rails.png",
|
64
|
+
"spec/rails3/app_root/public/index.html",
|
65
|
+
"spec/rails3/app_root/public/javascripts/application.js",
|
66
|
+
"spec/rails3/app_root/public/javascripts/controls.js",
|
67
|
+
"spec/rails3/app_root/public/javascripts/dragdrop.js",
|
68
|
+
"spec/rails3/app_root/public/javascripts/effects.js",
|
69
|
+
"spec/rails3/app_root/public/javascripts/prototype.js",
|
70
|
+
"spec/rails3/app_root/public/javascripts/rails.js",
|
71
|
+
"spec/rails3/app_root/public/robots.txt",
|
72
|
+
"spec/rails3/app_root/public/stylesheets/.gitkeep",
|
73
|
+
"spec/rails3/app_root/public/stylesheets/scaffold.css",
|
74
|
+
"spec/rails3/app_root/script/rails",
|
75
|
+
"spec/rails3/spec.opts",
|
76
|
+
"spec/rails3/spec_helper.rb",
|
77
|
+
"spec/rails3/super_simple_admin_spec.rb",
|
78
|
+
"super_simple_admin-0.2.1.gem",
|
79
|
+
"super_simple_admin.gemspec"
|
78
80
|
]
|
79
81
|
s.homepage = %q{http://www.thoughtnode.com}
|
80
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
81
82
|
s.require_paths = ["lib"]
|
82
|
-
s.rubygems_version = %q{1.
|
83
|
+
s.rubygems_version = %q{1.4.2}
|
83
84
|
s.summary = %q{Provides super simple authentication al a Ryan Bates old screen cast.}
|
84
85
|
s.test_files = [
|
85
86
|
"spec/rails3/app_root/app/controllers/application_controller.rb",
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
87
|
+
"spec/rails3/app_root/app/controllers/sessions_controller.rb",
|
88
|
+
"spec/rails3/app_root/app/helpers/application_helper.rb",
|
89
|
+
"spec/rails3/app_root/config/application.rb",
|
90
|
+
"spec/rails3/app_root/config/boot.rb",
|
91
|
+
"spec/rails3/app_root/config/environment.rb",
|
92
|
+
"spec/rails3/app_root/config/environments/development.rb",
|
93
|
+
"spec/rails3/app_root/config/environments/in_memory.rb",
|
94
|
+
"spec/rails3/app_root/config/environments/production.rb",
|
95
|
+
"spec/rails3/app_root/config/environments/test.rb",
|
96
|
+
"spec/rails3/app_root/config/initializers/backtrace_silencers.rb",
|
97
|
+
"spec/rails3/app_root/config/initializers/inflections.rb",
|
98
|
+
"spec/rails3/app_root/config/initializers/mime_types.rb",
|
99
|
+
"spec/rails3/app_root/config/initializers/secret_token.rb",
|
100
|
+
"spec/rails3/app_root/config/initializers/session_store.rb",
|
101
|
+
"spec/rails3/app_root/config/routes.rb",
|
102
|
+
"spec/rails3/app_root/db/seeds.rb",
|
103
|
+
"spec/rails3/spec_helper.rb",
|
104
|
+
"spec/rails3/super_simple_admin_spec.rb"
|
104
105
|
]
|
105
106
|
|
106
107
|
if s.respond_to? :specification_version then
|
107
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
108
108
|
s.specification_version = 3
|
109
109
|
|
110
110
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: super_simple_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 31
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 4
|
10
|
+
version: 0.2.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- metasoarous
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-02-15 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -72,7 +72,6 @@ extra_rdoc_files:
|
|
72
72
|
- LICENSE
|
73
73
|
- README.textile
|
74
74
|
files:
|
75
|
-
- .gitignore
|
76
75
|
- Changelog
|
77
76
|
- LICENSE
|
78
77
|
- README.textile
|
@@ -80,6 +79,9 @@ files:
|
|
80
79
|
- VERSION
|
81
80
|
- lib/super_simple_admin.rb
|
82
81
|
- pkg/super_simple_admin-0.2.1.gem
|
82
|
+
- pkg/super_simple_admin-0.2.2.gem
|
83
|
+
- pkg/super_simple_admin-0.2.3.gem
|
84
|
+
- pkg/super_simple_admin-0.2.4.gem
|
83
85
|
- spec/rails3/Gemfile
|
84
86
|
- spec/rails3/Gemfile.lock
|
85
87
|
- spec/rails3/Rakefile
|
@@ -135,8 +137,8 @@ homepage: http://www.thoughtnode.com
|
|
135
137
|
licenses: []
|
136
138
|
|
137
139
|
post_install_message:
|
138
|
-
rdoc_options:
|
139
|
-
|
140
|
+
rdoc_options: []
|
141
|
+
|
140
142
|
require_paths:
|
141
143
|
- lib
|
142
144
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -160,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
160
162
|
requirements: []
|
161
163
|
|
162
164
|
rubyforge_project:
|
163
|
-
rubygems_version: 1.
|
165
|
+
rubygems_version: 1.4.2
|
164
166
|
signing_key:
|
165
167
|
specification_version: 3
|
166
168
|
summary: Provides super simple authentication al a Ryan Bates old screen cast.
|
data/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
super_simple_admin-0.1.1.gem
|