compass_integrator 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjJiNDU2MzM1YjI4NmM1MWZiMTMzZGZhYTQ1MTA2MmIxZDhlZTQwZA==
4
+ NTI5OTkyNDc4MWMzZmYxZWJmNWNhYmUzMWE0YjZhMmQ5MWQyZjBiYQ==
5
5
  data.tar.gz: !binary |-
6
- ODhiYmMyNmI2NmIzYTE1NmZjM2JmODZiYjc3YzUxNTBiYjg1MTBjYw==
6
+ YTQwODQ3NTAwYzA2YzBmNDA0NTY1YzQ4Y2U1NmY2ZWRkNjU3ODZkOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjdlMWUwMDczMGVlYzYxNmYzM2JkODIwMDBmOGMyNTUyMjAzYTU2OWZkNDRi
10
- MGFmYjQwOTEzNmExMjY1NmI5MWRjN2NkOWNmNTQyNzE3NDEzYTU4ODI5YTdm
11
- ZTRiN2Y3ZjNkYTNhM2E1YTYzZDU5MjU3ODdhN2VlYTNmZWMzYjc=
9
+ MmI5ZDhkMzQ1ZDc0NTlkNWYwNGFlNWNjZjBiMDNjNDkxOTcyNjk5ZmY5ZmE5
10
+ YTZkZWI2MGNhZjQ1NjZkMmI2NGNhZTU4NmU2N2QxMjkwZTU0ZmM4NThmNDk2
11
+ MDdjYjVlNDgxNzVhYzNkMGNjZjQ0MjAxNzQ5Mzc1Nzk3MWJhMmI=
12
12
  data.tar.gz: !binary |-
13
- OTIzNmNmYTJiNThiNWQxMmQ1Zjc0NTlhZTljMGVkMWYxNzI3ZGJhMTNmY2U1
14
- YmVmYzdjOTA1OTIzZjliZTIxNTM3MjhkNmFjZmFkMDQxOTZjZjMxM2Y3YWEw
15
- ZjY3MzFjZTliMmU3YmNlZmI3MjNlZmFmNTVjMjk2ODhjODY5YWI=
13
+ YmYzODhiZTVlNjEzZjFiYmY3YzBmY2E3MmEzNmZhNGI0ZDVkZWE1MGEyZDVk
14
+ YWQ1YTY2YWY2MGNhNmI5MTRiMWMyMTExMDY4MmZiNzEzYzkzZjJiYzMxZDA5
15
+ NWRmMDM4OGNhYTI1Y2JkZGRhMGU5Zjc1ZDY5OGEwNzBiZWY5MzA=
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ === 2.0.0 (2015.07.06)
2
+
3
+ * rename env variables
4
+
1
5
  === 1.0.0 (2015.07.01)
2
6
 
3
7
  * publication of the code
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
@@ -1,47 +1,47 @@
1
1
  require "rgbapng"
2
- require 'sass-globbing'
3
-
4
- _root_path = File.join File.dirname(__FILE__), '..'
5
- _project_dir = ENV['project_dir'] || 'sinatra_ui'
6
- _public_dir = ENV['public_dir'] || 'public'
7
- _sass_dir = ENV['sass_dir'] || 'sass'
8
- _http_path = ENV['http_path'] || '/'
9
- _cdn_url = ENV['cdn_url'] || nil
10
- _css_dir = ENV['css_dir'] || 'stylesheets'
11
- _img_dir = ENV['img_dir'] || 'images'
12
- _js_dir = ENV['js_dir'] || 'javascripts'
13
- _font_dir = ENV['font_dir'] || 'fonts'
14
- _debug = ENV['debug'] || false
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 _root_path, _project_dir
18
+ project_path = File.join project_root_path, project_ui_dir
18
19
 
19
20
  # HTTP paths
20
- http_path = _http_path
21
- asset_host do |asset|
22
- _cdn_url
21
+ http_path = project_assets_http_path
22
+ asset_host do
23
+ project_cdn_url
23
24
  end
24
- relative_assets = _cdn_url.nil?
25
+ relative_assets = project_cdn_url.nil?
25
26
 
26
- http_stylesheets_path = File.join http_path, _css_dir
27
- http_images_path = File.join http_path, _img_dir
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, _js_dir
30
- http_fonts_path = File.join http_path, _font_dir
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 = _sass_dir
34
- css_dir = File.join _public_dir, _css_dir
35
- images_dir = File.join _public_dir, _img_dir
36
- javascripts_dir = File.join _public_dir, _js_dir
37
- fonts_dir = File.join _public_dir, _font_dir
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 = (_debug) ? true : false
44
+ line_comments = ENV["PROJECT_ASSETS_VERBOSE"] ? true : false
44
45
 
45
46
  # CSS output style - :nested, :expanded, :compact, or :compressed
46
- output_style = (_debug) ? :expanded : :compressed
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 'exec_executor'
21
- require 'system_executor'
22
- require 'stdout_outputter'
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 'Compile css'
33
- task compile: %w[clean] do
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 'Run compass watch'
37
+ desc "Run compass watch"
39
38
  task :watch do
40
- StdoutOutputter::Outputter.new.write '*** Watching for changes ***'
41
- ExecExecutor::Executor.new.run 'compass watch'
39
+ StdoutOutputter::Outputter.new.write "*** Watching for changes ***"
40
+ ExecExecutor::Executor.new.run "compass watch"
42
41
  end
43
42
 
44
- task c: %w[compile]
45
- task w: %w[watch]
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 'system_executor'
21
- require 'stdout_outputter'
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('compass_integrator'),
29
- 'compass_default.rb'
27
+ Gem.datadir("compass_integrator"),
28
+ "compass_default.rb"
30
29
  )
31
- current_path = Dir.pwd
32
- current_configdir_path = File.join(current_path, 'config')
33
- current_config_path = File.join(current_configdir_path, 'compass.rb')
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 '*** Creating default compass configuration ***'
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__), 'tasks')
20
+ tasks_path = File.join(File.dirname(__FILE__), "tasks")
21
21
  Dir["#{tasks_path}/*.rake"].each { |ext| load ext } if defined?(Rake)
@@ -18,5 +18,5 @@
18
18
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
19
19
 
20
20
  module CompassIntegrator
21
- VERSION = '1.0.0'
21
+ VERSION = "2.0.0"
22
22
  end
@@ -1 +1 @@
1
- require 'compass_integrator/tasks'
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: 1.0.0
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-01 00:00:00.000000000 Z
11
+ date: 2015-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: exec_executor