rearmed_rails 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/README.md +3 -3
- data/lib/rearmed_rails.rb +2 -1
- data/lib/rearmed_rails/version.rb +1 -1
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ec2f6749deaa42ffd5765262b1da8e9ac9c3b20bf8b58d037a78e6a28280a3c
|
4
|
+
data.tar.gz: c065db616a7b59772d6a68e1da188305c81570842eefc9b30d3f21103bd6ae3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 446bc29211b72c79155982b3640f2c582ccf770ad6c042ef1dd6d6d7f0b8db30441aebee470ed51789d289223bdebfaf94c4fa6565a6fda0ef96c3bb137b8bf1
|
7
|
+
data.tar.gz: 6369bb6016f4aa595bdf55b09e306f9aedb7d7e280e9581dcc1c29b1b2d25b4f676d151e73a27e039e95787ef9d62e518167b063d58640230bb79b45635e3bb4
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
CHANGELOG
|
2
2
|
---------
|
3
3
|
|
4
|
+
- **2.0.1 - July 12, 2018**
|
5
|
+
- Fix Ruby 1.9.3 support. Do not use `__dir__` because Ruby 1.9.3 does not support it.
|
4
6
|
- **2.0.0 - July 11, 2018**
|
5
7
|
- Change method of applying patches from `require 'rearmed_rails/apply_patches'` to `RearmedRails#apply_patches!`
|
6
8
|
- Once `apply_patches!` has been called, then `enabled_patches` cannot be changed. If it is, it will raise a `PatchesAlreadyAppliedError`
|
data/README.md
CHANGED
@@ -45,13 +45,13 @@ Some other argument formats the `enabled_patches` option accepts are:
|
|
45
45
|
|
46
46
|
```ruby
|
47
47
|
### Enable everything
|
48
|
-
|
48
|
+
RearmedRails.enabled_patches = :all
|
49
49
|
|
50
50
|
### Disable everything
|
51
|
-
|
51
|
+
RearmedRails.enabled_patches = nil
|
52
52
|
|
53
53
|
### Hash values can be boolean/nil values also
|
54
|
-
|
54
|
+
RearmedRails.enabled_patches = {
|
55
55
|
active_record: true,
|
56
56
|
helpers: false,
|
57
57
|
}
|
data/lib/rearmed_rails.rb
CHANGED
@@ -43,7 +43,8 @@ module RearmedRails
|
|
43
43
|
if @applied
|
44
44
|
raise ::RearmedRails::Exceptions::PatchesAlreadyAppliedError.new
|
45
45
|
else
|
46
|
-
|
46
|
+
patches_folder = File.expand_path('../rearmed_rails/monkey_patches', __FILE__)
|
47
|
+
Dir[File.join(patches_folder, '**/*.rb')].each do |filename|
|
47
48
|
require filename
|
48
49
|
end
|
49
50
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rearmed_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Weston Ganger
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: wwtd
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
55
69
|
description: A collection of helpful methods and monkey patches for Rails
|
56
70
|
email: weston@westonganger.com
|
57
71
|
executables: []
|