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 CHANGED
@@ -12,4 +12,5 @@ group :development do
12
12
  gem "bundler", "~> 1.0.0"
13
13
  gem "jeweler", "~> 1.5.2"
14
14
  gem "rcov", ">= 0"
15
+ gem 'rdoc'
15
16
  end
data/Gemfile.lock CHANGED
@@ -10,6 +10,7 @@ GEM
10
10
  moneta (0.6.0)
11
11
  rake (0.9.2)
12
12
  rcov (0.9.9)
13
+ rdoc (3.8)
13
14
  shoulda (2.11.3)
14
15
 
15
16
  PLATFORMS
@@ -21,4 +22,5 @@ DEPENDENCIES
21
22
  mocha
22
23
  moneta
23
24
  rcov
25
+ rdoc
24
26
  shoulda
data/Rakefile CHANGED
@@ -42,7 +42,7 @@ end
42
42
 
43
43
  task :default => :test
44
44
 
45
- require 'rake/rdoctask'
45
+ require 'rdoc/task'
46
46
  Rake::RDocTask.new do |rdoc|
47
47
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
48
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
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.4"
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-06-27}
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
@@ -30,6 +30,8 @@ module Catalyst
30
30
  self
31
31
  end
32
32
 
33
+ alias_method :run, :use
34
+
33
35
  # Turn this RunStack to a Runner
34
36
  def to_app
35
37
  Runner.new(stack)
@@ -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.4
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-06-27 00:00:00 -07:00
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: 4019652116756529301
130
+ hash: 2270288001949601855
120
131
  segments:
121
132
  - 0
122
133
  version: "0"