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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 767d6387814d6df3836abbaf3e5fd32a36a78f04
4
- data.tar.gz: c7e57a1cb878df1a9d0a06816fa266a590fe1142
3
+ metadata.gz: 3ddc83c1cd8c64d47ffd74479721725f1b25bbd1
4
+ data.tar.gz: 71deb2c36f7fe500198968406eca19949644db5d
5
5
  SHA512:
6
- metadata.gz: 4048c0ba55f610bbfa5171274e501b8de2eb1496472432d84f5a6596b8db3941f50bb74db80bf8ceffa663111b712dd44bedca75d11e3d1939b0f71d1ea1ff17
7
- data.tar.gz: eb44d59818a6793d89faede9988f97ee2c6e3bb09a8caa197772af85d5649552aab2b82611c179c74f14cb3c6c94ecf970970c85d7627d83bb53e6290aa2dee0
6
+ metadata.gz: f67da0a53c848fe41f2aa80fee1353881d167249d8704f36de4989a785696cc59f244c9c9322c7f62be553ac19f1069b21a0d200d4018a96f3c1228eeaba0632
7
+ data.tar.gz: 2c88448ce1100cdf89338b222ccb2bafb4853cf4acc3e9ce2106bdb93e23af2a119bc381fa9c5a70780a2a1f41a0777c3afbee135be54db755c590b66ddba04f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.1.3
data/lib/mpatch/class.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module MPatch
2
- class Class
2
+ module Class
3
3
 
4
4
  # get singleton methods to target class without super class methods
5
5
  def class_methods
data/lib/mpatch/module.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module MPatch
2
- class Module
2
+ module Module
3
3
 
4
4
  # return the module objects direct sub modules
5
5
  def modules
@@ -2,7 +2,7 @@ module MPatch
2
2
  module Process
3
3
 
4
4
  # return a string obj that include the memory usage info
5
- def self.memory_usage
5
+ def memory_usage
6
6
 
7
7
  begin
8
8
  return `pmap #{self.pid}`.lines.to_a(
data/lib/mpatch/yml.rb CHANGED
@@ -3,11 +3,11 @@ require 'yaml'
3
3
  module MPatch
4
4
 
5
5
  module YAML
6
- def self.save_file(file_path,config_hash)
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 self.load_file(file_path)
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::Process,
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.0
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-20 00:00:00.000000000 Z
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