action_prefixer 0.1.0 → 1.0.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: f32e3fae91d4ab3e5f35bf4923dba88f9b3052cc
4
- data.tar.gz: de08bfc8b5cc186944d3a191f8d1789b774bb8e9
3
+ metadata.gz: 1b7f7fbee4b52ae732924e558968ee9ae83bc3ba
4
+ data.tar.gz: de2ec211c93b7643d6bb4d4221c2586cf201e07d
5
5
  SHA512:
6
- metadata.gz: 43210b79f66a940082b4504fece3d94dd5d69c77437030e008c18227ba11c8236d647dc6c863deab3207e2ef0394416df3e316e1a317ec0ad65cb8efeb4e4c3d
7
- data.tar.gz: 04265515af49d3c47724e4fbf508862ffece46790c3e4965b5862d1773214383f5c1a08f5fcdaf5ca41010eb01f9e664301bf48bb4288463f99425321af241f4
6
+ metadata.gz: 6686256de6b85b8f48767b535fbdcd0a45f59fd8db7fcff61894569a1900476e168bf0ba687459dd3f1fad1460fce340546f2c119e3943dc38b7194ae8d83703
7
+ data.tar.gz: 65372e2eb1b5a81c3c1cc382e161320733392f5d12917a5c3a0efa9f88e1c075f72041f02e68bfaee8f616ab4bc8b988ffdfcd45fa51142305097584a0f4cc5b
@@ -5,11 +5,6 @@
5
5
  # Note that changes in the inspected code, or installation of new
6
6
  # versions of RuboCop, may require this file to be generated again.
7
7
 
8
- # Offense count: 1
9
- # Configuration parameters: AllowURI, URISchemes.
10
- Metrics/LineLength:
11
- Max: 95
12
-
13
8
  # Offense count: 5
14
9
  Style/Documentation:
15
10
  Enabled: false
@@ -5,5 +5,10 @@ gemfile:
5
5
  - gemfiles/rails_40.gemfile
6
6
  - gemfiles/rails_41.gemfile
7
7
  - gemfiles/rails_42.gemfile
8
+ - gemfiles/rails_stable.gemfile
9
+ - gemfiles/rails_edge.gemfile
8
10
  notifications:
9
11
  email: false
12
+ matrix:
13
+ allow_failures:
14
+ - gemfile: gemfiles/rails_edge.gemfile
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rails', github: 'rails/rails'
4
+
5
+ gemspec :path => '../'
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rails'
4
+
5
+ gemspec :path => '../'
@@ -5,11 +5,10 @@ module ActionPrefixer
5
5
  extend ActiveSupport::Concern
6
6
 
7
7
  included do
8
- before_action :expand_lookup_paths
9
- end
10
-
11
- def expand_lookup_paths
12
- lookup_context.prefixes = ["#{controller_path}/#{action_name}"] + lookup_context.prefixes
8
+ before_action do
9
+ lookup_context.prefixes =
10
+ ["#{controller_path}/#{action_name}"] + lookup_context.prefixes
11
+ end
13
12
  end
14
13
  end
15
14
 
@@ -1,3 +1,3 @@
1
1
  module ActionPrefixer
2
- VERSION = '0.1.0'
2
+ VERSION = '1.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_prefixer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sinsoku
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-07 00:00:00.000000000 Z
11
+ date: 2015-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -113,6 +113,8 @@ files:
113
113
  - gemfiles/rails_40.gemfile
114
114
  - gemfiles/rails_41.gemfile
115
115
  - gemfiles/rails_42.gemfile
116
+ - gemfiles/rails_edge.gemfile
117
+ - gemfiles/rails_stable.gemfile
116
118
  - lib/action_prefixer.rb
117
119
  - lib/action_prefixer/version.rb
118
120
  - spec/action_prefixer_spec.rb