modulation 0.23 → 0.24

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
  SHA256:
3
- metadata.gz: d5c49015c128b42973ab89aa6f4de9bcb7c6d12b224fe7451060cf3d0ac3eb31
4
- data.tar.gz: e733c59b1c03b76557a8ddcc74f518e3820d222c3e9812583275991d8550b957
3
+ metadata.gz: 7ef376ed9b8358f85facdb42d47fde2c5710ccec9e20ff3bff2657e17a392327
4
+ data.tar.gz: 36b7033a8b9c44158f23b4bb3bc94a465bb123154d3712d79c654d237ce0061b
5
5
  SHA512:
6
- metadata.gz: fd91d28403805c34fb98528f5d0181c6e8fc92c822e355bc94041d6da325f4753853fe74cb86fbabdb364889c5c55820e235e9e3296374808df73cfe295a9899
7
- data.tar.gz: 15c8c550c91494f8c52f5d804b77b3f6fcc2b0445b72993850bef63064ce84526f73a50663bc954ec002e772faa0dd8ffa1b956d9a9733d372792fc65820729c
6
+ metadata.gz: 3b739b962bb3565c333fa8da105cc82105079494b0ec274c1d1a01ee2791407c684504291674251c9f90342705659326a2921042274a6d9708e6f481497d8470
7
+ data.tar.gz: dc907fc3091394365b7db34c8b0e68ac0374ecbf56e932c7a2a9bacffc9698d793a856618255730d73ed37c7ade9068c1b8e55719f09045a2c56da5d028565d9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ 0.24 2019-05-22
2
+ ---------------
3
+
4
+ * Fix usage of Modulation in rake tasks
5
+ * Fix behavior when referencing missing consts in modules using `auto_import`
6
+
1
7
  0.23 2019-05-17
2
8
  ---------------
3
9
 
@@ -105,7 +105,7 @@ module Modulation
105
105
  def define_auto_import_const_missing_method(receiver, auto_import_hash)
106
106
  receiver.singleton_class.define_method(:const_missing) do |sym|
107
107
  (path, caller_location) = auto_import_hash[sym]
108
- path ? const_set(sym, import(path, caller_location)) : super
108
+ path ? const_set(sym, import(path, caller_location)) : super(sym)
109
109
  end
110
110
  end
111
111
 
@@ -60,3 +60,8 @@ class Module
60
60
  Modulation.add_module_constants(mod, self, *symbols)
61
61
  end
62
62
  end
63
+
64
+ if Object.constants.include?(:Rake)
65
+ Rake::DSL.alias_method :rake_import, :import
66
+ Rake::DSL.remove_method :import
67
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Modulation
4
- VERSION = '0.23'
4
+ VERSION = '0.24'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modulation
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.23'
4
+ version: '0.24'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sharon Rosner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-17 00:00:00.000000000 Z
11
+ date: 2019-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest