capucine 0.1.7 → 0.2.0
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/Gemfile +7 -7
- data/README.md +318 -23
- data/Rakefile +5 -9
- data/VERSION +1 -1
- data/bin/capucine +6 -2
- data/capucine-logo-mini.png +0 -0
- data/capucine.gemspec +32 -16
- data/content/{templates/capucine.yaml → default.yaml} +5 -5
- data/content/options.yaml +11 -0
- data/content/shared/capucine.yaml +2 -2
- data/content/shared/index.html +2 -2
- data/content/shared/public/js/app.js +1 -1
- data/content/shared/sass/_main.scss +1 -1
- data/content/shared/sass/screen.scss +4 -2
- data/content/templates/cmd_help.erb +8 -17
- data/lib/capucine.rb +68 -9
- data/lib/cdnjs.rb +71 -0
- data/lib/coffeescript.rb +36 -30
- data/lib/compass-sass.rb +51 -53
- data/lib/incloudr.rb +44 -43
- data/lib/npm.rb +21 -0
- data/lib/settings.rb +42 -55
- data/lib/tools.rb +167 -31
- data/lor +32 -0
- data/spec/capucine/capucine_spec.rb +179 -0
- data/spec/capucine/coffee_spec.rb +9 -0
- data/spec/capucine/incloudr_spec.rb +80 -0
- data/spec/capucine_coffee.yaml +30 -0
- data/spec/capucine_incloudr.yaml +6 -0
- data/spec/capucine_incloudr2.yaml +8 -0
- data/spec/capucine_incloudr3.yaml +6 -0
- data/spec/spec.rake +13 -0
- data/spec/spec_helper.rb +1 -0
- data/templates/README.md +10 -0
- data/templates/sinatra.yaml +30 -0
- metadata +54 -25
- data/Gemfile.lock +0 -49
- data/lib/commands.rb +0 -43
- data/lib/watch.rb +0 -39
data/spec/spec.rake
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'rspec/core/rake_task'
|
2
|
+
|
3
|
+
spec_tasks = Dir['spec/*/'].map { |d| File.basename(d) }
|
4
|
+
|
5
|
+
spec_tasks.each do |folder|
|
6
|
+
RSpec::Core::RakeTask.new("spec:#{folder}") do |t|
|
7
|
+
t.pattern = "./spec/#{folder}/**/*_spec.rb"
|
8
|
+
t.rspec_opts = %w(-fs --color)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "Run complete application spec suite"
|
13
|
+
task 'spec' => spec_tasks.map { |f| "spec:#{f}" }
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require File.expand_path("../../lib/capucine.rb", __FILE__)
|
data/templates/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
sass: true
|
2
|
+
# coffee: true
|
3
|
+
# incloudr: true
|
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}'
|
12
|
+
|
13
|
+
# compass_config: {}
|
14
|
+
# compass_plugins:
|
15
|
+
# - compass-capucine
|
16
|
+
|
17
|
+
# sass_import_css: false
|
18
|
+
# sass_import_formats: css to sass
|
19
|
+
# sass_import_css_dir: public/css/import
|
20
|
+
# sass_import_output_dir: sass/converted
|
21
|
+
|
22
|
+
# coffeescript_bare: false
|
23
|
+
# coffeescript_files_dir: coffeescript
|
24
|
+
# coffeescript_output_dir: public/js_generated
|
25
|
+
|
26
|
+
# incloudr_output_dir: public/js_generated/modules
|
27
|
+
# incloudr_libs:
|
28
|
+
# - name: jquery
|
29
|
+
|
30
|
+
# 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.
|
4
|
+
version: 0.2.0
|
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-
|
12
|
+
date: 2012-05-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fssm
|
@@ -28,23 +28,23 @@ dependencies:
|
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
31
|
+
name: coffee-script
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
|
-
- - '
|
35
|
+
- - ! '>='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0
|
37
|
+
version: '0'
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- - '
|
43
|
+
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0
|
45
|
+
version: '0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
47
|
+
name: uglifier
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
63
|
+
name: packr
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
79
|
+
name: json
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
81
81
|
none: false
|
82
82
|
requirements:
|
@@ -92,7 +92,7 @@ dependencies:
|
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
95
|
+
name: compass
|
96
96
|
requirement: !ruby/object:Gem::Requirement
|
97
97
|
none: false
|
98
98
|
requirements:
|
@@ -128,34 +128,50 @@ dependencies:
|
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
none: false
|
130
130
|
requirements:
|
131
|
-
- -
|
131
|
+
- - ! '>='
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version:
|
133
|
+
version: '0'
|
134
134
|
type: :development
|
135
135
|
prerelease: false
|
136
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
137
|
none: false
|
138
138
|
requirements:
|
139
|
-
- -
|
139
|
+
- - ! '>='
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
141
|
+
version: '0'
|
142
142
|
- !ruby/object:Gem::Dependency
|
143
143
|
name: jeweler
|
144
144
|
requirement: !ruby/object:Gem::Requirement
|
145
145
|
none: false
|
146
146
|
requirements:
|
147
|
-
- -
|
147
|
+
- - ! '>='
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
149
|
+
version: '0'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: rspec
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
150
166
|
type: :development
|
151
167
|
prerelease: false
|
152
168
|
version_requirements: !ruby/object:Gem::Requirement
|
153
169
|
none: false
|
154
170
|
requirements:
|
155
|
-
- -
|
171
|
+
- - ! '>='
|
156
172
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
158
|
-
description:
|
173
|
+
version: '0'
|
174
|
+
description: Improve your worlkflow
|
159
175
|
email: dam@dln.name
|
160
176
|
executables:
|
161
177
|
- capucine
|
@@ -165,13 +181,15 @@ extra_rdoc_files:
|
|
165
181
|
- README.md
|
166
182
|
files:
|
167
183
|
- Gemfile
|
168
|
-
- Gemfile.lock
|
169
184
|
- LICENSE.txt
|
170
185
|
- README.md
|
171
186
|
- Rakefile
|
172
187
|
- VERSION
|
173
188
|
- bin/capucine
|
189
|
+
- capucine-logo-mini.png
|
174
190
|
- capucine.gemspec
|
191
|
+
- content/default.yaml
|
192
|
+
- content/options.yaml
|
175
193
|
- content/shared/capucine.yaml
|
176
194
|
- content/shared/coffeescript/app.coffee
|
177
195
|
- content/shared/index.html
|
@@ -185,17 +203,28 @@ files:
|
|
185
203
|
- content/shared/sass/_main.scss
|
186
204
|
- content/shared/sass/_responsive.scss
|
187
205
|
- content/shared/sass/screen.scss
|
188
|
-
- content/templates/capucine.yaml
|
189
206
|
- content/templates/cmd_help.erb
|
190
207
|
- content/templates/compass_config.erb
|
191
208
|
- lib/capucine.rb
|
209
|
+
- lib/cdnjs.rb
|
192
210
|
- lib/coffeescript.rb
|
193
|
-
- lib/commands.rb
|
194
211
|
- lib/compass-sass.rb
|
195
212
|
- lib/incloudr.rb
|
213
|
+
- lib/npm.rb
|
196
214
|
- lib/settings.rb
|
197
215
|
- lib/tools.rb
|
198
|
-
-
|
216
|
+
- lor
|
217
|
+
- spec/capucine/capucine_spec.rb
|
218
|
+
- spec/capucine/coffee_spec.rb
|
219
|
+
- spec/capucine/incloudr_spec.rb
|
220
|
+
- spec/capucine_coffee.yaml
|
221
|
+
- spec/capucine_incloudr.yaml
|
222
|
+
- spec/capucine_incloudr2.yaml
|
223
|
+
- spec/capucine_incloudr3.yaml
|
224
|
+
- spec/spec.rake
|
225
|
+
- spec/spec_helper.rb
|
226
|
+
- templates/README.md
|
227
|
+
- templates/sinatra.yaml
|
199
228
|
homepage: http://capucine.dln.name
|
200
229
|
licenses:
|
201
230
|
- MIT
|
@@ -211,7 +240,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
240
|
version: '0'
|
212
241
|
segments:
|
213
242
|
- 0
|
214
|
-
hash:
|
243
|
+
hash: 3460634822692606709
|
215
244
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
216
245
|
none: false
|
217
246
|
requirements:
|
data/Gemfile.lock
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: http://rubygems.org/
|
3
|
-
specs:
|
4
|
-
chunky_png (1.2.5)
|
5
|
-
coffee-script (2.2.0)
|
6
|
-
coffee-script-source
|
7
|
-
execjs
|
8
|
-
coffee-script-source (1.2.0)
|
9
|
-
compass (0.12.rc.0)
|
10
|
-
chunky_png (~> 1.2)
|
11
|
-
fssm (>= 0.2.7)
|
12
|
-
sass (~> 3.1)
|
13
|
-
compass-capucine (0.1.0)
|
14
|
-
compass
|
15
|
-
execjs (1.3.0)
|
16
|
-
multi_json (~> 1.0)
|
17
|
-
fssm (0.2.8.1)
|
18
|
-
git (1.2.5)
|
19
|
-
jeweler (1.8.3)
|
20
|
-
bundler (~> 1.0)
|
21
|
-
git (>= 1.2.5)
|
22
|
-
rake
|
23
|
-
rdoc
|
24
|
-
json (1.6.5)
|
25
|
-
multi_json (1.1.0)
|
26
|
-
oyster (0.9.5)
|
27
|
-
packr (3.1.1)
|
28
|
-
oyster (>= 0.9.5)
|
29
|
-
rake (0.9.2.2)
|
30
|
-
rdoc (3.12)
|
31
|
-
json (~> 1.4)
|
32
|
-
sass (3.1.15)
|
33
|
-
uglifier (1.2.3)
|
34
|
-
execjs (>= 0.3.0)
|
35
|
-
multi_json (>= 1.0.2)
|
36
|
-
|
37
|
-
PLATFORMS
|
38
|
-
ruby
|
39
|
-
|
40
|
-
DEPENDENCIES
|
41
|
-
bundler (~> 1.0.0)
|
42
|
-
coffee-script
|
43
|
-
compass (= 0.12.rc.0)
|
44
|
-
compass-capucine
|
45
|
-
fssm
|
46
|
-
jeweler (~> 1.8.3)
|
47
|
-
json
|
48
|
-
packr
|
49
|
-
uglifier
|
data/lib/commands.rb
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
module Capucine
|
2
|
-
class Commands
|
3
|
-
|
4
|
-
require 'tools.rb'
|
5
|
-
require 'watch.rb'
|
6
|
-
|
7
|
-
def initialize args
|
8
|
-
first_arg = args[0]
|
9
|
-
second_arg = args[1]
|
10
|
-
cap = Capucine.new
|
11
|
-
|
12
|
-
if first_arg == 'help' or first_arg == 'h'
|
13
|
-
Capucine::Commands.help
|
14
|
-
elsif first_arg == 'new' or first_arg == 'n'
|
15
|
-
Capucine::Tools.new_project second_arg
|
16
|
-
elsif first_arg == 'init' or first_arg == 'i'
|
17
|
-
Capucine::Tools.init second_arg
|
18
|
-
elsif first_arg == 'compile' or first_arg == 'c'
|
19
|
-
Capucine::Watchr.compile second_arg
|
20
|
-
elsif first_arg == 'watch' or first_arg == 'w'
|
21
|
-
Capucine::Watchr.watch second_arg
|
22
|
-
elsif first_arg == 'clean'
|
23
|
-
Capucine::Tools.clean
|
24
|
-
elsif first_arg == 'list'
|
25
|
-
Capucine::Incloudr.list
|
26
|
-
elsif first_arg == 'update' or first_arg == 'u'
|
27
|
-
system('gem install capucine')
|
28
|
-
else
|
29
|
-
Capucine::Commands.help
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
def self.help
|
34
|
-
file_name = File.join Capucine.settings.gem_content_dir, 'templates', 'cmd_help.erb'
|
35
|
-
version = File.read(File.join(Capucine.settings.gem_dir, 'VERSION'))
|
36
|
-
render = Capucine::Tools.render_template file_name, version
|
37
|
-
puts render
|
38
|
-
exit
|
39
|
-
end
|
40
|
-
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
data/lib/watch.rb
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
module Capucine
|
2
|
-
class Watchr
|
3
|
-
require 'compass-sass.rb'
|
4
|
-
require 'coffeescript.rb'
|
5
|
-
require 'incloudr.rb'
|
6
|
-
|
7
|
-
def self.watch config_file = nil
|
8
|
-
self.compile config_file
|
9
|
-
|
10
|
-
if config_file
|
11
|
-
Capucine.settings.get_config config_file
|
12
|
-
else
|
13
|
-
Capucine.settings.get_config
|
14
|
-
end
|
15
|
-
|
16
|
-
@config = Capucine.settings.config
|
17
|
-
|
18
|
-
sass_proc = Capucine::CompassSass.proc_watch if @config['sass']
|
19
|
-
coffeescript_proc = Capucine::Coffee.proc_watch if @config['coffeescript']
|
20
|
-
|
21
|
-
sass_proc.join if sass_proc
|
22
|
-
coffeescript_proc.join if coffeescript_proc
|
23
|
-
end
|
24
|
-
|
25
|
-
def self.compile config_file = nil
|
26
|
-
if config_file
|
27
|
-
Capucine.settings.get_config config_file
|
28
|
-
else
|
29
|
-
Capucine.settings.get_config
|
30
|
-
end
|
31
|
-
|
32
|
-
@config = Capucine.settings.config
|
33
|
-
|
34
|
-
Capucine::CompassSass.run_once if @config['sass']
|
35
|
-
Capucine::Coffee.run_once if @config['coffeescript']
|
36
|
-
Capucine::Incloudr.run_once if @config['incloudr']
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|