arrthorizer 0.3.2 → 0.4.1

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.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/arrthorizer.gemspec +0 -1
  3. data/lib/arrthorizer/rails/controller_action.rb +2 -2
  4. data/lib/arrthorizer/rspec.rb +10 -0
  5. data/lib/arrthorizer/version.rb +1 -1
  6. data/spec/dummy/README.rdoc +28 -0
  7. data/spec/dummy/Rakefile +6 -0
  8. data/spec/{internal/app/mailers/.gitkeep → dummy/app/assets/images/.keep} +0 -0
  9. data/spec/{internal → dummy}/app/assets/images/rails.png +0 -0
  10. data/spec/{internal → dummy}/app/assets/javascripts/application.js +0 -0
  11. data/spec/{internal → dummy}/app/assets/javascripts/test.js.coffee +0 -0
  12. data/spec/{internal → dummy}/app/assets/stylesheets/application.css +0 -0
  13. data/spec/{internal → dummy}/app/assets/stylesheets/test.css.scss +0 -0
  14. data/spec/{internal → dummy}/app/controllers/application_controller.rb +0 -0
  15. data/spec/{internal/app/models/.gitkeep → dummy/app/controllers/concerns/.keep} +0 -0
  16. data/spec/{internal → dummy}/app/controllers/some_controller.rb +0 -0
  17. data/spec/{internal → dummy}/app/helpers/application_helper.rb +0 -0
  18. data/spec/{internal → dummy}/app/helpers/test_helper.rb +0 -0
  19. data/spec/{internal/public/favicon.ico → dummy/app/mailers/.gitkeep} +0 -0
  20. data/spec/dummy/app/mailers/.keep +0 -0
  21. data/spec/dummy/app/models/.gitkeep +0 -0
  22. data/spec/dummy/app/models/.keep +0 -0
  23. data/spec/dummy/app/models/concerns/.keep +0 -0
  24. data/spec/{internal → dummy}/app/roles/another_group.rb +0 -0
  25. data/spec/{internal → dummy}/app/roles/namespaced/context_role.rb +0 -0
  26. data/spec/{internal → dummy}/app/roles/some_group.rb +0 -0
  27. data/spec/{internal → dummy}/app/roles/unnamespaced_context_role.rb +0 -0
  28. data/spec/{internal → dummy}/app/views/layouts/application.html.erb +0 -0
  29. data/spec/{internal → dummy}/app/views/some/some_action.html.erb +0 -0
  30. data/spec/dummy/bin/bundle +3 -0
  31. data/spec/dummy/bin/rails +4 -0
  32. data/spec/dummy/bin/rake +4 -0
  33. data/spec/dummy/bin/setup +29 -0
  34. data/spec/dummy/config.ru +4 -0
  35. data/spec/{internal → dummy}/config/application.rb +1 -11
  36. data/spec/{internal → dummy}/config/arrthorizer.yml +0 -0
  37. data/spec/{internal → dummy}/config/boot.rb +0 -0
  38. data/spec/{internal → dummy}/config/database.yml +0 -0
  39. data/spec/{internal → dummy}/config/environment.rb +0 -0
  40. data/spec/dummy/config/environments/development.rb +41 -0
  41. data/spec/dummy/config/environments/production.rb +77 -0
  42. data/spec/dummy/config/environments/test.rb +46 -0
  43. data/spec/{internal → dummy}/config/initializers/arrthorizer.rb +0 -0
  44. data/spec/dummy/config/initializers/assets.rb +11 -0
  45. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  46. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  47. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  48. data/spec/dummy/config/initializers/inflections.rb +16 -0
  49. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  50. data/spec/dummy/config/initializers/session_store.rb +3 -0
  51. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  52. data/spec/dummy/config/locales/en.yml +23 -0
  53. data/spec/{internal → dummy}/config/routes.rb +0 -0
  54. data/spec/dummy/config/secrets.yml +22 -0
  55. data/spec/{internal → dummy}/db/schema.rb +0 -0
  56. data/spec/dummy/db/test.sqlite3 +0 -0
  57. data/spec/dummy/lib/assets/.keep +0 -0
  58. data/spec/{internal → dummy}/log/.gitignore +0 -0
  59. data/spec/dummy/log/.keep +0 -0
  60. data/spec/dummy/public/404.html +67 -0
  61. data/spec/dummy/public/422.html +67 -0
  62. data/spec/dummy/public/500.html +66 -0
  63. data/spec/dummy/public/favicon.ico +0 -0
  64. data/spec/integration/{some_controller_spec.rb → rails/some_controller_spec.rb} +1 -1
  65. data/spec/rails/controller_action/get_current_spec.rb +1 -1
  66. data/spec/rails/controller_action/initialize_spec.rb +1 -1
  67. data/spec/rails/controller_action/key_for_spec.rb +1 -1
  68. data/spec/rails/controller_action/to_key_spec.rb +1 -1
  69. data/spec/rails/controller_concern/arrthorizer_context_spec.rb +1 -1
  70. data/spec/rails/controller_concern/authorization_scope_spec.rb +1 -1
  71. data/spec/rails/controller_concern/authorize_spec.rb +1 -1
  72. data/spec/rails/controller_concern/integration_spec.rb +1 -1
  73. data/spec/rails/controller_concern/to_prepare_context_spec.rb +1 -1
  74. data/spec/rails/controller_configuration/for_action_spec.rb +1 -1
  75. data/spec/rails/controller_configuration/initialize_spec.rb +1 -1
  76. data/spec/rails_helper.rb +27 -0
  77. data/spec/spec_helper.rb +3 -15
  78. metadata +122 -73
  79. data/config.ru +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99020b8a7d6734b6d583dde7782bf0d5b4a795e1
