capucine 0.2.5 → 0.2.9
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/README.md +16 -10
- data/VERSION +1 -1
- data/bin/capucine +2 -19
- data/capucine.gemspec +1 -3
- data/content/default.yaml +16 -18
- data/content/shared/capucine.yaml +22 -20
- data/content/shared/index.html +4 -5
- data/content/shared/sass/_main.scss +1 -14
- data/content/shared/sass/screen.scss +2 -5
- data/content/templates/compass_config.erb +2 -9
- data/examples/with-all/.compass_config.rb +8 -3
- data/examples/with-all/capucine.yaml +21 -19
- data/examples/with-all/public/css_generated/screen.css +60 -105
- data/examples/with-all/sass/_main.scss +1 -14
- data/examples/with-all/sass/screen.scss +2 -5
- data/examples/with-coffeescript/capucine.yaml +21 -19
- data/examples/with-incloudr/capucine.yaml +19 -17
- data/examples/with-sass-and-compass/.compass_config.rb +8 -3
- data/examples/with-sass-and-compass/capucine.yaml +18 -16
- data/examples/with-sass-and-compass/public/css_generated/screen.css +1 -105
- data/examples/with-sass-and-compass/sass/_main.scss +1 -14
- data/examples/with-sass-and-compass/sass/screen.scss +2 -5
- data/lib/coffeescript.rb +1 -1
- data/lib/compass-sass.rb +17 -5
- data/lib/settings.rb +23 -14
- data/lib/tools.rb +1 -3
- data/spec/capucine/capucine_spec.rb +6 -6
- data/spec/capucine_coffee.yaml +20 -18
- data/spec/capucine_incloudr.yaml +29 -3
- data/spec/capucine_incloudr2.yaml +28 -3
- data/spec/capucine_incloudr3.yaml +30 -4
- metadata +2 -4
- data/content/options.yaml +0 -11
- data/examples/with-incloudr/.compass_config.rb +0 -13
data/lib/tools.rb
CHANGED
@@ -105,8 +105,6 @@ module Capucine
|
|
105
105
|
|
106
106
|
thread_sass = @cap.sass.run_watch if do_sass
|
107
107
|
thread_coffee = @cap.coffee.run_watch if do_coffee
|
108
|
-
# thread_incloudr = @cap.incloudr.run_watch if do_incloudr
|
109
|
-
|
110
108
|
|
111
109
|
thread_sass.join if thread_sass
|
112
110
|
thread_coffee.join if thread_coffee
|
@@ -147,7 +145,7 @@ module Capucine
|
|
147
145
|
|
148
146
|
#======================
|
149
147
|
def extract_commands_from_scope(scope)
|
150
|
-
all = ['
|
148
|
+
all = ['use_compass', 'use_coffeescript', 'use_incloudr']
|
151
149
|
todo = [false,false,false]
|
152
150
|
|
153
151
|
scope = (scope != 'all') ? scope.split(',') : all # [] or ['sass', 'coffee']
|
@@ -32,9 +32,9 @@ describe 'General' do
|
|
32
32
|
@cap.settings.user_config_file.should_not eq(nil)
|
33
33
|
@cap.settings.conf.should_not eq(nil)
|
34
34
|
|
35
|
-
@cap.settings.conf['
|
36
|
-
@cap.settings.conf['
|
37
|
-
@cap.settings.conf['
|
35
|
+
@cap.settings.conf['use_compass'].should eq(true)
|
36
|
+
@cap.settings.conf['use_coffeescript'].should eq(false)
|
37
|
+
@cap.settings.conf['use_incloudr'].should eq(false)
|
38
38
|
end
|
39
39
|
|
40
40
|
it '#init from command line' do
|
@@ -114,12 +114,12 @@ describe 'General' do
|
|
114
114
|
|
115
115
|
Dir.chdir('capucine')
|
116
116
|
|
117
|
-
@cap.settings.conf['
|
117
|
+
@cap.settings.conf['use_coffeescript'].should eq(false)
|
118
118
|
|
119
119
|
@cap.run_command(['c', @config_user_coffee])
|
120
|
-
|
121
120
|
@cap.settings.user_config_file.should_not eq(nil)
|
122
|
-
|
121
|
+
|
122
|
+
@cap.settings.conf['use_coffeescript'].should eq(true)
|
123
123
|
|
124
124
|
coffee = File.expand_path(File.join @cap.settings.working_dir, 'public/js_generated/app.js')
|
125
125
|
coffee2 = File.expand_path(File.join @cap.settings.working_dir, 'public/js_generated/app.min.js')
|
data/spec/capucine_coffee.yaml
CHANGED
@@ -1,30 +1,32 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
#
|
1
|
+
use_compass: true
|
2
|
+
use_coffeescript: true
|
3
|
+
# use_incloudr: true
|
4
4
|
|
5
|
-
#
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
# sass_line_comments: false
|
10
|
-
# sass_css_generated_style: expanded # compact | expanded | compressed
|
11
|
-
# sass_options: '{:cache => false}'
|
5
|
+
# ---------------[ COMPASS ]------------------------
|
6
|
+
compass:
|
7
|
+
sass_dir: sass
|
8
|
+
css_dir: public/css_generated
|
12
9
|
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
10
|
+
# output_style: expanded # compact | expanded | compressed
|
11
|
+
# line_comments: false
|
12
|
+
# sass_options: '{:cache => false}' # please use this format (a string)
|
16
13
|
|
17
|
-
#
|
18
|
-
#
|
14
|
+
# compass_plugins:
|
15
|
+
# - compass_twitter_bootstrap
|
16
|
+
# ---------------[ IMPORT ]------------------------
|
17
|
+
# sass_import_css: true
|
18
|
+
# sass_import_formats: css to scss
|
19
19
|
# sass_import_css_dir: public/css/import
|
20
20
|
# sass_import_output_dir: sass/converted
|
21
21
|
|
22
|
+
# ---------------[ COFFEESCRIPT ]--------------------------
|
22
23
|
# coffeescript_bare: false
|
23
24
|
# coffeescript_files_dir: coffeescript
|
24
25
|
# coffeescript_output_dir: public/js_generated
|
25
26
|
|
27
|
+
# ---------------[ INCLOUDR ]------------------------
|
26
28
|
# incloudr_output_dir: public/js_generated/modules
|
27
|
-
|
28
|
-
|
29
|
+
incloudr_libs:
|
30
|
+
- name: jquery
|
29
31
|
|
30
|
-
# DOCUMENTATION : http:// capucine.dln.name
|
32
|
+
# DOCUMENTATION : http:// capucine.dln.name
|
data/spec/capucine_incloudr.yaml
CHANGED
@@ -1,6 +1,32 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
# use_compass: true
|
2
|
+
# use_coffeescript: true
|
3
|
+
use_incloudr: true
|
4
4
|
|
5
|
+
# ---------------[ COMPASS ]------------------------
|
6
|
+
compass:
|
7
|
+
sass_dir: sass
|
8
|
+
css_dir: public/css_generated
|
9
|
+
|
10
|
+
# output_style: expanded # compact | expanded | compressed
|
11
|
+
# line_comments: false
|
12
|
+
# sass_options: '{:cache => false}' # please use this format (a string)
|
13
|
+
|
14
|
+
# compass_plugins:
|
15
|
+
# - compass_twitter_bootstrap
|
16
|
+
# ---------------[ IMPORT ]------------------------
|
17
|
+
# sass_import_css: true
|
18
|
+
# sass_import_formats: css to scss
|
19
|
+
# sass_import_css_dir: public/css/import
|
20
|
+
# sass_import_output_dir: sass/converted
|
21
|
+
|
22
|
+
# ---------------[ COFFEESCRIPT ]--------------------------
|
23
|
+
# coffeescript_bare: false
|
24
|
+
# coffeescript_files_dir: coffeescript
|
25
|
+
# coffeescript_output_dir: public/js_generated
|
26
|
+
|
27
|
+
# ---------------[ INCLOUDR ]------------------------
|
28
|
+
# incloudr_output_dir: public/js_generated/modules
|
5
29
|
incloudr_libs:
|
6
30
|
- name: jquery
|
31
|
+
|
32
|
+
# DOCUMENTATION : http:// capucine.dln.name
|
@@ -1,8 +1,33 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
# use_compass: true
|
2
|
+
# use_coffeescript: true
|
3
|
+
use_incloudr: true
|
4
4
|
|
5
|
+
# ---------------[ COMPASS ]------------------------
|
6
|
+
compass:
|
7
|
+
sass_dir: sass
|
8
|
+
css_dir: public/css_generated
|
9
|
+
|
10
|
+
# output_style: expanded # compact | expanded | compressed
|
11
|
+
# line_comments: false
|
12
|
+
# sass_options: '{:cache => false}' # please use this format (a string)
|
13
|
+
|
14
|
+
# compass_plugins:
|
15
|
+
# - compass_twitter_bootstrap
|
16
|
+
# ---------------[ IMPORT ]------------------------
|
17
|
+
# sass_import_css: true
|
18
|
+
# sass_import_formats: css to scss
|
19
|
+
# sass_import_css_dir: public/css/import
|
20
|
+
# sass_import_output_dir: sass/converted
|
21
|
+
|
22
|
+
# ---------------[ COFFEESCRIPT ]--------------------------
|
23
|
+
# coffeescript_bare: false
|
24
|
+
# coffeescript_files_dir: coffeescript
|
25
|
+
# coffeescript_output_dir: public/js_generated
|
26
|
+
|
27
|
+
# ---------------[ INCLOUDR ]------------------------
|
28
|
+
# incloudr_output_dir: public/js_generated/modules
|
5
29
|
incloudr_libs:
|
6
30
|
- name: jquery
|
7
31
|
version: 1.7
|
8
32
|
|
33
|
+
# DOCUMENTATION : http:// capucine.dln.name
|
@@ -1,6 +1,32 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
# use_compass: true
|
2
|
+
# use_coffeescript: true
|
3
|
+
use_incloudr: true
|
4
4
|
|
5
|
+
# ---------------[ COMPASS ]------------------------
|
6
|
+
compass:
|
7
|
+
sass_dir: sass
|
8
|
+
css_dir: public/css_generated
|
9
|
+
|
10
|
+
# output_style: expanded # compact | expanded | compressed
|
11
|
+
# line_comments: false
|
12
|
+
# sass_options: '{:cache => false}' # please use this format (a string)
|
13
|
+
|
14
|
+
# compass_plugins:
|
15
|
+
# - compass_twitter_bootstrap
|
16
|
+
# ---------------[ IMPORT ]------------------------
|
17
|
+
# sass_import_css: true
|
18
|
+
# sass_import_formats: css to scss
|
19
|
+
# sass_import_css_dir: public/css/import
|
20
|
+
# sass_import_output_dir: sass/converted
|
21
|
+
|
22
|
+
# ---------------[ COFFEESCRIPT ]--------------------------
|
23
|
+
# coffeescript_bare: false
|
24
|
+
# coffeescript_files_dir: coffeescript
|
25
|
+
# coffeescript_output_dir: public/js_generated
|
26
|
+
|
27
|
+
# ---------------[ INCLOUDR ]------------------------
|
28
|
+
# incloudr_output_dir: public/js_generated/modules
|
5
29
|
incloudr_libs:
|
6
|
-
- name:
|
30
|
+
- name: jqu
|
31
|
+
|
32
|
+
# DOCUMENTATION : http:// capucine.dln.name
|
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.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -189,7 +189,6 @@ files:
|
|
189
189
|
- capucine-logo-mini.png
|
190
190
|
- capucine.gemspec
|
191
191
|
- content/default.yaml
|
192
|
-
- content/options.yaml
|
193
192
|
- content/shared/capucine.yaml
|
194
193
|
- content/shared/coffeescript/app.coffee
|
195
194
|
- content/shared/index.html
|
@@ -227,7 +226,6 @@ files:
|
|
227
226
|
- examples/with-coffeescript/coffeescript/app.coffee
|
228
227
|
- examples/with-coffeescript/public/js_generated/app.js
|
229
228
|
- examples/with-coffeescript/public/js_generated/app.min.js
|
230
|
-
- examples/with-incloudr/.compass_config.rb
|
231
229
|
- examples/with-incloudr/capucine.yaml
|
232
230
|
- examples/with-incloudr/public/js_generated/modules/jquery.js
|
233
231
|
- examples/with-incloudr/public/js_generated/modules/jquery.min.js
|
@@ -277,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
277
275
|
version: '0'
|
278
276
|
segments:
|
279
277
|
- 0
|
280
|
-
hash:
|
278
|
+
hash: 4119978876781162898
|
281
279
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
282
280
|
none: false
|
283
281
|
requirements:
|
data/content/options.yaml
DELETED