sidewalk 0.0.0 → 0.0.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.
@@ -1,6 +1,22 @@
1
1
  module Sidewalk
2
+ # Information on a +URI+ +=>+ {Controller} match.
3
+ #
4
+ # These are generated by {UriMapper}.
2
5
  class UriMatch
3
- attr_reader :parts, :parameters, :controller
6
+ # The URL path, divided into regexp-matches.
7
+ #
8
+ # The URI map is a tree; this tells you what was matched at each level
9
+ # of the tree.
10
+ attr_reader :parts
11
+
12
+ # Any named captures from the match.
13
+ attr_reader :parameters
14
+
15
+ # What the URL maps to.
16
+ #
17
+ # This should be an instance of {Controller}, or a +Proc+.
18
+ attr_reader :controller
19
+
4
20
  def initialize parts = [], parameters = {}, controller = nil
5
21
  unless parts.is_a?(Array) && parameters.is_a?(Hash)
6
22
  raise ArgumentError.new(
data/lib/sidewalk.rb ADDED
@@ -0,0 +1,2 @@
1
+ require 'sidewalk/application'
2
+ require 'sidewalk/controller'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidewalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-23 00:00:00.000000000 Z
12
+ date: 2012-02-07 00:00:00.000000000Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activesupport
16
+ requirement: &70282721003460 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.2'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *70282721003460
14
25
  - !ruby/object:Gem::Dependency
15
26
  name: rack
16
- requirement: &70101453840880 !ruby/object:Gem::Requirement
27
+ requirement: &70282721002980 !ruby/object:Gem::Requirement
17
28
  none: false
18
29
  requirements:
19
30
  - - ~>
@@ -21,7 +32,7 @@ dependencies:
21
32
  version: '1.4'
22
33
  type: :runtime
23
34
  prerelease: false
24
- version_requirements: *70101453840880
35
+ version_requirements: *70282721002980
25
36
  description:
26
37
  email:
27
38
  - sidewalk-gem@fredemmott.co.uk
@@ -29,10 +40,26 @@ executables: []
29
40
  extensions: []
30
41
  extra_rdoc_files: []
31
42
  files:
43
+ - lib/sidewalk/app_uri.rb
44
+ - lib/sidewalk/application.rb
45
+ - lib/sidewalk/config.rb
46
+ - lib/sidewalk/controller.rb
47
+ - lib/sidewalk/controller_mixins/view_templates.rb
48
+ - lib/sidewalk/errors.rb
49
+ - lib/sidewalk/redirect.rb
32
50
  - lib/sidewalk/regexp.rb
51
+ - lib/sidewalk/relative_uri.rb
33
52
  - lib/sidewalk/request.rb
53
+ - lib/sidewalk/rooted_uri.rb
54
+ - lib/sidewalk/template_handlers/base.rb
55
+ - lib/sidewalk/template_handlers/base_delegate.rb
56
+ - lib/sidewalk/template_handlers/erb_handler.rb
57
+ - lib/sidewalk/template_handlers/haml_handler.rb
58
+ - lib/sidewalk/template_handlers/rxhp_handler.rb
59
+ - lib/sidewalk/uri.rb
34
60
  - lib/sidewalk/uri_mapper.rb
35
61
  - lib/sidewalk/uri_match.rb
62
+ - lib/sidewalk.rb
36
63
  homepage: https://github.com/fredemmott/sidewalk
37
64
  licenses: []
38
65
  post_install_message:
@@ -58,3 +85,4 @@ signing_key:
58
85
  specification_version: 3
59
86
  summary: A lightweight web framework
60
87
  test_files: []
88
+ has_rdoc: