rumination 0.12.13 → 0.12.14

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: d9b62a14a8e881d50577eb3271f601d48b170649
4
- data.tar.gz: 3518ef2c808e7e8d6e9c4f82e6048eddfa81d0c4
3
+ metadata.gz: 42c8d91edecf13a48bf91f10dc263bad263ab164
4
+ data.tar.gz: 823b227320fbff755a3b4c810be9ab98200eef9a
5
5
  SHA512:
6
- metadata.gz: b172d181638946f12b527fddc71d5fa756562692bd56a3ccd5418b500dd9ace70616d75bcd21ccc12e6e0e4068c8a9f13797471fd51220bf9ec3afcb9fecd593
7
- data.tar.gz: eadf29336de5e1341536943c15dcfdcf5d1306466db95b16b89347ae0c65dba3cb9ab750288bcea2f2319145a50ad9d82f3fb6813d56cb8c772e1d6d6e452028
6
+ metadata.gz: 0fd47acc6d10d6a3c4b4db8b284a442606fc4d5117310f21b8402c915efa7e7b62acdced54ecb854100d644a64f9110719e35a4a004b7f0b2e60ce9c45094889
7
+ data.tar.gz: a27f7d310a290beaddcc98c72ec7ab12f12fb2be9b0d7ce11b79f5ff6fb9ca8e5759f404b7dcd2556042747159e3cfa0e4bbcf52de88ab482e63a54e36bd84ac
@@ -1,11 +1,17 @@
1
1
  task :deploy, [:target] => "deploy:default"
2
2
 
3
- module WithHashPuts
4
- refine Object do
5
- def puts *args
6
- print "# "
7
- Kernel.puts *args
8
- end
3
+ module Kernel
4
+ alias_method :orig_puts, :puts
5
+ def hash_puts *args
6
+ print "# "
7
+ orig_puts *args
8
+ end
9
+
10
+ def with_hash_puts
11
+ Kernel.send :alias_method, :puts, :hash_puts
12
+ yield
13
+ ensure
14
+ Kernel.send :alias_method, :puts, :orig_puts
9
15
  end
10
16
  end
11
17
 
@@ -42,8 +48,9 @@ namespace :deploy do
42
48
  end
43
49
 
44
50
  task :load_target_config_filterd, [:target] do |t, args|
45
- using WithHashPuts
46
- Rake::Task["deploy:load_target_config"].invoke args.target
51
+ with_hash_puts do
52
+ Rake::Task["deploy:load_target_config"].invoke args.target
53
+ end
47
54
  end
48
55
 
49
56
  namespace :bootstrap do
@@ -1,3 +1,3 @@
1
1
  module Rumination
2
- VERSION = "0.12.13"
2
+ VERSION = "0.12.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumination
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.13
4
+ version: 0.12.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Baguinski