faalis 2.1.1 → 2.2.0.pre.rc1
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/faalis/dashboard/application.js.erb +1 -1
- data/app/assets/javascripts/faalis/dashboard/init.js.coffee +1 -2
- data/app/assets/javascripts/faalis/dashboard/manifest.js +5 -0
- data/app/assets/javascripts/faalis/simple.js +1 -1
- data/app/assets/stylesheets/faalis/dashboard/ltr/application.css +4 -2
- data/app/assets/stylesheets/faalis/dashboard/rtl/application.css +4 -0
- data/app/assets/stylesheets/faalis/dashboard/share.scss +6 -0
- data/app/controllers/faalis/dashboard/groups_controller.rb +0 -1
- data/app/controllers/faalis/dashboard/users_controller.rb +6 -2
- data/app/helpers/faalis/dashboard_helper.rb +8 -9
- data/app/models/faalis/concerns/user/permission.rb +7 -2
- data/app/models/faalis/concerns/user/user_roles.rb +15 -11
- data/app/models/faalis/user_message.rb +1 -0
- data/app/policies/faalis/application_policy.rb +6 -2
- data/app/views/faalis/dashboard/resource/create.js.erb +1 -1
- data/app/views/faalis/dashboard/resource/index.html.slim +2 -1
- data/app/views/faalis/dashboard/resource/update.js.erb +1 -1
- data/app/views/faalis/dashboard/users/_form.html.slim +1 -1
- data/app/views/layouts/faalis/dashboard.html.erb +1 -1
- data/config/locales/devise.fa.yml +7 -0
- data/config/locales/faalis.fa.yml +46 -3
- data/db/migrate/20131013091000_devise_create_faalis_users.rb +4 -1
- data/db/migrate/20131020124701_create_faalis_groups.rb +4 -1
- data/db/migrate/20131021170923_create_faalis_permissions.rb +4 -1
- data/db/migrate/20131123120422_add_permissions_groups_table.rb +11 -3
- data/db/migrate/20140613120923_add_users_groups_table.rb +7 -2
- data/db/migrate/20160310105736_create_faalis_user_messages.rb +13 -4
- data/lib/faalis.rb +12 -5
- data/lib/faalis/concerns/authorizable.rb +3 -1
- data/lib/faalis/configuration.rb +17 -2
- data/lib/faalis/dashboard.rb +4 -5
- data/lib/faalis/dashboard/dsl.rb +0 -1
- data/lib/faalis/dashboard/dsl/base.rb +6 -3
- data/lib/faalis/dashboard/dsl/create.rb +0 -1
- data/lib/faalis/dashboard/dsl/index.rb +2 -0
- data/lib/faalis/dashboard/models.rb +2 -0
- data/lib/faalis/dashboard/models/sidebar.rb +1 -1
- data/lib/faalis/dashboard/sections.rb +2 -0
- data/lib/faalis/dashboard/sections/resource.rb +41 -54
- data/lib/faalis/dashboard/sections/resource_create.rb +17 -3
- data/lib/faalis/dashboard/sections/resources_index.rb +5 -3
- data/lib/faalis/engine.rb +6 -0
- data/lib/faalis/i18n.rb +2 -1
- data/lib/faalis/liquid.rb +7 -0
- data/lib/faalis/liquid/block.rb +14 -0
- data/lib/faalis/liquid/render_tag.rb +50 -0
- data/lib/faalis/liquid/tag.rb +51 -0
- data/lib/faalis/orm.rb +1 -0
- data/lib/faalis/{route.rb → routes.rb} +42 -20
- data/lib/faalis/version.rb +1 -1
- data/test/controllers/faalis/dashboard/resource_test.rb +118 -0
- data/test/dummy/config/boot.rb +1 -1
- metadata +60 -79
- checksums.yaml.gz.sig +0 -4
- data.tar.gz.sig +0 -1
- data/app/models/faalis/permissions/auth.rb +0 -8
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +0 -0
- metadata.gz.sig +0 -0
@@ -8,7 +8,6 @@ module Faalis::Dashboard::Sections
|
|
8
8
|
# The actual action method of a dashboard controller
|
9
9
|
def index
|
10
10
|
authorize model
|
11
|
-
|
12
11
|
fetch_and_set_all
|
13
12
|
action_buttons(index_properties)
|
14
13
|
|
@@ -27,10 +26,11 @@ module Faalis::Dashboard::Sections
|
|
27
26
|
# The important thing here is that by using `scope`
|
28
27
|
# DSL this method will chain the resulted scope
|
29
28
|
# with other scopes like `page` and `policy_scope`
|
30
|
-
|
31
|
-
|
29
|
+
def fetch_index_objects
|
30
|
+
scope = index_properties.default_scope
|
32
31
|
|
33
32
|
if !scope.nil?
|
33
|
+
|
34
34
|
# If user provided an scope for `index` section.
|
35
35
|
|
36
36
|
if scope.respond_to? :call
|
@@ -44,10 +44,12 @@ module Faalis::Dashboard::Sections
|
|
44
44
|
|
45
45
|
else
|
46
46
|
scope = model.all
|
47
|
+
#scope = ApplicationPolicy::Scope.new(current_user, model.all).resolve
|
47
48
|
end
|
48
49
|
|
49
50
|
scope = scope.order('created_at DESC').page(params[:page])
|
50
51
|
policy_scope(scope)
|
52
|
+
|
51
53
|
end
|
52
54
|
|
53
55
|
def index_properties
|
data/lib/faalis/engine.rb
CHANGED
@@ -45,9 +45,15 @@ module Faalis
|
|
45
45
|
g.helper false
|
46
46
|
end
|
47
47
|
|
48
|
+
# The actual setup method which is responsible for configuring
|
49
|
+
# `Faalis` environment. This method simply yield the current
|
50
|
+
# class and allows developers to change the configuration via
|
51
|
+
# the class methods defined in `Faalis::Configuration` ( which is
|
52
|
+
# extended in this class ).
|
48
53
|
def self.setup
|
49
54
|
yield self
|
50
55
|
|
56
|
+
# Load the dependencies needed by each particular feature.
|
51
57
|
load_dependencies_based_on_configuration
|
52
58
|
end
|
53
59
|
|
data/lib/faalis/i18n.rb
CHANGED
@@ -60,7 +60,8 @@ module ::ActionView
|
|
60
60
|
raise e if raise_error
|
61
61
|
|
62
62
|
keys = I18n.normalize_keys(e.locale, e.key, e.options[:scope])
|
63
|
-
title =
|
63
|
+
title = keys.last.to_s.humanize
|
64
|
+
title = "#{keys.join('.')}" if Faalis::Engine.i18n_debug
|
64
65
|
|
65
66
|
interpolations = options.except(:default, :scope)
|
66
67
|
if interpolations.any?
|
@@ -0,0 +1,50 @@
|
|
1
|
+
module Faalis
|
2
|
+
module Liquid
|
3
|
+
# In order to use this class make sure to override the `before_render`
|
4
|
+
# and implement you logic there, Don't bother to override the `render`
|
5
|
+
# method
|
6
|
+
class RenderTag < Tag
|
7
|
+
|
8
|
+
class << self
|
9
|
+
def view(value)
|
10
|
+
define_method(:_view) do
|
11
|
+
value
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def before_render(context)
|
17
|
+
end
|
18
|
+
|
19
|
+
def render(context)
|
20
|
+
before_render(context)
|
21
|
+
render_template(context)
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def render_template(context)
|
27
|
+
|
28
|
+
controller = context.registers[:controller]
|
29
|
+
view_paths = controller.view_paths
|
30
|
+
request = context.registers[:view].request
|
31
|
+
controller = controller.class
|
32
|
+
|
33
|
+
controller.view_paths = view_paths
|
34
|
+
|
35
|
+
patched_request = assignments.merge(request.env)
|
36
|
+
renderer = controller.renderer.new(patched_request)
|
37
|
+
|
38
|
+
renderer.render _view, layout: nil
|
39
|
+
end
|
40
|
+
|
41
|
+
def assignments
|
42
|
+
tmp = instance_variable_names.map do |x|
|
43
|
+
[x[1..-1], instance_variable_get(x)]
|
44
|
+
end
|
45
|
+
|
46
|
+
{ assigns: Hash[tmp] }
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module Faalis
|
2
|
+
module Liquid
|
3
|
+
class Tag < ::Liquid::Tag
|
4
|
+
|
5
|
+
attr_reader :arguments, :params
|
6
|
+
|
7
|
+
# This method produce the `tag_name` DSL which is mandatory for
|
8
|
+
# each tag and defines the tag name that the tag class should be
|
9
|
+
# registered with
|
10
|
+
def self.tag_name(name)
|
11
|
+
@@name = name
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.name
|
15
|
+
@@name
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.argument(options)
|
19
|
+
raise ArgumentError.new "'name' is mandatory for argument in '#{self.class.name}'" if options[:name].nil?
|
20
|
+
|
21
|
+
@arguments ||= []
|
22
|
+
@arguments << options
|
23
|
+
end
|
24
|
+
|
25
|
+
def initialize(name, args, options)
|
26
|
+
super
|
27
|
+
|
28
|
+
if !arguments.empty? && (args.nil? || args.empty?)
|
29
|
+
count = arguments.length
|
30
|
+
raise ArgumentError.new "'#{count}' argument(s) is/are needed for '#{self.class.name}' tag."
|
31
|
+
end
|
32
|
+
|
33
|
+
@direction = ::Faalis::I18n.direction(::I18n.locale)
|
34
|
+
|
35
|
+
@args = args.split(',').map do |x|
|
36
|
+
x.strip.tr('""', '').tr("''", '')
|
37
|
+
end
|
38
|
+
|
39
|
+
@params = {}
|
40
|
+
|
41
|
+
arguments.each_with_index do |arg, index|
|
42
|
+
@params[arg[:name]] = @args.fetch(index, arg[:default])
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
def arguments
|
47
|
+
@arguments ||= []
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
data/lib/faalis/orm.rb
CHANGED
@@ -20,6 +20,7 @@ module Faalis
|
|
20
20
|
# It will be used in models to specify which class to inherit
|
21
21
|
# from, based on current ORM
|
22
22
|
def self.proper_base_class
|
23
|
+
#TODO: fix this for rails 5 which has a new parent for each model
|
23
24
|
return ::ActiveRecord::Base if active_record?
|
24
25
|
return ::Object if mongoid?
|
25
26
|
::Faalis::Engine.orm = 'active_record'
|
@@ -12,8 +12,8 @@ module Faalis
|
|
12
12
|
def localized_scope
|
13
13
|
langs = ::I18n.available_locales.join('|')
|
14
14
|
scope '(:locale)', locale: Regexp.new(langs) do
|
15
|
-
|
16
|
-
|
15
|
+
yield
|
16
|
+
end
|
17
17
|
end
|
18
18
|
|
19
19
|
# This method allow user to define his routes in api
|
@@ -21,12 +21,12 @@ module Faalis
|
|
21
21
|
def api_routes(version: :v1)
|
22
22
|
# TODO: Add a dynamic solution for formats
|
23
23
|
namespace :api, defaults: { format: :json } do
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
end
|
24
|
+
namespace version do
|
25
|
+
# Call user given block to define user routes
|
26
|
+
# inside this namespace
|
27
|
+
yield if block_given?
|
29
28
|
end
|
29
|
+
end
|
30
30
|
|
31
31
|
scope 'module'.to_sym => 'faalis' do
|
32
32
|
#dashboard = Faalis::Engine.dashboard_namespace
|
@@ -37,21 +37,43 @@ module Faalis
|
|
37
37
|
|
38
38
|
# TODO: Add a dynamic solution for formats
|
39
39
|
namespace :api, defaults: { format: :json } do
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
end
|
40
|
+
namespace version do
|
41
|
+
get 'permissions', to: 'permissions#index'
|
42
|
+
get 'permissions/user', to: 'permissions#user_permissions'
|
43
|
+
resources :groups, except: [:new]
|
44
|
+
resources :users, except: [:new]
|
45
|
+
resource :profile, except: [:new, :destroy]
|
46
|
+
|
47
|
+
get 'logs', to: 'logs#index'
|
49
48
|
end
|
49
|
+
end
|
50
50
|
end
|
51
|
+
end
|
52
|
+
|
51
53
|
|
52
|
-
|
54
|
+
class Routes
|
55
|
+
|
56
|
+
class << self
|
57
|
+
|
58
|
+
attr_accessor :engine
|
59
|
+
|
60
|
+
def faalis(&block)
|
61
|
+
Faalis::Engine.routes.draw(&block)
|
62
|
+
end
|
63
|
+
|
64
|
+
def plugin(&block)
|
65
|
+
self.engine.routes.draw(&block)
|
66
|
+
end
|
67
|
+
|
68
|
+
def draw(engine, &block)
|
69
|
+
self.engine = engine
|
70
|
+
|
71
|
+
raise ArgumentError.new 'block is needed' unless block_given?
|
72
|
+
|
73
|
+
self.class_eval(&block)
|
74
|
+
end
|
53
75
|
|
54
|
-
def
|
76
|
+
def localized_scop(router: Rails.application.routes)
|
55
77
|
puts '[Warning]: This method is depricated please just use "localized_scope" in your router.'
|
56
78
|
langs = ::I18n.available_locales.join('|')
|
57
79
|
router.scope '(:locale)', locale: Regexp.new(langs)
|
@@ -59,8 +81,8 @@ module Faalis
|
|
59
81
|
|
60
82
|
# This class method will add `Faalis` routes to host application
|
61
83
|
# Router
|
62
|
-
def
|
63
|
-
|
84
|
+
def define_api_routes(routes: Rails.application.routes,
|
85
|
+
version: :v1)
|
64
86
|
puts '[Warning]: This method is depricated. Please use "api_routes" directly in your router.'
|
65
87
|
routes.draw do
|
66
88
|
# TODO: Add a dynamic solution for formats
|
data/lib/faalis/version.rb
CHANGED
@@ -0,0 +1,118 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
# Testing dashboard controller routes of a Faalis plugin ----------------------
|
4
|
+
|
5
|
+
module Faalis
|
6
|
+
module Dashboard
|
7
|
+
module SomeEngine
|
8
|
+
class PostsController < Faalis::Dashboard::ApplicationController
|
9
|
+
engine 'Faalis::Engine'
|
10
|
+
route_namespace 'some_engine'
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
|
18
|
+
class TestPluginDashboardControllers < ActionController::TestCase
|
19
|
+
|
20
|
+
tests Faalis::Dashboard::SomeEngine::PostsController
|
21
|
+
|
22
|
+
|
23
|
+
def setup
|
24
|
+
#@routes = Faalis::Engine.routes
|
25
|
+
@routes.draw do
|
26
|
+
namespace :faalis do
|
27
|
+
namespace :dashboard do
|
28
|
+
namespace :some_engine do
|
29
|
+
resource :posts
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
test 'guess the right `new` route based on controller' do
|
37
|
+
get :new
|
38
|
+
route = @controller.send(:_new_route)
|
39
|
+
|
40
|
+
assert_equal 'new_dashboard_some_engine_post_path', route
|
41
|
+
end
|
42
|
+
|
43
|
+
test 'guess the right `index` route based on controller' do
|
44
|
+
get :index
|
45
|
+
route = @controller.send(:_index_route)
|
46
|
+
|
47
|
+
assert_equal 'dashboard_some_engine_posts_path', route
|
48
|
+
end
|
49
|
+
|
50
|
+
test 'guess the right `show` route based on controller' do
|
51
|
+
route = @controller.send(:_show_route)
|
52
|
+
|
53
|
+
assert_equal 'dashboard_some_engine_post_path', route
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# Testing dashboard controller routes of a normal controller ------------------
|
58
|
+
|
59
|
+
module Dashboard
|
60
|
+
class PostController < Faalis::Dashboard::ApplicationController
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
class TestDashboardControllers < ActionController::TestCase
|
65
|
+
|
66
|
+
tests Dashboard::PostController
|
67
|
+
|
68
|
+
test 'guess the right `new` route based on controller' do
|
69
|
+
route = @controller.send(:_new_route)
|
70
|
+
|
71
|
+
assert_equal 'new_dashboard_post_path', route
|
72
|
+
end
|
73
|
+
|
74
|
+
test 'guess the right `index` route based on controller' do
|
75
|
+
route = @controller.send(:_index_route)
|
76
|
+
|
77
|
+
assert_equal 'dashboard_posts_path', route
|
78
|
+
end
|
79
|
+
|
80
|
+
test 'guess the right `show` route based on controller' do
|
81
|
+
route = @controller.send(:_show_route)
|
82
|
+
|
83
|
+
assert_equal 'dashboard_post_path', route
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
|
88
|
+
# Testing dashboard controller routes of a namespaced controller --------------
|
89
|
+
|
90
|
+
module Dashboard
|
91
|
+
module SomeModule
|
92
|
+
class PostController < Faalis::Dashboard::ApplicationController
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
class TestDashboardNestedControllers < ActionController::TestCase
|
98
|
+
|
99
|
+
tests Dashboard::SomeModule::PostController
|
100
|
+
|
101
|
+
test 'guess the right `new` route based on controller' do
|
102
|
+
route = @controller.send(:_new_route)
|
103
|
+
|
104
|
+
assert_equal 'new_dashboard_some_module_post_path', route
|
105
|
+
end
|
106
|
+
|
107
|
+
test 'guess the right `index` route based on controller' do
|
108
|
+
route = @controller.send(:_index_route)
|
109
|
+
|
110
|
+
assert_equal 'dashboard_some_module_posts_path', route
|
111
|
+
end
|
112
|
+
|
113
|
+
test 'guess the right `show` route based on controller' do
|
114
|
+
route = @controller.send(:_show_route)
|
115
|
+
|
116
|
+
assert_equal 'dashboard_some_module_post_path', route
|
117
|
+
end
|
118
|
+
end
|
data/test/dummy/config/boot.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Set up gems listed in the Gemfile.
|
2
2
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
|
3
3
|
|
4
|
-
require 'bundler/setup' if File.
|
4
|
+
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
5
5
|
$LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
|
metadata
CHANGED
@@ -1,37 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faalis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0.pre.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sameer Rahmani
|
8
8
|
- Behnam Ahmad Khan Beigi
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
-
|
13
|
-
-----BEGIN CERTIFICATE-----
|
14
|
-
MIIDaDCCAlCgAwIBAgIBATANBgkqhkiG9w0BAQUFADA9MREwDwYDVQQDDAhseHNh
|
15
|
-
bWVlcjETMBEGCgmSJomT8ixkARkWA2dudTETMBEGCgmSJomT8ixkARkWA29yZzAe
|
16
|
-
Fw0xNjA0MDkwOTU2NTlaFw0xNzA0MDkwOTU2NTlaMD0xETAPBgNVBAMMCGx4c2Ft
|
17
|
-
ZWVyMRMwEQYKCZImiZPyLGQBGRYDZ251MRMwEQYKCZImiZPyLGQBGRYDb3JnMIIB
|
18
|
-
IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoynu3mQH6Frf1qQnqEFzmBfj
|
19
|
-
u+6oRNs55zVQi5S3YJ0bXUSOhtAfBQ4i8BOcFKBULyVBvbJervFP+9t7H33miaev
|
20
|
-
KQgR/QU2Gvgi5TTA48t38n/SlNLzCMKdFHqhJcZ33kf0J/ZnvNGewevDSXRQFWxz
|
21
|
-
vFbHzbzZPT2Bv8SoDpollAfkjx3CTSbreKIsEwA3kYKyeKOnJAso+fMDoXZBnKWm
|
22
|
-
ICfBXzcWrnCRob7bOIHMKqH9dilP3I6pLPDl6v4HD2iLbdeHJXtWa+f0PC/iwyqI
|
23
|
-
p1uGsiNwRT33tfXAD9CHnF1tkKVOegf1iZlRQjkxX1wrKldCMXRJsDgBSP8yLQID
|
24
|
-
AQABo3MwcTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUFQiOeeK9
|
25
|
-
LHfZgFmrXcC1Vk70IFkwGwYDVR0RBBQwEoEQbHhzYW1lZXJAZ251Lm9yZzAbBgNV
|
26
|
-
HRIEFDASgRBseHNhbWVlckBnbnUub3JnMA0GCSqGSIb3DQEBBQUAA4IBAQBPzlyO
|
27
|
-
ydG7m2tjP9DkZl/Jw8Paeqi4OQL2tPudgN+nVyx0yb6/6ow11xtc+Q+cI42ecbqJ
|
28
|
-
8DNP1M9JuYbNiYb1ZNteyMNavAMyd+Ts+XCtbwe5Cdn7yINFAhdv/CQ3d3pMk76J
|
29
|
-
lgMRZV+lB5qpfPxIOzoTlRfsNAnmOKq4hloZp4RFQV0n+s9OvSBBjICptu5RkilM
|
30
|
-
kPaeTjT5a10PduReeTaQZtQybKkCPsdWBPKy3gNrEEQ+DIUi26lhYOhgvbu8wWRk
|
31
|
-
ge9CIZowYamI/vvfSApoebxfKQrV8RTkuhxfkna/XvPQS0Qej6X3vjJ8z5bS5vLo
|
32
|
-
+4LSCtONiaAAc/sP
|
33
|
-
-----END CERTIFICATE-----
|
34
|
-
date: 2016-04-24 00:00:00.000000000 Z
|
11
|
+
cert_chain: []
|
12
|
+
date: 2017-06-10 00:00:00.000000000 Z
|
35
13
|
dependencies:
|
36
14
|
- !ruby/object:Gem::Dependency
|
37
15
|
name: rails
|
@@ -632,6 +610,7 @@ files:
|
|
632
610
|
- app/assets/javascripts/faalis/dashboard/lib/misc.js
|
633
611
|
- app/assets/javascripts/faalis/dashboard/lib/string.js
|
634
612
|
- app/assets/javascripts/faalis/dashboard/lib/ujs_patches.js.coffee
|
613
|
+
- app/assets/javascripts/faalis/dashboard/manifest.js
|
635
614
|
- app/assets/javascripts/faalis/dashboard/variables.js.erb
|
636
615
|
- app/assets/javascripts/faalis/groups.js
|
637
616
|
- app/assets/javascripts/faalis/home.js
|
@@ -677,7 +656,6 @@ files:
|
|
677
656
|
- app/models/faalis/concerns/user/user_roles.rb
|
678
657
|
- app/models/faalis/group.rb
|
679
658
|
- app/models/faalis/permission.rb
|
680
|
-
- app/models/faalis/permissions/auth.rb
|
681
659
|
- app/models/faalis/user.rb
|
682
660
|
- app/models/faalis/user_message.rb
|
683
661
|
- app/policies/faalis/admin_only_policy.rb
|
@@ -853,7 +831,9 @@ files:
|
|
853
831
|
- lib/faalis/dashboard/dsl/show.rb
|
854
832
|
- lib/faalis/dashboard/dsl/update.rb
|
855
833
|
- lib/faalis/dashboard/helpers/box_helpers.rb
|
834
|
+
- lib/faalis/dashboard/models.rb
|
856
835
|
- lib/faalis/dashboard/models/sidebar.rb
|
836
|
+
- lib/faalis/dashboard/sections.rb
|
857
837
|
- lib/faalis/dashboard/sections/resource.rb
|
858
838
|
- lib/faalis/dashboard/sections/resource_create.rb
|
859
839
|
- lib/faalis/dashboard/sections/resource_destroy.rb
|
@@ -869,12 +849,16 @@ files:
|
|
869
849
|
- lib/faalis/fake_assets.rb
|
870
850
|
- lib/faalis/i18n.rb
|
871
851
|
- lib/faalis/initialize.rb
|
852
|
+
- lib/faalis/liquid.rb
|
853
|
+
- lib/faalis/liquid/block.rb
|
854
|
+
- lib/faalis/liquid/render_tag.rb
|
855
|
+
- lib/faalis/liquid/tag.rb
|
872
856
|
- lib/faalis/middlewares.rb
|
873
857
|
- lib/faalis/middlewares/locale.rb
|
874
858
|
- lib/faalis/omniauth.rb
|
875
859
|
- lib/faalis/omniauth/callbacks.rb
|
876
860
|
- lib/faalis/orm.rb
|
877
|
-
- lib/faalis/
|
861
|
+
- lib/faalis/routes.rb
|
878
862
|
- lib/faalis/version.rb
|
879
863
|
- lib/generators/faalis/USAGE
|
880
864
|
- lib/generators/faalis/install_all_generator.rb
|
@@ -915,6 +899,7 @@ files:
|
|
915
899
|
- lib/tasks/docs.rake
|
916
900
|
- lib/tasks/faalis_tasks.rake
|
917
901
|
- lib/tasks/sync.rake
|
902
|
+
- test/controllers/faalis/dashboard/resource_test.rb
|
918
903
|
- test/dummy/README.rdoc
|
919
904
|
- test/dummy/Rakefile
|
920
905
|
- test/dummy/app/assets/javascripts/application.js
|
@@ -956,9 +941,7 @@ files:
|
|
956
941
|
- test/dummy/config/initializers/wrap_parameters.rb
|
957
942
|
- test/dummy/config/locales/en.yml
|
958
943
|
- test/dummy/config/routes.rb
|
959
|
-
- test/dummy/db/test.sqlite3
|
960
944
|
- test/dummy/lib/templates/slim/scaffold/_form.html.slim
|
961
|
-
- test/dummy/log/test.log
|
962
945
|
- test/dummy/public/404.html
|
963
946
|
- test/dummy/public/422.html
|
964
947
|
- test/dummy/public/500.html
|
@@ -972,7 +955,7 @@ files:
|
|
972
955
|
- test/test_helper.rb
|
973
956
|
homepage: http://faalis.io
|
974
957
|
licenses:
|
975
|
-
- GPL-2
|
958
|
+
- GPL-2.0
|
976
959
|
metadata: {}
|
977
960
|
post_install_message:
|
978
961
|
rdoc_options: []
|
@@ -985,70 +968,68 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
985
968
|
version: '2.0'
|
986
969
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
987
970
|
requirements:
|
988
|
-
- - "
|
971
|
+
- - ">"
|
989
972
|
- !ruby/object:Gem::Version
|
990
|
-
version:
|
973
|
+
version: 1.3.1
|
991
974
|
requirements: []
|
992
975
|
rubyforge_project:
|
993
|
-
rubygems_version: 2.
|
976
|
+
rubygems_version: 2.6.8
|
994
977
|
signing_key:
|
995
978
|
specification_version: 4
|
996
979
|
summary: Faalis is a ruby on rails engine which provides a platform to easily build
|
997
980
|
a web application
|
998
981
|
test_files:
|
999
|
-
- test/fabricators/faalis/users.rb
|
1000
|
-
- test/fabricators/faalis/permissions.rb
|
1001
|
-
- test/fabricators/faalis/groups.rb
|
1002
|
-
- test/integration/faalis/dashboard_test.rb
|
1003
|
-
- test/integration/faalis/authentication_test.rb
|
1004
|
-
- test/test_helper.rb
|
1005
982
|
- test/generators/install_generator_test.rb
|
1006
|
-
- test/
|
1007
|
-
- test/
|
1008
|
-
- test/
|
1009
|
-
- test/dummy/
|
1010
|
-
- test/dummy/
|
983
|
+
- test/integration/faalis/authentication_test.rb
|
984
|
+
- test/integration/faalis/dashboard_test.rb
|
985
|
+
- test/controllers/faalis/dashboard/resource_test.rb
|
986
|
+
- test/dummy/app/helpers/application_helper.rb
|
987
|
+
- test/dummy/app/policies/application_policy.rb
|
988
|
+
- test/dummy/app/views/layouts/application.html.erb
|
989
|
+
- test/dummy/app/controllers/api_controller.rb
|
990
|
+
- test/dummy/app/controllers/application_controller.rb
|
991
|
+
- test/dummy/app/controllers/dashboard/application_controller.rb
|
992
|
+
- test/dummy/app/assets/javascripts/application.js
|
993
|
+
- test/dummy/app/assets/javascripts/dashboard/application.js
|
994
|
+
- test/dummy/app/assets/stylesheets/application.css
|
995
|
+
- test/dummy/app/assets/stylesheets/ltr/application.css
|
996
|
+
- test/dummy/app/assets/stylesheets/rtl/application.css
|
997
|
+
- test/dummy/app/assets/stylesheets/dashboard/ltr/application.css
|
998
|
+
- test/dummy/app/assets/stylesheets/dashboard/rtl/application.css
|
999
|
+
- test/dummy/bin/rails
|
1000
|
+
- test/dummy/bin/rake
|
1001
|
+
- test/dummy/bin/bundle
|
1011
1002
|
- test/dummy/config.ru
|
1003
|
+
- test/dummy/config/environments/development.rb
|
1004
|
+
- test/dummy/config/environments/test.rb
|
1005
|
+
- test/dummy/config/environments/production.rb
|
1006
|
+
- test/dummy/config/routes.rb
|
1007
|
+
- test/dummy/config/boot.rb
|
1012
1008
|
- test/dummy/config/application.rb
|
1009
|
+
- test/dummy/config/environment.rb
|
1010
|
+
- test/dummy/config/initializers/devise.rb
|
1011
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
1012
|
+
- test/dummy/config/initializers/faalis_assets.rb
|
1013
|
+
- test/dummy/config/initializers/kaminari_config.rb
|
1013
1014
|
- test/dummy/config/initializers/session_store.rb
|
1014
1015
|
- test/dummy/config/initializers/faalis.rb
|
1015
|
-
- test/dummy/config/initializers/
|
1016
|
-
- test/dummy/config/initializers/formstatic.rb
|
1016
|
+
- test/dummy/config/initializers/secret_token.rb
|
1017
1017
|
- test/dummy/config/initializers/wrap_parameters.rb
|
1018
|
-
- test/dummy/config/initializers/faalis_assets.rb
|
1019
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
1020
|
-
- test/dummy/config/initializers/mime_types.rb
|
1021
1018
|
- test/dummy/config/initializers/inflections.rb
|
1022
|
-
- test/dummy/config/initializers/kaminari_config.rb
|
1023
1019
|
- test/dummy/config/initializers/formtastic.rb
|
1024
|
-
- test/dummy/config/initializers/
|
1025
|
-
- test/dummy/config/initializers/
|
1026
|
-
- test/dummy/config/
|
1027
|
-
- test/dummy/config/boot.rb
|
1028
|
-
- test/dummy/config/environments/production.rb
|
1029
|
-
- test/dummy/config/environments/test.rb
|
1030
|
-
- test/dummy/config/environments/development.rb
|
1020
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
1021
|
+
- test/dummy/config/initializers/mime_types.rb
|
1022
|
+
- test/dummy/config/initializers/formstatic.rb
|
1031
1023
|
- test/dummy/config/locales/en.yml
|
1032
|
-
- test/dummy/config/
|
1033
|
-
- test/dummy/
|
1034
|
-
- test/dummy/app/assets/javascripts/dashboard/application.js
|
1035
|
-
- test/dummy/app/assets/javascripts/application.js
|
1036
|
-
- test/dummy/app/assets/stylesheets/rtl/application.css
|
1037
|
-
- test/dummy/app/assets/stylesheets/application.css
|
1038
|
-
- test/dummy/app/assets/stylesheets/ltr/application.css
|
1039
|
-
- test/dummy/app/assets/stylesheets/dashboard/rtl/application.css
|
1040
|
-
- test/dummy/app/assets/stylesheets/dashboard/ltr/application.css
|
1041
|
-
- test/dummy/app/views/layouts/application.html.erb
|
1042
|
-
- test/dummy/app/policies/application_policy.rb
|
1043
|
-
- test/dummy/app/helpers/application_helper.rb
|
1044
|
-
- test/dummy/app/controllers/api_controller.rb
|
1045
|
-
- test/dummy/app/controllers/application_controller.rb
|
1046
|
-
- test/dummy/app/controllers/dashboard/application_controller.rb
|
1047
|
-
- test/dummy/bin/rails
|
1048
|
-
- test/dummy/bin/rake
|
1049
|
-
- test/dummy/bin/bundle
|
1050
|
-
- test/dummy/db/test.sqlite3
|
1051
|
-
- test/dummy/lib/templates/slim/scaffold/_form.html.slim
|
1052
|
-
- test/dummy/log/test.log
|
1024
|
+
- test/dummy/config/database.yml
|
1025
|
+
- test/dummy/Rakefile
|
1053
1026
|
- test/dummy/README.rdoc
|
1054
|
-
|
1027
|
+
- test/dummy/public/404.html
|
1028
|
+
- test/dummy/public/500.html
|
1029
|
+
- test/dummy/public/422.html
|
1030
|
+
- test/dummy/public/favicon.ico
|
1031
|
+
- test/dummy/lib/templates/slim/scaffold/_form.html.slim
|
1032
|
+
- test/test_helper.rb
|
1033
|
+
- test/fabricators/faalis/users.rb
|
1034
|
+
- test/fabricators/faalis/groups.rb
|
1035
|
+
- test/fabricators/faalis/permissions.rb
|