capucine 0.2.1 → 0.2.2
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.
- data/VERSION +1 -1
- data/capucine.gemspec +1 -1
- data/lib/compass-sass.rb +9 -7
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.2
|
data/capucine.gemspec
CHANGED
data/lib/compass-sass.rb
CHANGED
|
@@ -27,14 +27,15 @@ module Capucine
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
def update_config
|
|
30
|
-
require 'tempfile'
|
|
31
|
-
require 'digest/md5'
|
|
30
|
+
# require 'tempfile'
|
|
31
|
+
# require 'digest/md5'
|
|
32
32
|
|
|
33
33
|
template_file = File.join @cap.settings.content_dir, 'templates', 'compass_config.erb'
|
|
34
|
+
tmp = File.join @cap.settings.working_dir, '.compass_config.rb'
|
|
34
35
|
|
|
35
|
-
md5 = Digest::MD5.hexdigest(@cap.settings.working_dir.to_s)
|
|
36
|
-
tmp = Tempfile.new('capucine_'+md5)
|
|
37
|
-
@tmp_config = tmp
|
|
36
|
+
# md5 = Digest::MD5.hexdigest(@cap.settings.working_dir.to_s)
|
|
37
|
+
# tmp = Tempfile.new('capucine_'+md5)
|
|
38
|
+
@tmp_config = tmp
|
|
38
39
|
|
|
39
40
|
@cap.settings.conf['compass_plugins_list'] = []
|
|
40
41
|
plugins_gems = []
|
|
@@ -62,7 +63,7 @@ module Capucine
|
|
|
62
63
|
|
|
63
64
|
self.update_plugins plugins_gems
|
|
64
65
|
|
|
65
|
-
return
|
|
66
|
+
return @tmp_config
|
|
66
67
|
end
|
|
67
68
|
|
|
68
69
|
def import_css
|
|
@@ -95,9 +96,10 @@ module Capucine
|
|
|
95
96
|
|
|
96
97
|
def run_watch
|
|
97
98
|
conf = self.update_config
|
|
99
|
+
working_dir = @cap.settings.working_dir
|
|
98
100
|
self.import_css if @cap.settings.conf['sass_import_css']
|
|
99
101
|
|
|
100
|
-
compass_args = ['watch', '--config', conf,
|
|
102
|
+
compass_args = ['watch', '--config', conf, working_dir]
|
|
101
103
|
compass_args = compass_args.join(' ')
|
|
102
104
|
|
|
103
105
|
proc_watch = Thread.new { self.exec_compass compass_args }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capucine
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -239,7 +239,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
239
239
|
version: '0'
|
|
240
240
|
segments:
|
|
241
241
|
- 0
|
|
242
|
-
hash:
|
|
242
|
+
hash: 1847740573500521007
|
|
243
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
none: false
|
|
245
245
|
requirements:
|