godmin 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +24 -0
- data/.hound.yml +2 -0
- data/.rubocop.yml +7 -0
- data/.travis.yml +7 -0
- data/Gemfile +11 -0
- data/MIT-LICENSE +20 -0
- data/README.md +523 -0
- data/Rakefile +34 -0
- data/app/assets/images/godmin/.keep +0 -0
- data/app/assets/javascripts/godmin/application.js +19 -0
- data/app/assets/javascripts/godmin/batch_actions.js +42 -0
- data/app/assets/javascripts/godmin/navigation.js +9 -0
- data/app/assets/javascripts/godmin/select_tags.js +8 -0
- data/app/assets/stylesheets/godmin/application.css.scss +62 -0
- data/app/views/godmin/application/welcome.html.erb +65 -0
- data/app/views/godmin/resource/_actions.html.erb +10 -0
- data/app/views/godmin/resource/_batch_actions.html.erb +12 -0
- data/app/views/godmin/resource/_breadcrumb.html.erb +21 -0
- data/app/views/godmin/resource/_errors.html.erb +9 -0
- data/app/views/godmin/resource/_filters.html.erb +23 -0
- data/app/views/godmin/resource/_form.html.erb +12 -0
- data/app/views/godmin/resource/_pagination.html.erb +6 -0
- data/app/views/godmin/resource/_scopes.html.erb +11 -0
- data/app/views/godmin/resource/_table.html.erb +36 -0
- data/app/views/godmin/resource/columns/_actions.html.erb +11 -0
- data/app/views/godmin/resource/edit.html.erb +5 -0
- data/app/views/godmin/resource/index.html.erb +17 -0
- data/app/views/godmin/resource/new.html.erb +5 -0
- data/app/views/godmin/resource/show.html.erb +1 -0
- data/app/views/godmin/sessions/new.html.erb +9 -0
- data/app/views/godmin/shared/_navigation.html.erb +29 -0
- data/app/views/kaminari/_first_page.html.erb +3 -0
- data/app/views/kaminari/_gap.html.erb +3 -0
- data/app/views/kaminari/_last_page.html.erb +3 -0
- data/app/views/kaminari/_next_page.html.erb +3 -0
- data/app/views/kaminari/_page.html.erb +3 -0
- data/app/views/kaminari/_paginator.html.erb +15 -0
- data/app/views/kaminari/_prev_page.html.erb +3 -0
- data/app/views/layouts/godmin/_content.html.erb +13 -0
- data/app/views/layouts/godmin/_layout.html.erb +13 -0
- data/app/views/layouts/godmin/application.html.erb +17 -0
- data/app/views/layouts/godmin/login.html.erb +18 -0
- data/bin/rails +8 -0
- data/config/locales/en.yml +41 -0
- data/config/locales/sv.yml +41 -0
- data/config/routes.rb +2 -0
- data/godmin.gemspec +32 -0
- data/lib/generators/godmin/authentication/authentication_generator.rb +61 -0
- data/lib/generators/godmin/install/install_generator.rb +34 -0
- data/lib/generators/godmin/policy/policy_generator.rb +29 -0
- data/lib/generators/godmin/resource/resource_generator.rb +56 -0
- data/lib/godmin.rb +24 -0
- data/lib/godmin/application.rb +37 -0
- data/lib/godmin/authentication.rb +35 -0
- data/lib/godmin/authentication/sessions.rb +45 -0
- data/lib/godmin/authentication/user.rb +27 -0
- data/lib/godmin/authorization.rb +30 -0
- data/lib/godmin/authorization/policy.rb +40 -0
- data/lib/godmin/authorization/policy_finder.rb +28 -0
- data/lib/godmin/engine.rb +4 -0
- data/lib/godmin/generators/base.rb +13 -0
- data/lib/godmin/helpers/application.rb +6 -0
- data/lib/godmin/helpers/batch_actions.rb +17 -0
- data/lib/godmin/helpers/filters.rb +108 -0
- data/lib/godmin/helpers/tables.rb +41 -0
- data/lib/godmin/helpers/translations.rb +19 -0
- data/lib/godmin/rails.rb +36 -0
- data/lib/godmin/resolver.rb +46 -0
- data/lib/godmin/resource.rb +126 -0
- data/lib/godmin/resource/batch_actions.rb +45 -0
- data/lib/godmin/resource/filters.rb +41 -0
- data/lib/godmin/resource/ordering.rb +25 -0
- data/lib/godmin/resource/pagination.rb +11 -0
- data/lib/godmin/resource/scopes.rb +49 -0
- data/lib/godmin/version.rb +3 -0
- data/lib/tasks/godmin_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.keep +0 -0
- data/test/dummy/app/models/.keep +0 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +23 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +12 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +4 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/godmin_test.rb +7 -0
- data/test/integration/navigation_test.rb +10 -0
- data/test/lib/godmin/policy_finder_test.rb +30 -0
- data/test/lib/godmin/resolver_test.rb +31 -0
- data/test/test_helper.rb +21 -0
- data/vendor/assets/images/godmin/chosen-sprite.png +0 -0
- data/vendor/assets/images/godmin/chosen-sprite@2x.png +0 -0
- data/vendor/assets/javascripts/.keep +0 -0
- data/vendor/assets/stylesheets/.keep +0 -0
- metadata +361 -0
@@ -0,0 +1,58 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/422.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>The change you wanted was rejected.</h1>
|
54
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
55
|
+
</div>
|
56
|
+
<p>If you are the application owner check the logs for more information.</p>
|
57
|
+
</body>
|
58
|
+
</html>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background-color: #EFEFEF;
|
8
|
+
color: #2E2F30;
|
9
|
+
text-align: center;
|
10
|
+
font-family: arial, sans-serif;
|
11
|
+
}
|
12
|
+
|
13
|
+
div.dialog {
|
14
|
+
width: 25em;
|
15
|
+
margin: 4em auto 0 auto;
|
16
|
+
border: 1px solid #CCC;
|
17
|
+
border-right-color: #999;
|
18
|
+
border-left-color: #999;
|
19
|
+
border-bottom-color: #BBB;
|
20
|
+
border-top: #B00100 solid 4px;
|
21
|
+
border-top-left-radius: 9px;
|
22
|
+
border-top-right-radius: 9px;
|
23
|
+
background-color: white;
|
24
|
+
padding: 7px 4em 0 4em;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-size: 100%;
|
29
|
+
color: #730E15;
|
30
|
+
line-height: 1.5em;
|
31
|
+
}
|
32
|
+
|
33
|
+
body > p {
|
34
|
+
width: 33em;
|
35
|
+
margin: 0 auto 1em;
|
36
|
+
padding: 1em 0;
|
37
|
+
background-color: #F7F7F7;
|
38
|
+
border: 1px solid #CCC;
|
39
|
+
border-right-color: #999;
|
40
|
+
border-bottom-color: #999;
|
41
|
+
border-bottom-left-radius: 4px;
|
42
|
+
border-bottom-right-radius: 4px;
|
43
|
+
border-top-color: #DADADA;
|
44
|
+
color: #666;
|
45
|
+
box-shadow:0 3px 8px rgba(50, 50, 50, 0.17);
|
46
|
+
}
|
47
|
+
</style>
|
48
|
+
</head>
|
49
|
+
|
50
|
+
<body>
|
51
|
+
<!-- This file lives in public/500.html -->
|
52
|
+
<div class="dialog">
|
53
|
+
<h1>We're sorry, but something went wrong.</h1>
|
54
|
+
</div>
|
55
|
+
<p>If you are the application owner check the logs for more information.</p>
|
56
|
+
</body>
|
57
|
+
</html>
|
File without changes
|
data/test/godmin_test.rb
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
class Article; extend ActiveModel::Naming; end
|
4
|
+
|
5
|
+
module Godmin
|
6
|
+
module Authorization
|
7
|
+
class PolicyFinderTest < ActiveSupport::TestCase
|
8
|
+
def test_find_by_model
|
9
|
+
namespaced_as "namespace" do
|
10
|
+
policy = PolicyFinder.find(Article)
|
11
|
+
assert_equal "Namespace::ArticlePolicy", policy
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_find_by_class
|
16
|
+
namespaced_as "namespace" do
|
17
|
+
policy = PolicyFinder.find(Object)
|
18
|
+
assert_equal "Namespace::ObjectPolicy", policy
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_find_by_symbol
|
23
|
+
namespaced_as "namespace" do
|
24
|
+
policy = PolicyFinder.find(:article)
|
25
|
+
assert_equal "Namespace::ArticlePolicy", policy
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
module Godmin
|
4
|
+
class ResolverTest < ActiveSupport::TestCase
|
5
|
+
def test_foo_resolver_template_paths
|
6
|
+
namespaced_as "namespace" do
|
7
|
+
assert_equal [
|
8
|
+
"namespace/controller_name/prefix",
|
9
|
+
"namespace/controller_name",
|
10
|
+
"namespace/prefix",
|
11
|
+
"namespace/resource/prefix",
|
12
|
+
"namespace/resource",
|
13
|
+
"namespace"
|
14
|
+
], EngineResolver.new("controller_name").template_paths("prefix", false)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_bar_resolver_template_paths
|
19
|
+
namespaced_as "namespace" do
|
20
|
+
assert_equal [
|
21
|
+
"godmin/controller_name/prefix",
|
22
|
+
"godmin/controller_name",
|
23
|
+
"godmin/prefix",
|
24
|
+
"godmin/resource/prefix",
|
25
|
+
"godmin/resource",
|
26
|
+
"godmin"
|
27
|
+
], GodminResolver.new("controller_name").template_paths("prefix", false)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
16
|
+
|
17
|
+
def namespaced_as(namespace)
|
18
|
+
Godmin.namespace = namespace
|
19
|
+
yield
|
20
|
+
Godmin.namespace = nil
|
21
|
+
end
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
metadata
ADDED
@@ -0,0 +1,361 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: godmin
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jens Ljungblad
|
8
|
+
- Linus Pettersson
|
9
|
+
- Varvet
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: bcrypt
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - "~>"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.1.7
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - "~>"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 3.1.7
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: bootstrap-sass
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 3.1.1.0
|
36
|
+
type: :runtime
|
37
|
+
prerelease: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 3.1.1.0
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: coffee-rails
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '4.0'
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '4.2'
|
53
|
+
type: :runtime
|
54
|
+
prerelease: false
|
55
|
+
version_requirements: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '4.0'
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '4.2'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: kaminari
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.16.1
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.16.1
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: rails
|
79
|
+
requirement: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - ">="
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '4.0'
|
84
|
+
- - "<"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '4.2'
|
87
|
+
type: :runtime
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '4.0'
|
94
|
+
- - "<"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '4.2'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: sass-rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '4.0'
|
104
|
+
- - "<"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '4.2'
|
107
|
+
type: :runtime
|
108
|
+
prerelease: false
|
109
|
+
version_requirements: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '4.0'
|
114
|
+
- - "<"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '4.2'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: select2-rails
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 3.5.7
|
124
|
+
type: :runtime
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 3.5.7
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: simple_form
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 3.0.0
|
138
|
+
type: :runtime
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: 3.0.0
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: sqlite3
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
description: Godmin is an admin engine for Rails 4+
|
160
|
+
email:
|
161
|
+
- hej@varvet.se
|
162
|
+
executables:
|
163
|
+
- rails
|
164
|
+
extensions: []
|
165
|
+
extra_rdoc_files: []
|
166
|
+
files:
|
167
|
+
- ".gitignore"
|
168
|
+
- ".hound.yml"
|
169
|
+
- ".rubocop.yml"
|
170
|
+
- ".travis.yml"
|
171
|
+
- Gemfile
|
172
|
+
- MIT-LICENSE
|
173
|
+
- README.md
|
174
|
+
- Rakefile
|
175
|
+
- app/assets/images/godmin/.keep
|
176
|
+
- app/assets/javascripts/godmin/application.js
|
177
|
+
- app/assets/javascripts/godmin/batch_actions.js
|
178
|
+
- app/assets/javascripts/godmin/navigation.js
|
179
|
+
- app/assets/javascripts/godmin/select_tags.js
|
180
|
+
- app/assets/stylesheets/godmin/application.css.scss
|
181
|
+
- app/views/godmin/application/welcome.html.erb
|
182
|
+
- app/views/godmin/resource/_actions.html.erb
|
183
|
+
- app/views/godmin/resource/_batch_actions.html.erb
|
184
|
+
- app/views/godmin/resource/_breadcrumb.html.erb
|
185
|
+
- app/views/godmin/resource/_errors.html.erb
|
186
|
+
- app/views/godmin/resource/_filters.html.erb
|
187
|
+
- app/views/godmin/resource/_form.html.erb
|
188
|
+
- app/views/godmin/resource/_pagination.html.erb
|
189
|
+
- app/views/godmin/resource/_scopes.html.erb
|
190
|
+
- app/views/godmin/resource/_table.html.erb
|
191
|
+
- app/views/godmin/resource/columns/_actions.html.erb
|
192
|
+
- app/views/godmin/resource/edit.html.erb
|
193
|
+
- app/views/godmin/resource/index.html.erb
|
194
|
+
- app/views/godmin/resource/new.html.erb
|
195
|
+
- app/views/godmin/resource/show.html.erb
|
196
|
+
- app/views/godmin/sessions/new.html.erb
|
197
|
+
- app/views/godmin/shared/_navigation.html.erb
|
198
|
+
- app/views/kaminari/_first_page.html.erb
|
199
|
+
- app/views/kaminari/_gap.html.erb
|
200
|
+
- app/views/kaminari/_last_page.html.erb
|
201
|
+
- app/views/kaminari/_next_page.html.erb
|
202
|
+
- app/views/kaminari/_page.html.erb
|
203
|
+
- app/views/kaminari/_paginator.html.erb
|
204
|
+
- app/views/kaminari/_prev_page.html.erb
|
205
|
+
- app/views/layouts/godmin/_content.html.erb
|
206
|
+
- app/views/layouts/godmin/_layout.html.erb
|
207
|
+
- app/views/layouts/godmin/application.html.erb
|
208
|
+
- app/views/layouts/godmin/login.html.erb
|
209
|
+
- bin/rails
|
210
|
+
- config/locales/en.yml
|
211
|
+
- config/locales/sv.yml
|
212
|
+
- config/routes.rb
|
213
|
+
- godmin.gemspec
|
214
|
+
- lib/generators/godmin/authentication/authentication_generator.rb
|
215
|
+
- lib/generators/godmin/install/install_generator.rb
|
216
|
+
- lib/generators/godmin/policy/policy_generator.rb
|
217
|
+
- lib/generators/godmin/resource/resource_generator.rb
|
218
|
+
- lib/godmin.rb
|
219
|
+
- lib/godmin/application.rb
|
220
|
+
- lib/godmin/authentication.rb
|
221
|
+
- lib/godmin/authentication/sessions.rb
|
222
|
+
- lib/godmin/authentication/user.rb
|
223
|
+
- lib/godmin/authorization.rb
|
224
|
+
- lib/godmin/authorization/policy.rb
|
225
|
+
- lib/godmin/authorization/policy_finder.rb
|
226
|
+
- lib/godmin/engine.rb
|
227
|
+
- lib/godmin/generators/base.rb
|
228
|
+
- lib/godmin/helpers/application.rb
|
229
|
+
- lib/godmin/helpers/batch_actions.rb
|
230
|
+
- lib/godmin/helpers/filters.rb
|
231
|
+
- lib/godmin/helpers/tables.rb
|
232
|
+
- lib/godmin/helpers/translations.rb
|
233
|
+
- lib/godmin/rails.rb
|
234
|
+
- lib/godmin/resolver.rb
|
235
|
+
- lib/godmin/resource.rb
|
236
|
+
- lib/godmin/resource/batch_actions.rb
|
237
|
+
- lib/godmin/resource/filters.rb
|
238
|
+
- lib/godmin/resource/ordering.rb
|
239
|
+
- lib/godmin/resource/pagination.rb
|
240
|
+
- lib/godmin/resource/scopes.rb
|
241
|
+
- lib/godmin/version.rb
|
242
|
+
- lib/tasks/godmin_tasks.rake
|
243
|
+
- test/dummy/README.rdoc
|
244
|
+
- test/dummy/Rakefile
|
245
|
+
- test/dummy/app/assets/images/.keep
|
246
|
+
- test/dummy/app/assets/javascripts/application.js
|
247
|
+
- test/dummy/app/assets/stylesheets/application.css
|
248
|
+
- test/dummy/app/controllers/application_controller.rb
|
249
|
+
- test/dummy/app/controllers/concerns/.keep
|
250
|
+
- test/dummy/app/helpers/application_helper.rb
|
251
|
+
- test/dummy/app/mailers/.keep
|
252
|
+
- test/dummy/app/models/.keep
|
253
|
+
- test/dummy/app/models/concerns/.keep
|
254
|
+
- test/dummy/app/views/layouts/application.html.erb
|
255
|
+
- test/dummy/bin/bundle
|
256
|
+
- test/dummy/bin/rails
|
257
|
+
- test/dummy/bin/rake
|
258
|
+
- test/dummy/config.ru
|
259
|
+
- test/dummy/config/application.rb
|
260
|
+
- test/dummy/config/boot.rb
|
261
|
+
- test/dummy/config/database.yml
|
262
|
+
- test/dummy/config/environment.rb
|
263
|
+
- test/dummy/config/environments/development.rb
|
264
|
+
- test/dummy/config/environments/production.rb
|
265
|
+
- test/dummy/config/environments/test.rb
|
266
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
267
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
268
|
+
- test/dummy/config/initializers/inflections.rb
|
269
|
+
- test/dummy/config/initializers/mime_types.rb
|
270
|
+
- test/dummy/config/initializers/secret_token.rb
|
271
|
+
- test/dummy/config/initializers/session_store.rb
|
272
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
273
|
+
- test/dummy/config/locales/en.yml
|
274
|
+
- test/dummy/config/routes.rb
|
275
|
+
- test/dummy/db/test.sqlite3
|
276
|
+
- test/dummy/lib/assets/.keep
|
277
|
+
- test/dummy/log/.keep
|
278
|
+
- test/dummy/log/development.log
|
279
|
+
- test/dummy/public/404.html
|
280
|
+
- test/dummy/public/422.html
|
281
|
+
- test/dummy/public/500.html
|
282
|
+
- test/dummy/public/favicon.ico
|
283
|
+
- test/godmin_test.rb
|
284
|
+
- test/integration/navigation_test.rb
|
285
|
+
- test/lib/godmin/policy_finder_test.rb
|
286
|
+
- test/lib/godmin/resolver_test.rb
|
287
|
+
- test/test_helper.rb
|
288
|
+
- vendor/assets/images/godmin/chosen-sprite.png
|
289
|
+
- vendor/assets/images/godmin/chosen-sprite@2x.png
|
290
|
+
- vendor/assets/javascripts/.keep
|
291
|
+
- vendor/assets/stylesheets/.keep
|
292
|
+
homepage: https://github.com/varvet/godmin
|
293
|
+
licenses:
|
294
|
+
- MIT
|
295
|
+
metadata: {}
|
296
|
+
post_install_message:
|
297
|
+
rdoc_options: []
|
298
|
+
require_paths:
|
299
|
+
- lib
|
300
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
301
|
+
requirements:
|
302
|
+
- - ">="
|
303
|
+
- !ruby/object:Gem::Version
|
304
|
+
version: '0'
|
305
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
306
|
+
requirements:
|
307
|
+
- - ">="
|
308
|
+
- !ruby/object:Gem::Version
|
309
|
+
version: '0'
|
310
|
+
requirements: []
|
311
|
+
rubyforge_project:
|
312
|
+
rubygems_version: 2.2.0
|
313
|
+
signing_key:
|
314
|
+
specification_version: 4
|
315
|
+
summary: Godmin is an admin engine for Rails 4+
|
316
|
+
test_files:
|
317
|
+
- test/dummy/README.rdoc
|
318
|
+
- test/dummy/Rakefile
|
319
|
+
- test/dummy/app/assets/images/.keep
|
320
|
+
- test/dummy/app/assets/javascripts/application.js
|
321
|
+
- test/dummy/app/assets/stylesheets/application.css
|
322
|
+
- test/dummy/app/controllers/application_controller.rb
|
323
|
+
- test/dummy/app/controllers/concerns/.keep
|
324
|
+
- test/dummy/app/helpers/application_helper.rb
|
325
|
+
- test/dummy/app/mailers/.keep
|
326
|
+
- test/dummy/app/models/.keep
|
327
|
+
- test/dummy/app/models/concerns/.keep
|
328
|
+
- test/dummy/app/views/layouts/application.html.erb
|
329
|
+
- test/dummy/bin/bundle
|
330
|
+
- test/dummy/bin/rails
|
331
|
+
- test/dummy/bin/rake
|
332
|
+
- test/dummy/config.ru
|
333
|
+
- test/dummy/config/application.rb
|
334
|
+
- test/dummy/config/boot.rb
|
335
|
+
- test/dummy/config/database.yml
|
336
|
+
- test/dummy/config/environment.rb
|
337
|
+
- test/dummy/config/environments/development.rb
|
338
|
+
- test/dummy/config/environments/production.rb
|
339
|
+
- test/dummy/config/environments/test.rb
|
340
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
341
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
342
|
+
- test/dummy/config/initializers/inflections.rb
|
343
|
+
- test/dummy/config/initializers/mime_types.rb
|
344
|
+
- test/dummy/config/initializers/secret_token.rb
|
345
|
+
- test/dummy/config/initializers/session_store.rb
|
346
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
347
|
+
- test/dummy/config/locales/en.yml
|
348
|
+
- test/dummy/config/routes.rb
|
349
|
+
- test/dummy/db/test.sqlite3
|
350
|
+
- test/dummy/lib/assets/.keep
|
351
|
+
- test/dummy/log/.keep
|
352
|
+
- test/dummy/log/development.log
|
353
|
+
- test/dummy/public/404.html
|
354
|
+
- test/dummy/public/422.html
|
355
|
+
- test/dummy/public/500.html
|
356
|
+
- test/dummy/public/favicon.ico
|
357
|
+
- test/godmin_test.rb
|
358
|
+
- test/integration/navigation_test.rb
|
359
|
+
- test/lib/godmin/policy_finder_test.rb
|
360
|
+
- test/lib/godmin/resolver_test.rb
|
361
|
+
- test/test_helper.rb
|