4
- data.tar.gz: 0d287e10df0682a16ab56f937c566971abf11a14
3
+ metadata.gz: 002cb2faed37eff08a1d548f49191e7708ba4341
4
+ data.tar.gz: d32b72dedc2e56eac0523fcc4d33df195e23f0ed
5
5
  SHA512:
6
- metadata.gz: a83bddadd007007cdd31313d26330c3f97fd663e1ea42fe460e39f9dba86820cfab2dc9138a6093cbeb165559f6aba1c6bf4ed193c4a00b854f2bcf5f61ed5d6
7
- data.tar.gz: eb0daf7155fc4acb728ae2cfce174fbd84b88e4f34c53d17f15cd3d636e25110852864cc803ec32c3f1542a8a1fd5451d4bb62fbcf52c1292d895df3dde6029d
6
+ metadata.gz: 730075cef58960176a8ba238299a1d13614ef7e5f8856b26ea0475b60165745f7e1abfd72fe0596941b812b32fe495430b8b05fb7f6588dbf2da4d3c708874a9
7
+ data.tar.gz: 9186816d15283802c708d2c924f71e2657f3417b08242b0b532c8fa68e796bb1b7573ef7f9e2499f7ab918de7ca8a95b27d22bebc72f3d4869e23145a2ab8900
data/arrthorizer.gemspec CHANGED
@@ -18,7 +18,6 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ["lib"]
19
19
 
20
20
  gem.add_dependency 'rails', '>= 3.2.18'
21
- gem.add_development_dependency 'combustion', '~> 0.5.1'
22
21
  gem.add_development_dependency 'sqlite3'
23
22
  gem.add_development_dependency 'rspec-rails', '>= 3'
24
23
  end
@@ -26,8 +26,8 @@ module Arrthorizer
26
26
  private
27
27
  attr_writer :controller_path, :action_name
28
28
 
29
- def self.key_for(controller)
30
- "#{controller.controller_path}##{controller.action_name}"
29
+ def self.key_for(current)
30
+ "#{current.controller_path}##{current.action_name}"
31
31
  end
32
32
 
33
33
  def self.fetch(key)
@@ -1,3 +1,4 @@
1
+ require 'rspec/core/version'
1
2
  require 'rspec/expectations'
