iwamot-rupta 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG ADDED
@@ -0,0 +1,7 @@
1
+ Rupta 0.9.1 (2009-06-25)
2
+
3
+ * changed the factory method to static
4
+
5
+ Rupta 0.9.0 (2009-06-21)
6
+
7
+ * initial release
data/README.rdoc CHANGED
@@ -25,7 +25,7 @@ Rupta is a router library for Web applications. The routes can be defined with {
25
25
  yaml_path = File.expand_path('fixtures/routes.yml', File.dirname(__FILE__))
26
26
 
27
27
  require 'rupta/factory'
28
- rupta = Rupta::Factory.new.create
28
+ rupta = Rupta::Factory.create
29
29
 
30
30
  # Rupta#detect returns the name of a detected route, a matched URI template and extracted URI parameters
31
31
  p rupta.detect(yaml_path, 'http://example.com/bookmarks/123.atom')
@@ -51,7 +51,7 @@ Rupta is a router library for Web applications. The routes can be defined with {
51
51
  'search' => ['http://example.com/search']}
52
52
 
53
53
  require 'rupta/factory'
54
- rupta = Rupta::Factory.new.create
54
+ rupta = Rupta::Factory.create
55
55
 
56
56
  # use Rupta#detect_with_hash, if you can create the routes manually
57
57
  p rupta.detect_with_hash(route, 'http://example.com/bookmarks/123.atom')
@@ -59,7 +59,7 @@ Rupta is a router library for Web applications. The routes can be defined with {
59
59
 
60
60
  == Requirement
61
61
 
62
- Rupta-0.9.0 was tested with Ruby 1.8.7 and 1.9.1.
62
+ Rupta-0.9.1 was tested with Ruby 1.8.7 and 1.9.1.
63
63
 
64
64
  == Dependencies
65
65
 
data/lib/rupta/factory.rb CHANGED
@@ -6,7 +6,7 @@ require 'rupta/yaml_loader'
6
6
 
7
7
  class Rupta
8
8
  class Factory
9
- def create(uri_extract_processor = Rupta::UriExtractProcessor::Default.new)
9
+ def self.create(uri_extract_processor = Rupta::UriExtractProcessor::Default.new)
10
10
  Rupta.new(
11
11
  Rupta::UriPurifier.new,
12
12
  Rupta::UriExtractor.new(uri_extract_processor),
@@ -14,7 +14,7 @@ describe "Rupta#detect_with_hash" do
14
14
  'static_path' => ['http://example.com/static_path'],
15
15
  'search' => ['http://example.com/search']}
16
16
 
17
- @rupta = Rupta::Factory.new.create
17
+ @rupta = Rupta::Factory.create
18
18
  end
19
19
 
20
20
  it "should detect a correct route" do
@@ -8,7 +8,7 @@ end
8
8
  describe "Rupta#detect" do
9
9
  before(:all) do
10
10
  @yaml_path = File.expand_path('fixtures/routes.yml', File.dirname(__FILE__))
11
- @rupta = Rupta::Factory.new.create
11
+ @rupta = Rupta::Factory.create
12
12
  end
13
13
 
14
14
  it "should detect a correct route" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iwamot-rupta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - IWAMOTO Takashi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-21 00:00:00 -07:00
12
+ date: 2009-06-25 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,6 +32,7 @@ extra_rdoc_files:
32
32
  - LICENSE
33
33
  - README.rdoc
34
34
  files:
35
+ - CHANGELOG
35
36
  - LICENSE
36
37
  - README.rdoc
37
38
  - lib/rupta.rb