zassets 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -1
- data/Gemfile +2 -8
- data/lib/zassets/config.rb +16 -14
- data/lib/zassets/server.rb +3 -3
- data/lib/zassets/sprockets_env.rb +1 -1
- data/lib/zassets/version.rb +1 -1
- data/spec/zassets/config_spec.rb +1 -2
- data/zassets.gemspec +11 -11
- metadata +32 -19
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -1,11 +1,5 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
|
6
|
-
gem 'guard', '~> 1.4'
|
7
|
-
gem 'guard-rspec', '~> 2.0'
|
8
|
-
if RbConfig::CONFIG['target_os'] =~ /linux/i
|
9
|
-
gem 'rb-inotify', '~> 0.8'
|
10
|
-
end
|
11
|
-
end
|
5
|
+
eval File.read('Gemfile-custom.rb') if File.exist?('Gemfile-custom.rb')
|
data/lib/zassets/config.rb
CHANGED
@@ -2,6 +2,20 @@ require 'yaml'
|
|
2
2
|
|
3
3
|
module ZAssets
|
4
4
|
class Config
|
5
|
+
DEFAULT_OPTIONS = {
|
6
|
+
verbose: false,
|
7
|
+
host: '::1',
|
8
|
+
port: 9292,
|
9
|
+
server: :puma,
|
10
|
+
plugins: [],
|
11
|
+
engines: {},
|
12
|
+
base_url: '/assets',
|
13
|
+
paths: [],
|
14
|
+
public_path: 'public',
|
15
|
+
compile_path: 'public/assets',
|
16
|
+
compile: []
|
17
|
+
}
|
18
|
+
|
5
19
|
def initialize(options = {})
|
6
20
|
o = default_options
|
7
21
|
o.merge! load_options(options[:config_file]) if options[:config_file]
|
@@ -11,19 +25,7 @@ module ZAssets
|
|
11
25
|
end
|
12
26
|
|
13
27
|
def default_options
|
14
|
-
|
15
|
-
:verbose => false,
|
16
|
-
:host => '::1',
|
17
|
-
:port => 9292,
|
18
|
-
:server => :puma,
|
19
|
-
:plugins => [],
|
20
|
-
:engines => {},
|
21
|
-
:base_url => '/assets',
|
22
|
-
:paths => [],
|
23
|
-
:public_path => 'public',
|
24
|
-
:compile_path => 'public/assets',
|
25
|
-
:compile => []
|
26
|
-
}
|
28
|
+
DEFAULT_OPTIONS.dup
|
27
29
|
end
|
28
30
|
|
29
31
|
def load_options(filepath)
|
@@ -59,7 +61,7 @@ module ZAssets
|
|
59
61
|
require "zassets-plugins-#{plugin}"
|
60
62
|
end
|
61
63
|
|
62
|
-
|
64
|
+
::ZAssets.const_defined? :Plugins
|
63
65
|
end
|
64
66
|
end
|
65
67
|
end
|
data/lib/zassets/server.rb
CHANGED
data/lib/zassets/version.rb
CHANGED
data/spec/zassets/config_spec.rb
CHANGED
data/zassets.gemspec
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH << lib unless $LOAD_PATH.include? lib
|
2
3
|
require 'zassets/version'
|
3
4
|
|
4
5
|
Gem::Specification.new do |s|
|
@@ -13,16 +14,15 @@ Gem::Specification.new do |s|
|
|
13
14
|
s.author = 'Thibault Jouan'
|
14
15
|
s.email = 'tj@a13.fr'
|
15
16
|
|
16
|
-
s.files = `git ls-files`.split
|
17
|
-
s.
|
17
|
+
s.files = `git ls-files`.split $/
|
18
|
+
s.test_files = s.files.grep /\Aspec\//
|
19
|
+
s.executables = s.files.grep(/\Abin\//) { |f| File.basename(f) }
|
18
20
|
|
19
|
-
s.add_dependency 'sprockets',
|
21
|
+
s.add_dependency 'sprockets', '~> 2.10.0'
|
22
|
+
s.add_dependency 'puma', '~> 2.4.1'
|
23
|
+
s.add_dependency 'sass', '~> 3.2.10'
|
24
|
+
s.add_dependency 'execjs', '~> 1.4.0'
|
25
|
+
s.add_dependency 'coffee-script', '~> 2.2.0'
|
20
26
|
|
21
|
-
s.
|
22
|
-
|
23
|
-
s.add_dependency 'therubyracer', '~> 0.11'
|
24
|
-
s.add_dependency 'libv8', '~> 3.3'
|
25
|
-
s.add_dependency 'coffee-script', '2.2.0'
|
26
|
-
|
27
|
-
s.add_development_dependency 'rspec', '~> 2.11'
|
27
|
+
s.add_development_dependency 'rspec', '~> 2.14.1'
|
28
28
|
end
|
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.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -16,17 +16,17 @@ dependencies:
|
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.
|
21
|
+
version: 2.10.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.
|
29
|
+
version: 2.10.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: puma
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: 2.4.1
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,15 +42,15 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 2.4.1
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
47
|
+
name: sass
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
51
51
|
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: 3.2.10
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,15 +58,15 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 3.2.10
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
63
|
+
name: execjs
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
67
|
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 1.4.0
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -74,13 +74,13 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: 1.4.0
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: coffee-script
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
82
82
|
requirements:
|
83
|
-
- -
|
83
|
+
- - ~>
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: 2.2.0
|
86
86
|
type: :runtime
|
@@ -88,7 +88,7 @@ dependencies:
|
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
|
-
- -
|
91
|
+
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: 2.2.0
|
94
94
|
- !ruby/object:Gem::Dependency
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - ~>
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version:
|
101
|
+
version: 2.14.1
|
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: 2.14.1
|
110
110
|
description: ! 'Standalone asset pipeline based on sprockets.
|
111
111
|
|
112
112
|
'
|
@@ -168,6 +168,19 @@ rubyforge_project:
|
|
168
168
|
rubygems_version: 1.8.23
|
169
169
|
signing_key:
|
170
170
|
specification_version: 3
|
171
|
-
summary: zassets-0.2.
|
172
|
-
test_files:
|
171
|
+
summary: zassets-0.2.1
|
172
|
+
test_files:
|
173
|
+
- spec/fixtures/assets/app.js
|
174
|
+
- spec/fixtures/config/zassets.yaml
|
175
|
+
- spec/fixtures/public/hello.txt
|
176
|
+
- spec/fixtures/public/index.html
|
177
|
+
- spec/spec_helper.rb
|
178
|
+
- spec/support/fixtures_helpers.rb
|
179
|
+
- spec/zassets-plugins-dummy.rb
|
180
|
+
- spec/zassets/cli_spec.rb
|
181
|
+
- spec/zassets/compiler_spec.rb
|
182
|
+
- spec/zassets/config_spec.rb
|
183
|
+
- spec/zassets/memory_file_spec.rb
|
184
|
+
- spec/zassets/server_spec.rb
|
185
|
+
- spec/zassets/sprockets_env_spec.rb
|
173
186
|
has_rdoc:
|