2
3
 
3
4
  module Arrthorizer
@@ -8,9 +9,18 @@ module Arrthorizer
8
9
 
9
10
  role_spec = {
10
11
  type: :role,
12
+ }
13
+
14
+ example_group_spec = {
11
15
  file_path: %r(spec/roles)
12
16
  }
13
17
 
18
+ if ::RSpec::Core::Version::STRING =~ /\A2/
19
+ role_spec[:example_group] = example_group_spec
20
+ else
21
+ role_spec.merge!(example_group_spec)
22
+ end
23
+
14
24
  ::RSpec.configure do |config|
15
25
  config.include Arrthorizer::RSpec::Matchers::Roles, role_spec
16
26
  config.include Arrthorizer::RSpec::SharedExamples, role_spec
@@ -1,3 +1,3 @@
1
1
  module Arrthorizer
2
- VERSION = "0.3.2"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts "== Installing dependencies =="
12
+ system "gem install bundler --conservative"
13
+ system "bundle check || bundle install"
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system "bin/rake db:setup"
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system "rm -f log/*"
25
+ system "rm -rf tmp/cache"
26
+
27
+ puts "\n== Restarting application server =="
28
+ system "touch tmp/restart.txt"
29
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Rails.application
@@ -1,11 +1,7 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
3
  # Pick the frameworks you want:
4
- require "active_record/railtie"
5
- require "action_controller/railtie"
6
- require "action_mailer/railtie"
7
- require "active_resource/railtie"
8
- require "sprockets/railtie"
4
+ require "rails/all"
9
5
  # require "rails/test_unit/railtie"
10
6
 
11
7
  if defined?(Bundler)
@@ -50,12 +46,6 @@ module TestArrthorizer
50
46
  # like if you have constraints or database-specific column types
51
47
  # config.active_record.schema_format = :sql
52
48
 
53
- # Enforce whitelist mode for mass assignment.
54
- # This will create an empty whitelist of attributes available for mass-assignment for all models
55
- # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
56
- # parameters by using an attr_accessible or attr_protected declaration.
57
- config.active_record.whitelist_attributes = true
58
-
59
49
  # Enable the asset pipeline
60
50
  config.assets.enabled = true
