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 +7 -0
- data/README.rdoc +3 -3
- data/lib/rupta/factory.rb +1 -1
- data/spec/routing_with_hash_spec.rb +1 -1
- data/spec/routing_with_yaml_spec.rb +1 -1
- metadata +3 -2
data/CHANGELOG
ADDED
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.
|
|
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.
|
|
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.
|
|
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.
|
|
17
|
+
@rupta = Rupta::Factory.create
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
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.
|
|
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-
|
|
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
|