sinatra_asset_packager 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -24,5 +24,11 @@ module SinatraAssetPackager
|
|
24
24
|
SinatraAssetPackager.environment["#{params[:splat][0]}.#{format}"]
|
25
25
|
end
|
26
26
|
end
|
27
|
+
|
28
|
+
get "/assets/*.svg" do
|
29
|
+
content_type("image/svg+xml")
|
30
|
+
filepath = params[:splat][0]
|
31
|
+
SinatraAssetPackager.environment["#{filepath}.svg"]
|
32
|
+
end
|
27
33
|
end
|
28
34
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra_asset_packager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &8824460 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,15 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
24
|
+
version_requirements: *8824460
|
30
25
|
- !ruby/object:Gem::Dependency
|
31
26
|
name: sinatra
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &8822620 !ruby/object:Gem::Requirement
|
33
28
|
none: false
|
34
29
|
requirements:
|
35
30
|
- - ! '>='
|
@@ -37,15 +32,10 @@ dependencies:
|
|
37
32
|
version: '0'
|
38
33
|
type: :runtime
|
39
34
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
35
|
+
version_requirements: *8822620
|
46
36
|
- !ruby/object:Gem::Dependency
|
47
37
|
name: sprockets
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirement: &8822080 !ruby/object:Gem::Requirement
|
49
39
|
none: false
|
50
40
|
requirements:
|
51
41
|
- - ! '>='
|
@@ -53,15 +43,10 @@ dependencies:
|
|
53
43
|
version: '0'
|
54
44
|
type: :runtime
|
55
45
|
prerelease: false
|
56
|
-
version_requirements:
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ! '>='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
46
|
+
version_requirements: *8822080
|
62
47
|
- !ruby/object:Gem::Dependency
|
63
48
|
name: uglifier
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirement: &8820480 !ruby/object:Gem::Requirement
|
65
50
|
none: false
|
66
51
|
requirements:
|
67
52
|
- - ! '>='
|
@@ -69,15 +54,10 @@ dependencies:
|
|
69
54
|
version: '0'
|
70
55
|
type: :runtime
|
71
56
|
prerelease: false
|
72
|
-
version_requirements:
|
73
|
-
none: false
|
74
|
-
requirements:
|
75
|
-
- - ! '>='
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
57
|
+
version_requirements: *8820480
|
78
58
|
- !ruby/object:Gem::Dependency
|
79
59
|
name: yui-compressor
|
80
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirement: &8818820 !ruby/object:Gem::Requirement
|
81
61
|
none: false
|
82
62
|
requirements:
|
83
63
|
- - ! '>='
|
@@ -85,15 +65,10 @@ dependencies:
|
|
85
65
|
version: '0'
|
86
66
|
type: :runtime
|
87
67
|
prerelease: false
|
88
|
-
version_requirements:
|
89
|
-
none: false
|
90
|
-
requirements:
|
91
|
-
- - ! '>='
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
68
|
+
version_requirements: *8818820
|
94
69
|
- !ruby/object:Gem::Dependency
|
95
70
|
name: json
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirement: &8816760 !ruby/object:Gem::Requirement
|
97
72
|
none: false
|
98
73
|
requirements:
|
99
74
|
- - ~>
|
@@ -101,15 +76,10 @@ dependencies:
|
|
101
76
|
version: 1.7.7
|
102
77
|
type: :runtime
|
103
78
|
prerelease: false
|
104
|
-
version_requirements:
|
105
|
-
none: false
|
106
|
-
requirements:
|
107
|
-
- - ~>
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: 1.7.7
|
79
|
+
version_requirements: *8816760
|
110
80
|
- !ruby/object:Gem::Dependency
|
111
81
|
name: pry
|
112
|
-
requirement: !ruby/object:Gem::Requirement
|
82
|
+
requirement: &8832320 !ruby/object:Gem::Requirement
|
113
83
|
none: false
|
114
84
|
requirements:
|
115
85
|
- - ! '>='
|
@@ -117,15 +87,10 @@ dependencies:
|
|
117
87
|
version: '0'
|
118
88
|
type: :development
|
119
89
|
prerelease: false
|
120
|
-
version_requirements:
|
121
|
-
none: false
|
122
|
-
requirements:
|
123
|
-
- - ! '>='
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: '0'
|
90
|
+
version_requirements: *8832320
|
126
91
|
- !ruby/object:Gem::Dependency
|
127
92
|
name: rspec
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirement: &8831620 !ruby/object:Gem::Requirement
|
129
94
|
none: false
|
130
95
|
requirements:
|
131
96
|
- - ! '>='
|
@@ -133,12 +98,7 @@ dependencies:
|
|
133
98
|
version: '0'
|
134
99
|
type: :development
|
135
100
|
prerelease: false
|
136
|
-
version_requirements:
|
137
|
-
none: false
|
138
|
-
requirements:
|
139
|
-
- - ! '>='
|
140
|
-
- !ruby/object:Gem::Version
|
141
|
-
version: '0'
|
101
|
+
version_requirements: *8831620
|
142
102
|
description: Opinionated asset packaging for Sinatra done well.
|
143
103
|
email:
|
144
104
|
- scott@scottmotte.com
|
@@ -176,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
136
|
version: '0'
|
177
137
|
segments:
|
178
138
|
- 0
|
179
|
-
hash:
|
139
|
+
hash: 4110827005783106359
|
180
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
141
|
none: false
|
182
142
|
requirements:
|
@@ -185,10 +145,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
145
|
version: '0'
|
186
146
|
segments:
|
187
147
|
- 0
|
188
|
-
hash:
|
148
|
+
hash: 4110827005783106359
|
189
149
|
requirements: []
|
190
150
|
rubyforge_project:
|
191
|
-
rubygems_version: 1.8.
|
151
|
+
rubygems_version: 1.8.11
|
192
152
|
signing_key:
|
193
153
|
specification_version: 3
|
194
154
|
summary: Opinionated asset packaging for Sinatra done well.
|