padrino-admin 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/padrino-admin.rb +1 -1
- data/lib/padrino-admin/generators/actions.rb +2 -6
- data/padrino-admin.gemspec +10 -10
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.2
|
data/lib/padrino-admin.rb
CHANGED
@@ -31,18 +31,14 @@ module Padrino
|
|
31
31
|
#
|
32
32
|
def add_access_control_permission(admin, controller)
|
33
33
|
permission = indent(6, access_control(controller))
|
34
|
-
|
35
|
-
inject_into_file destination_root("#{admin}/app.rb"), permission, :after => "access_control.roles_for :admin do |role, account|\n"
|
36
|
-
end
|
34
|
+
inject_into_file destination_root("#{admin}/app.rb"), permission, :after => "access_control.roles_for :admin do |role, account|\n"
|
37
35
|
end
|
38
36
|
|
39
37
|
##
|
40
38
|
# Add a simple permission (allow/deny) to our app.rb
|
41
39
|
#
|
42
40
|
def add_permission(admin, permission)
|
43
|
-
|
44
|
-
inject_into_file destination_root("#{admin}/app.rb"), indent(6, "\n#{permission}\n"), :after => "access_control.roles_for :admin do |role, account|\n"
|
45
|
-
end
|
41
|
+
inject_into_file destination_root("#{admin}/app.rb"), indent(6, "\n#{permission}\n"), :after => "access_control.roles_for :admin do |role, account|\n"
|
46
42
|
end
|
47
43
|
|
48
44
|
##
|
data/padrino-admin.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{padrino-admin}
|
8
|
-
s.version = "0.7.
|
8
|
+
s.version = "0.7.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
|
@@ -355,9 +355,9 @@ Gem::Specification.new do |s|
|
|
355
355
|
|
356
356
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
357
357
|
s.add_runtime_dependency(%q<json_pure>, [">= 1.2.0"])
|
358
|
-
s.add_runtime_dependency(%q<padrino-core>, ["= 0.7.
|
359
|
-
s.add_runtime_dependency(%q<padrino-gen>, ["= 0.7.
|
360
|
-
s.add_runtime_dependency(%q<padrino-helpers>, ["= 0.7.
|
358
|
+
s.add_runtime_dependency(%q<padrino-core>, ["= 0.7.2"])
|
359
|
+
s.add_runtime_dependency(%q<padrino-gen>, ["= 0.7.2"])
|
360
|
+
s.add_runtime_dependency(%q<padrino-helpers>, ["= 0.7.2"])
|
361
361
|
s.add_runtime_dependency(%q<tilt>, [">= 0.4"])
|
362
362
|
s.add_development_dependency(%q<haml>, [">= 2.2.1"])
|
363
363
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
@@ -366,9 +366,9 @@ Gem::Specification.new do |s|
|
|
366
366
|
s.add_development_dependency(%q<webrat>, [">= 0.5.1"])
|
367
367
|
else
|
368
368
|
s.add_dependency(%q<json_pure>, [">= 1.2.0"])
|
369
|
-
s.add_dependency(%q<padrino-core>, ["= 0.7.
|
370
|
-
s.add_dependency(%q<padrino-gen>, ["= 0.7.
|
371
|
-
s.add_dependency(%q<padrino-helpers>, ["= 0.7.
|
369
|
+
s.add_dependency(%q<padrino-core>, ["= 0.7.2"])
|
370
|
+
s.add_dependency(%q<padrino-gen>, ["= 0.7.2"])
|
371
|
+
s.add_dependency(%q<padrino-helpers>, ["= 0.7.2"])
|
372
372
|
s.add_dependency(%q<tilt>, [">= 0.4"])
|
373
373
|
s.add_dependency(%q<haml>, [">= 2.2.1"])
|
374
374
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
@@ -378,9 +378,9 @@ Gem::Specification.new do |s|
|
|
378
378
|
end
|
379
379
|
else
|
380
380
|
s.add_dependency(%q<json_pure>, [">= 1.2.0"])
|
381
|
-
s.add_dependency(%q<padrino-core>, ["= 0.7.
|
382
|
-
s.add_dependency(%q<padrino-gen>, ["= 0.7.
|
383
|
-
s.add_dependency(%q<padrino-helpers>, ["= 0.7.
|
381
|
+
s.add_dependency(%q<padrino-core>, ["= 0.7.2"])
|
382
|
+
s.add_dependency(%q<padrino-gen>, ["= 0.7.2"])
|
383
|
+
s.add_dependency(%q<padrino-helpers>, ["= 0.7.2"])
|
384
384
|
s.add_dependency(%q<tilt>, [">= 0.4"])
|
385
385
|
s.add_dependency(%q<haml>, [">= 2.2.1"])
|
386
386
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: padrino-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Padrino Team
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
requirements:
|
34
34
|
- - "="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 0.7.
|
36
|
+
version: 0.7.2
|
37
37
|
version:
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: padrino-gen
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
requirements:
|
44
44
|
- - "="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 0.7.
|
46
|
+
version: 0.7.2
|
47
47
|
version:
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: padrino-helpers
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
requirements:
|
54
54
|
- - "="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.7.
|
56
|
+
version: 0.7.2
|
57
57
|
version:
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: tilt
|