awestruct 0.5.6.beta6 → 0.5.6.beta7
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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/awestruct.gemspec +1 -1
- data/lib/awestruct/cli/manifest.rb +2 -26
- data/lib/awestruct/engine.rb +5 -2
- data/lib/awestruct/version.rb +1 -1
- data/spec/awestruct/cli/init_spec.rb +14 -2
- data/spec/awestruct/cli/invoker_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d0a0b884f8f8075f62ef50c24e8b88da675c91c
|
|
4
|
+
data.tar.gz: f9caa74d8b9515b3ff070d9a50cdb3e1f9574770
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5bac0dbe6355ee74fcc0649fecefc809cca2ec8beb48a0609bf0a83e252280dc8a0a636efcf71f7645229aae12b199940c868348cf6428d7f1a888397295ed74
|
|
7
|
+
data.tar.gz: 0c01f22fd87ead009d771cbc99d7f25cebbda6e5afcab6587fb7e2f28c847382b70ca35aa4ab86b46cd46d1841bd99aa9e40252abbce0e148c46b32a6ef9dcf9
|
data/Gemfile
CHANGED
data/awestruct.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ require 'awestruct/version'
|
|
|
4
4
|
spec = Gem::Specification.new do |s|
|
|
5
5
|
s.name = 'awestruct'
|
|
6
6
|
s.version = Awestruct::VERSION
|
|
7
|
-
s.date = '2014-11-
|
|
7
|
+
s.date = '2014-11-13'
|
|
8
8
|
|
|
9
9
|
s.authors = ['Bob McWhirter', 'Jason Porter', 'Lance Ball', 'Dan Allen', 'Torsten Curdt', 'other contributors']
|
|
10
10
|
s.email = ['bob@mcwhirter.org', 'lightguard.jp@gmail.com', 'lball@redhat.com', 'dan.j.allen@gmail.com', 'tcurdt@vafer.org']
|
|
@@ -1,33 +1,8 @@
|
|
|
1
1
|
require 'sass/callbacks'
|
|
2
2
|
require 'compass'
|
|
3
3
|
require 'compass/commands'
|
|
4
|
-
require 'compass/installers/bare_installer'
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
class ::Compass::AppIntegration::StandAlone::Installer
|
|
10
|
-
def write_configuration_files(config_file = nil)
|
|
11
|
-
# no!
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
def finalize(opts={})
|
|
15
|
-
$LOG.info <<-END.gsub(/^ {6}/, '')
|
|
16
|
-
|
|
17
|
-
Now you're awestruct!
|
|
18
|
-
|
|
19
|
-
To generate and run your site in development mode, execute:
|
|
20
|
-
|
|
21
|
-
awestruct -d
|
|
22
|
-
|
|
23
|
-
or, simply:
|
|
24
|
-
|
|
25
|
-
rake
|
|
26
|
-
|
|
27
|
-
then visit your site at: #{::Awestruct::CLI::Options::DEFAULT_BASE_URL}
|
|
28
|
-
END
|
|
29
|
-
end
|
|
30
|
-
end
|
|
5
|
+
# TODO: We could create our own installer and use that
|
|
31
6
|
|
|
32
7
|
module Awestruct
|
|
33
8
|
module CLI
|
|
@@ -245,6 +220,7 @@ module Awestruct
|
|
|
245
220
|
:images_dir => 'images',
|
|
246
221
|
:fonts_dir => 'fonts',
|
|
247
222
|
:javascripts_dir => 'javascripts',
|
|
223
|
+
:bare => true
|
|
248
224
|
})
|
|
249
225
|
cmd.perform
|
|
250
226
|
end
|
data/lib/awestruct/engine.rb
CHANGED
|
@@ -276,8 +276,6 @@ module Awestruct
|
|
|
276
276
|
config.javascripts_path = File.join(site.output_dir, 'javascripts')
|
|
277
277
|
config.http_javascripts_dir = File.join(config.http_path, 'javascripts')
|
|
278
278
|
config.http_stylesheets_dir = File.join(config.http_path, 'stylesheets')
|
|
279
|
-
config.generated_images_dir = File.join(site.output_dir, 'images')
|
|
280
|
-
config.http_generated_images_dir = File.join(config.http_path, 'images')
|
|
281
279
|
config.sprite_load_path = [config.images_path]
|
|
282
280
|
config.http_images_dir = File.join(config.http_path, 'images')
|
|
283
281
|
config.images_path = File.join(config.project_path, 'images')
|
|
@@ -285,6 +283,11 @@ module Awestruct
|
|
|
285
283
|
config.fonts_path = File.join(config.project_path, 'fonts')
|
|
286
284
|
config.http_fonts_dir = File.join(config.http_path, 'fonts')
|
|
287
285
|
|
|
286
|
+
if config.generated_images_dir == config.default_for('generated_images_dir')
|
|
287
|
+
config.generated_images_dir = File.join(site.output_dir, 'images')
|
|
288
|
+
config.http_generated_images_dir = File.join(config.http_path, 'images')
|
|
289
|
+
end
|
|
290
|
+
|
|
288
291
|
config.line_comments = lambda do
|
|
289
292
|
if site.profile.eql? 'production'
|
|
290
293
|
return false
|
data/lib/awestruct/version.rb
CHANGED
|
@@ -11,8 +11,20 @@ describe Awestruct::CLI::Init do
|
|
|
11
11
|
FileUtils.rm_rf 'spec/support/clean_init'
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
it "should not fail during init" do
|
|
14
|
+
it "should not fail during init with compass" do
|
|
15
15
|
init = Awestruct::CLI::Init.new('spec/support/clean_init', 'compass', true)
|
|
16
|
-
expect(init.run).to eql true
|
|
16
|
+
expect(init.run).to eql true
|
|
17
|
+
end
|
|
18
|
+
it "should not fail during init with foundation" do
|
|
19
|
+
init = Awestruct::CLI::Init.new('spec/support/clean_init', 'foundation', true)
|
|
20
|
+
expect(init.run).to eql true
|
|
21
|
+
end
|
|
22
|
+
it "should not fail during init with bootstrap" do
|
|
23
|
+
init = Awestruct::CLI::Init.new('spec/support/clean_init', 'bootstrap', true)
|
|
24
|
+
expect(init.run).to eql true
|
|
25
|
+
end
|
|
26
|
+
it "should not fail during init with 960" do
|
|
27
|
+
init = Awestruct::CLI::Init.new('spec/support/clean_init', '960', true)
|
|
28
|
+
expect(init.run).to eql true
|
|
17
29
|
end
|
|
18
30
|
end
|
|
@@ -4,11 +4,11 @@ require 'awestruct/cli/invoker'
|
|
|
4
4
|
|
|
5
5
|
describe Awestruct::CLI::Invoker do
|
|
6
6
|
before(:each) do
|
|
7
|
-
FileUtils.mkdir_p 'spec/support/
|
|
7
|
+
FileUtils.mkdir_p 'spec/support/clean_invoker'
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
after(:each) do
|
|
11
|
-
FileUtils.rm_rf 'spec/support/
|
|
11
|
+
FileUtils.rm_rf 'spec/support/clean_invoker'
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
it "should invoke generation by default" do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: awestruct
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.6.
|
|
4
|
+
version: 0.5.6.beta7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bob McWhirter
|
|
@@ -13,7 +13,7 @@ authors:
|
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date: 2014-11-
|
|
16
|
+
date: 2014-11-13 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: haml
|