compass_integrator 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/data/compass_integrator/compass_default.rb +30 -30
- data/lib/compass_integrator/tasks/compass.rake +11 -12
- data/lib/compass_integrator/tasks/config.rake +9 -11
- data/lib/compass_integrator/tasks.rb +1 -1
- data/lib/compass_integrator/version.rb +1 -1
- data/lib/compass_integrator.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTI5OTkyNDc4MWMzZmYxZWJmNWNhYmUzMWE0YjZhMmQ5MWQyZjBiYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTQwODQ3NTAwYzA2YzBmNDA0NTY1YzQ4Y2U1NmY2ZWRkNjU3ODZkOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmI5ZDhkMzQ1ZDc0NTlkNWYwNGFlNWNjZjBiMDNjNDkxOTcyNjk5ZmY5ZmE5
|
10
|
+
YTZkZWI2MGNhZjQ1NjZkMmI2NGNhZTU4NmU2N2QxMjkwZTU0ZmM4NThmNDk2
|
11
|
+
MDdjYjVlNDgxNzVhYzNkMGNjZjQ0MjAxNzQ5Mzc1Nzk3MWJhMmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmYzODhiZTVlNjEzZjFiYmY3YzBmY2E3MmEzNmZhNGI0ZDVkZWE1MGEyZDVk
|
14
|
+
YWQ1YTY2YWY2MGNhNmI5MTRiMWMyMTExMDY4MmZiNzEzYzkzZjJiYzMxZDA5
|
15
|
+
NWRmMDM4OGNhYTI1Y2JkZGRhMGU5Zjc1ZDY5OGEwNzBiZWY5MzA=
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -1,47 +1,47 @@
|
|
1
1
|
require "rgbapng"
|
2
|
-
require
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
2
|
+
require "sass-globbing"
|
3
|
+
|
4
|
+
project_root_path = File.join File.dirname(__FILE__), ".."
|
5
|
+
project_ui_dir = ENV["PROJECT_UI_DIR"] || "."
|
6
|
+
project_public_dir = ENV["PROJECT_PUBLIC_DIR"] || "public"
|
7
|
+
project_sass_dir = ENV["PROJECT_SASS_DIR"] || "sass"
|
8
|
+
project_assets_http_path = ENV["PROJECT_ASSETS_HTTP_PATH"] || "/"
|
9
|
+
project_cdn_url = ENV["PROJECT_CDN_URL"] || nil
|
10
|
+
project_css_dir = ENV["PROJECT_CSS_DIR"] || "stylesheets"
|
11
|
+
project_img_dir = ENV["PROJECT_IMG_DIR"] || "images"
|
12
|
+
project_js_dir = ENV["PROJECT_JS_DIR"] || "javascripts"
|
13
|
+
project_rjs_dir = ENV["PROJECT_RJS_DIR"] || "js"
|
14
|
+
choosen_js_dir = ENV["PROJECT_ASSETS_VERBOSE"] ? project_js_dir : project_rjs_dir
|
15
|
+
project_font_dir = ENV["PROJECT_FONT_DIR"] || "fonts"
|
15
16
|
|
16
17
|
# Configuration to use when running within Sinatra
|
17
|
-
project_path = File.join
|
18
|
+
project_path = File.join project_root_path, project_ui_dir
|
18
19
|
|
19
20
|
# HTTP paths
|
20
|
-
http_path =
|
21
|
-
asset_host do
|
22
|
-
|
21
|
+
http_path = project_assets_http_path
|
22
|
+
asset_host do
|
23
|
+
project_cdn_url
|
23
24
|
end
|
24
|
-
relative_assets =
|
25
|
+
relative_assets = project_cdn_url.nil?
|
25
26
|
|
26
|
-
http_stylesheets_path = File.join http_path,
|
27
|
-
http_images_path = File.join http_path,
|
27
|
+
http_stylesheets_path = File.join http_path, project_css_dir
|
28
|
+
http_images_path = File.join http_path, project_img_dir
|
28
29
|
http_generated_images_path = http_images_path
|
29
|
-
http_javascripts_path = File.join http_path,
|
30
|
-
http_fonts_path = File.join http_path,
|
30
|
+
http_javascripts_path = File.join http_path, choosen_js_dir
|
31
|
+
http_fonts_path = File.join http_path, project_font_dir
|
31
32
|
|
32
33
|
# File system locations
|
33
|
-
sass_dir =
|
34
|
-
css_dir = File.join
|
35
|
-
images_dir = File.join
|
36
|
-
javascripts_dir = File.join
|
37
|
-
fonts_dir = File.join
|
34
|
+
sass_dir = project_sass_dir
|
35
|
+
css_dir = File.join project_public_dir, project_css_dir
|
36
|
+
images_dir = File.join project_public_dir, project_img_dir
|
37
|
+
javascripts_dir = File.join project_public_dir, choosen_js_dir
|
38
|
+
fonts_dir = File.join project_public_dir, project_font_dir
|
38
39
|
|
39
40
|
# Syntax preference
|
40
41
|
preferred_syntax = :sass
|
41
42
|
|
42
43
|
# Determines whether line comments should be added to compiled css for easier debugging
|
43
|
-
line_comments =
|
44
|
+
line_comments = ENV["PROJECT_ASSETS_VERBOSE"] ? true : false
|
44
45
|
|
45
46
|
# CSS output style - :nested, :expanded, :compact, or :compressed
|
46
|
-
output_style =
|
47
|
-
|
47
|
+
output_style = ENV["PROJECT_ASSETS_VERBOSE"] ? :expanded : :compressed
|
@@ -17,30 +17,29 @@
|
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
19
|
|
20
|
-
require
|
21
|
-
require
|
22
|
-
require
|
20
|
+
require "exec_executor"
|
21
|
+
require "system_executor"
|
22
|
+
require "stdout_outputter"
|
23
23
|
|
24
24
|
namespace :ci do
|
25
|
-
|
26
|
-
desc 'Remove compiled css'
|
25
|
+
desc "Remove compiled css"
|
27
26
|
task :clean do
|
28
27
|
StdoutOutputter::Outputter.new.write "*** Remove CSS ***"
|
29
28
|
SystemExecutor::Executor.new.run "compass clean"
|
30
29
|
end
|
31
30
|
|
32
|
-
desc
|
33
|
-
task compile: %w
|
31
|
+
desc "Compile css"
|
32
|
+
task compile: %w(clean) do
|
34
33
|
StdoutOutputter::Outputter.new.write "*** Compiling CSS ***"
|
35
34
|
SystemExecutor::Executor.new.run "compass compile"
|
36
35
|
end
|
37
36
|
|
38
|
-
desc
|
37
|
+
desc "Run compass watch"
|
39
38
|
task :watch do
|
40
|
-
StdoutOutputter::Outputter.new.write
|
41
|
-
ExecExecutor::Executor.new.run
|
39
|
+
StdoutOutputter::Outputter.new.write "*** Watching for changes ***"
|
40
|
+
ExecExecutor::Executor.new.run "compass watch"
|
42
41
|
end
|
43
42
|
|
44
|
-
task c: %w
|
45
|
-
task w: %w
|
43
|
+
task c: %w(compile)
|
44
|
+
task w: %w(watch)
|
46
45
|
end
|
@@ -17,25 +17,23 @@
|
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
19
|
|
20
|
-
require
|
21
|
-
require
|
20
|
+
require "system_executor"
|
21
|
+
require "stdout_outputter"
|
22
22
|
|
23
23
|
namespace :ci do
|
24
|
-
|
25
|
-
desc 'Install default compass config'
|
24
|
+
desc "Install default compass config"
|
26
25
|
task :config do
|
27
26
|
default_config_path = File.join(
|
28
|
-
Gem.datadir(
|
29
|
-
|
27
|
+
Gem.datadir("compass_integrator"),
|
28
|
+
"compass_default.rb"
|
30
29
|
)
|
31
|
-
current_path =
|
32
|
-
current_configdir_path = File.join(current_path,
|
33
|
-
current_config_path = File.join(current_configdir_path,
|
30
|
+
current_path = Rake.application.original_dir
|
31
|
+
current_configdir_path = File.join(current_path, "config")
|
32
|
+
current_config_path = File.join(current_configdir_path, "compass.rb")
|
34
33
|
unless File.exist?(current_config_path)
|
35
|
-
StdoutOutputter::Outputter.new.write
|
34
|
+
StdoutOutputter::Outputter.new.write "*** Creating default compass configuration ***"
|
36
35
|
SystemExecutor::Executor.new.run "mkdir -p #{current_configdir_path}"
|
37
36
|
SystemExecutor::Executor.new.run "cp #{default_config_path} #{current_config_path}"
|
38
37
|
end
|
39
38
|
end
|
40
|
-
|
41
39
|
end
|
@@ -17,5 +17,5 @@
|
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
19
|
|
20
|
-
tasks_path = File.join(File.dirname(__FILE__),
|
20
|
+
tasks_path = File.join(File.dirname(__FILE__), "tasks")
|
21
21
|
Dir["#{tasks_path}/*.rake"].each { |ext| load ext } if defined?(Rake)
|
data/lib/compass_integrator.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
require
|
1
|
+
require "compass_integrator/tasks"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass_integrator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Szymon Kopciewski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: exec_executor
|