burlesque 2.0.5 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +1 -1
  3. data/Rakefile +7 -15
  4. data/app/assets/config/burlesque_manifest.js +2 -0
  5. data/app/assets/javascripts/burlesque/application.js +6 -6
  6. data/app/assets/stylesheets/burlesque/application.css +6 -4
  7. data/app/controllers/burlesque/application_controller.rb +1 -0
  8. data/app/jobs/burlesque/application_job.rb +4 -0
  9. data/app/mailers/burlesque/application_mailer.rb +6 -0
  10. data/{lib → app/models}/burlesque/admin.rb +4 -7
  11. data/app/models/burlesque/admin_group.rb +7 -9
  12. data/app/models/burlesque/admin_role.rb +2 -4
  13. data/app/models/burlesque/application_record.rb +5 -0
  14. data/app/models/burlesque/group.rb +1 -5
  15. data/app/models/burlesque/role.rb +8 -13
  16. data/app/models/burlesque/role_group.rb +2 -4
  17. data/app/views/layouts/burlesque/application.html.erb +4 -2
  18. data/config/locales/burlesque.en.yml +2 -1
  19. data/config/locales/burlesque.es.yml +33 -0
  20. data/db/migrate/{20130725210208_create_burlesque_groups.rb → 20190319134128_create_burlesque_groups.rb} +1 -1
  21. data/db/migrate/{20130725210428_create_burlesque_roles.rb → 20190319134212_create_burlesque_roles.rb} +1 -1
  22. data/db/migrate/20190319134355_create_burlesque_admin_groups.rb +10 -0
  23. data/db/migrate/20190319134555_create_burlesque_role_groups.rb +10 -0
  24. data/db/migrate/20190319135759_create_burlesque_admin_roles.rb +10 -0
  25. data/lib/burlesque.rb +1 -2
  26. data/lib/burlesque/{locale.rb → locales.rb} +0 -0
  27. data/lib/burlesque/version.rb +3 -3
  28. metadata +48 -114
  29. data/db/migrate/20130725214806_create_burlesque_admin_groups.rb +0 -15
  30. data/db/migrate/20130725223204_create_burlesque_role_groups.rb +0 -12
  31. data/db/migrate/20130725223437_create_burlesque_admin_roles.rb +0 -15
  32. data/test/burlesque_test.rb +0 -7
  33. data/test/dummy/README.rdoc +0 -261
  34. data/test/dummy/Rakefile +0 -7
  35. data/test/dummy/app/assets/javascripts/application.js +0 -15
  36. data/test/dummy/app/assets/stylesheets/application.css +0 -13
  37. data/test/dummy/app/controllers/application_controller.rb +0 -3
  38. data/test/dummy/app/helpers/application_helper.rb +0 -2
  39. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  40. data/test/dummy/config.ru +0 -4
  41. data/test/dummy/config/application.rb +0 -59
  42. data/test/dummy/config/boot.rb +0 -10
  43. data/test/dummy/config/database.yml +0 -25
  44. data/test/dummy/config/environment.rb +0 -5
  45. data/test/dummy/config/environments/development.rb +0 -37
  46. data/test/dummy/config/environments/production.rb +0 -67
  47. data/test/dummy/config/environments/test.rb +0 -37
  48. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  49. data/test/dummy/config/initializers/inflections.rb +0 -15
  50. data/test/dummy/config/initializers/mime_types.rb +0 -5
  51. data/test/dummy/config/initializers/secret_token.rb +0 -7
  52. data/test/dummy/config/initializers/session_store.rb +0 -8
  53. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  54. data/test/dummy/config/locales/en.yml +0 -5
  55. data/test/dummy/config/routes.rb +0 -4
  56. data/test/dummy/public/404.html +0 -26
  57. data/test/dummy/public/422.html +0 -26
  58. data/test/dummy/public/500.html +0 -25
  59. data/test/dummy/public/favicon.ico +0 -0
  60. data/test/dummy/script/rails +0 -6
  61. data/test/fixtures/burlesque/admin_groups.yml +0 -9
  62. data/test/fixtures/burlesque/admin_roles.yml +0 -9
  63. data/test/fixtures/burlesque/groups.yml +0 -7
  64. data/test/fixtures/burlesque/role_groups.yml +0 -9
  65. data/test/fixtures/burlesque/roles.yml +0 -7
  66. data/test/integration/navigation_test.rb +0 -10
  67. data/test/test_helper.rb +0 -15
  68. data/test/unit/burlesque/admin_group_test.rb +0 -9
  69. data/test/unit/burlesque/admin_role_test.rb +0 -9
  70. data/test/unit/burlesque/group_test.rb +0 -9
  71. data/test/unit/burlesque/role_group_test.rb +0 -9
  72. data/test/unit/burlesque/role_test.rb +0 -9
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a204616bcdd55ecfd4599eb6129fcb22fc766609cc20a847b151f335822f7351
4
+ data.tar.gz: 3889f5a4d7764dde80df13f246b50ddd2c29ef8492c86a47effe78f5a0fa268b
5
+ SHA512:
6
+ metadata.gz: 03a7bf8ca10fc299f23984303b6d799d8560da6c0902f8508a592a98c52af2bc3e679301d732dd72029ef2859e61220d61bad5ce56a9e0621d5f954681222b44
7
+ data.tar.gz: 3b7d8394b514b3ab83ea020ba6aae0f1641354648bb7da11d80bfd307226cea99cb873480501632b0ba87248c65fc11cd2c44824a3997baad3138f9b4a6e9483
@@ -1,4 +1,4 @@
1
- Copyright 2013 YOURNAME
1
+ Copyright 2019 Marcelo Espina
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -1,40 +1,32 @@
1
- #!/usr/bin/env rake
2
1
  begin