61
51
 
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,41 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
12
+ # Show full error reports and disable caching.
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send.
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger.
20
+ config.active_support.deprecation = :log
21
+
22
+ # Raise an error on page load if there are pending migrations.
23
+ config.active_record.migration_error = :page_load
24
+
25
+ # Debug mode disables concatenation and preprocessing of assets.
26
+ # This option may cause significant delays in view rendering with a large
27
+ # number of complex assets.
28
+ config.assets.debug = true
29
+
30
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
+ # yet still be able to expire them through the digest params.
32
+ config.assets.digest = true
33
+
34
+ # Adds additional error checking when serving assets at runtime.
35
+ # Checks for improperly declared sprockets dependencies.
36
+ # Raises helpful error messages.
37
+ config.assets.raise_runtime_errors = true
38
+
39
+ # Raises error for missing translations
40
+ # config.action_view.raise_on_missing_translations = true
41
+ end
@@ -0,0 +1,77 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # Code is not reloaded between requests.
5
+ config.cache_classes = true
6
+
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both threaded web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
14
+ config.consider_all_requests_local = false
15
+ config.action_controller.perform_caching = true
16
+
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like
20
+ # NGINX, varnish or squid.
21
+ # config.action_dispatch.rack_cache = true
22
+
23
+ # Disable Rails's static asset server (Apache or NGINX will already do this).
24
+ config.serve_static_assets = false
25
+
26
+ # Compress JavaScripts and CSS.
27
+ config.assets.js_compressor = :uglifier
28
+ # config.assets.css_compressor = :sass
29
+
30
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
31
+ config.assets.compile = false
32
+
33
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
34
+ # yet still be able to expire them through the digest params.
35
+ config.assets.digest = true
36
+
37
+ # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
38
+
39
+ # Specifies the header that your server uses for sending files.
40
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
41
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
42
+
43
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
44
+ # config.force_ssl = true
45
+
46
+ # Decrease the log volume.
47
+ # config.log_level = :info
48
+
49
+ # Prepend all log lines with the following tags.
50
+ # config.log_tags = [ :subdomain, :uuid ]
51
+
52
+ # Use a different logger for distributed setups.
53
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
54
+
55
+ # Use a different cache store in production.
56
+ # config.cache_store = :mem_cache_store
57
+
58
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
59
+ # config.action_controller.asset_host = 'http://assets.example.com'
60
+
61
+ # Ignore bad email addresses and do not raise email delivery errors.
62
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
63
+ # config.action_mailer.raise_delivery_errors = false
64
+
65
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
66
+ # the I18n.default_locale when a translation cannot be found).
67
+ config.i18n.fallbacks = true
68
+
69
+ # Send deprecation notices to registered listeners.
70
+ config.active_support.deprecation = :notify
71
+
72
+ # Use default logging formatter so that PID and timestamp are not suppressed.
73
+ config.log_formatter = ::Logger::Formatter.new
74
+
75
+ # Do not dump schema after migrations.
76
+ config.active_record.dump_schema_after_migration = false
77
+ end
@@ -0,0 +1,46 @@
1
+ TestArrthorizer::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ if Rails.version.starts_with?('4.0')
16
+ config.secret_key_base = 'arrthorizeralsoworkswithrails4.0'
17
+ end
18
+
19
+ # Configure static asset server for tests with Cache-Control for performance.
20
+ config.serve_static_assets = true
21
+ config.static_cache_control = 'public, max-age=3600'
22
+
23
+ # Show full error reports and disable caching.
24
+ config.consider_all_requests_local = true
25
+ config.action_controller.perform_caching = false
26
+
27
+ # Raise exceptions instead of rendering exception templates.
28
+ config.action_dispatch.show_exceptions = false
29
+
30
+ # Disable request forgery protection in test environment.
31
+ config.action_controller.allow_forgery_protection = false
32
+
33
+ # Tell Action Mailer not to deliver emails to the real world.
34
+ # The :test delivery method accumulates sent emails in the
35
+ # ActionMailer::Base.deliveries array.
36
+ config.action_mailer.delivery_method = :test
37
+
38
+ # Randomize the order test cases are executed
39
+ config.active_support.test_order = :random
40
+
41
+ # Print deprecation notices to the stderr.
42
+ config.active_support.deprecation = :stderr
43
+
44
+ # Raises error for missing translations
45
+ # config.action_view.raise_on_missing_translations = true
46
+ end
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
File without changes
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 8317035b44e9909a0fcb56baf4613223c16ee562ea7354b7fe8d5be31e9bf6e22d67dbb9e9b07056c56124c971b3435473f03ba214daa9b785696b6f8053535e
15
+
16
+ test:
17
+ secret_key_base: 5cb468990337689545af2ec36c8d9bec7e7b79b51c57abb2fa2695a365982889881329650c3a4608133c0af8fd2a27ba78d7af9d3e2f237af0a908acbf960469
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
File without changes
Binary file
File without changes
File without changes
File without changes
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe SomeController do
4
4
  let(:action) { Arrthorizer::Rails::ControllerAction.fetch("some#some_action") }
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe Arrthorizer::Rails::ControllerAction do
4
4
  describe :get_current do
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require "rails_helper"
2
2
 
3
3
  describe Arrthorizer::Rails::ControllerAction do
4
4
  let(:controller_name) { 'some_controller' }
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require "rails_helper"
2
2
 
3
3
  describe Arrthorizer::Rails::ControllerAction do
4
4
  describe :key_for do
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require "rails_helper"
2
2
 
3
3
  describe Arrthorizer::Rails::ControllerAction do
4
4
  describe :to_key do
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require "rails_helper"
2
2
 
3
3
  describe Arrthorizer::Rails::ControllerConcern do
4
4
  let(:controller_class) { Class.new(SomeController) }
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe Arrthorizer::Rails::ControllerConcern do
4
4
  describe :authorization_scope do
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require 'rails_helper'
2
2
 
3
3
  describe Arrthorizer::Rails::ControllerConcern do
4
4
  let(:controller_class) { Class.new(SomeController) }
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require "rails_helper"
2
2
 
3
3
  require 'arrthorizer/rails'
4
4
 
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require "rails_helper"
2
2
 
3
3
  describe Arrthorizer::Rails::ControllerConcern do
4
4
  describe :to_prepare_context do
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require "rails_helper"
2
2
 
3
3
  describe Arrthorizer::Rails::ControllerConfiguration do
4
4
  let(:config) { Arrthorizer::Rails::ControllerConfiguration.new do end }
@@ -1,4 +1,4 @@
1
- require "spec_helper"
1
+ require "rails_helper"
2
2
 
3
3
  describe Arrthorizer::Rails::ControllerConfiguration do
4
4
  describe :initialize do
@@ -0,0 +1,27 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
4
+ ENV["RAILS_ENV"] = "test"
5
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
6
+
7
+ require 'rspec/rails'
8
+
9
+ require 'spec_helper'
10
+
11
+ # if normal specs run before Rails-related specs,
12
+ # the Arrthorizer::Rails component might not be initialized
13
+ # Therefore, we initialize it by hand
14
+ Arrthorizer::Rails.initialize!
15
+
16
+ Dir.glob('./spec/support/**/*.rb') do |file|
17
+ require file
18
+ end
19
+
20
+ Dir.glob('./spec/fixtures/**/*.rb') do |file|
21
+ require file
22
+ end
23
+
24
+ RSpec.configure do |config|
25
+ config.use_transactional_fixtures = true
26
+ end
27
+
data/spec/spec_helper.rb CHANGED
@@ -1,24 +1,12 @@
1
1
  require 'rubygems'
2
2
  require 'bundler/setup'
3
3
 
4
- require 'combustion'
4
+ require 'arrthorizer'
5
5
 
6
- Combustion.initialize! :active_record, :action_controller,
7
- :action_view
8
-
9
- require 'rspec/rails'
10
-
11
- Dir.glob('./spec/support/**/*.rb') do |file|
12
- require file
13
- end
14
-
15
- Dir.glob('./spec/fixtures/**/*.rb') do |file|
16
- require file
17
- end
6
+ ENV['RAILS_ENV'] ||= 'test'
7
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
18
8
 
19
9
  RSpec.configure do |config|
20
- config.use_transactional_fixtures = true
21
-
22
10
  config.expect_with :rspec do |c|
23
11
  c.syntax = :expect
24
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arrthorizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - René van den Berg
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-03 00:00:00.000000000 Z
12
+ date: 2015-02-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -25,20 +25,6 @@ dependencies:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 3.2.18
28
- - !ruby/object:Gem::Dependency
29
- name: combustion
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - "~>"
33
- - !ruby/object:Gem::Version
34
- version: 0.5.1
35
- type: :development
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - "~>"
40
- - !ruby/object:Gem::Version
41
- version: 0.5.1
42
28
  - !ruby/object:Gem::Dependency
43
29
  name: sqlite3
44
30
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +67,6 @@ files:
81
67
  - README.md
82
68
  - Rakefile
83
69
  - arrthorizer.gemspec
84
- - config.ru
85
70
  - gemfiles/Gemfile.rails.3.2
86
71
  - gemfiles/Gemfile.rails.4.0
87
72
  - gemfiles/Gemfile.rails.4.1
@@ -125,37 +110,68 @@ files:
125
110
  - spec/context_builder/build_spec.rb
126
111
  - spec/context_role/to_key_spec.rb
127
112
  - spec/context_spec.rb
