staticise 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +11 -0
- data/VERSION +1 -1
- data/lib/staticise/cli.rb +3 -0
- data/lib/staticise/renderer.rb +0 -23
- data/staticise.gemspec +4 -1
- metadata +18 -2
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -11,6 +11,7 @@ GEM
|
|
11
11
|
coffee-script-source (1.6.2)
|
12
12
|
commander (4.1.3)
|
13
13
|
highline (~> 1.6.11)
|
14
|
+
commonjs (0.2.6)
|
14
15
|
execjs (1.4.0)
|
15
16
|
multi_json (~> 1.0)
|
16
17
|
ffi (1.8.1)
|
@@ -25,6 +26,9 @@ GEM
|
|
25
26
|
guard-coffeescript (1.3.1)
|
26
27
|
coffee-script (>= 2.2.0)
|
27
28
|
guard (>= 1.1.0)
|
29
|
+
guard-less (0.1.2)
|
30
|
+
guard (>= 0.2.2)
|
31
|
+
less (~> 2.1.0)
|
28
32
|
guard-sass (1.2.0)
|
29
33
|
guard (>= 1.1.0)
|
30
34
|
sass (>= 3.1)
|
@@ -38,6 +42,10 @@ GEM
|
|
38
42
|
rake
|
39
43
|
rdoc
|
40
44
|
json (1.8.0)
|
45
|
+
less (2.1.0)
|
46
|
+
commonjs (~> 0.2.0)
|
47
|
+
therubyracer (~> 0.10.0)
|
48
|
+
libv8 (3.3.10.4)
|
41
49
|
listen (1.1.3)
|
42
50
|
rb-fsevent (>= 0.9.3)
|
43
51
|
rb-inotify (>= 0.9)
|
@@ -65,6 +73,8 @@ GEM
|
|
65
73
|
shoulda-matchers (2.1.0)
|
66
74
|
activesupport (>= 3.0.0)
|
67
75
|
slop (3.4.5)
|
76
|
+
therubyracer (0.10.2)
|
77
|
+
libv8 (~> 3.3.10)
|
68
78
|
thor (0.18.1)
|
69
79
|
tilt (1.4.1)
|
70
80
|
|
@@ -77,6 +87,7 @@ DEPENDENCIES
|
|
77
87
|
commander
|
78
88
|
guard
|
79
89
|
guard-coffeescript
|
90
|
+
guard-less
|
80
91
|
guard-sass
|
81
92
|
haml
|
82
93
|
jeweler
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/lib/staticise/cli.rb
CHANGED
@@ -25,6 +25,8 @@ module Staticise
|
|
25
25
|
def init(*guard_names)
|
26
26
|
puts "initializing..."
|
27
27
|
|
28
|
+
::Staticise::Renderer.init
|
29
|
+
|
28
30
|
verify_bundler_presence
|
29
31
|
|
30
32
|
::Guard::Guardfile.create_guardfile(:abort_on_existence => options[:bare])
|
@@ -35,6 +37,7 @@ module Staticise
|
|
35
37
|
|
36
38
|
f.puts("guard 'coffeescript', :input => 'app/js', :output => 'public/js'")
|
37
39
|
f.puts("guard 'sass', :input => 'app/css', :output => 'public/css'")
|
40
|
+
f.puts("guard 'less', :output => 'public/css'")
|
38
41
|
f.puts("guard 'staticise', :input => 'app', :output => 'public'")
|
39
42
|
|
40
43
|
end
|
data/lib/staticise/renderer.rb
CHANGED
@@ -46,14 +46,6 @@ module Staticise
|
|
46
46
|
true
|
47
47
|
end
|
48
48
|
|
49
|
-
|
50
|
-
def self.all
|
51
|
-
self.pages
|
52
|
-
self.scripts
|
53
|
-
self.styles
|
54
|
-
puts "DONE..."
|
55
|
-
end
|
56
|
-
|
57
49
|
def self.pages
|
58
50
|
puts "Compiling pages.."
|
59
51
|
files = Dir.glob(File.join(APP_ROOT, 'app/pages/**/*.haml'))
|
@@ -64,21 +56,6 @@ module Staticise
|
|
64
56
|
return
|
65
57
|
end
|
66
58
|
|
67
|
-
def self.scripts
|
68
|
-
puts 'compiling coffees...'
|
69
|
-
`coffee -o #{ File.join(APP_ROOT, 'public', 'js') } -c #{ File.join(APP_ROOT, 'app', 'js')}`
|
70
|
-
`coffee --join #{ File.join(APP_ROOT, 'public', 'js', 'app.js') } -c #{ File.join(APP_ROOT, 'app', 'js')}`
|
71
|
-
end
|
72
|
-
|
73
|
-
def self.styles
|
74
|
-
puts "Compiling pages.."
|
75
|
-
files = Dir.glob(File.join(APP_ROOT, 'app/css/**/*.less'))
|
76
|
-
files.each do |f|
|
77
|
-
self.compile_css(f)
|
78
|
-
end
|
79
|
-
return
|
80
|
-
end
|
81
|
-
|
82
59
|
|
83
60
|
def self.init
|
84
61
|
puts "Creating default folder structure.."
|
data/staticise.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "staticise"
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Melvin Sembrano"]
|
@@ -82,6 +82,7 @@ Gem::Specification.new do |s|
|
|
82
82
|
s.add_runtime_dependency(%q<guard>, [">= 0"])
|
83
83
|
s.add_runtime_dependency(%q<guard-coffeescript>, [">= 0"])
|
84
84
|
s.add_runtime_dependency(%q<guard-sass>, [">= 0"])
|
85
|
+
s.add_runtime_dependency(%q<guard-less>, [">= 0"])
|
85
86
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
86
87
|
s.add_development_dependency(%q<rdoc>, [">= 0"])
|
87
88
|
s.add_development_dependency(%q<bundler>, [">= 0"])
|
@@ -95,6 +96,7 @@ Gem::Specification.new do |s|
|
|
95
96
|
s.add_dependency(%q<guard>, [">= 0"])
|
96
97
|
s.add_dependency(%q<guard-coffeescript>, [">= 0"])
|
97
98
|
s.add_dependency(%q<guard-sass>, [">= 0"])
|
99
|
+
s.add_dependency(%q<guard-less>, [">= 0"])
|
98
100
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
99
101
|
s.add_dependency(%q<rdoc>, [">= 0"])
|
100
102
|
s.add_dependency(%q<bundler>, [">= 0"])
|
@@ -109,6 +111,7 @@ Gem::Specification.new do |s|
|
|
109
111
|
s.add_dependency(%q<guard>, [">= 0"])
|
110
112
|
s.add_dependency(%q<guard-coffeescript>, [">= 0"])
|
111
113
|
s.add_dependency(%q<guard-sass>, [">= 0"])
|
114
|
+
s.add_dependency(%q<guard-less>, [">= 0"])
|
112
115
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
113
116
|
s.add_dependency(%q<rdoc>, [">= 0"])
|
114
117
|
s.add_dependency(%q<bundler>, [">= 0"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: staticise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -139,6 +139,22 @@ dependencies:
|
|
139
139
|
- - ! '>='
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: guard-less
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
type: :runtime
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
142
158
|
- !ruby/object:Gem::Dependency
|
143
159
|
name: shoulda
|
144
160
|
requirement: !ruby/object:Gem::Requirement
|
@@ -272,7 +288,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
272
288
|
version: '0'
|
273
289
|
segments:
|
274
290
|
- 0
|
275
|
-
hash:
|
291
|
+
hash: -3305992696213956350
|
276
292
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
277
293
|
none: false
|
278
294
|
requirements:
|