eucalypt 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eucalypt.rb +6 -6
- data/lib/eucalypt/{eucalypt-blog → blog}/helpers.rb +0 -0
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog-article-edit/cli/edit-datetime.rb +1 -1
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog-article-edit/cli/edit-urltitle.rb +1 -1
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog-article/cli/article.rb +4 -4
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/__base__.rb +1 -1
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/__require__.rb +0 -0
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/cli/blog.rb +2 -2
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/generators/article.rb +1 -1
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/generators/controller.rb +1 -1
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/generators/helper.rb +1 -1
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/generators/list.rb +1 -1
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/generators/views.rb +1 -1
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/templates/controller/controller.tt +0 -0
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/templates/controller/controller_spec.tt +0 -0
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/templates/helper/helper.tt +0 -0
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/templates/helper/helper_spec.tt +0 -0
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/templates/views/article.erb +0 -0
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/templates/views/article_layout.erb +0 -0
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/templates/views/article_md.tt +0 -0
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/templates/views/articles.erb +0 -0
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/templates/views/articles_layout.erb +0 -0
- data/lib/eucalypt/{eucalypt-blog → blog}/namespaces/blog/templates/views/search.erb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/cli/__base__.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/cli/console.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/cli/core.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/cli/help.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/cli/init.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/cli/launch.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/cli/test.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/cli/version.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/Gemfile.tt +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/.gitignore +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/.travis.yml +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/Procfile +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/Rakefile +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app/assets/fonts/.empty_directory +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app/assets/images/.empty_directory +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app/assets/scripts/application.js +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app/assets/stylesheets/__partials__.scss +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app/assets/stylesheets/application.scss +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app/assets/stylesheets/partials/_mixins.scss +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app/controllers/application_controller.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app/helpers/application_helper.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app/models/.empty_directory +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app/static/.empty_directory +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app/views/index.erb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app/views/layouts/main.erb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/app/views/partials/.empty_directory +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/config.ru +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/config/active_record.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/config/asset_pipeline.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/config/database.yml +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/config/initializers/.empty_directory +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/config/logging.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/config/manifest.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/log/.empty_directory +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/spec/controllers/application_controller_spec.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/spec/helpers/application_helper_spec.rb +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/spec/models/.empty_directory +0 -0
- data/lib/eucalypt/{eucalypt-core → core}/templates/eucalypt/spec/spec_helper.rb +0 -0
- data/lib/eucalypt/{eucalypt-destroy → destroy}/helpers.rb +0 -0
- data/lib/eucalypt/{eucalypt-destroy → destroy}/namespaces/destroy/cli/destroy-controller.rb +1 -1
- data/lib/eucalypt/{eucalypt-destroy → destroy}/namespaces/destroy/cli/destroy-helper.rb +1 -1
- data/lib/eucalypt/{eucalypt-destroy → destroy}/namespaces/destroy/cli/destroy-model.rb +1 -1
- data/lib/eucalypt/{eucalypt-destroy → destroy}/namespaces/destroy/cli/destroy-scaffold.rb +0 -0
- data/lib/eucalypt/{eucalypt-destroy → destroy}/namespaces/destroy/cli/destroy.rb +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/.gitkeep +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-controller/cli/generate-controller.rb +1 -1
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-controller/generators/controller.rb +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-controller/templates/controller/controller.tt +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-controller/templates/controller/policy_rest_controller.tt +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-controller/templates/controller/rest_controller.tt +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-controller/templates/controller_spec.tt +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-helper/cli/generate-helper.rb +1 -1
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-helper/generators/helper.rb +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-helper/templates/helper.tt +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-helper/templates/helper_spec.tt +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-model/cli/generate-model.rb +1 -1
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-model/generators/model.rb +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-model/templates/model.tt +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate-model/templates/model_spec.tt +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate/cli/generate-scaffold.rb +0 -0
- data/lib/eucalypt/{eucalypt-generate → generate}/namespaces/generate/cli/generate.rb +3 -3
- data/lib/eucalypt/{eucalypt-migration → migration}/helpers.rb +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/migration_base.tt +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-add/cli/add-column.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-add/cli/add-index.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-add/cli/add.rb +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-add/generators/column.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-add/generators/index.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-blank/cli/blank.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-blank/generators/blank.rb +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-change/cli/change-column.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-change/cli/change.rb +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-change/generators/column.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-create/cli/create-table.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-create/cli/create.rb +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-create/generators/table.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-drop/cli/drop-column.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-drop/cli/drop-index.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-drop/cli/drop-table.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-drop/cli/drop.rb +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-drop/generators/column.rb +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-drop/generators/index.rb +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-drop/generators/table.rb +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-rename/cli/rename-column.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-rename/cli/rename-index.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-rename/cli/rename-table.rb +1 -1
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-rename/cli/rename.rb +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-rename/generators/column.rb +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-rename/generators/index.rb +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-rename/generators/table.rb +0 -0
- data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration/cli/migration.rb +6 -6
- data/lib/eucalypt/{eucalypt-security/namespaces/security-warden/user_confirm.rb → security/confirm.rb} +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/helpers.rb +1 -1
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-policy-permission/cli/security-policy-permission.rb +1 -1
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-policy-permission/generators/policy-permission.rb +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-policy-permission/templates/add_permission_to_policy_migration.tt +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-policy-role/cli/security-policy-role.rb +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-policy/cli/security-policy.rb +3 -3
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-policy/generators/policy.rb +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-policy/templates/create_policy_roles_migration.tt +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-policy/templates/policy.tt +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-pundit/cli/security-pundit.rb +2 -2
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-pundit/generators/role.rb +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-pundit/templates/create_roles_migration.tt +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-pundit/templates/pundit.tt +2 -2
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-warden/cli/security-warden.rb +21 -3
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-warden/generators/auth_controller.rb +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-warden/generators/user.rb +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-warden/templates/auth_controller.tt +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-warden/templates/auth_login.tt +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-warden/templates/create_users_table_migration.tt +0 -0
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-warden/templates/user.tt +1 -1
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-warden/templates/warden.tt +1 -7
- data/lib/eucalypt/{eucalypt-security → security}/namespaces/security/cli/security.rb +3 -3
- data/lib/eucalypt/version.rb +1 -1
- metadata +139 -140
- data/lib/eucalypt/eucalypt-core/templates/eucalypt/app/static/readme.yml +0 -34
File without changes
|
data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-drop/generators/column.rb
RENAMED
File without changes
|
data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-drop/generators/index.rb
RENAMED
File without changes
|
data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-drop/generators/table.rb
RENAMED
File without changes
|
data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-rename/cli/rename.rb
RENAMED
File without changes
|
data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-rename/generators/column.rb
RENAMED
File without changes
|
data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-rename/generators/index.rb
RENAMED
File without changes
|
data/lib/eucalypt/{eucalypt-migration → migration}/namespaces/migration-rename/generators/table.rb
RENAMED
File without changes
|
@@ -1,9 +1,9 @@
|
|
1
|
-
require 'eucalypt/
|
2
|
-
require 'eucalypt/
|
3
|
-
require 'eucalypt/
|
4
|
-
require 'eucalypt/
|
5
|
-
require 'eucalypt/
|
6
|
-
require 'eucalypt/
|
1
|
+
require 'eucalypt/migration/namespaces/migration-create/cli/create'
|
2
|
+
require 'eucalypt/migration/namespaces/migration-add/cli/add'
|
3
|
+
require 'eucalypt/migration/namespaces/migration-drop/cli/drop'
|
4
|
+
require 'eucalypt/migration/namespaces/migration-rename/cli/rename'
|
5
|
+
require 'eucalypt/migration/namespaces/migration-change/cli/change'
|
6
|
+
require 'eucalypt/migration/namespaces/migration-blank/cli/blank'
|
7
7
|
require 'eucalypt/helpers'
|
8
8
|
|
9
9
|
module Eucalypt
|
File without changes
|
@@ -2,7 +2,7 @@ require 'active_support'
|
|
2
2
|
require 'active_support/core_ext'
|
3
3
|
require 'thor'
|
4
4
|
require 'eucalypt/helpers'
|
5
|
-
require 'eucalypt/
|
5
|
+
require 'eucalypt/generate/namespaces/generate/cli/generate'
|
6
6
|
|
7
7
|
module Eucalypt
|
8
8
|
class Security < Thor
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'eucalypt/errors'
|
3
3
|
require 'eucalypt/helpers'
|
4
|
-
require 'eucalypt/
|
4
|
+
require 'eucalypt/security/namespaces/security-policy-permission/generators/policy-permission'
|
5
5
|
|
6
6
|
module Eucalypt
|
7
7
|
class SecurityPolicyPermission < Thor
|
File without changes
|
File without changes
|
File without changes
|
data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-policy/cli/security-policy.rb
RENAMED
@@ -1,9 +1,9 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'eucalypt/errors'
|
3
3
|
require 'eucalypt/helpers'
|
4
|
-
require 'eucalypt/
|
5
|
-
require 'eucalypt/
|
6
|
-
require 'eucalypt/
|
4
|
+
require 'eucalypt/security/namespaces/security-policy/generators/policy'
|
5
|
+
require 'eucalypt/security/namespaces/security-policy-permission/cli/security-policy-permission'
|
6
|
+
require 'eucalypt/security/namespaces/security-policy-role/cli/security-policy-role'
|
7
7
|
|
8
8
|
module Eucalypt
|
9
9
|
class SecurityPolicy < Thor
|
data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-policy/generators/policy.rb
RENAMED
File without changes
|
File without changes
|
data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-policy/templates/policy.tt
RENAMED
File without changes
|
data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-pundit/cli/security-pundit.rb
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'eucalypt/helpers'
|
3
|
-
require 'eucalypt/
|
4
|
-
require 'eucalypt/
|
3
|
+
require 'eucalypt/security/helpers'
|
4
|
+
require 'eucalypt/security/namespaces/security-pundit/generators/role'
|
5
5
|
|
6
6
|
module Eucalypt
|
7
7
|
class SecurityPundit < Thor
|
data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-pundit/generators/role.rb
RENAMED
File without changes
|
File without changes
|
data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-pundit/templates/pundit.tt
RENAMED
@@ -3,9 +3,9 @@ class ApplicationController < Sinatra::Base
|
|
3
3
|
include Pundit
|
4
4
|
|
5
5
|
helpers do
|
6
|
-
def authorized?(
|
6
|
+
def authorized?(object, permission)
|
7
7
|
return false unless authenticated?
|
8
|
-
policy(
|
8
|
+
policy(object).send permission
|
9
9
|
end
|
10
10
|
end
|
11
11
|
end
|
data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-warden/cli/security-warden.rb
RENAMED
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'eucalypt/helpers'
|
3
|
-
require 'eucalypt/
|
4
|
-
require 'eucalypt/
|
5
|
-
require 'eucalypt/
|
3
|
+
require 'eucalypt/security/helpers'
|
4
|
+
require 'eucalypt/security/namespaces/security-warden/generators/user'
|
5
|
+
require 'eucalypt/security/namespaces/security-warden/generators/auth_controller'
|
6
6
|
|
7
7
|
module Eucalypt
|
8
8
|
class SecurityWarden < Thor
|
@@ -12,6 +12,7 @@ module Eucalypt
|
|
12
12
|
include Eucalypt::Helpers::Gemfile
|
13
13
|
include Eucalypt::Security::Helpers
|
14
14
|
using Colorize
|
15
|
+
using String::Builder
|
15
16
|
|
16
17
|
def self.source_root
|
17
18
|
File.join File.dirname(__dir__), 'templates'
|
@@ -30,6 +31,23 @@ module Eucalypt
|
|
30
31
|
# Create Warden config file
|
31
32
|
create_config_file(:warden, directory)
|
32
33
|
|
34
|
+
# Add middleware to config.ru
|
35
|
+
middleware = String.build do |s|
|
36
|
+
s << "\nuse Warden::Manager do |config|\n"
|
37
|
+
s << " config.serialize_into_session{|user| user.id}\n"
|
38
|
+
s << " config.serialize_from_session{|id| User.find(id)}\n"
|
39
|
+
s << " config.scope_defaults :default, strategies: [:password], action: 'auth/invalid'\n"
|
40
|
+
s << " config.failure_app = self\n"
|
41
|
+
s << "end\n"
|
42
|
+
end
|
43
|
+
|
44
|
+
config_ru = File.join(directory, 'config.ru')
|
45
|
+
|
46
|
+
File.open config_ru do |f|
|
47
|
+
contents = f.read
|
48
|
+
inject_into_file(config_ru, middleware, after: /require_relative 'app'\n/) unless contents.include? 'use Warden::Manager'
|
49
|
+
end
|
50
|
+
|
33
51
|
user = Eucalypt::Generators::User.new
|
34
52
|
|
35
53
|
# Create user migration
|
File without changes
|
data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-warden/generators/user.rb
RENAMED
File without changes
|
File without changes
|
data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-warden/templates/auth_login.tt
RENAMED
File without changes
|
File without changes
|
data/lib/eucalypt/{eucalypt-security → security}/namespaces/security-warden/templates/warden.tt
RENAMED
@@ -2,14 +2,8 @@ class ApplicationController < Sinatra::Base
|
|
2
2
|
# Configure Warden for authentication
|
3
3
|
enable :sessions
|
4
4
|
|
5
|
-
use Warden::Manager do |config|
|
6
|
-
config.serialize_into_session{|user| user.id}
|
7
|
-
config.serialize_from_session{|id| User.find(id)}
|
8
|
-
config.scope_defaults :default, strategies: [:password], action: 'auth/invalid'
|
9
|
-
config.failure_app = self
|
10
|
-
end
|
11
|
-
|
12
5
|
Warden::Manager.before_failure {|env,opts| env['REQUEST_METHOD'] = 'POST'}
|
6
|
+
|
13
7
|
Warden::Strategies.add(:password) do
|
14
8
|
def valid?
|
15
9
|
params['user'] && params['user']['username'] && params['user']['password']
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'eucalypt/errors'
|
2
|
-
require 'eucalypt/
|
3
|
-
require 'eucalypt/
|
4
|
-
require 'eucalypt/
|
2
|
+
require 'eucalypt/security/namespaces/security-warden/cli/security-warden'
|
3
|
+
require 'eucalypt/security/namespaces/security-pundit/cli/security-pundit'
|
4
|
+
require 'eucalypt/security/namespaces/security-policy/cli/security-policy'
|
5
5
|
require 'eucalypt/helpers'
|
6
6
|
|
7
7
|
module Eucalypt
|
data/lib/eucalypt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eucalypt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edwin Onuonga
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -194,146 +194,92 @@ files:
|
|
194
194
|
- eucalypt.gemspec
|
195
195
|
- lib/eucalypt.rb
|
196
196
|
- lib/eucalypt/app.rb
|
197
|
+
- lib/eucalypt/blog/helpers.rb
|
198
|
+
- lib/eucalypt/blog/namespaces/blog-article-edit/cli/edit-datetime.rb
|
199
|
+
- lib/eucalypt/blog/namespaces/blog-article-edit/cli/edit-urltitle.rb
|
200
|
+
- lib/eucalypt/blog/namespaces/blog-article/cli/article.rb
|
201
|
+
- lib/eucalypt/blog/namespaces/blog/__base__.rb
|
202
|
+
- lib/eucalypt/blog/namespaces/blog/__require__.rb
|
203
|
+
- lib/eucalypt/blog/namespaces/blog/cli/blog.rb
|
204
|
+
- lib/eucalypt/blog/namespaces/blog/generators/article.rb
|
205
|
+
- lib/eucalypt/blog/namespaces/blog/generators/controller.rb
|
206
|
+
- lib/eucalypt/blog/namespaces/blog/generators/helper.rb
|
207
|
+
- lib/eucalypt/blog/namespaces/blog/generators/list.rb
|
208
|
+
- lib/eucalypt/blog/namespaces/blog/generators/views.rb
|
209
|
+
- lib/eucalypt/blog/namespaces/blog/templates/controller/controller.tt
|
210
|
+
- lib/eucalypt/blog/namespaces/blog/templates/controller/controller_spec.tt
|
211
|
+
- lib/eucalypt/blog/namespaces/blog/templates/helper/helper.tt
|
212
|
+
- lib/eucalypt/blog/namespaces/blog/templates/helper/helper_spec.tt
|
213
|
+
- lib/eucalypt/blog/namespaces/blog/templates/views/article.erb
|
214
|
+
- lib/eucalypt/blog/namespaces/blog/templates/views/article_layout.erb
|
215
|
+
- lib/eucalypt/blog/namespaces/blog/templates/views/article_md.tt
|
216
|
+
- lib/eucalypt/blog/namespaces/blog/templates/views/articles.erb
|
217
|
+
- lib/eucalypt/blog/namespaces/blog/templates/views/articles_layout.erb
|
218
|
+
- lib/eucalypt/blog/namespaces/blog/templates/views/search.erb
|
197
219
|
- lib/eucalypt/controller.rb
|
220
|
+
- lib/eucalypt/core/cli/__base__.rb
|
221
|
+
- lib/eucalypt/core/cli/console.rb
|
222
|
+
- lib/eucalypt/core/cli/core.rb
|
223
|
+
- lib/eucalypt/core/cli/help.rb
|
224
|
+
- lib/eucalypt/core/cli/init.rb
|
225
|
+
- lib/eucalypt/core/cli/launch.rb
|
226
|
+
- lib/eucalypt/core/cli/test.rb
|
227
|
+
- lib/eucalypt/core/cli/version.rb
|
228
|
+
- lib/eucalypt/core/templates/Gemfile.tt
|
229
|
+
- lib/eucalypt/core/templates/eucalypt/.gitignore
|
230
|
+
- lib/eucalypt/core/templates/eucalypt/.travis.yml
|
231
|
+
- lib/eucalypt/core/templates/eucalypt/Procfile
|
232
|
+
- lib/eucalypt/core/templates/eucalypt/Rakefile
|
233
|
+
- lib/eucalypt/core/templates/eucalypt/app.rb
|
234
|
+
- lib/eucalypt/core/templates/eucalypt/app/assets/fonts/.empty_directory
|
235
|
+
- lib/eucalypt/core/templates/eucalypt/app/assets/images/.empty_directory
|
236
|
+
- lib/eucalypt/core/templates/eucalypt/app/assets/scripts/application.js
|
237
|
+
- lib/eucalypt/core/templates/eucalypt/app/assets/stylesheets/__partials__.scss
|
238
|
+
- lib/eucalypt/core/templates/eucalypt/app/assets/stylesheets/application.scss
|
239
|
+
- lib/eucalypt/core/templates/eucalypt/app/assets/stylesheets/partials/_mixins.scss
|
240
|
+
- lib/eucalypt/core/templates/eucalypt/app/controllers/application_controller.rb
|
241
|
+
- lib/eucalypt/core/templates/eucalypt/app/helpers/application_helper.rb
|
242
|
+
- lib/eucalypt/core/templates/eucalypt/app/models/.empty_directory
|
243
|
+
- lib/eucalypt/core/templates/eucalypt/app/static/.empty_directory
|
244
|
+
- lib/eucalypt/core/templates/eucalypt/app/views/index.erb
|
245
|
+
- lib/eucalypt/core/templates/eucalypt/app/views/layouts/main.erb
|
246
|
+
- lib/eucalypt/core/templates/eucalypt/app/views/partials/.empty_directory
|
247
|
+
- lib/eucalypt/core/templates/eucalypt/config.ru
|
248
|
+
- lib/eucalypt/core/templates/eucalypt/config/active_record.rb
|
249
|
+
- lib/eucalypt/core/templates/eucalypt/config/asset_pipeline.rb
|
250
|
+
- lib/eucalypt/core/templates/eucalypt/config/database.yml
|
251
|
+
- lib/eucalypt/core/templates/eucalypt/config/initializers/.empty_directory
|
252
|
+
- lib/eucalypt/core/templates/eucalypt/config/logging.rb
|
253
|
+
- lib/eucalypt/core/templates/eucalypt/config/manifest.rb
|
254
|
+
- lib/eucalypt/core/templates/eucalypt/log/.empty_directory
|
255
|
+
- lib/eucalypt/core/templates/eucalypt/spec/controllers/application_controller_spec.rb
|
256
|
+
- lib/eucalypt/core/templates/eucalypt/spec/helpers/application_helper_spec.rb
|
257
|
+
- lib/eucalypt/core/templates/eucalypt/spec/models/.empty_directory
|
258
|
+
- lib/eucalypt/core/templates/eucalypt/spec/spec_helper.rb
|
259
|
+
- lib/eucalypt/destroy/helpers.rb
|
260
|
+
- lib/eucalypt/destroy/namespaces/destroy/cli/destroy-controller.rb
|
261
|
+
- lib/eucalypt/destroy/namespaces/destroy/cli/destroy-helper.rb
|
262
|
+
- lib/eucalypt/destroy/namespaces/destroy/cli/destroy-model.rb
|
263
|
+
- lib/eucalypt/destroy/namespaces/destroy/cli/destroy-scaffold.rb
|
264
|
+
- lib/eucalypt/destroy/namespaces/destroy/cli/destroy.rb
|
198
265
|
- lib/eucalypt/errors.rb
|
199
|
-
- lib/eucalypt/
|
200
|
-
- lib/eucalypt/
|
201
|
-
- lib/eucalypt/
|
202
|
-
- lib/eucalypt/
|
203
|
-
- lib/eucalypt/
|
204
|
-
- lib/eucalypt/
|
205
|
-
- lib/eucalypt/
|
206
|
-
- lib/eucalypt/
|
207
|
-
- lib/eucalypt/
|
208
|
-
- lib/eucalypt/
|
209
|
-
- lib/eucalypt/
|
210
|
-
- lib/eucalypt/
|
211
|
-
- lib/eucalypt/
|
212
|
-
- lib/eucalypt/
|
213
|
-
- lib/eucalypt/
|
214
|
-
- lib/eucalypt/
|
215
|
-
- lib/eucalypt/
|
216
|
-
- lib/eucalypt/eucalypt-blog/namespaces/blog/templates/views/article_layout.erb
|
217
|
-
- lib/eucalypt/eucalypt-blog/namespaces/blog/templates/views/article_md.tt
|
218
|
-
- lib/eucalypt/eucalypt-blog/namespaces/blog/templates/views/articles.erb
|
219
|
-
- lib/eucalypt/eucalypt-blog/namespaces/blog/templates/views/articles_layout.erb
|
220
|
-
- lib/eucalypt/eucalypt-blog/namespaces/blog/templates/views/search.erb
|
221
|
-
- lib/eucalypt/eucalypt-core/cli/__base__.rb
|
222
|
-
- lib/eucalypt/eucalypt-core/cli/console.rb
|
223
|
-
- lib/eucalypt/eucalypt-core/cli/core.rb
|
224
|
-
- lib/eucalypt/eucalypt-core/cli/help.rb
|
225
|
-
- lib/eucalypt/eucalypt-core/cli/init.rb
|
226
|
-
- lib/eucalypt/eucalypt-core/cli/launch.rb
|
227
|
-
- lib/eucalypt/eucalypt-core/cli/test.rb
|
228
|
-
- lib/eucalypt/eucalypt-core/cli/version.rb
|
229
|
-
- lib/eucalypt/eucalypt-core/templates/Gemfile.tt
|
230
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/.gitignore
|
231
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/.travis.yml
|
232
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/Procfile
|
233
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/Rakefile
|
234
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app.rb
|
235
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/assets/fonts/.empty_directory
|
236
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/assets/images/.empty_directory
|
237
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/assets/scripts/application.js
|
238
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/assets/stylesheets/__partials__.scss
|
239
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/assets/stylesheets/application.scss
|
240
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/assets/stylesheets/partials/_mixins.scss
|
241
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/controllers/application_controller.rb
|
242
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/helpers/application_helper.rb
|
243
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/models/.empty_directory
|
244
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/static/.empty_directory
|
245
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/static/readme.yml
|
246
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/views/index.erb
|
247
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/views/layouts/main.erb
|
248
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/app/views/partials/.empty_directory
|
249
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/config.ru
|
250
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/config/active_record.rb
|
251
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/config/asset_pipeline.rb
|
252
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/config/database.yml
|
253
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/config/initializers/.empty_directory
|
254
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/config/logging.rb
|
255
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/config/manifest.rb
|
256
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/log/.empty_directory
|
257
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/spec/controllers/application_controller_spec.rb
|
258
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/spec/helpers/application_helper_spec.rb
|
259
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/spec/models/.empty_directory
|
260
|
-
- lib/eucalypt/eucalypt-core/templates/eucalypt/spec/spec_helper.rb
|
261
|
-
- lib/eucalypt/eucalypt-destroy/helpers.rb
|
262
|
-
- lib/eucalypt/eucalypt-destroy/namespaces/destroy/cli/destroy-controller.rb
|
263
|
-
- lib/eucalypt/eucalypt-destroy/namespaces/destroy/cli/destroy-helper.rb
|
264
|
-
- lib/eucalypt/eucalypt-destroy/namespaces/destroy/cli/destroy-model.rb
|
265
|
-
- lib/eucalypt/eucalypt-destroy/namespaces/destroy/cli/destroy-scaffold.rb
|
266
|
-
- lib/eucalypt/eucalypt-destroy/namespaces/destroy/cli/destroy.rb
|
267
|
-
- lib/eucalypt/eucalypt-generate/.gitkeep
|
268
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-controller/cli/generate-controller.rb
|
269
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-controller/generators/controller.rb
|
270
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-controller/templates/controller/controller.tt
|
271
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-controller/templates/controller/policy_rest_controller.tt
|
272
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-controller/templates/controller/rest_controller.tt
|
273
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-controller/templates/controller_spec.tt
|
274
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-helper/cli/generate-helper.rb
|
275
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-helper/generators/helper.rb
|
276
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-helper/templates/helper.tt
|
277
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-helper/templates/helper_spec.tt
|
278
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-model/cli/generate-model.rb
|
279
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-model/generators/model.rb
|
280
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-model/templates/model.tt
|
281
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate-model/templates/model_spec.tt
|
282
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate/cli/generate-scaffold.rb
|
283
|
-
- lib/eucalypt/eucalypt-generate/namespaces/generate/cli/generate.rb
|
284
|
-
- lib/eucalypt/eucalypt-migration/helpers.rb
|
285
|
-
- lib/eucalypt/eucalypt-migration/migration_base.tt
|
286
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-add/cli/add-column.rb
|
287
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-add/cli/add-index.rb
|
288
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-add/cli/add.rb
|
289
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-add/generators/column.rb
|
290
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-add/generators/index.rb
|
291
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-blank/cli/blank.rb
|
292
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-blank/generators/blank.rb
|
293
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-change/cli/change-column.rb
|
294
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-change/cli/change.rb
|
295
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-change/generators/column.rb
|
296
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-create/cli/create-table.rb
|
297
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-create/cli/create.rb
|
298
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-create/generators/table.rb
|
299
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-drop/cli/drop-column.rb
|
300
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-drop/cli/drop-index.rb
|
301
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-drop/cli/drop-table.rb
|
302
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-drop/cli/drop.rb
|
303
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-drop/generators/column.rb
|
304
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-drop/generators/index.rb
|
305
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-drop/generators/table.rb
|
306
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-rename/cli/rename-column.rb
|
307
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-rename/cli/rename-index.rb
|
308
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-rename/cli/rename-table.rb
|
309
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-rename/cli/rename.rb
|
310
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-rename/generators/column.rb
|
311
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-rename/generators/index.rb
|
312
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration-rename/generators/table.rb
|
313
|
-
- lib/eucalypt/eucalypt-migration/namespaces/migration/cli/migration.rb
|
314
|
-
- lib/eucalypt/eucalypt-security/helpers.rb
|
315
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-policy-permission/cli/security-policy-permission.rb
|
316
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-policy-permission/generators/policy-permission.rb
|
317
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-policy-permission/templates/add_permission_to_policy_migration.tt
|
318
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-policy-role/cli/security-policy-role.rb
|
319
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-policy/cli/security-policy.rb
|
320
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-policy/generators/policy.rb
|
321
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-policy/templates/create_policy_roles_migration.tt
|
322
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-policy/templates/policy.tt
|
323
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-pundit/cli/security-pundit.rb
|
324
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-pundit/generators/role.rb
|
325
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-pundit/templates/create_roles_migration.tt
|
326
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-pundit/templates/pundit.tt
|
327
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-warden/cli/security-warden.rb
|
328
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-warden/generators/auth_controller.rb
|
329
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-warden/generators/user.rb
|
330
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-warden/templates/auth_controller.tt
|
331
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-warden/templates/auth_login.tt
|
332
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-warden/templates/create_users_table_migration.tt
|
333
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-warden/templates/user.tt
|
334
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-warden/templates/warden.tt
|
335
|
-
- lib/eucalypt/eucalypt-security/namespaces/security-warden/user_confirm.rb
|
336
|
-
- lib/eucalypt/eucalypt-security/namespaces/security/cli/security.rb
|
266
|
+
- lib/eucalypt/generate/.gitkeep
|
267
|
+
- lib/eucalypt/generate/namespaces/generate-controller/cli/generate-controller.rb
|
268
|
+
- lib/eucalypt/generate/namespaces/generate-controller/generators/controller.rb
|
269
|
+
- lib/eucalypt/generate/namespaces/generate-controller/templates/controller/controller.tt
|
270
|
+
- lib/eucalypt/generate/namespaces/generate-controller/templates/controller/policy_rest_controller.tt
|
271
|
+
- lib/eucalypt/generate/namespaces/generate-controller/templates/controller/rest_controller.tt
|
272
|
+
- lib/eucalypt/generate/namespaces/generate-controller/templates/controller_spec.tt
|
273
|
+
- lib/eucalypt/generate/namespaces/generate-helper/cli/generate-helper.rb
|
274
|
+
- lib/eucalypt/generate/namespaces/generate-helper/generators/helper.rb
|
275
|
+
- lib/eucalypt/generate/namespaces/generate-helper/templates/helper.tt
|
276
|
+
- lib/eucalypt/generate/namespaces/generate-helper/templates/helper_spec.tt
|
277
|
+
- lib/eucalypt/generate/namespaces/generate-model/cli/generate-model.rb
|
278
|
+
- lib/eucalypt/generate/namespaces/generate-model/generators/model.rb
|
279
|
+
- lib/eucalypt/generate/namespaces/generate-model/templates/model.tt
|
280
|
+
- lib/eucalypt/generate/namespaces/generate-model/templates/model_spec.tt
|
281
|
+
- lib/eucalypt/generate/namespaces/generate/cli/generate-scaffold.rb
|
282
|
+
- lib/eucalypt/generate/namespaces/generate/cli/generate.rb
|
337
283
|
- lib/eucalypt/helpers.rb
|
338
284
|
- lib/eucalypt/helpers/colorize.rb
|
339
285
|
- lib/eucalypt/helpers/gemfile.rb
|
@@ -342,7 +288,60 @@ files:
|
|
342
288
|
- lib/eucalypt/helpers/migration.rb
|
343
289
|
- lib/eucalypt/helpers/numeric.rb
|
344
290
|
- lib/eucalypt/list.rb
|
291
|
+
- lib/eucalypt/migration/helpers.rb
|
292
|
+
- lib/eucalypt/migration/migration_base.tt
|
293
|
+
- lib/eucalypt/migration/namespaces/migration-add/cli/add-column.rb
|
294
|
+
- lib/eucalypt/migration/namespaces/migration-add/cli/add-index.rb
|
295
|
+
- lib/eucalypt/migration/namespaces/migration-add/cli/add.rb
|
296
|
+
- lib/eucalypt/migration/namespaces/migration-add/generators/column.rb
|
297
|
+
- lib/eucalypt/migration/namespaces/migration-add/generators/index.rb
|
298
|
+
- lib/eucalypt/migration/namespaces/migration-blank/cli/blank.rb
|
299
|
+
- lib/eucalypt/migration/namespaces/migration-blank/generators/blank.rb
|
300
|
+
- lib/eucalypt/migration/namespaces/migration-change/cli/change-column.rb
|
301
|
+
- lib/eucalypt/migration/namespaces/migration-change/cli/change.rb
|
302
|
+
- lib/eucalypt/migration/namespaces/migration-change/generators/column.rb
|
303
|
+
- lib/eucalypt/migration/namespaces/migration-create/cli/create-table.rb
|
304
|
+
- lib/eucalypt/migration/namespaces/migration-create/cli/create.rb
|
305
|
+
- lib/eucalypt/migration/namespaces/migration-create/generators/table.rb
|
306
|
+
- lib/eucalypt/migration/namespaces/migration-drop/cli/drop-column.rb
|
307
|
+
- lib/eucalypt/migration/namespaces/migration-drop/cli/drop-index.rb
|
308
|
+
- lib/eucalypt/migration/namespaces/migration-drop/cli/drop-table.rb
|
309
|
+
- lib/eucalypt/migration/namespaces/migration-drop/cli/drop.rb
|
310
|
+
- lib/eucalypt/migration/namespaces/migration-drop/generators/column.rb
|
311
|
+
- lib/eucalypt/migration/namespaces/migration-drop/generators/index.rb
|
312
|
+
- lib/eucalypt/migration/namespaces/migration-drop/generators/table.rb
|
313
|
+
- lib/eucalypt/migration/namespaces/migration-rename/cli/rename-column.rb
|
314
|
+
- lib/eucalypt/migration/namespaces/migration-rename/cli/rename-index.rb
|
315
|
+
- lib/eucalypt/migration/namespaces/migration-rename/cli/rename-table.rb
|
316
|
+
- lib/eucalypt/migration/namespaces/migration-rename/cli/rename.rb
|
317
|
+
- lib/eucalypt/migration/namespaces/migration-rename/generators/column.rb
|
318
|
+
- lib/eucalypt/migration/namespaces/migration-rename/generators/index.rb
|
319
|
+
- lib/eucalypt/migration/namespaces/migration-rename/generators/table.rb
|
320
|
+
- lib/eucalypt/migration/namespaces/migration/cli/migration.rb
|
345
321
|
- lib/eucalypt/root.rb
|
322
|
+
- lib/eucalypt/security/confirm.rb
|
323
|
+
- lib/eucalypt/security/helpers.rb
|
324
|
+
- lib/eucalypt/security/namespaces/security-policy-permission/cli/security-policy-permission.rb
|
325
|
+
- lib/eucalypt/security/namespaces/security-policy-permission/generators/policy-permission.rb
|
326
|
+
- lib/eucalypt/security/namespaces/security-policy-permission/templates/add_permission_to_policy_migration.tt
|
327
|
+
- lib/eucalypt/security/namespaces/security-policy-role/cli/security-policy-role.rb
|
328
|
+
- lib/eucalypt/security/namespaces/security-policy/cli/security-policy.rb
|
329
|
+
- lib/eucalypt/security/namespaces/security-policy/generators/policy.rb
|
330
|
+
- lib/eucalypt/security/namespaces/security-policy/templates/create_policy_roles_migration.tt
|
331
|
+
- lib/eucalypt/security/namespaces/security-policy/templates/policy.tt
|
332
|
+
- lib/eucalypt/security/namespaces/security-pundit/cli/security-pundit.rb
|
333
|
+
- lib/eucalypt/security/namespaces/security-pundit/generators/role.rb
|
334
|
+
- lib/eucalypt/security/namespaces/security-pundit/templates/create_roles_migration.tt
|
335
|
+
- lib/eucalypt/security/namespaces/security-pundit/templates/pundit.tt
|
336
|
+
- lib/eucalypt/security/namespaces/security-warden/cli/security-warden.rb
|
337
|
+
- lib/eucalypt/security/namespaces/security-warden/generators/auth_controller.rb
|
338
|
+
- lib/eucalypt/security/namespaces/security-warden/generators/user.rb
|
339
|
+
- lib/eucalypt/security/namespaces/security-warden/templates/auth_controller.tt
|
340
|
+
- lib/eucalypt/security/namespaces/security-warden/templates/auth_login.tt
|
341
|
+
- lib/eucalypt/security/namespaces/security-warden/templates/create_users_table_migration.tt
|
342
|
+
- lib/eucalypt/security/namespaces/security-warden/templates/user.tt
|
343
|
+
- lib/eucalypt/security/namespaces/security-warden/templates/warden.tt
|
344
|
+
- lib/eucalypt/security/namespaces/security/cli/security.rb
|
346
345
|
- lib/eucalypt/static.rb
|
347
346
|
- lib/eucalypt/version.rb
|
348
347
|
homepage: https://eucalypt.gitbook.io/eucalypt
|