113
+ - spec/dummy/README.rdoc
114
+ - spec/dummy/Rakefile
115
+ - spec/dummy/app/assets/images/.keep
116
+ - spec/dummy/app/assets/images/rails.png
117
+ - spec/dummy/app/assets/javascripts/application.js
118
+ - spec/dummy/app/assets/javascripts/test.js.coffee
119
+ - spec/dummy/app/assets/stylesheets/application.css
120
+ - spec/dummy/app/assets/stylesheets/test.css.scss
121
+ - spec/dummy/app/controllers/application_controller.rb
122
+ - spec/dummy/app/controllers/concerns/.keep
123
+ - spec/dummy/app/controllers/some_controller.rb
124
+ - spec/dummy/app/helpers/application_helper.rb
125
+ - spec/dummy/app/helpers/test_helper.rb
126
+ - spec/dummy/app/mailers/.gitkeep
127
+ - spec/dummy/app/mailers/.keep
128
+ - spec/dummy/app/models/.gitkeep
129
+ - spec/dummy/app/models/.keep
130
+ - spec/dummy/app/models/concerns/.keep
131
+ - spec/dummy/app/roles/another_group.rb
132
+ - spec/dummy/app/roles/namespaced/context_role.rb
133
+ - spec/dummy/app/roles/some_group.rb
134
+ - spec/dummy/app/roles/unnamespaced_context_role.rb
135
+ - spec/dummy/app/views/layouts/application.html.erb
136
+ - spec/dummy/app/views/some/some_action.html.erb
137
+ - spec/dummy/bin/bundle
138
+ - spec/dummy/bin/rails
139
+ - spec/dummy/bin/rake
140
+ - spec/dummy/bin/setup
141
+ - spec/dummy/config.ru
142
+ - spec/dummy/config/application.rb
143
+ - spec/dummy/config/arrthorizer.yml
144
+ - spec/dummy/config/boot.rb
145
+ - spec/dummy/config/database.yml
146
+ - spec/dummy/config/environment.rb
147
+ - spec/dummy/config/environments/development.rb
148
+ - spec/dummy/config/environments/production.rb
149
+ - spec/dummy/config/environments/test.rb
150
+ - spec/dummy/config/initializers/arrthorizer.rb
151
+ - spec/dummy/config/initializers/assets.rb
152
+ - spec/dummy/config/initializers/backtrace_silencers.rb
153
+ - spec/dummy/config/initializers/cookies_serializer.rb
154
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
155
+ - spec/dummy/config/initializers/inflections.rb
156
+ - spec/dummy/config/initializers/mime_types.rb
157
+ - spec/dummy/config/initializers/session_store.rb
158
+ - spec/dummy/config/initializers/wrap_parameters.rb
159
+ - spec/dummy/config/locales/en.yml
160
+ - spec/dummy/config/routes.rb
161
+ - spec/dummy/config/secrets.yml
162
+ - spec/dummy/db/schema.rb
163
+ - spec/dummy/db/test.sqlite3
164
+ - spec/dummy/lib/assets/.keep
165
+ - spec/dummy/log/.gitignore
166
+ - spec/dummy/log/.keep
167
+ - spec/dummy/public/404.html
168
+ - spec/dummy/public/422.html
169
+ - spec/dummy/public/500.html
170
+ - spec/dummy/public/favicon.ico
128
171
  - spec/integration/group/initialize_spec.rb
172
+ - spec/integration/rails/some_controller_spec.rb
129
173
  - spec/integration/registry/missing_handler_spec.rb
130
174
  - spec/integration/role_spec.rb
131
- - spec/integration/some_controller_spec.rb
132
- - spec/internal/app/assets/images/rails.png
133
- - spec/internal/app/assets/javascripts/application.js
134
- - spec/internal/app/assets/javascripts/test.js.coffee
135
- - spec/internal/app/assets/stylesheets/application.css
136
- - spec/internal/app/assets/stylesheets/test.css.scss
137
- - spec/internal/app/controllers/application_controller.rb
138
- - spec/internal/app/controllers/some_controller.rb
139
- - spec/internal/app/helpers/application_helper.rb
140
- - spec/internal/app/helpers/test_helper.rb
141
- - spec/internal/app/mailers/.gitkeep
142
- - spec/internal/app/models/.gitkeep
143
- - spec/internal/app/roles/another_group.rb
144
- - spec/internal/app/roles/namespaced/context_role.rb
145
- - spec/internal/app/roles/some_group.rb
146
- - spec/internal/app/roles/unnamespaced_context_role.rb
147
- - spec/internal/app/views/layouts/application.html.erb
148
- - spec/internal/app/views/some/some_action.html.erb
149
- - spec/internal/config/application.rb
150
- - spec/internal/config/arrthorizer.yml
151
- - spec/internal/config/boot.rb
152
- - spec/internal/config/database.yml
153
- - spec/internal/config/environment.rb
154
- - spec/internal/config/initializers/arrthorizer.rb
155
- - spec/internal/config/routes.rb
156
- - spec/internal/db/schema.rb
157
- - spec/internal/log/.gitignore
158
- - spec/internal/public/favicon.ico
159
175
  - spec/permission/grant_spec.rb
160
176
  - spec/privilege/accessible_to_spec.rb
161
177
  - spec/privilege/get_spec.rb
@@ -173,6 +189,7 @@ files:
173
189
  - spec/rails/controller_concern/to_prepare_context_spec.rb
174
190
  - spec/rails/controller_configuration/for_action_spec.rb
175
191
  - spec/rails/controller_configuration/initialize_spec.rb
192
+ - spec/rails_helper.rb
176
193
  - spec/role/get_spec.rb
177
194
  - spec/role/shared_examples/finding_the_right_role.rb
178
195
  - spec/spec_helper.rb
@@ -208,37 +225,68 @@ test_files:
208
225
  - spec/context_builder/build_spec.rb
209
226
  - spec/context_role/to_key_spec.rb
210
227
  - spec/context_spec.rb
228
+ - spec/dummy/README.rdoc
229
+ - spec/dummy/Rakefile
230
+ - spec/dummy/app/assets/images/.keep
231
+ - spec/dummy/app/assets/images/rails.png
232
+ - spec/dummy/app/assets/javascripts/application.js
233
+ - spec/dummy/app/assets/javascripts/test.js.coffee
234
+ - spec/dummy/app/assets/stylesheets/application.css
235
+ - spec/dummy/app/assets/stylesheets/test.css.scss
236
+ - spec/dummy/app/controllers/application_controller.rb
237
+ - spec/dummy/app/controllers/concerns/.keep
238
+ - spec/dummy/app/controllers/some_controller.rb
239
+ - spec/dummy/app/helpers/application_helper.rb
240
+ - spec/dummy/app/helpers/test_helper.rb
241
+ - spec/dummy/app/mailers/.gitkeep
242
+ - spec/dummy/app/mailers/.keep
243
+ - spec/dummy/app/models/.gitkeep
244
+ - spec/dummy/app/models/.keep
245
+ - spec/dummy/app/models/concerns/.keep
246
+ - spec/dummy/app/roles/another_group.rb
247
+ - spec/dummy/app/roles/namespaced/context_role.rb
248
+ - spec/dummy/app/roles/some_group.rb
249
+ - spec/dummy/app/roles/unnamespaced_context_role.rb
250
+ - spec/dummy/app/views/layouts/application.html.erb
251
+ - spec/dummy/app/views/some/some_action.html.erb
252
+ - spec/dummy/bin/bundle
253
+ - spec/dummy/bin/rails
254
+ - spec/dummy/bin/rake
255
+ - spec/dummy/bin/setup
256
+ - spec/dummy/config.ru
257
+ - spec/dummy/config/application.rb
258
+ - spec/dummy/config/arrthorizer.yml
259
+ - spec/dummy/config/boot.rb
260
+ - spec/dummy/config/database.yml
261
+ - spec/dummy/config/environment.rb
262
+ - spec/dummy/config/environments/development.rb
263
+ - spec/dummy/config/environments/production.rb
264
+ - spec/dummy/config/environments/test.rb
265
+ - spec/dummy/config/initializers/arrthorizer.rb
266
+ - spec/dummy/config/initializers/assets.rb
267
+ - spec/dummy/config/initializers/backtrace_silencers.rb
268
+ - spec/dummy/config/initializers/cookies_serializer.rb
269
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
270
+ - spec/dummy/config/initializers/inflections.rb
271
+ - spec/dummy/config/initializers/mime_types.rb
272
+ - spec/dummy/config/initializers/session_store.rb
273
+ - spec/dummy/config/initializers/wrap_parameters.rb
274
+ - spec/dummy/config/locales/en.yml
275
+ - spec/dummy/config/routes.rb
276
+ - spec/dummy/config/secrets.yml
277
+ - spec/dummy/db/schema.rb
278
+ - spec/dummy/db/test.sqlite3
279
+ - spec/dummy/lib/assets/.keep
280
+ - spec/dummy/log/.gitignore
281
+ - spec/dummy/log/.keep
282
+ - spec/dummy/public/404.html
283
+ - spec/dummy/public/422.html
284
+ - spec/dummy/public/500.html
285
+ - spec/dummy/public/favicon.ico
211
286
  - spec/integration/group/initialize_spec.rb