3
2
  require 'bundler/setup'
4
3
  rescue LoadError
5
4
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
5
  end
7
- begin
8
- require 'rdoc/task'
9
- rescue LoadError
10
- require 'rdoc/rdoc'
11
- require 'rake/rdoctask'
12
- RDoc::Task = Rake::RDocTask
13
- end
6
+
7
+ require 'rdoc/task'
14
8
 
15
9
  RDoc::Task.new(:rdoc) do |rdoc|
16
10
  rdoc.rdoc_dir = 'rdoc'
17
11
  rdoc.title = 'Burlesque'
18
12
  rdoc.options << '--line-numbers'
19
- rdoc.rdoc_files.include('README.rdoc')
13
+ rdoc.rdoc_files.include('README.md')
20
14
  rdoc.rdoc_files.include('lib/**/*.rb')
21
15
  end
22
16
 
23
- APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
17
+ APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
24
18
  load 'rails/tasks/engine.rake'
25
19
 
20
+ load 'rails/tasks/statistics.rake'
26
21
 
27
-
28
- Bundler::GemHelper.install_tasks
22
+ require 'bundler/gem_tasks'
29
23
 
30
24
  require 'rake/testtask'
31
25
 
32
26
  Rake::TestTask.new(:test) do |t|
33
- t.libs << 'lib'
34
27
  t.libs << 'test'
35
28
  t.pattern = 'test/**/*_test.rb'
36
29
  t.verbose = false
37
30
  end
38
31
 
39
-
40
- task :default => :test
32
+ task default: :test
@@ -0,0 +1,2 @@
1
+ //= link_directory ../javascripts/burlesque .js
2
+ //= link_directory ../stylesheets/burlesque .css
@@ -2,14 +2,14 @@
2
2
  // listed below.
3
3
  //
4
4
  // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
6
  //
7
7
  // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // the compiled file.
8
+ // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
9
  //
10
- // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
- // GO AFTER THE REQUIRES BELOW.
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
12
  //
13
- //= require jquery
14
- //= require jquery_ujs
13
+ //= require rails-ujs
14
+ //= require activestorage
15
15
  //= require_tree .
@@ -3,11 +3,13 @@
3
3
  * listed below.
4
4
  *
5
5
  * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
7
  *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
+ * files in this directory. Styles in this file should be added after the last require_* statement.
11
+ * It is generally better to create a new file per style scope.
10
12
  *
11
- *= require_self
12
13
  *= require_tree .
14
+ *= require_self
13
15
  */
@@ -1,4 +1,5 @@
1
1
  module Burlesque
2
2
  class ApplicationController < ActionController::Base
