motorhead 0.3.5 → 0.3.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8af5bdddf57fb7938753e13ba53149d4771443f1
4
- data.tar.gz: e73f18ef91b5b71b54cd64f3d05a06c4c300c059
3
+ metadata.gz: 27b97f66bd79e4b645523ad7bd7e0340d693c457
4
+ data.tar.gz: 5f88d6d9e0e8f22c054ad155ca7a2cc0bf7679b4
5
5
  SHA512:
6
- metadata.gz: 380dc34dd563d65a90019368de38b27664e19b9ccf5b42b81675d54b92980dde503dd47cad49df22e7f603aeba50cc430d584941e5b3f45dd126d52ad7857433
7
- data.tar.gz: 9256e82f3691882863fd47d8c3685ac68139c93376b44f177c6295ce2edbc763d281cff2b4ac56198e63f403b5cf33964cd566992036d5d4db994567e4f9ded6
6
+ metadata.gz: 9f42c757e5e80b0cb0bba907e834f2ca0b60b094feff123c9ef179e960d0666212059457bb59697a71a7551a915109d20ecb1c21689b6f56673bfbde6d903c3b
7
+ data.tar.gz: 628acfbcb798c84d0bcd102aaed45517ed650347de7aa5124572fd9ee727debf48fd2e15d7af3f3d8c77ca497b9045307129ca69aca56a3e6c789b21b0eac9d7
@@ -4,7 +4,7 @@ module <%= camelized %>
4
4
  class Engine < ::Rails::Engine
5
5
  include Motorhead::Engine
6
6
 
7
- active_if { raise <<-MSG }
7
+ active_if { raise Motorhead::ActiveIfNotConfigured, <<-MSG }
8
8
  Please configure appropriate access control for <%= camelized %> Engine.
9
9
 
10
10
  e.g.
@@ -1,3 +1,5 @@
1
+ require 'motorhead/errors'
2
+
1
3
  module Motorhead
2
4
  module Engine
3
5
  extend ActiveSupport::Concern
@@ -0,0 +1,3 @@
1
+ module Motorhead
2
+ class ActiveIfNotConfigured < StandardError; end
3
+ end
@@ -1,3 +1,3 @@
1
1
  module Motorhead
2
- VERSION = '0.3.5'.freeze
2
+ VERSION = '0.3.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motorhead
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akira Matsuda
@@ -132,6 +132,7 @@ files:
132
132
  - lib/motorhead/action_view.rb
133
133
  - lib/motorhead/config.rb
134
134
  - lib/motorhead/engine.rb
135
+ - lib/motorhead/errors.rb
135
136
  - lib/motorhead/road_crew.rb
136
137
  - lib/motorhead/road_crew/app/assets/javascripts/road_crew/application.js
137
138
  - lib/motorhead/road_crew/app/assets/stylesheets/road_crew/application.css