287
+ - spec/integration/rails/some_controller_spec.rb
212
288
  - spec/integration/registry/missing_handler_spec.rb
213
289
  - spec/integration/role_spec.rb
214
- - spec/integration/some_controller_spec.rb
215
- - spec/internal/app/assets/images/rails.png
216
- - spec/internal/app/assets/javascripts/application.js
217
- - spec/internal/app/assets/javascripts/test.js.coffee
218
- - spec/internal/app/assets/stylesheets/application.css
219
- - spec/internal/app/assets/stylesheets/test.css.scss
220
- - spec/internal/app/controllers/application_controller.rb
221
- - spec/internal/app/controllers/some_controller.rb
222
- - spec/internal/app/helpers/application_helper.rb
223
- - spec/internal/app/helpers/test_helper.rb
224
- - spec/internal/app/mailers/.gitkeep
225
- - spec/internal/app/models/.gitkeep
226
- - spec/internal/app/roles/another_group.rb
227
- - spec/internal/app/roles/namespaced/context_role.rb
228
- - spec/internal/app/roles/some_group.rb
229
- - spec/internal/app/roles/unnamespaced_context_role.rb
230
- - spec/internal/app/views/layouts/application.html.erb
231
- - spec/internal/app/views/some/some_action.html.erb
232
- - spec/internal/config/application.rb
233
- - spec/internal/config/arrthorizer.yml
234
- - spec/internal/config/boot.rb
235
- - spec/internal/config/database.yml
236
- - spec/internal/config/environment.rb
237
- - spec/internal/config/initializers/arrthorizer.rb
238
- - spec/internal/config/routes.rb
239
- - spec/internal/db/schema.rb
240
- - spec/internal/log/.gitignore
241
- - spec/internal/public/favicon.ico
242
290
  - spec/permission/grant_spec.rb
243
291
  - spec/privilege/accessible_to_spec.rb
244
292
  - spec/privilege/get_spec.rb
@@ -256,6 +304,7 @@ test_files:
256
304
  - spec/rails/controller_concern/to_prepare_context_spec.rb
257
305
  - spec/rails/controller_configuration/for_action_spec.rb
258
306
  - spec/rails/controller_configuration/initialize_spec.rb
307
+ - spec/rails_helper.rb
259
308
  - spec/role/get_spec.rb
260
309
  - spec/role/shared_examples/finding_the_right_role.rb
261
310
  - spec/spec_helper.rb
data/config.ru DELETED
@@ -1,7 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
-
4
- Bundler.require :default, :development
5
-
6
- Combustion.initialize!
7
- run Combustion::Application