3
+ protect_from_forgery with: :exception
3
4
  end
4
5
  end
@@ -0,0 +1,4 @@
1
+ module Burlesque
2
+ class ApplicationJob < ActiveJob::Base
3
+ end
4
+ end
@@ -0,0 +1,6 @@
1
+ module Burlesque
2
+ class ApplicationMailer < ActionMailer::Base
3
+ default from: 'from@example.com'
4
+ layout 'mailer'
5
+ end
6
+ end
@@ -9,14 +9,11 @@ module Burlesque
9
9
  extend ActiveSupport::Concern
10
10
 
11
11
  included do
12
- has_many :admin_roles, as: :authorizable, dependent: :destroy, class_name: Burlesque::AdminRole
13
- has_many :roles, through: :admin_roles, class_name: Burlesque::Role
12
+ has_many :admin_roles, as: :authorizable, dependent: :destroy, class_name: Burlesque::AdminRole.to_s
13
+ has_many :roles, through: :admin_roles, class_name: Burlesque::Role.to_s
14
14
 
15
- has_many :admin_groups, as: :adminable, dependent: :destroy, class_name: Burlesque::AdminGroup
16
- has_many :groups, through: :admin_groups, after_remove: :remove_roles_from_admin, class_name: Burlesque::Group
17
-
18
- attr_accessible :group_ids,
19
- :role_ids
15
+ has_many :admin_groups, as: :adminable, dependent: :destroy, class_name: Burlesque::AdminGroup.to_s
16
+ has_many :groups, through: :admin_groups, after_remove: :remove_roles_from_admin, class_name: Burlesque::Group.to_s
20
17
  end
21
18
 
22
19
  module InstanceMethods
@@ -1,22 +1,20 @@
1
- # encoding: utf-8
2
-
3
1
  # Public: Modelo intermedio, permite que un Grupo pueda ser asignado a un 'Administrador',
4
2
  # Este administrador puede ser cualquier modelo que incluya el modulo 'Burlesque::Admin'
5
3
  #
6
4
  module Burlesque
7
- class AdminGroup < ActiveRecord::Base
5
+ class AdminGroup < ApplicationRecord
8
6
  belongs_to :group
9
7
  belongs_to :adminable, polymorphic: true
10
8
 
11
- validates_uniqueness_of :group_id, scope: [:adminable_id, :adminable_type], message: I18n.t('errors.messages.group_taken')
9
+ validates_uniqueness_of :group_id, scope: [:adminable_id, :adminable_type], message: I18n.t(:group_taken, scope: [:errors, :messages])
12
10
 
13
11
  after_create :add_new_roles_to_admin
14
12
 
15
13
  private
16
- def add_new_roles_to_admin
17
- group.roles.each do |role|
18
- adminable.roles << role unless adminable.roles.include? role
14
+ def add_new_roles_to_admin
15
+ group.roles.each do |role|
16
+ adminable.roles << role unless adminable.roles.include? role
17
+ end
19
18
  end
20
- end
21
19
  end
22
- end
20
+ end
@@ -1,13 +1,11 @@
1
- # encoding: utf-8
2
-
3
1
  # Public: Modelo intermedio, permite que un Role pueda ser asignado a un 'Administrador',
4
2
  # Este administrador puede ser cualquier modelo que incluya el modulo 'Burlesque::Admin'
5
3
  #
6
4
  module Burlesque
7
- class AdminRole < ActiveRecord::Base
5
+ class AdminRole < ApplicationRecord
8
6
  belongs_to :role
9
7
  belongs_to :authorizable, polymorphic: true
10
8
 
11
- validates_uniqueness_of :role_id, scope: [:authorizable_id, :authorizable_type], message: I18n.t('errors.messages.role_taken')
9
+ validates_uniqueness_of :role_id, scope: [:authorizable_id, :authorizable_type], message: I18n.t(:role_taken, scope: [:errors, :messages])
12
10
  end
13
11
  end
@@ -0,0 +1,5 @@
1
+ module Burlesque
2
+ class ApplicationRecord < ActiveRecord::Base
3
+ self.abstract_class = true
4
+ end
5
+ end
@@ -1,17 +1,13 @@
1
- # encoding: utf-8
2
-
3
1
  # Public: Modelo que maneja Grupos
