zassets 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/features/step_definitions/builder_steps.rb +1 -1
- data/lib/zassets/version.rb +1 -1
- data/spec/zassets/builder_spec.rb +9 -11
- data/spec/zassets/cli_spec.rb +27 -26
- data/spec/zassets/config_spec.rb +24 -23
- data/spec/zassets/memory_file_spec.rb +33 -31
- data/spec/zassets/server_spec.rb +28 -25
- data/spec/zassets/sprockets_env_spec.rb +9 -5
- data/zassets.gemspec +2 -4
- metadata +6 -8
data/lib/zassets/version.rb
CHANGED
@@ -8,14 +8,14 @@ module ZAssets
|
|
8
8
|
describe '#build' do
|
9
9
|
it 'compiles the manifest' do
|
10
10
|
builder.manifest = double('manifest')
|
11
|
-
builder.manifest.
|
11
|
+
expect(builder.manifest).to receive :compile
|
12
12
|
builder.build
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
16
|
describe '#manifest' do
|
17
17
|
it 'builds a sprockets manifest' do
|
18
|
-
Sprockets::Manifest.
|
18
|
+
expect(Sprockets::Manifest).to receive(:new).with(
|
19
19
|
builder.environment,
|
20
20
|
builder.manifest_path
|
21
21
|
)
|
@@ -24,30 +24,28 @@ module ZAssets
|
|
24
24
|
|
25
25
|
it 'returns the sprockets manifest' do
|
26
26
|
manifest = double('manifest')
|
27
|
-
Sprockets::Manifest.
|
28
|
-
builder.manifest.
|
27
|
+
allow(Sprockets::Manifest).to receive(:new) { manifest }
|
28
|
+
expect(builder.manifest).to be manifest
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
32
|
describe '#manifest_path' do
|
33
33
|
it 'returns the manifest file path' do
|
34
|
-
|
35
|
-
|
36
|
-
'manifest.json'
|
37
|
-
)
|
34
|
+
expected_path = File.join(config[:build_path], 'manifest.json')
|
35
|
+
expect(builder.manifest_path).to eq expected_path
|
38
36
|
end
|
39
37
|
end
|
40
38
|
|
41
39
|
describe '#environment' do
|
42
40
|
it 'builds a sprockets env' do
|
43
|
-
SprocketsEnv.
|
41
|
+
expect(SprocketsEnv).to receive(:new).with(config)
|
44
42
|
builder.environment
|
45
43
|
end
|
46
44
|
|
47
45
|
it 'returns the sprockets env' do
|
48
46
|
environment = double('environment')
|
49
|
-
SprocketsEnv.
|
50
|
-
builder.environment.
|
47
|
+
allow(SprocketsEnv).to receive(:new) { environment }
|
48
|
+
expect(builder.environment).to be environment
|
51
49
|
end
|
52
50
|
end
|
53
51
|
end
|
data/spec/zassets/cli_spec.rb
CHANGED
@@ -8,19 +8,19 @@ module ZAssets
|
|
8
8
|
describe '#initialize' do
|
9
9
|
context 'action arguments parsing' do
|
10
10
|
it 'parses the action' do
|
11
|
-
cli.action.
|
11
|
+
expect(cli.action).to eq :serve
|
12
12
|
end
|
13
13
|
|
14
14
|
context 'when action is not provided' do
|
15
15
|
let(:args) { [] }
|
16
16
|
|
17
17
|
it 'defaults to build' do
|
18
|
-
cli.action.
|
18
|
+
expect(cli.action).to eq :build
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
context 'option arguments parsing
|
23
|
+
context 'option arguments parsing' do
|
24
24
|
def with_option(option, value = nil)
|
25
25
|
if value
|
26
26
|
CLI.new [option, value, *args]
|
@@ -30,23 +30,24 @@ module ZAssets
|
|
30
30
|
end
|
31
31
|
|
32
32
|
it 'parses the -v option' do
|
33
|
-
with_option('-v').options[:verbose].
|
33
|
+
expect(with_option('-v').options[:verbose]).to be true
|
34
34
|
end
|
35
35
|
|
36
36
|
it 'parses the -c option' do
|
37
|
-
with_option('-c', 'config').options[:config_file]
|
37
|
+
expect(with_option('-c', 'config').options[:config_file])
|
38
|
+
.to eq 'config'
|
38
39
|
end
|
39
40
|
|
40
41
|
it 'parses the -o option' do
|
41
|
-
with_option('-o', '::0').options[:host].
|
42
|
+
expect(with_option('-o', '::0').options[:host]).to eq '::0'
|
42
43
|
end
|
43
44
|
|
44
45
|
it 'parses the -p option' do
|
45
|
-
with_option('-p', '9393').options[:port].
|
46
|
+
expect(with_option('-p', '9393').options[:port]).to eq '9393'
|
46
47
|
end
|
47
48
|
|
48
49
|
it 'parses the -s option' do
|
49
|
-
with_option('-s', 'thin').options[:server].
|
50
|
+
expect(with_option('-s', 'thin').options[:server]).to eq 'thin'
|
50
51
|
end
|
51
52
|
|
52
53
|
context '-h option' do
|
@@ -59,11 +60,11 @@ module ZAssets
|
|
59
60
|
cli
|
60
61
|
rescue SystemExit
|
61
62
|
end
|
62
|
-
output.string.
|
63
|
+
expect(output.string).to match /\AUsage: /
|
63
64
|
end
|
64
65
|
|
65
66
|
it 'exits' do
|
66
|
-
|
67
|
+
expect { cli }.to raise_error SystemExit
|
67
68
|
end
|
68
69
|
end
|
69
70
|
|
@@ -77,11 +78,11 @@ module ZAssets
|
|
77
78
|
cli
|
78
79
|
rescue SystemExit
|
79
80
|
end
|
80
|
-
output.string.chomp.
|
81
|
+
expect(output.string.chomp).to eq VERSION
|
81
82
|
end
|
82
83
|
|
83
84
|
it 'exits' do
|
84
|
-
|
85
|
+
expect { cli }.to raise_error SystemExit
|
85
86
|
end
|
86
87
|
end
|
87
88
|
end
|
@@ -89,20 +90,20 @@ module ZAssets
|
|
89
90
|
|
90
91
|
describe '#action' do
|
91
92
|
it 'return the current action' do
|
92
|
-
cli.action.
|
93
|
+
expect(cli.action).to eq args.last.to_sym
|
93
94
|
end
|
94
95
|
end
|
95
96
|
|
96
97
|
describe '#config' do
|
97
98
|
it 'builds a config' do
|
98
|
-
Config.
|
99
|
+
expect(Config).to receive(:new).with(cli.options)
|
99
100
|
cli.config
|
100
101
|
end
|
101
102
|
|
102
103
|
it 'returns the config' do
|
103
104
|
config = double('config')
|
104
|
-
Config.
|
105
|
-
cli.config.
|
105
|
+
allow(Config).to receive(:new) { config }
|
106
|
+
expect(cli.config).to be config
|
106
107
|
end
|
107
108
|
end
|
108
109
|
|
@@ -110,8 +111,8 @@ module ZAssets
|
|
110
111
|
context 'serve action' do
|
111
112
|
it 'runs the server' do
|
112
113
|
server = double('server')
|
113
|
-
cli.
|
114
|
-
server.
|
114
|
+
allow(cli).to receive(:server) { server }
|
115
|
+
expect(server).to receive :run
|
115
116
|
cli.run
|
116
117
|
end
|
117
118
|
end
|
@@ -121,8 +122,8 @@ module ZAssets
|
|
121
122
|
|
122
123
|
it 'runs the builder' do
|
123
124
|
builder = double('builder')
|
124
|
-
cli.
|
125
|
-
builder.
|
125
|
+
allow(cli).to receive(:builder) { builder }
|
126
|
+
expect(builder).to receive :build
|
126
127
|
cli.run
|
127
128
|
end
|
128
129
|
end
|
@@ -130,27 +131,27 @@ module ZAssets
|
|
130
131
|
|
131
132
|
describe '#builder' do
|
132
133
|
it 'builds a builder' do
|
133
|
-
Builder.
|
134
|
+
expect(Builder).to receive(:new).with(cli.config)
|
134
135
|
cli.builder
|
135
136
|
end
|
136
137
|
|
137
138
|
it 'returns the builder' do
|
138
139
|
builder = double('builder')
|
139
|
-
Builder.
|
140
|
-
cli.builder.
|
140
|
+
allow(Builder).to receive(:new) { builder }
|
141
|
+
expect(cli.builder).to be builder
|
141
142
|
end
|
142
143
|
end
|
143
144
|
|
144
145
|
describe '#server' do
|
145
146
|
it 'builds a server' do
|
146
|
-
Server.
|
147
|
+
expect(Server).to receive(:new).with(cli.config)
|
147
148
|
cli.server
|
148
149
|
end
|
149
150
|
|
150
151
|
it 'returns the server' do
|
151
152
|
server = double('server')
|
152
|
-
Server.
|
153
|
-
cli.server.
|
153
|
+
allow(Server).to receive(:new) { server }
|
154
|
+
expect(cli.server).to be server
|
154
155
|
end
|
155
156
|
end
|
156
157
|
end
|
data/spec/zassets/config_spec.rb
CHANGED
@@ -9,18 +9,18 @@ module ZAssets
|
|
9
9
|
|
10
10
|
describe '#initialize' do
|
11
11
|
it 'assigns #default_options to @options' do
|
12
|
-
config.instance_eval { @options }.
|
12
|
+
expect(config.instance_eval { @options }).to eq config.default_options
|
13
13
|
end
|
14
14
|
|
15
15
|
it 'registers plugins' do
|
16
|
-
Config.
|
16
|
+
expect_any_instance_of(Config).to receive :register_plugins!
|
17
17
|
Config.new
|
18
18
|
end
|
19
19
|
|
20
20
|
context 'with a non-empty option hash' do
|
21
21
|
it 'merges the option hash' do
|
22
22
|
config = Config.new(verbose: true)
|
23
|
-
config[:verbose].
|
23
|
+
expect(config[:verbose]).to be true
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
@@ -28,60 +28,60 @@ module ZAssets
|
|
28
28
|
subject(:config) { Config.new(config_file: config_file) }
|
29
29
|
|
30
30
|
it 'merges the config file options in @options' do
|
31
|
-
config[:file_option].
|
31
|
+
expect(config[:file_option]).to eq :file_value
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'merges the config file options before argument options' do
|
35
35
|
config = Config.new(file_option: :argument_value)
|
36
|
-
config[:file_option].
|
36
|
+
expect(config[:file_option]).to eq :argument_value
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
41
|
describe '#default_options' do
|
42
42
|
it 'sets verbose to false' do
|
43
|
-
config.default_options[:verbose].
|
43
|
+
expect(config.default_options[:verbose]).to be false
|
44
44
|
end
|
45
45
|
|
46
46
|
it 'sets host to ::1' do
|
47
|
-
config.default_options[:host].
|
47
|
+
expect(config.default_options[:host]).to eq '::1'
|
48
48
|
end
|
49
49
|
|
50
50
|
it 'sets port to 9292' do
|
51
|
-
config.default_options[:port].
|
51
|
+
expect(config.default_options[:port]).to eq 9292
|
52
52
|
end
|
53
53
|
|
54
54
|
it 'sets server to puma' do
|
55
|
-
config.default_options[:server].
|
55
|
+
expect(config.default_options[:server]).to eq :puma
|
56
56
|
end
|
57
57
|
|
58
58
|
it 'sets base_url to /assets' do
|
59
|
-
config.default_options[:base_url].
|
59
|
+
expect(config.default_options[:base_url]).to eq '/assets'
|
60
60
|
end
|
61
61
|
|
62
62
|
it 'sets paths to app directory' do
|
63
|
-
config.default_options[:paths].
|
63
|
+
expect(config.default_options[:paths]).to eq ['app']
|
64
64
|
end
|
65
65
|
|
66
66
|
it 'sets public_path to public directory' do
|
67
|
-
config.default_options[:public_path].
|
67
|
+
expect(config.default_options[:public_path]).to eq 'public'
|
68
68
|
end
|
69
69
|
|
70
70
|
it 'sets build_path to public/assets directory' do
|
71
|
-
config.default_options[:build_path].
|
71
|
+
expect(config.default_options[:build_path]).to eq 'public/assets'
|
72
72
|
end
|
73
73
|
|
74
74
|
it 'sets build empty' do
|
75
|
-
config.default_options[:build].
|
75
|
+
expect(config.default_options[:build]).to eq []
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
79
|
describe '#load_options' do
|
80
80
|
context 'when path is given as argument' do
|
81
81
|
it 'loads symbolized options from YAML file' do
|
82
|
-
config.load_options(config_file).
|
82
|
+
expect(config.load_options(config_file)).to eq({
|
83
83
|
file_option: :file_value
|
84
|
-
}
|
84
|
+
})
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
@@ -96,14 +96,14 @@ module ZAssets
|
|
96
96
|
describe '#default_config_file?' do
|
97
97
|
context 'when file does not exist' do
|
98
98
|
it 'returns false' do
|
99
|
-
config.default_config_file
|
99
|
+
expect(config.default_config_file?).to be false
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
103
103
|
context 'when file exists' do
|
104
104
|
it 'returns true' do
|
105
105
|
within_fixture_path do
|
106
|
-
config.default_config_file
|
106
|
+
expect(config.default_config_file?).to be true
|
107
107
|
end
|
108
108
|
end
|
109
109
|
end
|
@@ -114,24 +114,25 @@ module ZAssets
|
|
114
114
|
|
115
115
|
it 'loads plugins' do
|
116
116
|
config
|
117
|
-
Plugins::Dummy.
|
117
|
+
expect(Plugins::Dummy).to be
|
118
118
|
end
|
119
119
|
|
120
120
|
it 'registers them with current config' do
|
121
|
-
config[:dummy_plugin].
|
122
|
-
config = Config.new(plugins: ['dummy'])
|
121
|
+
expect(config[:dummy_plugin]).to eq :registered
|
123
122
|
end
|
124
123
|
end
|
125
124
|
|
126
125
|
describe '#[]' do
|
127
126
|
it 'returns an @options value from its key' do
|
128
127
|
config.instance_eval { @options[:foo] = :bar }
|
129
|
-
config[:foo].
|
128
|
+
expect(config[:foo]).to eq :bar
|
130
129
|
end
|
130
|
+
end
|
131
131
|
|
132
|
+
describe '#[]=' do
|
132
133
|
it 'stores a value under given key' do
|
133
134
|
config[:foo] = :bar
|
134
|
-
config[:foo].
|
135
|
+
expect(config[:foo]).to eq :bar
|
135
136
|
end
|
136
137
|
end
|
137
138
|
end
|
@@ -1,44 +1,46 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
3
|
+
module ZAssets
|
4
|
+
describe MemoryFile do
|
5
|
+
include FixturesHelpers
|
6
|
+
|
7
|
+
let(:file_path) { fixture_path_for('public/index.html') }
|
8
|
+
let(:file) { File.new file_path }
|
9
|
+
subject(:memfile) { MemoryFile.new(file) }
|
10
|
+
|
11
|
+
describe '#headers' do
|
12
|
+
it 'sets the content type to text/html' do
|
13
|
+
expect(memfile.headers['Content-Type']).to eq 'text/html'
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'sets the content length to the file length' do
|
17
|
+
expect(memfile.headers['Content-Length']).to eq file.size.to_s
|
18
|
+
end
|
17
19
|
end
|
18
|
-
end
|
19
20
|
|
20
|
-
|
21
|
-
|
22
|
-
|
21
|
+
describe '#body' do
|
22
|
+
it 'returns the file content' do
|
23
|
+
expect(memfile.body).to eq File.read(file_path)
|
24
|
+
end
|
23
25
|
end
|
24
|
-
end
|
25
26
|
|
26
|
-
|
27
|
-
|
27
|
+
describe '#call' do
|
28
|
+
require 'rack'
|
28
29
|
|
29
|
-
|
30
|
-
|
30
|
+
let(:app) { Rack::MockRequest.new(memfile) }
|
31
|
+
let(:response) { app.get '/' }
|
31
32
|
|
32
|
-
|
33
|
-
|
34
|
-
|
33
|
+
it 'returns a successful response' do
|
34
|
+
expect(response).to be_ok
|
35
|
+
end
|
35
36
|
|
36
|
-
|
37
|
-
|
38
|
-
|
37
|
+
it 'sets required headers' do
|
38
|
+
expect(response.headers).to eq memfile.headers
|
39
|
+
end
|
39
40
|
|
40
|
-
|
41
|
-
|
41
|
+
it 'returns the body' do
|
42
|
+
expect(response.body).to eq memfile.body
|
43
|
+
end
|
42
44
|
end
|
43
45
|
end
|
44
46
|
end
|
data/spec/zassets/server_spec.rb
CHANGED
@@ -9,35 +9,35 @@ module ZAssets
|
|
9
9
|
let(:handler) { double 'handler' }
|
10
10
|
|
11
11
|
it 'runs the rack app' do
|
12
|
-
server.
|
13
|
-
handler.
|
12
|
+
allow(server).to receive(:handler) { handler }
|
13
|
+
expect(handler).to receive(:run).with(server.app, server.options)
|
14
14
|
server.run
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
18
18
|
describe '#handler' do
|
19
19
|
it 'returns the configured rack handler' do
|
20
|
-
server.handler.
|
20
|
+
expect(server.handler).to eq Rack::Handler::Puma
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
24
|
describe '#options' do
|
25
25
|
it 'sets rack environment to development' do
|
26
|
-
server.options[:environment].
|
26
|
+
expect(server.options[:environment]).to eq :development
|
27
27
|
end
|
28
28
|
|
29
29
|
it 'sets rack handler host to configured host' do
|
30
|
-
server.options[:Host].
|
30
|
+
expect(server.options[:Host]).to eq config[:host]
|
31
31
|
end
|
32
32
|
|
33
33
|
it 'sets rack handler port to configured port' do
|
34
|
-
server.options[:Port].
|
34
|
+
expect(server.options[:Port]).to eq config[:port]
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
38
|
describe '#app' do
|
39
39
|
it 'returns a rack application' do
|
40
|
-
server.app.
|
40
|
+
expect(server.app).to respond_to :call
|
41
41
|
end
|
42
42
|
|
43
43
|
it 'builds the rack app once' do
|
@@ -45,45 +45,48 @@ module ZAssets
|
|
45
45
|
# built on each request. We dont want that so we need to either build
|
46
46
|
# using Rack::Builder.app or call #to_app on the returned instance. We
|
47
47
|
# can test if it was done by checking #to_app method absence.
|
48
|
-
server.app.
|
48
|
+
expect(server.app).not_to respond_to :to_app
|
49
49
|
end
|
50
50
|
|
51
51
|
context 'Rack application' do
|
52
52
|
include FixturesHelpers
|
53
53
|
|
54
|
-
let(:app)
|
54
|
+
let(:app) { Rack::MockRequest.new(server.app) }
|
55
|
+
let(:path) { '/' }
|
56
|
+
let(:response) { app.get path }
|
55
57
|
|
56
58
|
it 'logs queries' do
|
57
|
-
app.get('/').errors.
|
59
|
+
expect(app.get('/').errors).to match(/GET \/.+404.+/)
|
58
60
|
end
|
59
61
|
|
60
62
|
it 'shows exceptions' do
|
61
|
-
SprocketsEnv.
|
63
|
+
allow_any_instance_of(SprocketsEnv).to receive(:call) { raise RuntimeError }
|
62
64
|
response = app.get(config[:base_url])
|
63
|
-
response.
|
64
|
-
response.
|
65
|
+
expect(response).to be_server_error
|
66
|
+
expect(response).to match /RuntimeError/
|
65
67
|
end
|
66
68
|
|
67
69
|
context 'assets mount point' do
|
68
|
-
let(:
|
70
|
+
let(:path) { [config[:base_url], 'app.js'].join '/' }
|
71
|
+
let(:config) { Config.new(paths: [fixture_path_for('assets')]) }
|
69
72
|
|
70
73
|
it 'maps the sprockets env' do
|
71
74
|
within_fixture_path do
|
72
|
-
response
|
73
|
-
response.
|
74
|
-
response.
|
75
|
-
response.body.should == "console.log('hello!');\n"
|
75
|
+
expect(response).to be_ok
|
76
|
+
expect(response.content_type).to eq 'application/javascript'
|
77
|
+
expect(response.body).to eq "console.log('hello!');\n"
|
76
78
|
end
|
77
79
|
end
|
78
80
|
end
|
79
81
|
|
80
82
|
context 'root mount point' do
|
83
|
+
let(:path) { '/hello.txt' }
|
84
|
+
|
81
85
|
it 'maps the static file handler' do
|
82
86
|
within_fixture_path do
|
83
|
-
response
|
84
|
-
response.
|
85
|
-
response.
|
86
|
-
response.body.should == "hello!\n"
|
87
|
+
expect(response).to be_ok
|
88
|
+
expect(response.content_type).to eq 'text/plain'
|
89
|
+
expect(response.body).to eq "hello!\n"
|
87
90
|
end
|
88
91
|
end
|
89
92
|
|
@@ -93,9 +96,9 @@ module ZAssets
|
|
93
96
|
it 'serves the public file' do
|
94
97
|
within_fixture_path do
|
95
98
|
response = app.get('/')
|
96
|
-
response.
|
97
|
-
response.content_type.
|
98
|
-
response.body.
|
99
|
+
expect(response).to be_ok
|
100
|
+
expect(response.content_type).to eq 'text/html'
|
101
|
+
expect(response.body).to eq "hello HTML!\n"
|
99
102
|
end
|
100
103
|
end
|
101
104
|
end
|
@@ -7,14 +7,14 @@ module ZAssets
|
|
7
7
|
|
8
8
|
describe 'working directory' do
|
9
9
|
it 'initializes with current working directory' do
|
10
|
-
env.root.
|
10
|
+
expect(env.root).to eq Dir.pwd
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
14
|
describe 'logger level' do
|
15
15
|
context 'by default' do
|
16
16
|
it 'defaults to fatal' do
|
17
|
-
env.logger.level.
|
17
|
+
expect(env.logger.level).to eq Logger::FATAL
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
@@ -22,7 +22,7 @@ module ZAssets
|
|
22
22
|
let(:config) { Config.new(verbose: true)}
|
23
23
|
|
24
24
|
it 'is set to debug' do
|
25
|
-
env.logger.level.
|
25
|
+
expect(env.logger.level).to eq Logger::DEBUG
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -32,8 +32,12 @@ module ZAssets
|
|
32
32
|
let(:config) { Config.new(paths: paths) }
|
33
33
|
|
34
34
|
it 'registers the configured search paths' do
|
35
|
-
|
36
|
-
|
35
|
+
# FIXME: We should not need to check against absolute paths (must never
|
36
|
+
# be needed or used).
|
37
|
+
expect(env.paths).to match_array [
|
38
|
+
File.join(env.root, paths[0]),
|
39
|
+
File.join(env.root, paths[1])
|
40
|
+
]
|
37
41
|
end
|
38
42
|
end
|
39
43
|
end
|
data/zassets.gemspec
CHANGED
@@ -6,9 +6,7 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = 'zassets'
|
7
7
|
s.version = ZAssets::VERSION
|
8
8
|
s.summary = "zassets-#{ZAssets::VERSION}"
|
9
|
-
s.description =
|
10
|
-
Standalone asset pipeline based on sprockets.
|
11
|
-
eoh
|
9
|
+
s.description = 'Assets server and builder'
|
12
10
|
s.homepage = 'https://rubygems.org/gems/zassets'
|
13
11
|
|
14
12
|
s.author = 'Thibault Jouan'
|
@@ -24,7 +22,7 @@ Gem::Specification.new do |s|
|
|
24
22
|
s.add_dependency 'execjs', '~> 2.0.2'
|
25
23
|
s.add_dependency 'coffee-script', '~> 2.2.0'
|
26
24
|
|
27
|
-
s.add_development_dependency 'rspec', '~>
|
25
|
+
s.add_development_dependency 'rspec', '~> 3.0.0.beta1'
|
28
26
|
s.add_development_dependency 'cucumber', '~> 1.3.10'
|
29
27
|
s.add_development_dependency 'aruba', '~> 0.5.3'
|
30
28
|
s.add_development_dependency 'httparty', '~> 0.12.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zassets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
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-12-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sprockets
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - ~>
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
101
|
+
version: 3.0.0.beta1
|
102
102
|
type: :development
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,7 +106,7 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
109
|
+
version: 3.0.0.beta1
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: cucumber
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,9 +171,7 @@ dependencies:
|
|
171
171
|
- - ! '>='
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
|
-
description:
|
175
|
-
|
176
|
-
'
|
174
|
+
description: Assets server and builder
|
177
175
|
email: tj@a13.fr
|
178
176
|
executables:
|
179
177
|
- zassets
|
@@ -255,7 +253,7 @@ rubyforge_project:
|
|
255
253
|
rubygems_version: 1.8.23
|
256
254
|
signing_key:
|
257
255
|
specification_version: 3
|
258
|
-
summary: zassets-0.2.
|
256
|
+
summary: zassets-0.2.6
|
259
257
|
test_files:
|
260
258
|
- spec/fixtures/assets/app.js
|
261
259
|
- spec/fixtures/config/zassets.yaml
|