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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66bf5b7b6b2a6f6cfb1697c7a05edfc21dbb27d3f3bf38ffce810fc5f2ea2b21
4
- data.tar.gz: 5f96d7b7582e51ec05b74da7f85bc18f1eebb5f07a73a09e2375dc4fec928570
3
+ metadata.gz: 9ec2f6749deaa42ffd5765262b1da8e9ac9c3b20bf8b58d037a78e6a28280a3c
4
+ data.tar.gz: c065db616a7b59772d6a68e1da188305c81570842eefc9b30d3f21103bd6ae3f
5
5
  SHA512:
6
- metadata.gz: 5153c73e99edd5ee9f010babbd24eed05640a6ba538fb3991083ec9130c6979c447763fd39cf289e9bdefedb1ae6a908aaada86f0beedecb15dc108d57fb513f
7
- data.tar.gz: deca81c0c5c8f2c5226ab2f9d2d82abaebd8eea3d3cfac87fd8c85c54e6dee572db8f5b89073bb0e7e7877d805dea890cedb2e799b758647ba760778f6a28215
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
- Rearmed.enabled_patches = :all
48
+ RearmedRails.enabled_patches = :all
49
49
 
50
50
  ### Disable everything
51
- Rearmed.enabled_patches = nil
51
+ RearmedRails.enabled_patches = nil
52
52
 
53
53
  ### Hash values can be boolean/nil values also
54
- Rearmed.enabled_patches = {
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
- Dir[File.join(__dir__, 'rearmed_rails/monkey_patches/**/*.rb')].each do |filename|
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
 
@@ -1,3 +1,3 @@
1
1
  module RearmedRails
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
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.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: []