4
2
  #
5
3
  module Burlesque
6
- class Group < ActiveRecord::Base
4
+ class Group < ApplicationRecord
7
5
  has_many :role_groups
8
6
  has_many :roles, through: :role_groups, dependent: :destroy, after_remove: :remove_roles_from_admin
9
7
 
10
8
  has_many :admin_groups, dependent: :destroy
11
9
  # for has_many :admins relations see admins function
12
10
 
13
- attr_accessible :name, :role_ids
14
-
15
11
  validates :name, presence: true, uniqueness: true
16
12
 
17
13
  # Public: Relacion a muchos usuarios
@@ -1,19 +1,14 @@
1
- # encoding: utf-8
2
-
3
1
  # Public: Modulo que maneja Roles.
4
2
  # Un Role es un permiso que permite a un usuario a realizar una determinada acción sobre un modelo
5
3
  #
6
4
  module Burlesque
7
- class Role < ActiveRecord::Base
8
- attr_accessible :name
9
-
5
+ class Role < ApplicationRecord
10
6
  has_many :role_groups
11
7
  has_many :groups, through: :role_groups, dependent: :destroy
12
8
 
13
9
  has_many :admin_roles, dependent: :destroy
14
10
  # for has_many :admins relations see admins function
15
11
 
16
- attr_accessible :name
17
12
  validates :name, presence: true, uniqueness: true
18
13
 
19
14
  SPLITER = '#'
@@ -84,18 +79,18 @@ module Burlesque
84
79
  # Mejorar el retorno, para saber que paso, ej: si se agregaron los 5 roles o si ya existen
85
80
  def self.for model
86
81
  if model.class == String
87
- resource = model.classify.constantize.model_name.underscore
82
+ resource = model.classify.constantize.model_name.to_s.underscore
88
83
  elsif model.class == Symbol
89
- resource = model.to_s.classify.constantize.model_name.underscore
84
+ resource = model.classify.constantize.model_name.to_s.underscore
90
85
  elsif model.class == Class
91
- resource = model.model_name.underscore
86
+ resource = model.model_name.to_s.underscore
92
87
  end
93
88
 
94
89
  if resource
95
- self.create(name: "#{resource}#{SPLITER}read") unless self.where(name: "#{resource}#{SPLITER}read" ).any?
96
- self.create(name: "#{resource}#{SPLITER}create") unless self.where(name: "#{resource}#{SPLITER}create" ).any?
97
- self.create(name: "#{resource}#{SPLITER}update") unless self.where(name: "#{resource}#{SPLITER}update" ).any?
98
- self.create(name: "#{resource}#{SPLITER}destroy") unless self.where(name: "#{resource}#{SPLITER}destroy").any?
90
+ self.find_or_create_by(name: "#{resource}#{SPLITER}read")
91
+ self.find_or_create_by(name: "#{resource}#{SPLITER}create")
92
+ self.find_or_create_by(name: "#{resource}#{SPLITER}update")
93
+ self.find_or_create_by(name: "#{resource}#{SPLITER}destroy")
99
94
  else
100
95
  raise I18n.t('errors.messages.invalid_param', param: model.class)
101
96
  end
@@ -1,13 +1,11 @@
1
- # encoding: utf-8
2
-
3
1
  # Public: Modulo intermedio, permite que un Role pueda ser asignado a un Grupo
4
2
  #
5
3
  module Burlesque
6
- class RoleGroup < ActiveRecord::Base
4
+ class RoleGroup < ApplicationRecord
7
5
  belongs_to :role
8
6
  belongs_to :group
9
7
 
10
- validates_uniqueness_of :role_id, scope: :group_id, message: I18n.t('errors.messages.role_taken')
8
+ validates_uniqueness_of :role_id, scope: :group_id, message: I18n.t(:role_taken, scope: [:errors, :messages])
11
9
 
12
10
  after_save :add_new_roles_to_admin
13
11
 
@@ -2,9 +2,11 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Burlesque</title>
5
- <%= stylesheet_link_tag "burlesque/application", :media => "all" %>
6
- <%= javascript_include_tag "burlesque/application" %>
7
5
  <%= csrf_meta_tags %>
