capucine 0.2.5 → 0.2.9

Sign up to get free protection for your applications and to get access to all the features.
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 = ['sass', 'coffee', 'incloudr']
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['sass'].should eq(true)
36
- @cap.settings.conf['coffee'].should eq(false)
37
- @cap.settings.conf['incloudr'].should eq(false)
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['coffee'].should eq(false)
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
- @cap.settings.conf['coffee'].should eq(true)
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')
@@ -1,30 +1,32 @@
1
- sass: true
2
- coffee: true
3
- # incloudr: true
1
+ use_compass: true
2
+ use_coffeescript: true
3
+ # use_incloudr: true
4
4
 
5
- # # ----------------------------------------
6
- # sass_images_dir: public/images
7
- # sass_files_dir: sass
8
- # sass_output_dir: public/css_generated
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
- # compass_config: {}
14
- # compass_plugins:
15
- # - compass-capucine
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
- # sass_import_css: false
18
- # sass_import_formats: css to sass
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
- # incloudr_libs:
28
- # - jquery
29
+ incloudr_libs:
30
+ - name: jquery
29
31
 
30
- # DOCUMENTATION : http:// capucine.dln.name
32
+ # DOCUMENTATION : http:// capucine.dln.name
@@ -1,6 +1,32 @@
1
- sass: false
2
- coffee: false
3
- incloudr: true
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
- sass: false
2
- coffee: false
3
- incloudr: true
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
- sass: false
2
- coffee: false
3
- incloudr: true
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: jque
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.5
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: 2235455125154600183
278
+ hash: 4119978876781162898
281
279
  required_rubygems_version: !ruby/object:Gem::Requirement
282
280
  none: false
283
281
  requirements:
data/content/options.yaml DELETED
@@ -1,11 +0,0 @@
1
- i: init
2
- init: init
3
-
4
- n: new
5
- new: new
6
-
7
- c: compile
8
- compile: compile
9
-
10
- w: watch
11
- watch: watch
@@ -1,13 +0,0 @@
1
-
2
-
3
- require "compass-capucine"
4
-
5
-
6
-
7
- images_dir = "public/images"
8
- sass_dir = "sass"
9
- css_dir = "public/css_generated"
10
- line_comments = false
11
- output_style = :expanded
12
- sass_options = {:cache => false}
13
-