module_functions 0.0.1 → 0.0.2

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.
data/README CHANGED
@@ -12,7 +12,7 @@ all public module functions to another module.
12
12
 
13
13
  2. Require the gem in your Gemfile:
14
14
 
15
- gem 'module_functions', '~> 0.0.1'
15
+ gem 'module_functions', '~> 0.0.2'
16
16
 
17
17
  3. Require the gem wherever you need to use it:
18
18
 
@@ -38,7 +38,7 @@ module ModuleFunctions
38
38
  # Imports public methods from one module into another.
39
39
  # ==== Input
40
40
  # [receiver : Module] This module will have new methods added to it.
41
- # [sender : Module] This module will have it's methods
41
+ # [sender : Module] This module will have its methods
42
42
  # called from <tt>receiver</tt>.
43
43
  def import_public_methods(receiver, sender)
44
44
  unless receiver.class == Module && sender.class == Module
@@ -46,7 +46,7 @@ module ModuleFunctions
46
46
  "A #{Module} was expected, but was a #{receiver.class}."
47
47
  end
48
48
 
49
- # Create a public methods of the same name in the receiving module
49
+ # Create public methods of the same name in the receiving module
50
50
  # that will call the original module's methods.
51
51
  (sender.public_methods - sender.class.public_methods).each do |method|
52
52
  receiver.module_eval(<<-EOT, __FILE__, __LINE__)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'module_functions'
3
- s.version = '0.0.1'
3
+ s.version = '0.0.2'
4
4
 
5
5
  s.summary = 'This gem contains useful module functions.'
6
6
  s.description = %Q{
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Travis Herrick
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-08-15 00:00:00 -04:00
17
+ date: 2011-08-27 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -70,7 +70,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - ">="
72
72
  - !ruby/object:Gem::Version
73
- hash: -3178384406756779379
73
+ hash: -3320365716263078739
74
74
  segments:
75
75
  - 0
76
76
  version: "0"