mpatch 2.1.0 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/mpatch/class.rb +1 -1
- data/lib/mpatch/module.rb +1 -1
- data/lib/mpatch/process.rb +1 -1
- data/lib/mpatch/yml.rb +2 -2
- data/lib/mpatch.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ddc83c1cd8c64d47ffd74479721725f1b25bbd1
|
4
|
+
data.tar.gz: 71deb2c36f7fe500198968406eca19949644db5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f67da0a53c848fe41f2aa80fee1353881d167249d8704f36de4989a785696cc59f244c9c9322c7f62be553ac19f1069b21a0d200d4018a96f3c1228eeaba0632
|
7
|
+
data.tar.gz: 2c88448ce1100cdf89338b222ccb2bafb4853cf4acc3e9ce2106bdb93e23af2a119bc381fa9c5a70780a2a1f41a0777c3afbee135be54db755c590b66ddba04f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.1.
|
1
|
+
2.1.3
|
data/lib/mpatch/class.rb
CHANGED
data/lib/mpatch/module.rb
CHANGED
data/lib/mpatch/process.rb
CHANGED
data/lib/mpatch/yml.rb
CHANGED
@@ -3,11 +3,11 @@ require 'yaml'
|
|
3
3
|
module MPatch
|
4
4
|
|
5
5
|
module YAML
|
6
|
-
def
|
6
|
+
def save_file(file_path,config_hash)
|
7
7
|
File.open(file_path, 'w+') {|f| f.write(config_hash.to_yaml) }
|
8
8
|
end
|
9
9
|
|
10
|
-
def
|
10
|
+
def load_file(file_path)
|
11
11
|
::YAML.load(File.open(file_path))
|
12
12
|
end
|
13
13
|
end
|
data/lib/mpatch.rb
CHANGED
@@ -4,10 +4,10 @@ module MPatch
|
|
4
4
|
Dir.glob(File.join(File.absolute_path(File.dirname(__FILE__)),"mpatch","**","*.{rb,ru}")).each{|e|require e}
|
5
5
|
|
6
6
|
[
|
7
|
-
MPatch::
|
7
|
+
MPatch::Module,
|
8
|
+
MPatch::Class,
|
8
9
|
MPatch::String,
|
9
10
|
MPatch::Proc,
|
10
|
-
MPatch::YAML,
|
11
11
|
MPatch::Object,
|
12
12
|
MPatch::Array,
|
13
13
|
MPatch::Integer,
|
@@ -22,7 +22,7 @@ module MPatch
|
|
22
22
|
|
23
23
|
end
|
24
24
|
|
25
|
-
[ MPatch::Random ].each do |module_name|
|
25
|
+
[ MPatch::Process, MPatch::Random, MPatch::YAML ].each do |module_name|
|
26
26
|
|
27
27
|
constant= ::Object
|
28
28
|
name= module_name.to_s.split('::').last
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mpatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Luzsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This is a collection of my Ruby monkey patches for making easer to use
|
14
14
|
the basic classes
|