seanhussey-woulda 0.1.6 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +1 -1
- data/Rakefile +14 -29
- data/VERSION.yml +4 -0
- data/lib/woulda.rb +4 -0
- data/lib/woulda/should_raise/macros.rb +3 -3
- metadata +8 -6
data/LICENSE
CHANGED
data/Rakefile
CHANGED
@@ -1,37 +1,22 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'rake/testtask'
|
3
3
|
require 'rake/rdoctask'
|
4
|
-
require 'rake/gempackagetask'
|
5
4
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
s.authors = ["Sean Hussey", "Josh Nichols"]
|
20
|
-
s.email = ["sean@seanhussey.com", "josh@technicalpickles.com"]
|
21
|
-
|
22
|
-
s.add_dependency "thoughtbot-shoulda", ">= 2.0.0"
|
23
|
-
end
|
24
|
-
|
25
|
-
Rake::GemPackageTask.new spec do |pkg|
|
26
|
-
pkg.need_tar = true
|
27
|
-
pkg.need_zip = true
|
28
|
-
end
|
29
|
-
|
30
|
-
desc "Generate a gemspec file for GitHub"
|
31
|
-
task :gemspec do
|
32
|
-
File.open("#{spec.name}.gemspec", 'w') do |f|
|
33
|
-
f.write spec.to_ruby
|
5
|
+
begin
|
6
|
+
require 'jeweler'
|
7
|
+
Jeweler::Tasks.new do |s|
|
8
|
+
s.name = "woulda"
|
9
|
+
s.summary = "woulda is a home for shoulda macros that don't belong in the main shoulda library"
|
10
|
+
s.email = ["sean@seanhussey.com", "josh@technicalpickles.com"]
|
11
|
+
s.homepage = "http://github.com/seanhussey/woulda"
|
12
|
+
s.description = "TODO"
|
13
|
+
s.authors = ["Sean Hussey", "Josh Nichols"]
|
14
|
+
s.add_dependency "thoughtbot-shoulda", ">= 2.0.0"
|
15
|
+
s.rubyforge_project = "woulda"
|
16
|
+
s.files = FileList["[A-Z]*", "{shoulda_macros}/**/*", "lib/**/*"]
|
34
17
|
end
|
18
|
+
rescue LoadError
|
19
|
+
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
35
20
|
end
|
36
21
|
|
37
22
|
desc "Run all tests"
|
data/VERSION.yml
ADDED
data/lib/woulda.rb
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
woulda_dir = File.expand_path(File.dirname(__FILE__)) + '/woulda'
|
2
|
+
|
3
|
+
# Standalone Macros
|
2
4
|
require "#{woulda_dir}/should_raise"
|
5
|
+
|
6
|
+
# Macros for gems and plugins
|
3
7
|
require "#{woulda_dir}/acts_as_ferret" if defined? ActsAsFerret
|
4
8
|
require "#{woulda_dir}/acts_as_list" if defined? ActiveRecord::Acts::List
|
5
9
|
require "#{woulda_dir}/acts_as_paranoid" if defined? Caboose::Acts::Paranoid
|
@@ -65,7 +65,7 @@ module Woulda
|
|
65
65
|
|
66
66
|
should should_string do
|
67
67
|
begin
|
68
|
-
|
68
|
+
instance_eval &block
|
69
69
|
rescue Exception => ex
|
70
70
|
@raised_exception = ex
|
71
71
|
end
|
@@ -85,7 +85,7 @@ module Woulda
|
|
85
85
|
context "raising an exception" do
|
86
86
|
setup do
|
87
87
|
begin
|
88
|
-
|
88
|
+
instance_eval &block
|
89
89
|
rescue Exception => ex
|
90
90
|
@raised_exception = ex
|
91
91
|
end
|
@@ -99,4 +99,4 @@ module Woulda
|
|
99
99
|
end
|
100
100
|
end
|
101
101
|
end
|
102
|
-
end
|
102
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seanhussey-woulda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Hussey
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-01-
|
13
|
+
date: 2009-01-20 00:00:00 -08:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 2.0.0
|
24
24
|
version:
|
25
|
-
description:
|
25
|
+
description: TODO
|
26
26
|
email:
|
27
27
|
- sean@seanhussey.com
|
28
28
|
- josh@technicalpickles.com
|
@@ -36,6 +36,7 @@ files:
|
|
36
36
|
- LICENSE
|
37
37
|
- Rakefile
|
38
38
|
- README.textile
|
39
|
+
- VERSION.yml
|
39
40
|
- shoulda_macros/woulda_macros.rb
|
40
41
|
- lib/woulda
|
41
42
|
- lib/woulda/acts_as_ferret
|
@@ -75,11 +76,12 @@ files:
|
|
75
76
|
- lib/woulda/will_paginate/macros.rb
|
76
77
|
- lib/woulda/will_paginate.rb
|
77
78
|
- lib/woulda.rb
|
78
|
-
has_rdoc:
|
79
|
+
has_rdoc: true
|
79
80
|
homepage: http://github.com/seanhussey/woulda
|
80
81
|
post_install_message:
|
81
|
-
rdoc_options:
|
82
|
-
|
82
|
+
rdoc_options:
|
83
|
+
- --inline-source
|
84
|
+
- --charset=UTF-8
|
83
85
|
require_paths:
|
84
86
|
- lib
|
85
87
|
required_ruby_version: !ruby/object:Gem::Requirement
|