rack-matrix_params 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.rspec +6 -0
- data/.travis.yml +3 -1
- data/.yardopts +1 -0
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/rack-matrix_params.gemspec +3 -0
- data/spec/matrix_params_spec.rb +1 -7
- data/spec/spec_helper.rb +1 -0
- metadata +35 -31
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cf4767e00aeb1b82b4766eadd9e55877ac32ccfb
|
4
|
+
data.tar.gz: 50baaa283087567bc6bbe6fb42be87614283b0a4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f469b5878fbd399e25b4821b4c53cb0bbc34e89a33aa061bfe0d1b57423aa9296e532616a693552c405762bef9212c65ad10cccbb41b2e992e1dbdd72d4f52c1
|
7
|
+
data.tar.gz: ad821c24001e2a3306b34eafa0c955063b35fe6111825bf31cc693dc228fd9e2de15ef9ef4e5362e563257d815705189e6579e04450d64b24a5bc70e7c7a7df5
|
data/.gitignore
CHANGED
data/.rspec
ADDED
data/.travis.yml
CHANGED
data/.yardopts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
lib/**/*.rb features/**/*.feature spec/**/*_spec.rb - *.md
|
data/Rakefile
CHANGED
@@ -2,7 +2,8 @@ require 'rake'
|
|
2
2
|
require 'bundler/gem_tasks'
|
3
3
|
require 'rspec/core/rake_task'
|
4
4
|
|
5
|
-
task :default => :
|
5
|
+
task :default => :build
|
6
|
+
task :build => :test # Require a sucessful test to build
|
6
7
|
task :test => :spec
|
7
8
|
|
8
9
|
if !defined?(RSpec)
|
@@ -11,6 +12,5 @@ else
|
|
11
12
|
desc "Run all examples"
|
12
13
|
RSpec::Core::RakeTask.new(:spec) do |t|
|
13
14
|
t.pattern = 'spec/**/*_spec.rb'
|
14
|
-
t.rspec_opts = ['-cfs']
|
15
15
|
end
|
16
16
|
end
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/rack-matrix_params.gemspec
CHANGED
@@ -15,10 +15,13 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
16
16
|
gem.require_paths = ["lib"]
|
17
17
|
|
18
|
+
gem.post_install_message = ":: Coded for blinkbox books :: Love books, love code? Get in touch ::"
|
19
|
+
|
18
20
|
gem.add_dependency 'rack'
|
19
21
|
|
20
22
|
gem.add_development_dependency 'rake'
|
21
23
|
gem.add_development_dependency 'rspec'
|
22
24
|
gem.add_development_dependency 'bundler'
|
23
25
|
gem.add_development_dependency 'rack-test'
|
26
|
+
gem.add_development_dependency 'yarjuf'
|
24
27
|
end
|
data/spec/matrix_params_spec.rb
CHANGED
@@ -27,7 +27,7 @@ describe Rack::MatrixParams do
|
|
27
27
|
last_response.should be_ok
|
28
28
|
end
|
29
29
|
|
30
|
-
it 'should add variables to the params when a matrix URL is used on a GET request' do
|
30
|
+
it 'should add variables to the params when a matrix URL is used on a GET request, and alter the PATH_INFO to match' do
|
31
31
|
get "/path/info;key=value/more"
|
32
32
|
|
33
33
|
last_request.env['PATH_INFO'].should == "/path/info/more"
|
@@ -55,10 +55,4 @@ describe Rack::MatrixParams do
|
|
55
55
|
|
56
56
|
last_request.params.should == {'queryparams'=>nil, 'info'=>{'key'=>'value'}}
|
57
57
|
end
|
58
|
-
|
59
|
-
it 'should work in the blinkbox books format' do
|
60
|
-
get '/client;img:w=200/server;v=0/test/9780111222333.sample.epub/OEBPS/chapter_001.html'
|
61
|
-
|
62
|
-
last_request.params.should == {'client'=>{'img:w' => '200'}, 'server'=>{'v'=>'0'}}
|
63
|
-
end
|
64
58
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-matrix_params
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- JP Hastings-Spital
|
@@ -10,86 +9,90 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2013-
|
12
|
+
date: 2013-07-08 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: rack
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
|
-
- -
|
18
|
+
- - '>='
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: '0'
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
|
-
- -
|
25
|
+
- - '>='
|
29
26
|
- !ruby/object:Gem::Version
|
30
27
|
version: '0'
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: rake
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
|
-
- -
|
32
|
+
- - '>='
|
37
33
|
- !ruby/object:Gem::Version
|
38
34
|
version: '0'
|
39
35
|
type: :development
|
40
36
|
prerelease: false
|
41
37
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
38
|
requirements:
|
44
|
-
- -
|
39
|
+
- - '>='
|
45
40
|
- !ruby/object:Gem::Version
|
46
41
|
version: '0'
|
47
42
|
- !ruby/object:Gem::Dependency
|
48
43
|
name: rspec
|
49
44
|
requirement: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
45
|
requirements:
|
52
|
-
- -
|
46
|
+
- - '>='
|
53
47
|
- !ruby/object:Gem::Version
|
54
48
|
version: '0'
|
55
49
|
type: :development
|
56
50
|
prerelease: false
|
57
51
|
version_requirements: !ruby/object:Gem::Requirement
|
58
|
-
none: false
|
59
52
|
requirements:
|
60
|
-
- -
|
53
|
+
- - '>='
|
61
54
|
- !ruby/object:Gem::Version
|
62
55
|
version: '0'
|
63
56
|
- !ruby/object:Gem::Dependency
|
64
57
|
name: bundler
|
65
58
|
requirement: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
59
|
requirements:
|
68
|
-
- -
|
60
|
+
- - '>='
|
69
61
|
- !ruby/object:Gem::Version
|
70
62
|
version: '0'
|
71
63
|
type: :development
|
72
64
|
prerelease: false
|
73
65
|
version_requirements: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
66
|
requirements:
|
76
|
-
- -
|
67
|
+
- - '>='
|
77
68
|
- !ruby/object:Gem::Version
|
78
69
|
version: '0'
|
79
70
|
- !ruby/object:Gem::Dependency
|
80
71
|
name: rack-test
|
81
72
|
requirement: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
73
|
requirements:
|
84
|
-
- -
|
74
|
+
- - '>='
|
85
75
|
- !ruby/object:Gem::Version
|
86
76
|
version: '0'
|
87
77
|
type: :development
|
88
78
|
prerelease: false
|
89
79
|
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
none: false
|
91
80
|
requirements:
|
92
|
-
- -
|
81
|
+
- - '>='
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '0'
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: yarjuf
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - '>='
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
type: :development
|
92
|
+
prerelease: false
|
93
|
+
version_requirements: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - '>='
|
93
96
|
- !ruby/object:Gem::Version
|
94
97
|
version: '0'
|
95
98
|
description: Rack middleware that populates the params variable with the contents
|
@@ -101,7 +104,9 @@ extensions: []
|
|
101
104
|
extra_rdoc_files: []
|
102
105
|
files:
|
103
106
|
- .gitignore
|
107
|
+
- .rspec
|
104
108
|
- .travis.yml
|
109
|
+
- .yardopts
|
105
110
|
- Gemfile
|
106
111
|
- README.markdown
|
107
112
|
- Rakefile
|
@@ -113,29 +118,28 @@ files:
|
|
113
118
|
- spec/spec_helper.rb
|
114
119
|
homepage: http://github.com/jphastings/rack-matrix_params
|
115
120
|
licenses: []
|
116
|
-
|
121
|
+
metadata: {}
|
122
|
+
post_install_message: ':: Coded for blinkbox books :: Love books, love code? Get in
|
123
|
+
touch ::'
|
117
124
|
rdoc_options: []
|
118
125
|
require_paths:
|
119
126
|
- lib
|
120
127
|
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
128
|
requirements:
|
123
|
-
- -
|
129
|
+
- - '>='
|
124
130
|
- !ruby/object:Gem::Version
|
125
131
|
version: '0'
|
126
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
|
-
none: false
|
128
133
|
requirements:
|
129
|
-
- -
|
134
|
+
- - '>='
|
130
135
|
- !ruby/object:Gem::Version
|
131
136
|
version: '0'
|
132
137
|
requirements: []
|
133
138
|
rubyforge_project:
|
134
|
-
rubygems_version:
|
139
|
+
rubygems_version: 2.0.3
|
135
140
|
signing_key:
|
136
|
-
specification_version:
|
141
|
+
specification_version: 4
|
137
142
|
summary: Allows the use of matrix URLs in a Rack environment
|
138
143
|
test_files:
|
139
144
|
- spec/matrix_params_spec.rb
|
140
145
|
- spec/spec_helper.rb
|
141
|
-
has_rdoc:
|