nO_op 1.O.O
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/License.txt +20 -0
- data/lib/nO_op.rb +8 -0
- data/spec/helper.rb +5 -0
- data/spec/nO_op_spec.rb +26 -0
- metadata +87 -0
data/History.txt
ADDED
data/License.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 Yossef Mendelssohn
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/lib/nO_op.rb
ADDED
data/spec/helper.rb
ADDED
data/spec/nO_op_spec.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/helper.rb'
|
2
|
+
|
3
|
+
describe O_o do
|
4
|
+
# I'll admit this is rather pointless, since the describe line above ensures the constant has to exist.
|
5
|
+
# I just didn't want to have an empty describe block, amusing as that would be.
|
6
|
+
it 'should exist' do
|
7
|
+
lambda { O_o }.should.not.raise(NameError)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
describe 'methods' do
|
12
|
+
it "should add an 'O_o' method" do
|
13
|
+
Object.new.should.respond_to(:O_o)
|
14
|
+
end
|
15
|
+
|
16
|
+
describe "'O_o' method" do
|
17
|
+
it 'should not require arguments' do
|
18
|
+
lambda { Object.new.O_o }.should.not.raise(ArgumentError)
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'should return the calling object' do
|
22
|
+
obj = Object.new
|
23
|
+
obj.O_o.should == obj
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: nO_op
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 231
|
5
|
+
prerelease: 2
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- O
|
9
|
+
- O
|
10
|
+
version: 1.O.O
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Yossef Mendelssohn
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-09-23 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: bacon
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 19
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 1
|
32
|
+
- 0
|
33
|
+
version: 1.1.0
|
34
|
+
type: :development
|
35
|
+
version_requirements: *id001
|
36
|
+
description: Adds some important face-making possibilities to Ruby code.
|
37
|
+
email:
|
38
|
+
- ymendel@pobox.com
|
39
|
+
executables: []
|
40
|
+
|
41
|
+
extensions: []
|
42
|
+
|
43
|
+
extra_rdoc_files: []
|
44
|
+
|
45
|
+
files:
|
46
|
+
- License.txt
|
47
|
+
- History.txt
|
48
|
+
- lib/nO_op.rb
|
49
|
+
- spec/helper.rb
|
50
|
+
- spec/nO_op_spec.rb
|
51
|
+
homepage: http://github.com/ymendel/nO_op/
|
52
|
+
licenses: []
|
53
|
+
|
54
|
+
post_install_message:
|
55
|
+
rdoc_options: []
|
56
|
+
|
57
|
+
require_paths:
|
58
|
+
- lib
|
59
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
+
none: false
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
hash: 3
|
65
|
+
segments:
|
66
|
+
- 0
|
67
|
+
version: "0"
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ">"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 25
|
74
|
+
segments:
|
75
|
+
- 1
|
76
|
+
- 3
|
77
|
+
- 1
|
78
|
+
version: 1.3.1
|
79
|
+
requirements: []
|
80
|
+
|
81
|
+
rubyforge_project:
|
82
|
+
rubygems_version: 1.8.10
|
83
|
+
signing_key:
|
84
|
+
specification_version: 3
|
85
|
+
summary: Make some faces in your Ruby
|
86
|
+
test_files: []
|
87
|
+
|