compass_integrator 2.0.1 → 3.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 +5 -13
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -0
- data/README.md +34 -6
- data/data/compass_integrator/compass_default.rb +18 -16
- data/lib/compass_integrator.rb +21 -0
- data/lib/compass_integrator/command/clean.rb +31 -0
- data/lib/compass_integrator/command/compile.rb +31 -0
- data/lib/compass_integrator/command/generate_configuration.rb +35 -0
- data/lib/compass_integrator/command/watch.rb +31 -0
- data/lib/compass_integrator/command_template.rb +50 -0
- data/lib/compass_integrator/config.rb +38 -0
- data/lib/compass_integrator/tasks.rb +14 -3
- data/lib/compass_integrator/tasks/compass.rake +7 -10
- data/lib/compass_integrator/tasks/config.rake +5 -15
- data/lib/compass_integrator/version.rb +1 -1
- metadata +66 -31
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
N2E4MjZlNmQ5YzQ2NWIxYzMyN2M4ZDhhMDdhY2JlNDgwOWM4N2Y2NA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4c6d07710d56033fb55eca6f16bc1a7f19671f5e
|
4
|
+
data.tar.gz: 4aaf708eeee4feb0ca967f7854ead4d4f812f1d7
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YzRiOTZhMjVmYjczN2ExNjQ2YzE5NDU1Nzk5OWRjMDQwN2Y2MzQ3ODg5Mzky
|
11
|
-
ZDBmNTM1MzIzMTdmOWFiODI2OGZmYTIwZjJiNmY1NmUwMGNkOTc=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MDA2NjdjMjkzMTcwNDE4OTg1N2RhNzNjMDZlZWMwNThmNmRmYzMyMWM5NjUy
|
14
|
-
MjFiMjQ5Mjk3NjMyNTQ1YjE4YjNjYzA5ODhhNGIyZTFlNTk2ZDNjMzE3YTkz
|
15
|
-
NzVhOTUyNDJmYjk1ZmMxMjU0MDJmMWMyMTE0MDU1ODM3ZjliYzA=
|
6
|
+
metadata.gz: c2abd6dfc7d3ce6e833e3c101c4e5541611b4e6130a23ad1f21a9771a8651a290aafbcba1dfa61895d58bfb88341055129ed2932415d06c73b7e282cb3ab50bd
|
7
|
+
data.tar.gz: b3971422bc997cc28f54149fcfd8ac4923abdfd503c691301fd34f46ce46310037043219d9515b88c210efd0c76a6de776d3061f79435e29ff1e41c4c5077bea
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
## Assumptions
|
6
6
|
|
7
|
-
* joins the
|
8
|
-
* provides
|
9
|
-
* provides
|
7
|
+
* joins the [compass][compass] gem and its components into project dependencies
|
8
|
+
* provides tasks for assets management
|
9
|
+
* provides default compass config
|
10
10
|
|
11
11
|
## Installation
|
12
12
|
|
@@ -22,16 +22,43 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
$ gem install compass_integrator
|
24
24
|
|
25
|
+
## Configuration
|
26
|
+
|
27
|
+
Through `CompassIntegrator::Config` class:
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
config = CompassIntegrator::Config.new(
|
31
|
+
"project_css_dir" => "css_dir" # default: "stylesheets"
|
32
|
+
"project_javascripts_dir" => "js_dir" # default: "javascripts"
|
33
|
+
"project_js_compressed_dir" => "jsc_dir" # default: "js"
|
34
|
+
"project_images_dir" => "img_dir" # default: "images"
|
35
|
+
"project_assets_verbose" => true # default: false
|
36
|
+
"project_cdn_url" => "http://cdn.net" # default: nil
|
37
|
+
"project_font_dir" => "font_dir" # default: "fonts"
|
38
|
+
"project_assets_http_path" => "assets" # default: "/"
|
39
|
+
"project_ui_dir" => "ui_dir" # default: "."
|
40
|
+
"project_public_dir" => "pub_dir" # default: "public"
|
41
|
+
"project_sass_dir" => "sass_dir" # default: "sass"
|
42
|
+
"project_config_dir" => "conf" # default: "config"
|
43
|
+
"project_compass_config_file" => "c.rb" # default: "compass_config.rb"
|
44
|
+
)
|
45
|
+
```
|
46
|
+
|
25
47
|
## Usage
|
26
48
|
|
27
49
|
Add to project's Rakefile:
|
28
|
-
```
|
50
|
+
```ruby
|
29
51
|
require 'compass_integrator'
|
52
|
+
CompassIntegrator::Tasks.load(CompassIntegrator::Config.new)
|
30
53
|
```
|
31
54
|
|
32
55
|
and list available tasks:
|
33
|
-
```
|
34
|
-
rake -T
|
56
|
+
```ruby
|
57
|
+
bundle exec rake -T
|
58
|
+
# rake ci:clean # Remove compiled css
|
59
|
+
# rake ci:compile # Compile css
|
60
|
+
# rake ci:config # Install default compass config
|
61
|
+
# rake ci:watch # Run compass watch
|
35
62
|
```
|
36
63
|
|
37
64
|
## Versioning
|
@@ -47,3 +74,4 @@ See [semver.org][semver]
|
|
47
74
|
5. Create new Pull Request
|
48
75
|
|
49
76
|
[semver]: http://semver.org/
|
77
|
+
[compass]: http://compass-style.org/install/
|
@@ -1,28 +1,30 @@
|
|
1
1
|
require "rgbapng"
|
2
2
|
require "sass-globbing"
|
3
|
+
require "compass_integrator/config"
|
3
4
|
|
5
|
+
config = CompassIntegrator::Config.new
|
4
6
|
project_root_path = File.join File.dirname(__FILE__), ".."
|
5
|
-
project_ui_dir =
|
6
|
-
project_public_dir =
|
7
|
-
project_sass_dir =
|
8
|
-
project_assets_http_path =
|
9
|
-
project_cdn_url =
|
10
|
-
project_css_dir =
|
11
|
-
project_img_dir =
|
12
|
-
project_js_dir =
|
13
|
-
project_rjs_dir =
|
14
|
-
choosen_js_dir =
|
15
|
-
project_font_dir =
|
7
|
+
project_ui_dir = config.fetch("project_ui_dir")
|
8
|
+
project_public_dir = config.fetch("project_public_dir")
|
9
|
+
project_sass_dir = config.fetch("project_sass_dir")
|
10
|
+
project_assets_http_path = config.fetch("project_assets_http_path")
|
11
|
+
project_cdn_url = config.fetch("project_cdn_url")
|
12
|
+
project_css_dir = config.fetch("project_css_dir")
|
13
|
+
project_img_dir = config.fetch("project_images_dir")
|
14
|
+
project_js_dir = config.fetch("project_javascripts_dir")
|
15
|
+
project_rjs_dir = config.fetch("project_js_compressed_dir")
|
16
|
+
choosen_js_dir = config.fetch("project_assets_verbose") ? project_js_dir : project_rjs_dir
|
17
|
+
project_font_dir = config.fetch("project_font_dir")
|
16
18
|
|
17
19
|
# Configuration to use when running within Sinatra
|
18
|
-
project_path
|
20
|
+
project_path = File.join project_root_path, project_ui_dir
|
19
21
|
|
20
22
|
# HTTP paths
|
21
|
-
http_path
|
23
|
+
http_path = project_assets_http_path
|
22
24
|
asset_host do
|
23
25
|
project_cdn_url
|
24
26
|
end
|
25
|
-
relative_assets
|
27
|
+
relative_assets = project_cdn_url.nil?
|
26
28
|
|
27
29
|
http_stylesheets_path = File.join http_path, project_css_dir
|
28
30
|
http_images_path = File.join http_path, project_img_dir
|
@@ -41,7 +43,7 @@ fonts_dir = File.join project_public_dir, project_font_dir
|
|
41
43
|
preferred_syntax = :sass
|
42
44
|
|
43
45
|
# Determines whether line comments should be added to compiled css for easier debugging
|
44
|
-
line_comments =
|
46
|
+
line_comments = config.fetch("project_assets_verbose") ? true : false
|
45
47
|
|
46
48
|
# CSS output style - :nested, :expanded, :compact, or :compressed
|
47
|
-
output_style =
|
49
|
+
output_style = config.fetch("project_assets_verbose") ? :expanded : :compressed
|
data/lib/compass_integrator.rb
CHANGED
@@ -1 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# Copyright (C) 2015,2016 Szymon Kopciewski
|
4
|
+
#
|
5
|
+
# This file is part of CompassIntegrator.
|
6
|
+
#
|
7
|
+
# This program is free software: you can redistribute it and/or modify
|
8
|
+
# it under the terms of the GNU General Public License as published by
|
9
|
+
# the Free Software Foundation, either version 3 of the License, or
|
10
|
+
# (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This program is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
|
20
|
+
require "compass_integrator/version"
|
21
|
+
require "compass_integrator/config"
|
1
22
|
require "compass_integrator/tasks"
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# Copyright (C) 2015,2016 Szymon Kopciewski
|
4
|
+
#
|
5
|
+
# This file is part of CompassIntegrator.
|
6
|
+
#
|
7
|
+
# This program is free software: you can redistribute it and/or modify
|
8
|
+
# it under the terms of the GNU General Public License as published by
|
9
|
+
# the Free Software Foundation, either version 3 of the License, or
|
10
|
+
# (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This program is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
|
20
|
+
require "compass_integrator/command_template"
|
21
|
+
|
22
|
+
module CompassIntegrator
|
23
|
+
module Command
|
24
|
+
class Clean < CommandTemplate
|
25
|
+
def run
|
26
|
+
@output.puts "*** Remove compiled CSS ***"
|
27
|
+
@executor.system "compass clean -c #{config_file_path}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# Copyright (C) 2015,2016 Szymon Kopciewski
|
4
|
+
#
|
5
|
+
# This file is part of CompassIntegrator.
|
6
|
+
#
|
7
|
+
# This program is free software: you can redistribute it and/or modify
|
8
|
+
# it under the terms of the GNU General Public License as published by
|
9
|
+
# the Free Software Foundation, either version 3 of the License, or
|
10
|
+
# (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This program is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
|
20
|
+
require "compass_integrator/command_template"
|
21
|
+
|
22
|
+
module CompassIntegrator
|
23
|
+
module Command
|
24
|
+
class Compile < CommandTemplate
|
25
|
+
def run
|
26
|
+
@output.puts "*** Compile CSS ***"
|
27
|
+
@executor.system "compass compile -c #{config_file_path}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# Copyright (C) 2015,2016 Szymon Kopciewski
|
4
|
+
#
|
5
|
+
# This file is part of CompassIntegrator.
|
6
|
+
#
|
7
|
+
# This program is free software: you can redistribute it and/or modify
|
8
|
+
# it under the terms of the GNU General Public License as published by
|
9
|
+
# the Free Software Foundation, either version 3 of the License, or
|
10
|
+
# (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This program is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
|
20
|
+
require "compass_integrator/command_template"
|
21
|
+
require "fileutils"
|
22
|
+
|
23
|
+
module CompassIntegrator
|
24
|
+
module Command
|
25
|
+
class GenerateConfiguration < CommandTemplate
|
26
|
+
def run
|
27
|
+
config_dir = File.dirname config_file_path
|
28
|
+
return if File.exist?(config_file_path)
|
29
|
+
@output.puts "*** Creating default compass configuration ***"
|
30
|
+
FileUtils.mkdir_p config_dir
|
31
|
+
FileUtils.cp default_config_file_path, config_file_path
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# Copyright (C) 2015,2016 Szymon Kopciewski
|
4
|
+
#
|
5
|
+
# This file is part of CompassIntegrator.
|
6
|
+
#
|
7
|
+
# This program is free software: you can redistribute it and/or modify
|
8
|
+
# it under the terms of the GNU General Public License as published by
|
9
|
+
# the Free Software Foundation, either version 3 of the License, or
|
10
|
+
# (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This program is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
|
20
|
+
require "compass_integrator/command_template"
|
21
|
+
|
22
|
+
module CompassIntegrator
|
23
|
+
module Command
|
24
|
+
class Watch < CommandTemplate
|
25
|
+
def run
|
26
|
+
@output.puts "*** Watching for changes ***"
|
27
|
+
@executor.exec "compass watch -c #{config_file_path}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# Copyright (C) 2015,2016 Szymon Kopciewski
|
4
|
+
#
|
5
|
+
# This file is part of CompassIntegrator.
|
6
|
+
#
|
7
|
+
# This program is free software: you can redistribute it and/or modify
|
8
|
+
# it under the terms of the GNU General Public License as published by
|
9
|
+
# the Free Software Foundation, either version 3 of the License, or
|
10
|
+
# (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This program is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
|
20
|
+
module CompassIntegrator
|
21
|
+
class CommandTemplate
|
22
|
+
def initialize(config:, output: $stdout, executor: ::Kernel)
|
23
|
+
@config = config
|
24
|
+
@output = output
|
25
|
+
@executor = executor
|
26
|
+
end
|
27
|
+
|
28
|
+
def run
|
29
|
+
raise NotImplementedError
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
def config_file_path
|
35
|
+
File.join(
|
36
|
+
Rake.application.original_dir,
|
37
|
+
@config.fetch("project_ui_dir"),
|
38
|
+
@config.fetch("project_config_dir"),
|
39
|
+
@config.fetch("project_compass_config_file")
|
40
|
+
)
|
41
|
+
end
|
42
|
+
|
43
|
+
def default_config_file_path
|
44
|
+
File.join(
|
45
|
+
Gem.datadir("compass_integrator"),
|
46
|
+
"compass_default.rb"
|
47
|
+
)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
# Copyright (C) 2015,2016 Szymon Kopciewski
|
4
|
+
#
|
5
|
+
# This file is part of CompassIntegrator.
|
6
|
+
#
|
7
|
+
# This program is free software: you can redistribute it and/or modify
|
8
|
+
# it under the terms of the GNU General Public License as published by
|
9
|
+
# the Free Software Foundation, either version 3 of the License, or
|
10
|
+
# (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This program is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
|
20
|
+
require "piko_model"
|
21
|
+
|
22
|
+
module CompassIntegrator
|
23
|
+
class Config < PikoModel::Model
|
24
|
+
field "project_css_dir", default: "stylesheets"
|
25
|
+
field "project_javascripts_dir", default: "javascripts"
|
26
|
+
field "project_js_compressed_dir", default: "js"
|
27
|
+
field "project_images_dir", default: "images"
|
28
|
+
field "project_assets_verbose", default: false
|
29
|
+
field "project_cdn_url", default: nil
|
30
|
+
field "project_font_dir", default: "fonts"
|
31
|
+
field "project_assets_http_path", default: "/"
|
32
|
+
field "project_ui_dir", default: "."
|
33
|
+
field "project_public_dir", default: "public"
|
34
|
+
field "project_sass_dir", default: "sass"
|
35
|
+
field "project_config_dir", default: "config"
|
36
|
+
field "project_compass_config_file", default: "compass_config.rb"
|
37
|
+
end
|
38
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
# Copyright (C) 2015 Szymon Kopciewski
|
3
|
+
# Copyright (C) 2015,2016 Szymon Kopciewski
|
4
4
|
#
|
5
5
|
# This file is part of CompassIntegrator.
|
6
6
|
#
|
@@ -17,5 +17,16 @@
|
|
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
|
-
|
21
|
-
|
20
|
+
module CompassIntegrator
|
21
|
+
module Tasks
|
22
|
+
class << self
|
23
|
+
attr_reader :config
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.load(config)
|
27
|
+
@config = config
|
28
|
+
tasks_path = File.join(File.dirname(__FILE__), "tasks")
|
29
|
+
Dir["#{tasks_path}/*.rake"].each { |ext| ::Kernel.load(ext, true) } if defined?(::Rake)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
# Copyright (C) 2015 Szymon Kopciewski
|
3
|
+
# Copyright (C) 2015,2016 Szymon Kopciewski
|
4
4
|
#
|
5
5
|
# This file is part of CompassIntegrator.
|
6
6
|
#
|
@@ -17,27 +17,24 @@
|
|
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 "compass_integrator/command/clean"
|
21
|
+
require "compass_integrator/command/compile"
|
22
|
+
require "compass_integrator/command/watch"
|
23
23
|
|
24
24
|
namespace :ci do
|
25
25
|
desc "Remove compiled css"
|
26
26
|
task :clean do
|
27
|
-
|
28
|
-
SystemExecutor::Executor.new.run "compass clean"
|
27
|
+
CompassIntegrator::Command::Clean.new(config: CompassIntegrator::Tasks.config).run
|
29
28
|
end
|
30
29
|
|
31
30
|
desc "Compile css"
|
32
31
|
task compile: %w(clean) do
|
33
|
-
|
34
|
-
SystemExecutor::Executor.new.run "compass compile"
|
32
|
+
CompassIntegrator::Command::Compile.new(config: CompassIntegrator::Tasks.config).run
|
35
33
|
end
|
36
34
|
|
37
35
|
desc "Run compass watch"
|
38
36
|
task :watch do
|
39
|
-
|
40
|
-
ExecExecutor::Executor.new.run "compass watch"
|
37
|
+
CompassIntegrator::Command::Watch.new(config: CompassIntegrator::Tasks.config).run
|
41
38
|
end
|
42
39
|
|
43
40
|
task c: %w(compile)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
# Copyright (C) 2015 Szymon Kopciewski
|
3
|
+
# Copyright (C) 2015,2016 Szymon Kopciewski
|
4
4
|
#
|
5
5
|
# This file is part of CompassIntegrator.
|
6
6
|
#
|
@@ -17,23 +17,13 @@
|
|
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 "stdout_outputter"
|
20
|
+
require "compass_integrator/command/generate_configuration"
|
22
21
|
|
23
22
|
namespace :ci do
|
24
23
|
desc "Install default compass config"
|
25
24
|
task :config do
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
)
|
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")
|
33
|
-
unless File.exist?(current_config_path)
|
34
|
-
StdoutOutputter::Outputter.new.write "*** Creating default compass configuration ***"
|
35
|
-
SystemExecutor::Executor.new.run "mkdir -p #{current_configdir_path}"
|
36
|
-
SystemExecutor::Executor.new.run "cp #{default_config_path} #{current_config_path}"
|
37
|
-
end
|
25
|
+
CompassIntegrator::Command::GenerateConfiguration.new(
|
26
|
+
config: CompassIntegrator::Tasks.config
|
27
|
+
).run
|
38
28
|
end
|
39
29
|
end
|
metadata
CHANGED
@@ -1,97 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass_integrator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.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:
|
11
|
+
date: 2016-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: exec_executor
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.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: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: system_executor
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.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: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: stdout_outputter
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '1.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: '1.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: piko_model
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: compass
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- -
|
73
|
+
- - ">="
|
60
74
|
- !ruby/object:Gem::Version
|
61
75
|
version: '0'
|
62
76
|
type: :runtime
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- -
|
80
|
+
- - ">="
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: compass-rgbapng
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- -
|
87
|
+
- - ">="
|
74
88
|
- !ruby/object:Gem::Version
|
75
89
|
version: '0'
|
76
90
|
type: :runtime
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- -
|
94
|
+
- - ">="
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: compass-blueprint
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- -
|
101
|
+
- - ">="
|
88
102
|
- !ruby/object:Gem::Version
|
89
103
|
version: '0'
|
90
104
|
type: :runtime
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
|
-
- -
|
108
|
+
- - ">="
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0'
|
97
111
|
- !ruby/object:Gem::Dependency
|
@@ -100,72 +114,87 @@ dependencies:
|
|
100
114
|
requirements:
|
101
115
|
- - '='
|
102
116
|
- !ruby/object:Gem::Version
|
103
|
-
version: 1.1.
|
117
|
+
version: 1.1.5
|
104
118
|
type: :runtime
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
122
|
- - '='
|
109
123
|
- !ruby/object:Gem::Version
|
110
|
-
version: 1.1.
|
124
|
+
version: 1.1.5
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: rake
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
|
-
- -
|
129
|
+
- - ">="
|
116
130
|
- !ruby/object:Gem::Version
|
117
131
|
version: '0'
|
118
132
|
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
|
-
- -
|
136
|
+
- - ">="
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '0'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
140
|
+
name: pry
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
|
-
- -
|
143
|
+
- - ">="
|
130
144
|
- !ruby/object:Gem::Version
|
131
145
|
version: '0'
|
132
146
|
type: :development
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
|
-
- -
|
150
|
+
- - ">="
|
137
151
|
- !ruby/object:Gem::Version
|
138
152
|
version: '0'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
154
|
+
name: minitest
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
142
156
|
requirements:
|
143
|
-
- -
|
157
|
+
- - ">="
|
144
158
|
- !ruby/object:Gem::Version
|
145
159
|
version: '0'
|
146
160
|
type: :development
|
147
161
|
prerelease: false
|
148
162
|
version_requirements: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
|
-
- -
|
164
|
+
- - ">="
|
151
165
|
- !ruby/object:Gem::Version
|
152
166
|
version: '0'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
168
|
+
name: minitest-reporters
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: codeclimate-test-reporter
|
155
183
|
requirement: !ruby/object:Gem::Requirement
|
156
184
|
requirements:
|
157
|
-
- -
|
185
|
+
- - ">="
|
158
186
|
- !ruby/object:Gem::Version
|
159
187
|
version: '0'
|
160
188
|
type: :development
|
161
189
|
prerelease: false
|
162
190
|
version_requirements: !ruby/object:Gem::Requirement
|
163
191
|
requirements:
|
164
|
-
- -
|
192
|
+
- - ">="
|
165
193
|
- !ruby/object:Gem::Version
|
166
194
|
version: '0'
|
167
195
|
description: The tasks for assets managment with compass
|
168
|
-
email:
|
196
|
+
email:
|
197
|
+
- s.kopciewski@gmail.com
|
169
198
|
executables: []
|
170
199
|
extensions: []
|
171
200
|
extra_rdoc_files: []
|
@@ -176,6 +205,12 @@ files:
|
|
176
205
|
- README.md
|
177
206
|
- data/compass_integrator/compass_default.rb
|
178
207
|
- lib/compass_integrator.rb
|
208
|
+
- lib/compass_integrator/command/clean.rb
|
209
|
+
- lib/compass_integrator/command/compile.rb
|
210
|
+
- lib/compass_integrator/command/generate_configuration.rb
|
211
|
+
- lib/compass_integrator/command/watch.rb
|
212
|
+
- lib/compass_integrator/command_template.rb
|
213
|
+
- lib/compass_integrator/config.rb
|
179
214
|
- lib/compass_integrator/tasks.rb
|
180
215
|
- lib/compass_integrator/tasks/compass.rake
|
181
216
|
- lib/compass_integrator/tasks/config.rake
|
@@ -190,17 +225,17 @@ require_paths:
|
|
190
225
|
- lib
|
191
226
|
required_ruby_version: !ruby/object:Gem::Requirement
|
192
227
|
requirements:
|
193
|
-
- -
|
228
|
+
- - ">="
|
194
229
|
- !ruby/object:Gem::Version
|
195
230
|
version: '0'
|
196
231
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
197
232
|
requirements:
|
198
|
-
- -
|
233
|
+
- - ">="
|
199
234
|
- !ruby/object:Gem::Version
|
200
235
|
version: '0'
|
201
236
|
requirements: []
|
202
237
|
rubyforge_project:
|
203
|
-
rubygems_version: 2.
|
238
|
+
rubygems_version: 2.4.8
|
204
239
|
signing_key:
|
205
240
|
specification_version: 4
|
206
241
|
summary: The tasks for assets managment with compass
|