effective_style_guide 1.4.1 → 1.5.0

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: a869e026eb9730b468cdd40bb26207c8c8900c31
4
- data.tar.gz: e35d5fc87443792773db7056fab6603aad5c99f7
3
+ metadata.gz: 18e5946b2b7b5b82d0de1a7655e39bbc78065ba8
4
+ data.tar.gz: 7478a4ed58ea6f3bc8dc85b30897002ed2ed9ff0
5
5
  SHA512:
6
- metadata.gz: ba9039d5a5673177e534f9c116e7117f0c314c67b5ce03f768a3835e2117571f4def505f675365cd7fc8dab9ecd33a28c745db907dcac3e6c6b3f349ae5c0458
7
- data.tar.gz: e149c1edc6f4da904c0964958dc48eb1ef0385420b1ae7e02d74c99f2a43610bdee974144a2743b61fc5339886c5539cb61a3839bac4be8bd6ea676db9eec60c
6
+ metadata.gz: ddb475a5deea5a7307958428ccb9738015476edd71a4eda037587beff28d50aa12395ea9634da69c5330a23450c1855372c8cd2a1f8719ce13d040b20e669175
7
+ data.tar.gz: 0d0eac11d8935b2df76947165ab441e1e9c2a123ff6c1ffd822e3da9f47b8173de7f745e3aac66469c1628e45786b75c2f098c29233a3eea359700d7d818b57d
@@ -18,7 +18,7 @@ EffectiveStyleGuide.setup do |config|
18
18
  #
19
19
  # Or disable the check completely:
20
20
  # config.authorization_method = false
21
- config.authorization_method = Proc.new { |controller, action, resource| true } # All users can see every screen
21
+ config.authorization_method = Proc.new { |controller, action, resource| authorize!(action, resource) } # CanCanCan
22
22
 
23
23
  # Admin Screens Layout Settings
24
24
  config.layout = 'application' # All EffectiveStyleGuide controllers will use this layout
@@ -4,7 +4,7 @@ module EffectiveStyleGuide
4
4
 
5
5
  # Set up our default configuration options.
6
6
  initializer "effective_style_guide.defaults", :before => :load_config_initializers do |app|
7
- eval File.read("#{config.root}/lib/generators/templates/effective_style_guide.rb")
7
+ eval File.read("#{config.root}/config/effective_style_guide.rb")
8
8
  end
9
9
 
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveStyleGuide
2
- VERSION = '1.4.1'.freeze
2
+ VERSION = '1.5.0'.freeze
3
3
  end
@@ -1,15 +1,11 @@
1
1
  module EffectiveStyleGuide
2
2
  module Generators
3
3
  class InstallGenerator < Rails::Generators::Base
4
- desc "Creates an EffectiveStyleGuide initializer in your application."
5
- source_root File.expand_path("../../templates", __FILE__)
4
+ desc 'Creates an EffectiveStyleGuide initializer in your application.'
5
+ source_root File.expand_path('../../templates', __FILE__)
6
6
 
7
7
  def copy_initializer
8
- template "effective_style_guide.rb", "config/initializers/effective_style_guide.rb"
9
- end
10
-
11
- def show_readme
12
- readme "README" if behavior == :invoke
8
+ template ('../' * 3) + 'config/effective_style_guide.rb', 'config/initializers/effective_style_guide.rb'
13
9
  end
14
10
  end
15
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_style_guide
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-17 00:00:00.000000000 Z
11
+ date: 2016-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -115,13 +115,12 @@ files:
115
115
  - app/views/effective/style_guide/_typography.html.haml
116
116
  - app/views/effective/style_guide/_wells.html.haml
117
117
  - app/views/effective/style_guide/show.html.haml
118
+ - config/effective_style_guide.rb
118
119
  - config/routes.rb
119
120
  - lib/effective_style_guide.rb
120
121
  - lib/effective_style_guide/engine.rb
121
122
  - lib/effective_style_guide/version.rb
122
123
  - lib/generators/effective_style_guide/install_generator.rb
123
- - lib/generators/templates/README
124
- - lib/generators/templates/effective_style_guide.rb
125
124
  homepage: https://github.com/code-and-effect/effective_style_guide
126
125
  licenses:
127
126
  - MIT
@@ -1 +0,0 @@
1
- Thanks for using EffectiveStyleGuide