mixit 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/mixit.rb +2 -5
  2. data/lib/mixit/version.rb +1 -1
  3. metadata +7 -7
data/lib/mixit.rb CHANGED
@@ -4,7 +4,7 @@ class Mixit
4
4
 
5
5
  class << self
6
6
  #
7
- # Temporarily extends a scope with instance methods from modules.
7
+ # Temporarily extends a scope with instance methods from module(s).
8
8
  #
9
9
  # @param opts
10
10
  # (see Mixit#initialize)
@@ -49,9 +49,6 @@ class Mixit
49
49
  # @option opts [Module] :modules
50
50
  # An Array of modules to extend a scope with.
51
51
  #
52
- # @raise [ArgumentError]
53
- # If the :scope option is missing.
54
- #
55
52
  def initialize opts
56
53
  @clones = []
57
54
  @modules = opts[:modules]
@@ -67,7 +64,7 @@ class Mixit
67
64
  end
68
65
 
69
66
  #
70
- # Temporarily extends {#scope} with methods from {#modules modules}.
67
+ # Temporarily extends scope with methods from module(s).
71
68
  #
72
69
  # @param [Proc] block
73
70
  # A block executed while the object is extended.
data/lib/mixit/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Mixit
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70177892499080 !ruby/object:Gem::Requirement
16
+ requirement: &70360248249540 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.2
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70177892499080
24
+ version_requirements: *70360248249540
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: minitest
27
- requirement: &70177892498580 !ruby/object:Gem::Requirement
27
+ requirement: &70360248249040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '2.5'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70177892498580
35
+ version_requirements: *70360248249040
36
36
  description: Temporarily extend the calling scope of a block with instance methods
37
37
  from a module.
38
38
  email:
@@ -67,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
67
  version: '0'
68
68
  segments:
69
69
  - 0
70
- hash: -3096325220678410006
70
+ hash: 287058587748482884
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  segments:
78
78
  - 0
79
- hash: -3096325220678410006
79
+ hash: 287058587748482884
80
80
  requirements: []
81
81
  rubyforge_project: mixit
82
82
  rubygems_version: 1.8.11