sinatra-asset-pipeline 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d2386477da3c066a19daff9bd2714c3b73bb5018
4
+ data.tar.gz: f1933b3d0b2f24f2b8d033ee0ca594680c864961
5
+ SHA512:
6
+ metadata.gz: 6a8f22ede6c90ace573774242300a87e3618b24edb6c596ab8b7b5ff02d6e0b6a3d8c29bf46badb85762033887317d26eb153419019bece90e0badd1aed75d55
7
+ data.tar.gz: b5d3ee2ee5478496bd2801b8166e4071b5aff189857bfbf88872928106f0a9097115d8678a5395cf78550b91878ccbd27de30b774f1ed7f44880cd10d24082ad
data/README.md CHANGED
@@ -15,7 +15,7 @@ gem 'sinatra-asset-pipeline'
15
15
  Make sure to add the sinatra-asset-pipeline Rake task in your applications `Rakefile`:
16
16
 
17
17
  ```ruby
18
- require 'sinatra/asset_pipeline/task.rb'
18
+ require 'sinatra/asset_pipeline/task'
19
19
  require './app'
20
20
 
21
21
  Sinatra::AssetPipeline::Task.define! App
@@ -35,7 +35,7 @@ $ RACK_ENV=production rake assets:clean
35
35
 
36
36
  # Example
37
37
 
38
- In it's most simple form you just register the `Sinatra::AssetPipeline` Sinatra extension within your application:
38
+ In its most simple form, you just register the `Sinatra::AssetPipeline` Sinatra extension within your application:
39
39
 
40
40
  ```ruby
41
41
  Bundler.require
@@ -63,7 +63,7 @@ class App < Sinatra::Base
63
63
  set :assets_precompile, %w(app.js app.css *.png *.jpg *.svg *.eot *.ttf *.woff)
64
64
 
65
65
  # Logical paths to your assets
66
- set :assets_prefix, %w(assets, vendor/assets)
66
+ set :assets_prefix, %w(assets vendor/assets)
67
67
 
68
68
  # Use another host for serving assets
69
69
  set :assets_host, '<id>.cloudfront.net'
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module AssetPipeline
3
- VERSION = '0.3.3'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
@@ -10,8 +10,9 @@ module Sinatra
10
10
  app.set_default :assets_prefix, %w(assets vendor/assets)
11
11
  app.set_default :assets_path, -> { File.join(public_folder, "assets") }
12
12
  app.set_default :assets_protocol, :http
13
- app.set_default :assets_css_compressor, :none
14
- app.set_default :assets_js_compressor, :none
13
+ app.set_default :assets_css_compressor, nil
14
+ app.set_default :assets_js_compressor, nil
15
+ app.set_default :assets_host, nil
15
16
 
16
17
  app.set :static, true
17
18
  app.set :assets_digest, true
@@ -36,12 +37,12 @@ module Sinatra
36
37
  end
37
38
 
38
39
  app.configure :production do
39
- app.sprockets.css_compressor = app.assets_css_compressor unless app.assets_css_compressor == :none
40
- app.sprockets.js_compressor = app.assets_js_compressor unless app.assets_js_compressor == :none
40
+ app.sprockets.css_compressor = app.assets_css_compressor unless app.assets_css_compressor.nil?
41
+ app.sprockets.js_compressor = app.assets_js_compressor unless app.assets_js_compressor.nil?
41
42
 
42
43
  Sprockets::Helpers.configure do |config|
43
44
  config.protocol = app.assets_protocol
44
- config.asset_host = app.assets_host if app.respond_to? :assets_host
45
+ config.asset_host = app.assets_host unless app.assets_host.nil?
45
46
  end
46
47
  end
47
48
 
metadata CHANGED
@@ -1,158 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-asset-pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
5
- prerelease:
4
+ version: 0.4.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Joakim Ekberg
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-09 00:00:00.000000000 Z
11
+ date: 2014-05-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: sinatra
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: sass
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: coffee-script
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: sprockets
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :runtime
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: sprockets-sass
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :runtime
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: sprockets-helpers
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
- - - ! '>='
101
+ - - '>='
116
102
  - !ruby/object:Gem::Version
117
103
  version: '0'
118
104
  type: :runtime
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
- - - ! '>='
108
+ - - '>='
124
109
  - !ruby/object:Gem::Version
125
110
  version: '0'
126
111
  - !ruby/object:Gem::Dependency
127
112
  name: rspec
128
113
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
114
  requirements:
131
- - - ! '>='
115
+ - - '>='
132
116
  - !ruby/object:Gem::Version
133
117
  version: '0'
134
118
  type: :development
135
119
  prerelease: false
136
120
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
121
  requirements:
139
- - - ! '>='
122
+ - - '>='
140
123
  - !ruby/object:Gem::Version
141
124
  version: '0'
142
125
  - !ruby/object:Gem::Dependency
143
126
  name: rack-test
144
127
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
128
  requirements:
147
- - - ! '>='
129
+ - - '>='
148
130
  - !ruby/object:Gem::Version
149
131
  version: '0'
150
132
  type: :development
151
133
  prerelease: false
152
134
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
135
  requirements:
155
- - - ! '>='
136
+ - - '>='
156
137
  - !ruby/object:Gem::Version
157
138
  version: '0'
158
139
  description: An asset pipeline implementation for Sinatra based on Sprockets with
@@ -170,27 +151,25 @@ files:
170
151
  homepage: https://github.com/kalasjocke/sinatra-asset-pipeline
171
152
  licenses:
172
153
  - MIT
154
+ metadata: {}
173
155
  post_install_message:
174
156
  rdoc_options: []
175
157
  require_paths:
176
158
  - lib
177
159
  required_ruby_version: !ruby/object:Gem::Requirement
178
- none: false
179
160
  requirements:
180
- - - ! '>='
161
+ - - '>='
181
162
  - !ruby/object:Gem::Version
182
163
  version: '0'
183
164
  required_rubygems_version: !ruby/object:Gem::Requirement
184
- none: false
185
165
  requirements:
186
- - - ! '>='
166
+ - - '>='
187
167
  - !ruby/object:Gem::Version
188
168
  version: '0'
189
169
  requirements: []
190
170
  rubyforge_project:
191
- rubygems_version: 1.8.25
171
+ rubygems_version: 2.0.14
192
172
  signing_key:
193
- specification_version: 3
173
+ specification_version: 4
194
174
  summary: An asset pipeline implementation for Sinatra.
195
175
  test_files: []
196
- has_rdoc: