capucine 0.2.9 → 0.2.10
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +13 -9
- data/VERSION +1 -1
- data/capucine.gemspec +3 -2
- data/content/default.yaml +1 -1
- data/content/shared/capucine.yaml +3 -2
- data/content/shared/index.html +3 -4
- data/content/shared/sass/screen.scss +2 -2
- data/content/templates/cmd_help.erb +1 -0
- data/lib/capucine.rb +6 -45
- data/lib/compass-sass.rb +1 -0
- data/lib/tools.rb +2 -1
- data/spec/capucine/capucine_spec.rb +5 -0
- data/tasks/all.rake +25 -0
- metadata +4 -3
data/README.md
CHANGED
@@ -56,14 +56,21 @@ You don't need to change anything in your application. Just provide the right pa
|
|
56
56
|
* Ubuntu
|
57
57
|
* Windows 7
|
58
58
|
|
59
|
-
**Quick install** :
|
59
|
+
**Quick install (or update)** :
|
60
60
|
|
61
61
|
gem uninstall -a -x capucine
|
62
62
|
gem update --system
|
63
63
|
gem install capucine
|
64
64
|
|
65
|
-
|
66
|
-
|
65
|
+
**Maybe the `capucine.yaml` as change with new version. Please update it :**
|
66
|
+
|
67
|
+
cd my_project/
|
68
|
+
capucine init
|
69
|
+
|
70
|
+
(edit capucine.yaml)
|
71
|
+
|
72
|
+
capucine watch
|
73
|
+
|
67
74
|
# Start
|
68
75
|
|
69
76
|
This will generate a full ready-to-use project from scratch :
|
@@ -205,7 +212,7 @@ Search a library on NPMJS (*example: underscore*) (coming):
|
|
205
212
|
|
206
213
|
capucine js:search:npm underscore
|
207
214
|
|
208
|
-
###### When my lib are
|
215
|
+
###### When my lib are downloaded ?
|
209
216
|
|
210
217
|
When you type `capucine compile`, your Sass and CoffeeScript are compiled, and Incloudr will look at the `capucine.yaml`, download them, and move the files to the `incloudr_output_dir` directory.
|
211
218
|
|
@@ -214,8 +221,7 @@ When you type `capucine watch`, Capucine will first do a `capucine compile`, and
|
|
214
221
|
# How does it work
|
215
222
|
|
216
223
|
Capucine works on top of Compass and CoffeeScript. It use a watcher for compiling CoffeeScript on the fly and uses the official Compass watch for Sass's files.
|
217
|
-
So, it generate a configuration file for Compass (`config.rb`).
|
218
|
-
|
224
|
+
So, it generate a configuration file for Compass (`config.rb`).
|
219
225
|
|
220
226
|
If you activate the `sass_cache` options, Capucine will generate a `.sass-cache/` folder in the working directory.
|
221
227
|
|
@@ -240,7 +246,6 @@ Quick Help :
|
|
240
246
|
|
241
247
|
capucine help
|
242
248
|
|
243
|
-
|
244
249
|
### There are shortcuts :
|
245
250
|
|
246
251
|
capucine i == capucine init
|
@@ -301,7 +306,7 @@ Import:
|
|
301
306
|
|
302
307
|
- Fork the project.
|
303
308
|
- Create a branch with the Template name (*example: wordpress*).
|
304
|
-
- Add
|
309
|
+
- Add your `capucine.yaml` in the `templates/` directory.
|
305
310
|
- Edit the `templates/README.md` file.
|
306
311
|
- Commit.
|
307
312
|
- Pull Request.
|
@@ -321,7 +326,6 @@ Import:
|
|
321
326
|
- Add NPM support for Incloudr
|
322
327
|
- Add JSDelivr support for Incloudr
|
323
328
|
|
324
|
-
- Add the `clean` option
|
325
329
|
- Make rake tasks
|
326
330
|
- Switch from FSSM to guard-listen
|
327
331
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.10
|
data/capucine.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "capucine"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.10"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Damian Le Nouaille"]
|
12
|
-
s.date = "2012-06-
|
12
|
+
s.date = "2012-06-18"
|
13
13
|
s.description = "Improve your worlkflow"
|
14
14
|
s.email = "dam@dln.name"
|
15
15
|
s.executables = ["capucine"]
|
@@ -96,6 +96,7 @@ Gem::Specification.new do |s|
|
|
96
96
|
"spec/capucine_incloudr3.yaml",
|
97
97
|
"spec/spec.rake",
|
98
98
|
"spec/spec_helper.rb",
|
99
|
+
"tasks/all.rake",
|
99
100
|
"templates/README.md",
|
100
101
|
"templates/sinatra.yaml"
|
101
102
|
]
|
data/content/default.yaml
CHANGED
@@ -3,7 +3,6 @@ use_coffeescript: false
|
|
3
3
|
use_incloudr: false
|
4
4
|
|
5
5
|
# ---------------[ COMPASS ]------------------------
|
6
|
-
use_libsass: false
|
7
6
|
compass:
|
8
7
|
sass_dir: sass
|
9
8
|
css_dir: public/css_generated
|
@@ -13,6 +12,7 @@ compass:
|
|
13
12
|
line_comments: false
|
14
13
|
sass_options: '{:cache => false}' # please use this format (a string)
|
15
14
|
|
15
|
+
use_libsass: false
|
16
16
|
compass_plugins: []
|
17
17
|
# ---------------[ IMPORT ]------------------------
|
18
18
|
sass_import_css: false
|
@@ -3,16 +3,17 @@ use_compass: true
|
|
3
3
|
# use_incloudr: true
|
4
4
|
|
5
5
|
# ---------------[ COMPASS ]------------------------
|
6
|
-
use_libsass: false
|
7
6
|
compass:
|
8
7
|
sass_dir: sass
|
9
8
|
css_dir: public/css_generated
|
10
|
-
images_dir: public/images
|
11
9
|
|
10
|
+
# images_dir: public/images
|
12
11
|
# output_style: expanded # compact | expanded | compressed
|
13
12
|
# line_comments: false
|
14
13
|
# sass_options: '{:cache => false}' # please use this format (a string)
|
15
14
|
|
15
|
+
# use_libsass: false
|
16
|
+
|
16
17
|
# compass_plugins:
|
17
18
|
# - compass_twitter_bootstrap
|
18
19
|
# - compass-capucine
|
data/content/shared/index.html
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
7
7
|
<title>.</title>
|
8
8
|
|
9
|
-
<meta name="description" content="">
|
10
|
-
<meta name="author" content="">
|
9
|
+
<!-- <meta name="description" content=""> -->
|
10
|
+
<!-- <meta name="author" content=""> -->
|
11
11
|
|
12
12
|
<!-- <meta property="og:url" content=""/> -->
|
13
13
|
<!-- <meta property="og:site_name" content=""/> -->
|
@@ -29,7 +29,6 @@
|
|
29
29
|
<body>
|
30
30
|
<div id="page_wrap">
|
31
31
|
|
32
|
-
|
33
32
|
</div>
|
34
33
|
<!-- <script src="public/js_generated/app.js"></script> -->
|
35
34
|
<!-- <script src="public/js_generated/app.min.js"></script> -->
|
@@ -39,4 +38,4 @@
|
|
39
38
|
<script defer>window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})</script>
|
40
39
|
<![endif]-->
|
41
40
|
</body>
|
42
|
-
</html>
|
41
|
+
</html>
|
data/lib/capucine.rb
CHANGED
@@ -57,6 +57,8 @@ module Capucine
|
|
57
57
|
self.settings.set_user_config_file(config_or_name)
|
58
58
|
self.tools.update
|
59
59
|
|
60
|
+
elsif %w{h help}.include?(main)
|
61
|
+
self.help
|
60
62
|
else
|
61
63
|
self.help
|
62
64
|
end
|
@@ -65,51 +67,10 @@ module Capucine
|
|
65
67
|
end
|
66
68
|
|
67
69
|
def help
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
- Create
|
73
|
-
|
74
|
-
cd my_current_project/
|
75
|
-
|
76
|
-
# Or
|
77
|
-
|
78
|
-
capucine new my_app_name
|
79
|
-
cd my_app_name/
|
80
|
-
|
81
|
-
- Initialize
|
82
|
-
|
83
|
-
# Edit the capucine.yaml file.
|
84
|
-
# Or :
|
85
|
-
|
86
|
-
capucine init
|
87
|
-
capucine init:django
|
88
|
-
|
89
|
-
- Compile Once
|
90
|
-
|
91
|
-
capucine compile
|
92
|
-
capucine compile:sass
|
93
|
-
capucine compile:coffee
|
94
|
-
capucine compile:incloudr
|
95
|
-
|
96
|
-
- Or Watch (Stop with Ctrl + C)
|
97
|
-
|
98
|
-
capucine watch
|
99
|
-
capucine watch:sass
|
100
|
-
capucine watch:coffee
|
101
|
-
|
102
|
-
- Search libs :
|
103
|
-
|
104
|
-
capucine js:list
|
105
|
-
capucine js:list:npm # (comming)
|
106
|
-
|
107
|
-
|
108
|
-
capucine js:search jquery
|
109
|
-
capucine js:search:npm jquery # (comming)
|
110
|
-
|
111
|
-
|
112
|
-
"
|
70
|
+
version = File.open(File.join(self.settings.root_dir, 'VERSION')).read
|
71
|
+
template_file = File.join self.settings.content_dir, 'templates', 'cmd_help.erb'
|
72
|
+
result = self.tools.render_template template_file, version
|
73
|
+
puts result
|
113
74
|
end
|
114
75
|
|
115
76
|
end
|
data/lib/compass-sass.rb
CHANGED
@@ -31,6 +31,7 @@ module Capucine
|
|
31
31
|
|
32
32
|
template_file = File.join @cap.settings.content_dir, 'templates', 'compass_config.erb'
|
33
33
|
tmp = File.join @cap.settings.working_dir, '.compass_config.rb'
|
34
|
+
FileUtils.rm tmp if File.exist?(tmp)
|
34
35
|
|
35
36
|
@tmp_config = tmp
|
36
37
|
@cap.settings.conf['compass_custom'] = {}
|
data/lib/tools.rb
CHANGED
data/tasks/all.rake
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
require File.join File.dirname(__FILE__), '..', 'lib', 'capucine.rb'
|
2
|
+
|
3
|
+
namespace :capucine do
|
4
|
+
|
5
|
+
task :init do
|
6
|
+
cap = Capucine::Main.new
|
7
|
+
cap.run_command(['init'])
|
8
|
+
end
|
9
|
+
|
10
|
+
task :new do
|
11
|
+
cap = Capucine::Main.new
|
12
|
+
cap.run_command(['new'])
|
13
|
+
end
|
14
|
+
|
15
|
+
task :compile do
|
16
|
+
cap = Capucine::Main.new
|
17
|
+
cap.run_command(['compile'])
|
18
|
+
end
|
19
|
+
|
20
|
+
task :watch do
|
21
|
+
cap = Capucine::Main.new
|
22
|
+
cap.run_command(['watch'])
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
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.10
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fssm
|
@@ -258,6 +258,7 @@ files:
|
|
258
258
|
- spec/capucine_incloudr3.yaml
|
259
259
|
- spec/spec.rake
|
260
260
|
- spec/spec_helper.rb
|
261
|
+
- tasks/all.rake
|
261
262
|
- templates/README.md
|
262
263
|
- templates/sinatra.yaml
|
263
264
|
homepage: http://capucine.dln.name
|
@@ -275,7 +276,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
275
276
|
version: '0'
|
276
277
|
segments:
|
277
278
|
- 0
|
278
|
-
hash:
|
279
|
+
hash: -3369971096882014548
|
279
280
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
280
281
|
none: false
|
281
282
|
requirements:
|