6
+ <%= csp_meta_tag %>
7
+
8
+ <%= stylesheet_link_tag "burlesque/application", media: "all" %>
9
+ <%= javascript_include_tag "burlesque/application" %>
8
10
  </head>
9
11
  <body>
10
12
 
@@ -16,6 +16,7 @@ en:
16
16
  attributes:
17
17
  role:
18
18
  name: Name
19
+ groups: Grups
19
20
  created_at: created
20
21
  updated_at: updated
21
22
  group:
@@ -29,4 +30,4 @@ en:
29
30
  create: Create
30
31
  update: Update
31
32
  destroy: Destroy
32
- manage: Manage
33
+ manage: Manage
@@ -0,0 +1,33 @@
1
+ es:
2
+ errors: &errors
3
+ messages:
4
+ role_taken: ya está asignado
5
+ group_taken: ya está asignado
6
+ invalid_param: '<%{param}> inválido, intenten con <Class>, <String> o <Symbol>'
7
+ access_denied: No estas autorizado para realizar esta acción.
8
+ activerecord:
9
+ models:
10
+ role:
11
+ one: Privilegio
12
+ other: Privilegios
13
+ group:
14
+ one: Grupo
15
+ other: Grupos
16
+ attributes:
17
+ role:
18
+ name: Nombre
19
+ groups: Grupos
20
+ created_at: Creado
21
+ updated_at: Última actualización
22
+ group:
23
+ name: Nombre
24
+ roles: Privilegios
25
+ created_at: Creado
26
+ updated_at: Última actualización
27
+ authorizations:
28
+ read: Listar
29
+ show: Mostrar
30
+ create: Crear
31
+ update: Actualizar
32
+ destroy: Eliminar
33
+ manage: Administrar
@@ -1,4 +1,4 @@
1
- class CreateBurlesqueGroups < ActiveRecord::Migration
1
+ class CreateBurlesqueGroups < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :burlesque_groups do |t|
4
4
  t.string :name
@@ -1,4 +1,4 @@
1
- class CreateBurlesqueRoles < ActiveRecord::Migration
1
+ class CreateBurlesqueRoles < ActiveRecord::Migration[5.2]
2
2
  def change
3
3
  create_table :burlesque_roles do |t|
4
4
  t.string :name
@@ -0,0 +1,10 @@
1
+ class CreateBurlesqueAdminGroups < ActiveRecord::Migration[5.2]
2
+ def change
3
+ create_table :burlesque_admin_groups do |t|
4
+ t.belongs_to :group, foreign_key: {to_table: :burlesque_groups}
5
+ t.belongs_to :adminable, polymorphic: true, index: { name: "by_adminable" }
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ class CreateBurlesqueRoleGroups < ActiveRecord::Migration[5.2]
2
+ def change
3
+ create_table :burlesque_role_groups do |t|
4
+ t.belongs_to :role, foreign_key: {to_table: :burlesque_roles}
5
+ t.belongs_to :group, foreign_key: {to_table: :burlesque_groups}
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ class CreateBurlesqueAdminRoles < ActiveRecord::Migration[5.2]
2
+ def change
3
+ create_table :burlesque_admin_roles do |t|
4
+ t.belongs_to :role, foreign_key: {to_table: :burlesque_roles}
5
+ t.belongs_to :authorizable, polymorphic: true, index: { name: "by_authorizable" }
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -1,6 +1,5 @@
1
- require "burlesque/admin"
2
1
  require "burlesque/engine"
3
- require "burlesque/locale"
2
+ require "burlesque/locales"
4
3
  require "burlesque/version"
5
4
 
6
5
  module Burlesque
File without changes
@@ -1,3 +1,3 @@
1
- module Burlesque
2
- VERSION = "2.0.5"
3
- end
1
+ module Burlesque
2
+ VERSION = '3.0.0'
3
+ end
metadata CHANGED
@@ -1,33 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: burlesque
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
5
- prerelease:
4
+ version: 3.0.0
6
5
  platform: ruby
7
6
  authors:
8
- - mespina
7
+ - Marcelo Espina
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-08 00:00:00.000000000 Z
11
+ date: 2019-03-28 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: 3.2.12
19
+ version: 5.2.2
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: 3.2.12
30
- description: Crea estructura de roles y grupos para caulquier modelo, considera ademas
26
+ version: 5.2.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: sqlite3
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.3.6
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 1.3.6
41
+ description: Crea estructura de roles y grupos para cualquier modelo, considera ademas
31
42
  las 3 tablas de join que pudiesen darse
32
43
  email:
33
44
  - mespina.icc@gmail.com
@@ -35,137 +46,60 @@ executables: []
35
46
  extensions: []
36
47
  extra_rdoc_files: []
37
48
  files:
49
+ - MIT-LICENSE
50
+ - README.md
51
+ - Rakefile
52
+ - app/assets/config/burlesque_manifest.js
38
53
  - app/assets/javascripts/burlesque/application.js
39
54
  - app/assets/stylesheets/burlesque/application.css
40
55
  - app/controllers/burlesque/application_controller.rb
41
56
  - app/helpers/burlesque/application_helper.rb
57
+ - app/jobs/burlesque/application_job.rb
58
+ - app/mailers/burlesque/application_mailer.rb
59
+ - app/models/burlesque/admin.rb
42
60
  - app/models/burlesque/admin_group.rb
43
61
  - app/models/burlesque/admin_role.rb
62
+ - app/models/burlesque/application_record.rb
44
63
  - app/models/burlesque/group.rb
45
64
  - app/models/burlesque/role.rb
46
65
  - app/models/burlesque/role_group.rb
47
66
  - app/views/layouts/burlesque/application.html.erb
48
67
  - config/locales/burlesque.en.yml
49
68
  - config/locales/burlesque.es-CL.yml
69
+ - config/locales/burlesque.es.yml
50
70
  - config/routes.rb
51
- - db/migrate/20130725210208_create_burlesque_groups.rb
52
- - db/migrate/20130725210428_create_burlesque_roles.rb
53
- - db/migrate/20130725214806_create_burlesque_admin_groups.rb
54
- - db/migrate/20130725223204_create_burlesque_role_groups.rb
55
- - db/migrate/20130725223437_create_burlesque_admin_roles.rb
56
- - lib/burlesque/admin.rb
71
+ - db/migrate/20190319134128_create_burlesque_groups.rb
72
+ - db/migrate/20190319134212_create_burlesque_roles.rb
73
+ - db/migrate/20190319134355_create_burlesque_admin_groups.rb
74
+ - db/migrate/20190319134555_create_burlesque_role_groups.rb
75
+ - db/migrate/20190319135759_create_burlesque_admin_roles.rb
76
+ - lib/burlesque.rb
57
77
  - lib/burlesque/engine.rb
58
- - lib/burlesque/locale.rb
78
+ - lib/burlesque/locales.rb
59
79
  - lib/burlesque/version.rb
60
- - lib/burlesque.rb
61
80
  - lib/tasks/burlesque_tasks.rake
62
- - MIT-LICENSE
63
- - Rakefile
64
- - README.md
65
- - test/burlesque_test.rb
66
- - test/dummy/app/assets/javascripts/application.js
67
- - test/dummy/app/assets/stylesheets/application.css
68
- - test/dummy/app/controllers/application_controller.rb
69
- - test/dummy/app/helpers/application_helper.rb
70
- - test/dummy/app/views/layouts/application.html.erb
71
- - test/dummy/config/application.rb
72
- - test/dummy/config/boot.rb
73
- - test/dummy/config/database.yml
74
- - test/dummy/config/environment.rb
75
- - test/dummy/config/environments/development.rb
76
- - test/dummy/config/environments/production.rb
77
- - test/dummy/config/environments/test.rb
78
- - test/dummy/config/initializers/backtrace_silencers.rb
79
- - test/dummy/config/initializers/inflections.rb
80
- - test/dummy/config/initializers/mime_types.rb
81
- - test/dummy/config/initializers/secret_token.rb
82
- - test/dummy/config/initializers/session_store.rb
83
- - test/dummy/config/initializers/wrap_parameters.rb
84
- - test/dummy/config/locales/en.yml
85
- - test/dummy/config/routes.rb
86
- - test/dummy/config.ru
87
- - test/dummy/public/404.html
88
- - test/dummy/public/422.html
89
- - test/dummy/public/500.html
90
- - test/dummy/public/favicon.ico
91
- - test/dummy/Rakefile
92
- - test/dummy/README.rdoc
93
- - test/dummy/script/rails
94
- - test/fixtures/burlesque/admin_groups.yml
95
- - test/fixtures/burlesque/admin_roles.yml
96
- - test/fixtures/burlesque/groups.yml
97
- - test/fixtures/burlesque/role_groups.yml
98
- - test/fixtures/burlesque/roles.yml
99
- - test/integration/navigation_test.rb
100
- - test/test_helper.rb
101
- - test/unit/burlesque/admin_group_test.rb
102
- - test/unit/burlesque/admin_role_test.rb
103
- - test/unit/burlesque/group_test.rb
104
- - test/unit/burlesque/role_group_test.rb
105
- - test/unit/burlesque/role_test.rb
106
- homepage: ''
107
- licenses: []
81
+ homepage:
82
+ licenses:
83
+ - MIT
84
+ metadata:
85
+ allowed_push_host: https://rubygems.org
108
86
  post_install_message:
109
87
  rdoc_options: []
110
88
  require_paths:
111
89
  - lib
112
90
  required_ruby_version: !ruby/object:Gem::Requirement
113
- none: false
114
91
  requirements:
115
- - - ! '>='
92
+ - - ">="
116
93
  - !ruby/object:Gem::Version
117
94
  version: '0'
118
95
  required_rubygems_version: !ruby/object:Gem::Requirement
119
- none: false
120
96
  requirements:
121
- - - ! '>='
97
+ - - ">="
122
98
  - !ruby/object:Gem::Version
123
99
  version: '0'
124
100
  requirements: []
125
- rubyforge_project: burlesque
126
- rubygems_version: 1.8.25
101
+ rubygems_version: 3.0.3
127
102
  signing_key:
128
- specification_version: 3
103
+ specification_version: 4
129
104
  summary: Roles y Grupos
130
- test_files:
131
- - test/burlesque_test.rb
132
- - test/dummy/app/assets/javascripts/application.js
133
- - test/dummy/app/assets/stylesheets/application.css
134
- - test/dummy/app/controllers/application_controller.rb
135
- - test/dummy/app/helpers/application_helper.rb
136
- - test/dummy/app/views/layouts/application.html.erb
137
- - test/dummy/config/application.rb
138
- - test/dummy/config/boot.rb
139
- - test/dummy/config/database.yml
140
- - test/dummy/config/environment.rb
141
- - test/dummy/config/environments/development.rb
142
- - test/dummy/config/environments/production.rb
143
- - test/dummy/config/environments/test.rb
144
- - test/dummy/config/initializers/backtrace_silencers.rb
145
- - test/dummy/config/initializers/inflections.rb
146
- - test/dummy/config/initializers/mime_types.rb
147
- - test/dummy/config/initializers/secret_token.rb
148
- - test/dummy/config/initializers/session_store.rb
149
- - test/dummy/config/initializers/wrap_parameters.rb
150
- - test/dummy/config/locales/en.yml
151
- - test/dummy/config/routes.rb
152
- - test/dummy/config.ru
153
- - test/dummy/public/404.html
154
- - test/dummy/public/422.html
155
- - test/dummy/public/500.html
156
- - test/dummy/public/favicon.ico
157
- - test/dummy/Rakefile
158
- - test/dummy/README.rdoc
159
- - test/dummy/script/rails
160
- - test/fixtures/burlesque/admin_groups.yml
161
- - test/fixtures/burlesque/admin_roles.yml
162
- - test/fixtures/burlesque/groups.yml
163
- - test/fixtures/burlesque/role_groups.yml
164
- - test/fixtures/burlesque/roles.yml
165
- - test/integration/navigation_test.rb
166
- - test/test_helper.rb
167
- - test/unit/burlesque/admin_group_test.rb
168
- - test/unit/burlesque/admin_role_test.rb
169
- - test/unit/burlesque/group_test.rb
170
- - test/unit/burlesque/role_group_test.rb
171
- - test/unit/burlesque/role_test.rb
105
+ test_files: []