activesupport-decorators 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe3d5acccd16ca2bca25ff066e240f8897746828
4
- data.tar.gz: 7294b4ce649697db9d74f5bfdc487970387fe760
3
+ metadata.gz: 9d4ee6bb9e1c938868f906e1b846a2bc4af679b3
4
+ data.tar.gz: 19ae4aa96ba1f670ffc34786f96420ef77408e40
5
5
  SHA512:
6
- metadata.gz: 8742c9b92ad8b9e926d21aab29a70f5674e04a49ee5ed32decd1c1afef5bc64e32f8d4ae99ad309fefc75b5796a7eaf1b468e73b66866ed3e4a76e81900a13c5
7
- data.tar.gz: db6128c3c7b0bb8a54c311d855b2f75a5e1e16fcc792d463ea2f455768fc867f0129db331e947c163f3068c24b4d02d258f7d3894e9045d4f566f2c0d3eef38f
6
+ metadata.gz: b2aa7df941ff047c9f9337104543164fbf989dbb34da152d9e9046dc872764a4cbecc0f6d35904256287072c538a3651a04d045619b2224621006a9f2baf6ef3
7
+ data.tar.gz: fca0377bca63c694f5c519eea8ecd39c2ea06f6412a9d358ec26c419a70eeb01c860bf860ce92d422e9bc87954de9f439ef50ea3c4f84a23418e0ec8ce504d97
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  ActiveSupport Decorators
2
2
  ========================
3
3
 
4
- [![Build Status](https://travis-ci.org/EPI-USE-Labs/activesupport-decorators.png?branch=master)]
5
- (https://travis-ci.org/EPI-USE-Labs/activesupport-decorators)
4
+ [![Build Status](https://travis-ci.org/EPI-USE-Labs/activesupport-decorators.svg?branch=master)](https://travis-ci.org/EPI-USE-Labs/activesupport-decorators)
6
5
 
7
6
  The decorator pattern is particularly useful when extending constants in rails engines or vice versa. To implement
8
7
  the decorator pattern, you need to load the decorator after the original file has been loaded. When you reference a
@@ -15,7 +14,7 @@ This is a tiny gem that provides you with a simple way to tell ActiveSupport to
15
14
  Add it to your Gemfile and run bundle install:
16
15
 
17
16
  ```Ruby
18
- gem 'activesupport-decorators', '~> 2.0'
17
+ gem 'activesupport-decorators', '~> 2.1'
19
18
  ```
20
19
 
21
20
  ### Usage
@@ -38,7 +38,7 @@ module ActiveSupportDecorators
38
38
  if const_path
39
39
  file = const_path.underscore
40
40
  else
41
- first_autoload_match = ActiveSupport::Dependencies.autoload_paths.find { |p| file.include?(p) }
41
+ first_autoload_match = ActiveSupport::Dependencies.autoload_paths.find { |p| file.include?(p.to_s) }
42
42
  file.sub!(first_autoload_match, '') if first_autoload_match
43
43
  end
44
44
 
@@ -1,3 +1,3 @@
1
1
  module ActiveSupportDecorators
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activesupport-decorators
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Pretorius
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-21 00:00:00.000000000 Z
11
+ date: 2016-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.2.2
78
+ rubygems_version: 2.6.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Adds the decorator pattern to activesupport class loading.