rkh-monkey-lib 0.1.4 → 0.1.5

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.
@@ -27,4 +27,25 @@ This would go to the file lib/monkey/object/magic_stuff.rb:
27
27
  end
28
28
 
29
29
  end
30
- end
30
+ end
31
+
32
+ Add to lib/monkey/object.rb:
33
+
34
+ require "monkey/object/magic_stuff"
35
+
36
+ If that file didn't exist before, add to lib/monkey.rb:
37
+
38
+ require "monkey/object"
39
+
40
+ Write a spec in spec/monkey/object/magic_stuff_spec.rb:
41
+
42
+ require __FILE__.sub("monkey/object/magic_stuff_spec.rb", "spec_helper")
43
+ require "monkey/object/magic_stuff"
44
+
45
+ describe Monkey::Object::MagicStuff do
46
+
47
+ it "performs magic" do
48
+ # ...
49
+ end
50
+
51
+ end
@@ -1 +1,2 @@
1
- require "monkey/object/backports"
1
+ require "monkey/object/backports"
2
+ require "monkey/object/instance_yield"
@@ -30,6 +30,8 @@ module Monkey
30
30
  # result
31
31
  #end
32
32
 
33
+ alias exists? exist?
34
+
33
35
  end
34
36
 
35
37
  end
@@ -151,6 +151,7 @@ describe Monkey::String::LikePathname do
151
151
  it "exposes exist? to String" do
152
152
  @strings.each do |s|
153
153
  s.exist?.should == Pathname(s).exist?
154
+ s.exists?.should == Pathname(s).exist?
154
155
  end
155
156
  end
156
157
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rkh-monkey-lib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase