sinatra-asset-pipeline 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2386477da3c066a19daff9bd2714c3b73bb5018
4
- data.tar.gz: f1933b3d0b2f24f2b8d033ee0ca594680c864961
3
+ metadata.gz: f28938782d4357ba0446717d866e44c16c78d9b1
4
+ data.tar.gz: 08f3931990e47391f5aad938287ef52cae85a48c
5
5
  SHA512:
6
- metadata.gz: 6a8f22ede6c90ace573774242300a87e3618b24edb6c596ab8b7b5ff02d6e0b6a3d8c29bf46badb85762033887317d26eb153419019bece90e0badd1aed75d55
7
- data.tar.gz: b5d3ee2ee5478496bd2801b8166e4071b5aff189857bfbf88872928106f0a9097115d8678a5395cf78550b91878ccbd27de30b774f1ed7f44880cd10d24082ad
6
+ metadata.gz: 781d30142f0baeb556223babeeb1f1ce5dc75edf6fea1199f0aeebf023987113849c0fe022bbaf397148b4dd227acaebd6987365d4267b31e64f40d30319d551
7
+ data.tar.gz: dd703f77cd28c83fe2b1e7f9455815ee6e1bd7f1734d99c48a351f3ffae422f9e12bf50bde62c98bc9b61c5179071c30c232d1013b51359b8d8296c2e6fa2f3f
@@ -13,9 +13,10 @@ module Sinatra
13
13
  app.set_default :assets_css_compressor, nil
14
14
  app.set_default :assets_js_compressor, nil
15
15
  app.set_default :assets_host, nil
16
+ app.set_default :assets_digest, true
17
+ app.set_default :path_prefix, nil
16
18
 
17
- app.set :static, true
18
- app.set :assets_digest, true
19
+ app.set :static, :true
19
20
  app.set :static_cache_control, [:public, :max_age => 60 * 60 * 24 * 365]
20
21
 
21
22
  app.configure do
@@ -27,12 +28,14 @@ module Sinatra
27
28
  Sprockets::Helpers.configure do |config|
28
29
  config.environment = app.sprockets
29
30
  config.digest = app.assets_digest
31
+ config.prefix = app.path_prefix unless app.path_prefix.nil?
30
32
  end
31
33
  end
32
34
 
33
35
  app.configure :staging, :production do
34
36
  Sprockets::Helpers.configure do |config|
35
37
  config.manifest = Sprockets::Manifest.new(app.sprockets, app.assets_path)
38
+ config.prefix = app.path_prefix unless app.path_prefix.nil?
36
39
  end
37
40
  end
38
41
 
@@ -43,6 +46,7 @@ module Sinatra
43
46
  Sprockets::Helpers.configure do |config|
44
47
  config.protocol = app.assets_protocol
45
48
  config.asset_host = app.assets_host unless app.assets_host.nil?
49
+ config.prefix = app.path_prefix unless app.path_prefix.nil?
46
50
  end
47
51
  end
48
52
 
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module AssetPipeline
3
- VERSION = '0.4.0'
3
+ VERSION = '0.5.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,139 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-asset-pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joakim Ekberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-19 00:00:00.000000000 Z
11
+ date: 2014-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sinatra
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sass
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: coffee-script
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: sprockets
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: sprockets-sass
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sprockets-helpers
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rack-test
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  description: An asset pipeline implementation for Sinatra based on Sprockets with
@@ -145,9 +145,9 @@ extensions: []
145
145
  extra_rdoc_files: []
146
146
  files:
147
147
  - README.md
148
+ - lib/sinatra/asset_pipeline.rb
148
149
  - lib/sinatra/asset_pipeline/task.rb
149
150
  - lib/sinatra/asset_pipeline/version.rb
150
- - lib/sinatra/asset_pipeline.rb
151
151
  homepage: https://github.com/kalasjocke/sinatra-asset-pipeline
152
152
  licenses:
153
153
  - MIT
@@ -158,17 +158,17 @@ require_paths:
158
158
  - lib
159
159
  required_ruby_version: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - '>='
161
+ - - ">="
162
162
  - !ruby/object:Gem::Version
163
163
  version: '0'
164
164
  required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - '>='
166
+ - - ">="
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project:
171
- rubygems_version: 2.0.14
171
+ rubygems_version: 2.4.1
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: An asset pipeline implementation for Sinatra.