catalyst 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/catalyst.gemspec +5 -2
- data/lib/catalyst.rb +2 -0
- data/test/test_catalyst.rb +10 -0
- metadata +14 -3
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/catalyst.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{catalyst}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ari Lerner"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-07-26}
|
13
13
|
s.description = %q{Quickly build a framework for providing a middleware-like structure}
|
14
14
|
s.email = %q{arilerner@mac.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -52,6 +52,7 @@ Gem::Specification.new do |s|
|
|
52
52
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
53
53
|
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
54
54
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
55
|
+
s.add_development_dependency(%q<rdoc>, [">= 0"])
|
55
56
|
else
|
56
57
|
s.add_dependency(%q<moneta>, [">= 0"])
|
57
58
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
@@ -59,6 +60,7 @@ Gem::Specification.new do |s|
|
|
59
60
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
60
61
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
61
62
|
s.add_dependency(%q<rcov>, [">= 0"])
|
63
|
+
s.add_dependency(%q<rdoc>, [">= 0"])
|
62
64
|
end
|
63
65
|
else
|
64
66
|
s.add_dependency(%q<moneta>, [">= 0"])
|
@@ -67,6 +69,7 @@ Gem::Specification.new do |s|
|
|
67
69
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
68
70
|
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
69
71
|
s.add_dependency(%q<rcov>, [">= 0"])
|
72
|
+
s.add_dependency(%q<rdoc>, [">= 0"])
|
70
73
|
end
|
71
74
|
end
|
72
75
|
|
data/lib/catalyst.rb
CHANGED
data/test/test_catalyst.rb
CHANGED
@@ -49,6 +49,16 @@ class TestCatalyst < Test::Unit::TestCase
|
|
49
49
|
rs.call()
|
50
50
|
assert_equal @@count, 3
|
51
51
|
end
|
52
|
+
end
|
53
|
+
|
54
|
+
should "be able to call run in place of use" do
|
55
|
+
@@count = 0
|
56
|
+
rs = Catalyst.run_stack do
|
57
|
+
use lambda {|env| @@count += 1}
|
58
|
+
run lambda {|env| @@count += 1}
|
59
|
+
end
|
52
60
|
|
61
|
+
rs.call
|
62
|
+
assert_equal @@count, 2
|
53
63
|
end
|
54
64
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: catalyst
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ari Lerner
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-07-26 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -79,6 +79,17 @@ dependencies:
|
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: *id006
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: rdoc
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: "0"
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: *id007
|
82
93
|
description: Quickly build a framework for providing a middleware-like structure
|
83
94
|
email: arilerner@mac.com
|
84
95
|
executables: []
|
@@ -116,7 +127,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
127
|
requirements:
|
117
128
|
- - ">="
|
118
129
|
- !ruby/object:Gem::Version
|
119
|
-
hash:
|
130
|
+
hash: 2270288001949601855
|
120
131
|
segments:
|
121
132
|
- 0
|
122
133
|
version: "0"
|