sinatra-assetpack 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- U
2
- =t��/��b �%ʹ���!$vp���9G_���֐��}>!��sKQ
3
- |�!b�e��{S�Ss�!�y�s�!� ����mF��}���C���K
1
+ n
2
+ �P����m�k].R�-3[0�L:Uv�)���?�����GŚ��4{a���)�����}�����o���#���lЙ�����k�T�b��Vk��1H�G*,(s �� �4���u^�KGuѪ?�u.�}�'m]���}��`!Q� ��h�m9�"���u3��=0� 2�*��_����
@@ -24,6 +24,7 @@ GEM
24
24
  contest (0.1.3)
25
25
  execjs (1.4.0)
26
26
  multi_json (~> 1.0)
27
+ gem-release (0.6.0)
27
28
  haml (4.0.0)
28
29
  tilt
29
30
  jsmin (1.0.1)
@@ -63,6 +64,7 @@ PLATFORMS
63
64
  DEPENDENCIES
64
65
  coffee-script
65
66
  contest
67
+ gem-release
66
68
  haml
67
69
  less
68
70
  mocha
data/HISTORY.md CHANGED
@@ -1,3 +1,12 @@
1
+ v0.2.3 - May 29, 2013
2
+ ----------------------
3
+
4
+ ### Added
5
+ * Support for Rack::URLMap / url prefix (#104)
6
+
7
+ ### Changed
8
+ * Use optimized MD5 file digest method. (#99)
9
+
1
10
  v0.2.2 - April 28, 2013
2
11
  ----------------------
3
12
 
@@ -167,7 +176,7 @@ v0.0.6 - Aug 30, 2011
167
176
  ---------------------
168
177
 
169
178
  ### Fixed:
170
- * Redundant entries are now suppressed. (eg, when specifying
179
+ * Redundant entries are now suppressed. (eg, when specifying
171
180
  `['vendor/jquery.js', 'vendor/*.js']`)
172
181
 
173
182
  ### Added:
@@ -195,8 +204,8 @@ v0.0.4 - Aug 30, 2011
195
204
  * Assets are now ordered properly.
196
205
 
197
206
  ### Changed:
198
- * the config format for `js_compression` and family. In your `assets` block,
199
- you now have to use `js_compression :closure` instead of `js_compression =
207
+ * the config format for `js_compression` and family. In your `assets` block,
208
+ you now have to use `js_compression :closure` instead of `js_compression =
200
209
  :closure`.
201
210
  * Use simple CSS compression by default.
202
211
 
@@ -4,7 +4,9 @@ module Sinatra
4
4
  extend self
5
5
  # Returns the MD5 for all of the files concatenated together
6
6
  def cache_buster_hash(*files)
7
- content = files.sort.map { |f| File.read(f).to_s if f.is_a?(String) && File.file?(f) }.compact
7
+ content = files.sort.map do |f|
8
+ Digest::MD5.file(f).hexdigest if f.is_a?(String) && File.file?(f)
9
+ end.compact
8
10
  Digest::MD5.hexdigest(content.join) if content.any?
9
11
  end
10
12
 
@@ -45,9 +45,9 @@ module Sinatra
45
45
  return "" unless pack
46
46
 
47
47
  if settings.environment == :production
48
- pack.to_production_html options
48
+ pack.to_production_html request.script_name, options
49
49
  else
50
- pack.to_development_html options
50
+ pack.to_development_html request.script_name, options
51
51
  end
52
52
  end
53
53
 
@@ -60,20 +60,31 @@ module Sinatra
60
60
  /^#{re}$/
61
61
  end
62
62
 
63
- def to_development_html(options={})
63
+ def to_development_html(path_prefix, options={})
64
64
  paths_and_files.map { |path, file|
65
65
  path = add_cache_buster(path, file)
66
+ path = add_path_prefix(path, path_prefix)
66
67
  link_tag(path, options)
67
68
  }.join("\n")
68
69
  end
69
70
 
70
- # The URI path of the minified file (with cache buster)
71
+ # The URI path of the minified file (with cache buster, but not a path prefix)
71
72
  def production_path
72
73
  add_cache_buster @path, *files
73
74
  end
74
75
 
75
- def to_production_html(options={})
76
- link_tag production_path, options
76
+ def to_production_html(path_prefix, options={})
77
+ path = production_path
78
+ path = add_path_prefix(path, path_prefix)
79
+ link_tag path, options
80
+ end
81
+
82
+ def add_path_prefix(path, path_prefix)
83
+ if path_prefix == '/'
84
+ path
85
+ else
86
+ "#{path_prefix}#{path}"
87
+ end
77
88
  end
78
89
 
79
90
  def minify
@@ -1,7 +1,7 @@
1
1
  module Sinatra
2
2
  module AssetPack
3
3
  def self.version
4
- "0.2.2"
4
+ "0.2.3"
5
5
  end
6
6
  end
7
7
  end
@@ -29,7 +29,11 @@ Gem::Specification.new do |s|
29
29
  s.add_development_dependency 'uglifier'
30
30
  s.add_development_dependency 'yui-compressor'
31
31
 
32
- # For tests
32
+ # For gem tests
33
33
  s.add_development_dependency 'rake'
34
34
  s.add_development_dependency 'mocha'
35
+
36
+ # For gem release mangement
37
+ s.add_development_dependency 'gem-release'
38
+
35
39
  end
@@ -1,9 +1,7 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class ArityTest < UnitTest
4
- class App < UnitTest::App
5
- register Sinatra::AssetPack
6
-
4
+ class App < Main
7
5
  assets do |a|
8
6
  a.css :a, '/css/a.css', [
9
7
  '/css/s*.css',
@@ -1,11 +1,7 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class AssetHostTest < UnitTest
4
- class TestApp < UnitTest::App
5
- register Sinatra::AssetPack
6
-
7
- set :root, File.join(File.dirname(__FILE__), "app")
8
-
4
+ class App < Main
9
5
  assets {
10
6
  serve '/css', :from => 'app/css'
11
7
  serve '/js', :from => 'app/js'
@@ -24,7 +20,7 @@ class AssetHostTest < UnitTest
24
20
  end
25
21
 
26
22
  def app
27
- TestApp
23
+ App
28
24
  end
29
25
 
30
26
  test "hosts sets option" do
@@ -34,12 +30,12 @@ class AssetHostTest < UnitTest
34
30
 
35
31
  test "host gets added to css source path" do
36
32
  app.stubs(:development?).returns(false)
37
- assert TestApp.assets.packages['a.css'].to_production_html =~ %r{href='//cdn-[0|1].example.org/assets/a.[a-f0-9]{32}.css'}
33
+ assert App.assets.packages['a.css'].to_production_html('/') =~ %r{href='//cdn-[0|1].example.org/assets/a.[a-f0-9]{32}.css'}
38
34
  end
39
35
 
40
36
  test "host gets added to js source path" do
41
37
  app.stubs(:development?).returns(false)
42
- assert TestApp.assets.packages['b.js'].to_production_html =~ %r{src='//cdn-[0|1].example.org/assets/b.[a-f0-9]{32}.js'}
38
+ assert App.assets.packages['b.js'].to_production_html('/') =~ %r{src='//cdn-[0|1].example.org/assets/b.[a-f0-9]{32}.js'}
43
39
  end
44
40
 
45
41
  test "host gets added to image helper path in production" do
@@ -57,7 +53,7 @@ class AssetHostTest < UnitTest
57
53
  test "host gets added to css image path in production" do
58
54
  app.stubs(:development?).returns(false)
59
55
  get '/css/style.css'
60
- assert body.include?('background: url(//cdn-1.example.org/images/background.b1946ac92492d2347c6235b4d2611184.jpg)')
56
+ assert body =~ /background: url\(\/\/cdn-[0|1].example.org\/images\/background.[a-f0-9]{32}.jpg\)/
61
57
 
62
58
  # does not alter non-existing files (design or flaw???)
63
59
  assert body.include?('background: url(/images/404.png)')
@@ -66,12 +62,12 @@ class AssetHostTest < UnitTest
66
62
  test "do not add asset host to filename in dev mode" do
67
63
  app.stubs(:development?).returns(true)
68
64
  file = '/js/hello.js'
69
- assert !(Sinatra::AssetPack::HtmlHelpers.get_file_uri(file, TestApp.assets) =~ /cdn-[0|1].example.org/)
65
+ assert !(Sinatra::AssetPack::HtmlHelpers.get_file_uri(file, App.assets) =~ /cdn-[0|1].example.org/)
70
66
  end
71
67
 
72
68
  test "add asset host to filename in production/qa mode" do
73
69
  app.stubs(:development?).returns(false)
74
70
  file = '/js/hello.js'
75
- assert Sinatra::AssetPack::HtmlHelpers.get_file_uri(file, TestApp.assets) =~ /cdn-[0|1].example.org/
71
+ assert Sinatra::AssetPack::HtmlHelpers.get_file_uri(file, App.assets) =~ /cdn-[0|1].example.org/
76
72
  end
77
73
  end
@@ -5,13 +5,13 @@ class BusterHelpersTest < UnitTest
5
5
 
6
6
  test "adds md5 to name for one file" do
7
7
  filename = BusterHelpers.add_cache_buster '/css/style.css', asset('css/style.css')
8
- assert_equal '/css/style.7a1b92c3f56ab5cfa73c1aa8222961cf.css', filename
8
+ assert %r{/css/style.[a-f0-9]{32}.css} =~ filename
9
9
  end
10
10
 
11
11
 
12
12
  test "adds md5 to name for multiple files" do
13
13
  filename = BusterHelpers.add_cache_buster '/css/style.css', asset('css/style.css'), asset('css/js2c.css')
14
- assert_equal '/css/style.4400cb67aeffa49b8fe18bc4e0187f86.css', filename
14
+ assert %r{\/css\/style.[a-f0-9]{32}.css} =~ filename
15
15
  end
16
16
 
17
17
  test "doesn't add md5 for non-existent file" do
@@ -1,9 +1,7 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class CacheTest < UnitTest
4
- class App < UnitTest::App
5
- register Sinatra::AssetPack
6
-
4
+ class App < Main
7
5
  set :reload_templates, false
8
6
  assets {
9
7
  js :app, '/js/app.js', [
@@ -16,7 +14,9 @@ class CacheTest < UnitTest
16
14
  }
17
15
  end
18
16
 
19
- def app() App; end
17
+ def app
18
+ App
19
+ end
20
20
 
21
21
  test "Compressed js caching" do
22
22
  app.set :reload_templates, false
@@ -1,9 +1,7 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class CompressedTest < UnitTest
4
- class App < UnitTest::App
5
- register Sinatra::AssetPack
6
-
4
+ class App < Main
7
5
  assets {
8
6
  js :app, '/app.js', [ '/js/*.js' ]
9
7
  }
@@ -1,9 +1,7 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class GlobTest < UnitTest
4
- class App < UnitTest::App
5
- register Sinatra::AssetPack
6
-
4
+ class App < Main
7
5
  assets {
8
6
  serve '/js', :from => 'app/js_glob'
9
7
  js :a, '/a.js', [ '/js/**/*.js' ]
@@ -1,9 +1,7 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class IgnoreTest < UnitTest
4
- class App < UnitTest::App
5
- register Sinatra::AssetPack
6
-
4
+ class App < Main
7
5
  assets do
8
6
  js :main, '/main.js', %w[/js/*.js]
9
7
  end
@@ -1,9 +1,7 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class LocalFileTest < UnitTest
4
- class App < UnitTest::App
5
- register Sinatra::AssetPack
6
-
4
+ class App < Main
7
5
  assets {
8
6
  css :application, [ '/css/*.css' ]
9
7
  serve '/fonts', :from => 'app/fonts'
@@ -1,9 +1,7 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class NonExistentTest < UnitTest
4
- class App < UnitTest::App
5
- register Sinatra::AssetPack
6
-
4
+ class App < Main
7
5
  assets do |a|
8
6
  a.js :script, '/script.min.js', [
9
7
  '/js/h*.js',
@@ -1,9 +1,7 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class OptionsTest < UnitTest
4
- class App < UnitTest::App
5
- register Sinatra::AssetPack
6
-
4
+ class App < Main
7
5
  assets {
8
6
  css :application, [ '/css/*.css' ]
9
7
  js_compression :closure
@@ -1,9 +1,7 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class OrderTest < UnitTest
4
- class App < UnitTest::App
5
- register Sinatra::AssetPack
6
-
4
+ class App < Main
7
5
  assets {
8
6
  css :a, '/css/a.css', [
9
7
  '/css/s*.css',
@@ -1,9 +1,7 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class StylusTest < UnitTest
4
- class App < UnitTest::App
5
- register Sinatra::AssetPack
6
-
4
+ class App < Main
7
5
  assets do |a|
8
6
  a.css :a, '/css/a.css', [
9
7
  '/css/stylus.css'
@@ -0,0 +1,26 @@
1
+ require File.expand_path('../test_helper', __FILE__)
2
+
3
+ # tests for running sinatra-assetpack with an application that's mounted under a
4
+ # subdirectory
5
+ class SubpathTest < UnitTest
6
+ def app
7
+ Rack::URLMap.new('/subpath' => Main)
8
+ end
9
+
10
+ test "helpers css (mounted on a subpath, development)" do
11
+ Main.settings.stubs(:environment).returns(:development)
12
+ get '/subpath/helpers/css'
13
+ assert body =~ %r{link rel='stylesheet' href='/subpath/css/screen.[a-f0-9]{32}.css' media='screen'}
14
+ end
15
+
16
+ test "helpers css (mounted on a subpath, production)" do
17
+ Main.settings.stubs(:environment).returns(:production)
18
+ get '/subpath/helpers/css'
19
+ assert body =~ %r{link rel='stylesheet' href='/subpath/css/application.[a-f0-9]{32}.css' media='screen'}
20
+ end
21
+
22
+ test '/subpath/js/hello.js (plain js)' do
23
+ get '/subpath/js/hello.js'
24
+ assert body == '$(function() { alert("Hello"); });'
25
+ end
26
+ end
@@ -1,16 +1,16 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class TemplateCacheTest < UnitTest
4
- class App < UnitTest::App
5
- register Sinatra::AssetPack
6
-
4
+ class App < Main
7
5
  set :reload_templates, false
8
6
  assets do |a|
9
7
  a.css :a, '/a.css', %w[/css/screen.css]
10
8
  end
11
9
  end
12
10
 
13
- def app() App; end
11
+ def app
12
+ App
13
+ end
14
14
 
15
15
  test "cache dynamic files when reload templates is false" do
16
16
  App.any_instance.expects(:asset_filter_css).times(1).returns "OK"
@@ -16,12 +16,6 @@ require File.expand_path('../app/app.rb', __FILE__)
16
16
  class UnitTest < Test::Unit::TestCase
17
17
  include Rack::Test::Methods
18
18
 
19
- class App < Sinatra::Base
20
- set :root, File.expand_path('../app', __FILE__)
21
- enable :raise_errors
22
- disable :show_exceptions
23
- end
24
-
25
19
  def app
26
20
  Main
27
21
  end
@@ -1,9 +1,7 @@
1
1
  require File.expand_path('../test_helper', __FILE__)
2
2
 
3
3
  class UglifyTest < UnitTest
4
- class App < UnitTest::App
5
- register Sinatra::AssetPack
6
-
4
+ class App < Main
7
5
  assets do
8
6
  js_compression :uglify, :mangle => true
9
7
  js :main, '/main.js', [
@@ -69,8 +69,8 @@ class AppTest < UnitTest
69
69
  test "helpers" do
70
70
  app.settings.stubs(:environment).returns(:development)
71
71
  get '/index.html'
72
- assert body =~ /<script src='\/js\/hello.8ac1b67adf7fa68c1c3b81791b3e116c.js'><\/script>/
73
- assert body =~ /<script src='\/js\/hi.24dcf1d7835ed64640370d52967631f8.js'><\/script>/
72
+ assert body =~ /<script src='\/js\/hello.[a-f0-9]{32}.js'><\/script>/
73
+ assert body =~ /<script src='\/js\/hi.[a-f0-9]{32}.js'><\/script>/
74
74
  end
75
75
 
76
76
  test "helpers in production (compressed html thingie)" do
@@ -108,7 +108,7 @@ class AppTest < UnitTest
108
108
  test "helpers css (development)" do
109
109
  app.settings.stubs(:environment).returns(:development)
110
110
  get '/helpers/css'
111
- assert body =~ %r{link rel='stylesheet' href='/css/screen.efa279aa02235f0a587791c1ac5d99b9.css' media='screen'}
111
+ assert body =~ %r{link rel='stylesheet' href='/css/screen.[a-f0-9]{32}.css' media='screen'}
112
112
  end
113
113
 
114
114
  test "helpers css (production)" do
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-assetpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Rico Sta. Cruz
@@ -36,11 +37,12 @@ cert_chain:
36
37
  MjN3ZTRFMUx2ZlJuNWdWNzdEaWo2czlWNEhIek1CdUx3bk5iOFQrNmxPblVX
37
38
  YnRpSWRkRAplOGM4aTdQbHJ6aFZKLzhzWFVKc0NreUU4ZDJNeVJ5amx4TT0K
38
39
  LS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
39
- date: 2013-04-28 00:00:00.000000000 Z
40
+ date: 2013-05-29 00:00:00.000000000 Z
40
41
  dependencies:
41
42
  - !ruby/object:Gem::Dependency
42
43
  name: backports
43
44
  requirement: !ruby/object:Gem::Requirement
45
+ none: false
44
46
  requirements:
45
47
  - - ! '>='
46
48
  - !ruby/object:Gem::Version
@@ -48,6 +50,7 @@ dependencies:
48
50
  type: :runtime
49
51
  prerelease: false
50
52
  version_requirements: !ruby/object:Gem::Requirement
53
+ none: false
51
54
  requirements:
52
55
  - - ! '>='
53
56
  - !ruby/object:Gem::Version
@@ -55,6 +58,7 @@ dependencies:
55
58
  - !ruby/object:Gem::Dependency
56
59
  name: jsmin
57
60
  requirement: !ruby/object:Gem::Requirement
61
+ none: false
58
62
  requirements:
59
63
  - - ! '>='
60
64
  - !ruby/object:Gem::Version
@@ -62,6 +66,7 @@ dependencies:
62
66
  type: :runtime
63
67
  prerelease: false
64
68
  version_requirements: !ruby/object:Gem::Requirement
69
+ none: false
65
70
  requirements:
66
71
  - - ! '>='
67
72
  - !ruby/object:Gem::Version
@@ -69,6 +74,7 @@ dependencies:
69
74
  - !ruby/object:Gem::Dependency
70
75
  name: rack-test
71
76
  requirement: !ruby/object:Gem::Requirement
77
+ none: false
72
78
  requirements:
73
79
  - - ! '>='
74
80
  - !ruby/object:Gem::Version
@@ -76,6 +82,7 @@ dependencies:
76
82
  type: :runtime
77
83
  prerelease: false
78
84
  version_requirements: !ruby/object:Gem::Requirement
85
+ none: false
79
86
  requirements:
80
87
  - - ! '>='
81
88
  - !ruby/object:Gem::Version
@@ -83,6 +90,7 @@ dependencies:
83
90
  - !ruby/object:Gem::Dependency
84
91
  name: sinatra
85
92
  requirement: !ruby/object:Gem::Requirement
93
+ none: false
86
94
  requirements:
87
95
  - - ! '>='
88
96
  - !ruby/object:Gem::Version
@@ -90,6 +98,7 @@ dependencies:
90
98
  type: :runtime
91
99
  prerelease: false
92
100
  version_requirements: !ruby/object:Gem::Requirement
101
+ none: false
93
102
  requirements:
94
103
  - - ! '>='
95
104
  - !ruby/object:Gem::Version
@@ -97,6 +106,7 @@ dependencies:
97
106
  - !ruby/object:Gem::Dependency
98
107
  name: tilt
99
108
  requirement: !ruby/object:Gem::Requirement
109
+ none: false
100
110
  requirements:
101
111
  - - ! '>='
102
112
  - !ruby/object:Gem::Version
@@ -104,6 +114,7 @@ dependencies:
104
114
  type: :runtime
105
115
  prerelease: false
106
116
  version_requirements: !ruby/object:Gem::Requirement
117
+ none: false
107
118
  requirements:
108
119
  - - ! '>='
109
120
  - !ruby/object:Gem::Version
@@ -111,6 +122,7 @@ dependencies:
111
122
  - !ruby/object:Gem::Dependency
112
123
  name: coffee-script
113
124
  requirement: !ruby/object:Gem::Requirement
125
+ none: false
114
126
  requirements:
115
127
  - - ! '>='
116
128
  - !ruby/object:Gem::Version
@@ -118,6 +130,7 @@ dependencies:
118
130
  type: :development
119
131
  prerelease: false
120
132
  version_requirements: !ruby/object:Gem::Requirement
133
+ none: false
121
134
  requirements:
122
135
  - - ! '>='
123
136
  - !ruby/object:Gem::Version
@@ -125,6 +138,7 @@ dependencies:
125
138
  - !ruby/object:Gem::Dependency
126
139
  name: contest
127
140
  requirement: !ruby/object:Gem::Requirement
141
+ none: false
128
142
  requirements:
129
143
  - - ! '>='
130
144
  - !ruby/object:Gem::Version
@@ -132,6 +146,7 @@ dependencies:
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
149
+ none: false
135
150
  requirements:
136
151
  - - ! '>='
137
152
  - !ruby/object:Gem::Version
@@ -139,6 +154,7 @@ dependencies:
139
154
  - !ruby/object:Gem::Dependency
140
155
  name: haml
141
156
  requirement: !ruby/object:Gem::Requirement
157
+ none: false
142
158
  requirements:
143
159
  - - ! '>='
144
160
  - !ruby/object:Gem::Version
@@ -146,6 +162,7 @@ dependencies:
146
162
  type: :development
147
163
  prerelease: false
148
164
  version_requirements: !ruby/object:Gem::Requirement
165
+ none: false
149
166
  requirements:
150
167
  - - ! '>='
151
168
  - !ruby/object:Gem::Version
@@ -153,6 +170,7 @@ dependencies:
153
170
  - !ruby/object:Gem::Dependency
154
171
  name: less
155
172
  requirement: !ruby/object:Gem::Requirement
173
+ none: false
156
174
  requirements:
157
175
  - - ! '>='
158
176
  - !ruby/object:Gem::Version
@@ -160,6 +178,7 @@ dependencies:
160
178
  type: :development
161
179
  prerelease: false
162
180
  version_requirements: !ruby/object:Gem::Requirement
181
+ none: false
163
182
  requirements:
164
183
  - - ! '>='
165
184
  - !ruby/object:Gem::Version
@@ -167,6 +186,7 @@ dependencies:
167
186
  - !ruby/object:Gem::Dependency
168
187
  name: sass
169
188
  requirement: !ruby/object:Gem::Requirement
189
+ none: false
170
190
  requirements:
171
191
  - - ! '>='
172
192
  - !ruby/object:Gem::Version
@@ -174,6 +194,7 @@ dependencies:
174
194
  type: :development
175
195
  prerelease: false
176
196
  version_requirements: !ruby/object:Gem::Requirement
197
+ none: false
177
198
  requirements:
178
199
  - - ! '>='
179
200
  - !ruby/object:Gem::Version
@@ -181,6 +202,7 @@ dependencies:
181
202
  - !ruby/object:Gem::Dependency
182
203
  name: stylus
183
204
  requirement: !ruby/object:Gem::Requirement
205
+ none: false
184
206
  requirements:
185
207
  - - ! '>='
186
208
  - !ruby/object:Gem::Version
@@ -188,6 +210,7 @@ dependencies:
188
210
  type: :development
189
211
  prerelease: false
190
212
  version_requirements: !ruby/object:Gem::Requirement
213
+ none: false
191
214
  requirements:
192
215
  - - ! '>='
193
216
  - !ruby/object:Gem::Version
@@ -195,6 +218,7 @@ dependencies:
195
218
  - !ruby/object:Gem::Dependency
196
219
  name: uglifier
197
220
  requirement: !ruby/object:Gem::Requirement
221
+ none: false
198
222
  requirements:
199
223
  - - ! '>='
200
224
  - !ruby/object:Gem::Version
@@ -202,6 +226,7 @@ dependencies:
202
226
  type: :development
203
227
  prerelease: false
204
228
  version_requirements: !ruby/object:Gem::Requirement
229
+ none: false
205
230
  requirements:
206
231
  - - ! '>='
207
232
  - !ruby/object:Gem::Version
@@ -209,6 +234,7 @@ dependencies:
209
234
  - !ruby/object:Gem::Dependency
210
235
  name: yui-compressor
211
236
  requirement: !ruby/object:Gem::Requirement
237
+ none: false
212
238
  requirements:
213
239
  - - ! '>='
214
240
  - !ruby/object:Gem::Version
@@ -216,6 +242,7 @@ dependencies:
216
242
  type: :development
217
243
  prerelease: false
218
244
  version_requirements: !ruby/object:Gem::Requirement
245
+ none: false
219
246
  requirements:
220
247
  - - ! '>='
221
248
  - !ruby/object:Gem::Version
@@ -223,6 +250,7 @@ dependencies:
223
250
  - !ruby/object:Gem::Dependency
224
251
  name: rake
225
252
  requirement: !ruby/object:Gem::Requirement
253
+ none: false
226
254
  requirements:
227
255
  - - ! '>='
228
256
  - !ruby/object:Gem::Version
@@ -230,6 +258,7 @@ dependencies:
230
258
  type: :development
231
259
  prerelease: false
232
260
  version_requirements: !ruby/object:Gem::Requirement
261
+ none: false
233
262
  requirements:
234
263
  - - ! '>='
235
264
  - !ruby/object:Gem::Version
@@ -237,6 +266,7 @@ dependencies:
237
266
  - !ruby/object:Gem::Dependency
238
267
  name: mocha
239
268
  requirement: !ruby/object:Gem::Requirement
269
+ none: false
240
270
  requirements:
241
271
  - - ! '>='
242
272
  - !ruby/object:Gem::Version
@@ -244,6 +274,23 @@ dependencies:
244
274
  type: :development
245
275
  prerelease: false
246
276
  version_requirements: !ruby/object:Gem::Requirement
277
+ none: false
278
+ requirements:
279
+ - - ! '>='
280
+ - !ruby/object:Gem::Version
281
+ version: '0'
282
+ - !ruby/object:Gem::Dependency
283
+ name: gem-release
284
+ requirement: !ruby/object:Gem::Requirement
285
+ none: false
286
+ requirements:
287
+ - - ! '>='
288
+ - !ruby/object:Gem::Version
289
+ version: '0'
290
+ type: :development
291
+ prerelease: false
292
+ version_requirements: !ruby/object:Gem::Requirement
293
+ none: false
247
294
  requirements:
248
295
  - - ! '>='
249
296
  - !ruby/object:Gem::Version
@@ -373,6 +420,7 @@ files:
373
420
  - test/simplejs_test.rb
374
421
  - test/sqwish_test.rb
375
422
  - test/stylus_test.rb
423
+ - test/subpath_test.rb
376
424
  - test/template_cache_test.rb
377
425
  - test/test_helper.rb
378
426
  - test/tilt_test.rb
@@ -381,25 +429,26 @@ files:
381
429
  - test/yui_test.rb
382
430
  homepage: http://github.com/rstacruz/sinatra-assetpack
383
431
  licenses: []
384
- metadata: {}
385
432
  post_install_message:
386
433
  rdoc_options: []
387
434
  require_paths:
388
435
  - lib
389
436
  required_ruby_version: !ruby/object:Gem::Requirement
437
+ none: false
390
438
  requirements:
391
439
  - - ! '>='
392
440
  - !ruby/object:Gem::Version
393
441
  version: '0'
394
442
  required_rubygems_version: !ruby/object:Gem::Requirement
443
+ none: false
395
444
  requirements:
396
445
  - - ! '>='
397
446
  - !ruby/object:Gem::Version
398
447
  version: '0'
399
448
  requirements: []
400
449
  rubyforge_project:
401
- rubygems_version: 2.0.3
450
+ rubygems_version: 1.8.25
402
451
  signing_key:
403
- specification_version: 4
452
+ specification_version: 3
404
453
  summary: Asset packager for Sinatra.
405
454
  test_files: []
metadata.gz.sig CHANGED
Binary file
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MDRhYTE2ZjQ4MGY5MGJhYmY0Yzk4MTBkM2NjN2JkZmQ1MTU5OWUyNg==
5
- data.tar.gz: !binary |-
6
- MmYyOTkxOGViYmM2NjkzMzQ1Y2FhYzg1NGE3ODQ1NTliZTJhZjgwZg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- ZjllMTAxYzA2MTg3ODMwZjE4MzBkNGYyMmY5ZGE1NzRkMDQ4ZGQ0NWRiNmQx
10
- ZDhkN2FmYTQ1Njk4MDE3NmRjZjQ2NjgzZjU0NTUyNGZlZWFkMjU2ZWU0ZWQ1
11
- NmNjMzA5OTlkYTU1ZmMzZDllNDk0YjQzN2RlNjhlYWUyNmY1OWI=
12
- data.tar.gz: !binary |-
13
- MjYxYTAxYTkzZDZhNzcxMDYzNTk5M2ZjODk2YzI5Y2ZmYTk5MDcxOGVmNGY4
14
- MjViNmM3MzRkYzY4M2RmNzM2MDAyMjJlN2M1NDNiMTZkMWNjMWI4ODAwMmQ4
15
- ZWY3NjNlYWJmNDM3MmVlYzQ4OTkwOGQyZTUxOGM5M2ZjNjg5MzQ=
@@ -1,2 +0,0 @@
1
- T���^�@W���u<�Q�)���=�Mѧ S�*5�����9~����l��&�E�l�(�KPh?�1�idz�w)t޽=�g?%�R�4pY����rB��K�K����SW��Cp�g�soTiv��� ;I񯣯 j��J���=qOtf;�F^8%�1�7w� jBKI�ρ�Q�f�hj�T�������\E�̯]�!��+(�g}�ӌ�
2
- �D��Ʋ�y�����پ�C�7��j��m�E�:�z�i�����g�D�s.u��