rack-rewrite-dynamic 0.0.8 → 0.0.9
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.
@@ -6,8 +6,11 @@ module Rack
|
|
6
6
|
module Dynamic
|
7
7
|
class Rewrites
|
8
8
|
attr_reader :rewrites
|
9
|
-
def initialize &rewrite_block
|
10
|
-
|
9
|
+
def initialize (base, &rewrite_block)
|
10
|
+
if block_given?
|
11
|
+
instance_eval(&rewrite_block)
|
12
|
+
apply_rewrites(base)
|
13
|
+
end
|
11
14
|
end
|
12
15
|
|
13
16
|
def rewrite_filter(opts = {})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-rewrite-dynamic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-10-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack-rewrite
|
@@ -82,23 +82,42 @@ executables: []
|
|
82
82
|
extensions: []
|
83
83
|
extra_rdoc_files: []
|
84
84
|
files:
|
85
|
-
-
|
86
|
-
|
87
|
-
-
|
88
|
-
|
89
|
-
-
|
90
|
-
|
91
|
-
-
|
92
|
-
|
93
|
-
-
|
94
|
-
|
95
|
-
-
|
96
|
-
|
97
|
-
-
|
98
|
-
|
99
|
-
-
|
100
|
-
|
101
|
-
-
|
85
|
+
- !binary |-
|
86
|
+
LmdpdGlnbm9yZQ==
|
87
|
+
- !binary |-
|
88
|
+
R2VtZmlsZQ==
|
89
|
+
- !binary |-
|
90
|
+
TElDRU5TRS50eHQ=
|
91
|
+
- !binary |-
|
92
|
+
UkVBRE1FLm1k
|
93
|
+
- !binary |-
|
94
|
+
UmFrZWZpbGU=
|
95
|
+
- !binary |-
|
96
|
+
bGliL3JhY2stcmV3cml0ZS1keW5hbWljLnJi
|
97
|
+
- !binary |-
|
98
|
+
bGliL3JhY2svcmV3cml0ZS9keW5hbWljL2Jhc2UucmI=
|
99
|
+
- !binary |-
|
100
|
+
bGliL3JhY2svcmV3cml0ZS9keW5hbWljL2ZpbHRlcl9yZXdyaXRlLnJi
|
101
|
+
- !binary |-
|
102
|
+
bGliL3JhY2svcmV3cml0ZS9keW5hbWljL3JhaWxzX3JvdXRlX2dlbmVyYXRv
|
103
|
+
ci5yYg==
|
104
|
+
- !binary |-
|
105
|
+
bGliL3JhY2svcmV3cml0ZS9keW5hbWljL3Jld3JpdGUucmI=
|
106
|
+
- !binary |-
|
107
|
+
bGliL3JhY2svcmV3cml0ZS9keW5hbWljL3Jld3JpdGVzLnJi
|
108
|
+
- !binary |-
|
109
|
+
bGliL3JhY2svcmV3cml0ZS9keW5hbWljL3ZlcnNpb24ucmI=
|
110
|
+
- !binary |-
|
111
|
+
cmFjay1yZXdyaXRlLWR5bmFtaWMuZ2Vtc3BlYw==
|
112
|
+
- !binary |-
|
113
|
+
c3BlYy9yYWNrL3Jld3JpdGUvZHluYW1pYy9maWx0ZXJfcmV3cml0ZV9zcGVj
|
114
|
+
LnJi
|
115
|
+
- !binary |-
|
116
|
+
c3BlYy9yYWNrL3Jld3JpdGUvZHluYW1pYy9yZXdyaXRlX3NwZWMucmI=
|
117
|
+
- !binary |-
|
118
|
+
c3BlYy9yYWNrL3Jld3JpdGUvZHluYW1pYy9yZXdyaXRlc19zcGVjLnJi
|
119
|
+
- !binary |-
|
120
|
+
c3BlYy9yYWNrL3Jld3JpdGUvZHluYW1pY19zcGVjLnJi
|
102
121
|
homepage: https://github.com/bonetics/rack-rewrite-dynamic
|
103
122
|
licenses: []
|
104
123
|
post_install_message:
|
@@ -124,7 +143,12 @@ signing_key:
|
|
124
143
|
specification_version: 3
|
125
144
|
summary: SEO urls based on slugs
|
126
145
|
test_files:
|
127
|
-
-
|
128
|
-
|
129
|
-
|
130
|
-
-
|
146
|
+
- !binary |-
|
147
|
+
c3BlYy9yYWNrL3Jld3JpdGUvZHluYW1pYy9maWx0ZXJfcmV3cml0ZV9zcGVj
|
148
|
+
LnJi
|
149
|
+
- !binary |-
|
150
|
+
c3BlYy9yYWNrL3Jld3JpdGUvZHluYW1pYy9yZXdyaXRlX3NwZWMucmI=
|
151
|
+
- !binary |-
|
152
|
+
c3BlYy9yYWNrL3Jld3JpdGUvZHluYW1pYy9yZXdyaXRlc19zcGVjLnJi
|
153
|
+
- !binary |-
|
154
|
+
c3BlYy9yYWNrL3Jld3JpdGUvZHluYW1pY19zcGVjLnJi
|