canhas 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/README +4 -0
- data/Rakefile +36 -0
- data/VERSION +1 -0
- data/lib/can_has.rb +12 -0
- data/lib/canhas.rb +1 -0
- data/spec/can_has_spec.rb +16 -0
- metadata +14 -8
data/.gitignore
ADDED
data/README
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'rake'
|
2
|
+
|
3
|
+
task :default => :spec
|
4
|
+
|
5
|
+
begin
|
6
|
+
require 'spec/rake/spectask'
|
7
|
+
|
8
|
+
desc "Run all examples"
|
9
|
+
Spec::Rake::SpecTask.new('spec') do |t|
|
10
|
+
t.spec_files = FileList['spec/**/*.rb']
|
11
|
+
end
|
12
|
+
|
13
|
+
desc "Run all examples with RCov"
|
14
|
+
Spec::Rake::SpecTask.new('spec:rcov') do |t|
|
15
|
+
t.spec_files = FileList['spec/**/*.rb']
|
16
|
+
t.rcov = true
|
17
|
+
t.rcov_opts = ['--exclude', 'spec,gem']
|
18
|
+
end
|
19
|
+
rescue LoadError
|
20
|
+
puts "Could not load Rspec. To run tests, use `gem install rspec`"
|
21
|
+
end
|
22
|
+
|
23
|
+
begin
|
24
|
+
require 'jeweler'
|
25
|
+
Jeweler::Tasks.new do |gemspec|
|
26
|
+
gemspec.name = "canhas"
|
27
|
+
gemspec.summary = "Object can_has?(:can_has?) #=> true"
|
28
|
+
gemspec.description = %{
|
29
|
+
Object can_has?(:can_has?) #=> true
|
30
|
+
}
|
31
|
+
gemspec.email = "flip@x451.com"
|
32
|
+
gemspec.homepage = "http://github.com/flipsasser/canhas"
|
33
|
+
gemspec.authors = ["Flip Sasser"]
|
34
|
+
end
|
35
|
+
rescue LoadError
|
36
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.0.3
|
data/lib/can_has.rb
ADDED
data/lib/canhas.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'can_has'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require "can_has"
|
2
|
+
require "ostruct"
|
3
|
+
|
4
|
+
describe CanHas do
|
5
|
+
it "should be totally fucking awesome" do
|
6
|
+
struct = OpenStruct.new
|
7
|
+
struct.can_has?(:cheezburger).should be_true
|
8
|
+
end
|
9
|
+
|
10
|
+
it "should maybe let you do something" do
|
11
|
+
struct = OpenStruct.new
|
12
|
+
struct.should_receive(:rand).and_return(rand(2))
|
13
|
+
struct.can_has?(:bukkit)
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Flip Sasser
|
@@ -24,10 +24,16 @@ executables: []
|
|
24
24
|
|
25
25
|
extensions: []
|
26
26
|
|
27
|
-
extra_rdoc_files:
|
28
|
-
|
29
|
-
files:
|
30
|
-
|
27
|
+
extra_rdoc_files:
|
28
|
+
- README
|
29
|
+
files:
|
30
|
+
- .gitignore
|
31
|
+
- README
|
32
|
+
- Rakefile
|
33
|
+
- VERSION
|
34
|
+
- lib/can_has.rb
|
35
|
+
- lib/canhas.rb
|
36
|
+
- spec/can_has_spec.rb
|
31
37
|
has_rdoc: true
|
32
38
|
homepage: http://github.com/flipsasser/canhas
|
33
39
|
licenses: []
|
@@ -58,5 +64,5 @@ rubygems_version: 1.3.6
|
|
58
64
|
signing_key:
|
59
65
|
specification_version: 3
|
60
66
|
summary: "Object can_has?(:can_has?) #=> true"
|
61
|
-
test_files:
|
62
|
-
|
67
|
+
test_files:
|
68
|
+
- spec/can_has_spec.rb
|