xenon-routing 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +18 -0
- data/.gitignore +25 -0
- data/.rspec +3 -0
- data/.travis.yml +6 -0
- data/Gemfile +20 -0
- data/Guardfile +16 -0
- data/LICENSE +22 -0
- data/README.md +116 -0
- data/Rakefile +40 -0
- data/VERSION +1 -0
- data/examples/hello_world/config.ru +3 -0
- data/examples/hello_world/hello_world.rb +27 -0
- data/xenon-http/lib/xenon/auth.rb +63 -0
- data/xenon-http/lib/xenon/errors.rb +5 -0
- data/xenon-http/lib/xenon/etag.rb +48 -0
- data/xenon-http/lib/xenon/headers.rb +112 -0
- data/xenon-http/lib/xenon/headers/accept.rb +34 -0
- data/xenon-http/lib/xenon/headers/accept_charset.rb +59 -0
- data/xenon-http/lib/xenon/headers/accept_encoding.rb +63 -0
- data/xenon-http/lib/xenon/headers/accept_language.rb +59 -0
- data/xenon-http/lib/xenon/headers/authorization.rb +50 -0
- data/xenon-http/lib/xenon/headers/cache_control.rb +56 -0
- data/xenon-http/lib/xenon/headers/content_type.rb +23 -0
- data/xenon-http/lib/xenon/headers/if_match.rb +53 -0
- data/xenon-http/lib/xenon/headers/if_modified_since.rb +22 -0
- data/xenon-http/lib/xenon/headers/if_none_match.rb +53 -0
- data/xenon-http/lib/xenon/headers/if_range.rb +45 -0
- data/xenon-http/lib/xenon/headers/if_unmodified_since.rb +22 -0
- data/xenon-http/lib/xenon/headers/user_agent.rb +65 -0
- data/xenon-http/lib/xenon/headers/www_authenticate.rb +71 -0
- data/xenon-http/lib/xenon/http.rb +7 -0
- data/xenon-http/lib/xenon/http_version.rb +3 -0
- data/xenon-http/lib/xenon/media_type.rb +162 -0
- data/xenon-http/lib/xenon/parsers/basic_rules.rb +86 -0
- data/xenon-http/lib/xenon/parsers/header_rules.rb +60 -0
- data/xenon-http/lib/xenon/parsers/media_type.rb +53 -0
- data/xenon-http/lib/xenon/quoted_string.rb +20 -0
- data/xenon-http/spec/spec_helper.rb +94 -0
- data/xenon-http/spec/xenon/etag_spec.rb +19 -0
- data/xenon-http/spec/xenon/headers/accept_charset_spec.rb +31 -0
- data/xenon-http/spec/xenon/headers/accept_encoding_spec.rb +40 -0
- data/xenon-http/spec/xenon/headers/accept_language_spec.rb +33 -0
- data/xenon-http/spec/xenon/headers/accept_spec.rb +54 -0
- data/xenon-http/spec/xenon/headers/authorization_spec.rb +47 -0
- data/xenon-http/spec/xenon/headers/cache_control_spec.rb +64 -0
- data/xenon-http/spec/xenon/headers/if_match_spec.rb +73 -0
- data/xenon-http/spec/xenon/headers/if_modified_since_spec.rb +19 -0
- data/xenon-http/spec/xenon/headers/if_none_match_spec.rb +79 -0
- data/xenon-http/spec/xenon/headers/if_range_spec.rb +45 -0
- data/xenon-http/spec/xenon/headers/if_unmodified_since_spec.rb +19 -0
- data/xenon-http/spec/xenon/headers/user_agent_spec.rb +67 -0
- data/xenon-http/spec/xenon/headers/www_authenticate_spec.rb +43 -0
- data/xenon-http/spec/xenon/media_type_spec.rb +267 -0
- data/xenon-http/xenon-http.gemspec +25 -0
- data/xenon-routing/lib/xenon/api.rb +118 -0
- data/xenon-routing/lib/xenon/marshallers.rb +48 -0
- data/xenon-routing/lib/xenon/request.rb +40 -0
- data/xenon-routing/lib/xenon/response.rb +29 -0
- data/xenon-routing/lib/xenon/routing.rb +6 -0
- data/xenon-routing/lib/xenon/routing/context.rb +35 -0
- data/xenon-routing/lib/xenon/routing/directives.rb +14 -0
- data/xenon-routing/lib/xenon/routing/header_directives.rb +32 -0
- data/xenon-routing/lib/xenon/routing/method_directives.rb +26 -0
- data/xenon-routing/lib/xenon/routing/param_directives.rb +22 -0
- data/xenon-routing/lib/xenon/routing/path_directives.rb +37 -0
- data/xenon-routing/lib/xenon/routing/route_directives.rb +51 -0
- data/xenon-routing/lib/xenon/routing/security_directives.rb +34 -0
- data/xenon-routing/lib/xenon/routing_version.rb +3 -0
- data/xenon-routing/spec/spec_helper.rb +94 -0
- data/xenon-routing/xenon-routing.gemspec +25 -0
- data/xenon.gemspec +26 -0
- metadata +145 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'xenon/routing_version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'xenon-routing'
|
8
|
+
spec.version = Xenon::ROUTING_VERSION
|
9
|
+
spec.authors = ['Greg Beech']
|
10
|
+
spec.email = ['greg@gregbeech.com']
|
11
|
+
spec.summary = %q{An HTTP framework for building RESTful APIs.}
|
12
|
+
spec.description = %q{Provides a model for the HTTP protocol and a tree-based routing syntax.}
|
13
|
+
spec.homepage = 'https://github.com/gregbeech/xenon'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^xenon-routing/bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^xenon-routing/(test|spec|features)/})
|
19
|
+
spec.require_paths = ['lib']
|
20
|
+
|
21
|
+
spec.required_ruby_version = '>= 2.2.0'
|
22
|
+
|
23
|
+
spec.add_runtime_dependency 'rack', '~> 1.6'
|
24
|
+
spec.add_runtime_dependency 'xenon-http', Xenon::ROUTING_VERSION
|
25
|
+
end
|
data/xenon.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
xenon_version = File.read(File.join(__dir__, 'VERSION'))
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'xenon'
|
9
|
+
spec.version = xenon_version
|
10
|
+
spec.authors = ['Greg Beech']
|
11
|
+
spec.email = ['greg@gregbeech.com']
|
12
|
+
spec.summary = %q{An HTTP framework for building RESTful APIs.}
|
13
|
+
spec.description = %q{Provides a model for the HTTP protocol and a tree-based routing syntax.}
|
14
|
+
spec.homepage = 'https://github.com/gregbeech/xenon'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
spec.files = []
|
18
|
+
spec.executables = []
|
19
|
+
spec.test_files = []
|
20
|
+
spec.require_paths = ['lib']
|
21
|
+
|
22
|
+
spec.required_ruby_version = '>= 2.2.0'
|
23
|
+
|
24
|
+
spec.add_runtime_dependency 'xenon-http', xenon_version
|
25
|
+
spec.add_runtime_dependency 'xenon-routing', xenon_version
|
26
|
+
end
|
metadata
ADDED
@@ -0,0 +1,145 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: xenon-routing
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Greg Beech
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-10-17 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rack
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: xenon-http
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.0.4
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.0.4
|
41
|
+
description: Provides a model for the HTTP protocol and a tree-based routing syntax.
|
42
|
+
email:
|
43
|
+
- greg@gregbeech.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- ".codeclimate.yml"
|
49
|
+
- ".gitignore"
|
50
|
+
- ".rspec"
|
51
|
+
- ".travis.yml"
|
52
|
+
- Gemfile
|
53
|
+
- Guardfile
|
54
|
+
- LICENSE
|
55
|
+
- README.md
|
56
|
+
- Rakefile
|
57
|
+
- VERSION
|
58
|
+
- examples/hello_world/config.ru
|
59
|
+
- examples/hello_world/hello_world.rb
|
60
|
+
- xenon-http/lib/xenon/auth.rb
|
61
|
+
- xenon-http/lib/xenon/errors.rb
|
62
|
+
- xenon-http/lib/xenon/etag.rb
|
63
|
+
- xenon-http/lib/xenon/headers.rb
|
64
|
+
- xenon-http/lib/xenon/headers/accept.rb
|
65
|
+
- xenon-http/lib/xenon/headers/accept_charset.rb
|
66
|
+
- xenon-http/lib/xenon/headers/accept_encoding.rb
|
67
|
+
- xenon-http/lib/xenon/headers/accept_language.rb
|
68
|
+
- xenon-http/lib/xenon/headers/authorization.rb
|
69
|
+
- xenon-http/lib/xenon/headers/cache_control.rb
|
70
|
+
- xenon-http/lib/xenon/headers/content_type.rb
|
71
|
+
- xenon-http/lib/xenon/headers/if_match.rb
|
72
|
+
- xenon-http/lib/xenon/headers/if_modified_since.rb
|
73
|
+
- xenon-http/lib/xenon/headers/if_none_match.rb
|
74
|
+
- xenon-http/lib/xenon/headers/if_range.rb
|
75
|
+
- xenon-http/lib/xenon/headers/if_unmodified_since.rb
|
76
|
+
- xenon-http/lib/xenon/headers/user_agent.rb
|
77
|
+
- xenon-http/lib/xenon/headers/www_authenticate.rb
|
78
|
+
- xenon-http/lib/xenon/http.rb
|
79
|
+
- xenon-http/lib/xenon/http_version.rb
|
80
|
+
- xenon-http/lib/xenon/media_type.rb
|
81
|
+
- xenon-http/lib/xenon/parsers/basic_rules.rb
|
82
|
+
- xenon-http/lib/xenon/parsers/header_rules.rb
|
83
|
+
- xenon-http/lib/xenon/parsers/media_type.rb
|
84
|
+
- xenon-http/lib/xenon/quoted_string.rb
|
85
|
+
- xenon-http/spec/spec_helper.rb
|
86
|
+
- xenon-http/spec/xenon/etag_spec.rb
|
87
|
+
- xenon-http/spec/xenon/headers/accept_charset_spec.rb
|
88
|
+
- xenon-http/spec/xenon/headers/accept_encoding_spec.rb
|
89
|
+
- xenon-http/spec/xenon/headers/accept_language_spec.rb
|
90
|
+
- xenon-http/spec/xenon/headers/accept_spec.rb
|
91
|
+
- xenon-http/spec/xenon/headers/authorization_spec.rb
|
92
|
+
- xenon-http/spec/xenon/headers/cache_control_spec.rb
|
93
|
+
- xenon-http/spec/xenon/headers/if_match_spec.rb
|
94
|
+
- xenon-http/spec/xenon/headers/if_modified_since_spec.rb
|
95
|
+
- xenon-http/spec/xenon/headers/if_none_match_spec.rb
|
96
|
+
- xenon-http/spec/xenon/headers/if_range_spec.rb
|
97
|
+
- xenon-http/spec/xenon/headers/if_unmodified_since_spec.rb
|
98
|
+
- xenon-http/spec/xenon/headers/user_agent_spec.rb
|
99
|
+
- xenon-http/spec/xenon/headers/www_authenticate_spec.rb
|
100
|
+
- xenon-http/spec/xenon/media_type_spec.rb
|
101
|
+
- xenon-http/xenon-http.gemspec
|
102
|
+
- xenon-routing/lib/xenon/api.rb
|
103
|
+
- xenon-routing/lib/xenon/marshallers.rb
|
104
|
+
- xenon-routing/lib/xenon/request.rb
|
105
|
+
- xenon-routing/lib/xenon/response.rb
|
106
|
+
- xenon-routing/lib/xenon/routing.rb
|
107
|
+
- xenon-routing/lib/xenon/routing/context.rb
|
108
|
+
- xenon-routing/lib/xenon/routing/directives.rb
|
109
|
+
- xenon-routing/lib/xenon/routing/header_directives.rb
|
110
|
+
- xenon-routing/lib/xenon/routing/method_directives.rb
|
111
|
+
- xenon-routing/lib/xenon/routing/param_directives.rb
|
112
|
+
- xenon-routing/lib/xenon/routing/path_directives.rb
|
113
|
+
- xenon-routing/lib/xenon/routing/route_directives.rb
|
114
|
+
- xenon-routing/lib/xenon/routing/security_directives.rb
|
115
|
+
- xenon-routing/lib/xenon/routing_version.rb
|
116
|
+
- xenon-routing/spec/spec_helper.rb
|
117
|
+
- xenon-routing/xenon-routing.gemspec
|
118
|
+
- xenon.gemspec
|
119
|
+
homepage: https://github.com/gregbeech/xenon
|
120
|
+
licenses:
|
121
|
+
- MIT
|
122
|
+
metadata: {}
|
123
|
+
post_install_message:
|
124
|
+
rdoc_options: []
|
125
|
+
require_paths:
|
126
|
+
- lib
|
127
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 2.2.0
|
132
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
requirements: []
|
138
|
+
rubyforge_project:
|
139
|
+
rubygems_version: 2.4.8
|
140
|
+
signing_key:
|
141
|
+
specification_version: 4
|
142
|
+
summary: An HTTP framework for building RESTful APIs.
|
143
|
+
test_files:
|
144
|
+
- xenon-routing/spec/spec_helper.rb
|
145
|
+
has_rdoc:
|