awestruct 0.5.6.beta6 → 0.5.6.beta7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db7e55c31a2f868ff2af456fa99b3973cca5ace4
4
- data.tar.gz: 75fa63745025b3c997570656784aa9a0d90d4282
3
+ metadata.gz: 2d0a0b884f8f8075f62ef50c24e8b88da675c91c
4
+ data.tar.gz: f9caa74d8b9515b3ff070d9a50cdb3e1f9574770
5
5
  SHA512:
6
- metadata.gz: 434c89d4a35282060da472a792200ee1d6b0ec591562776f87af431bf4cee4a688741bf3c95df8ebe34c844c6e37d2e09aa02b018e660f85a505be6a35df804a
7
- data.tar.gz: c7ff96fc604bdf64d679aadc7ab155880755e188f0df655df374fa224559062be1c5073d0252677ca3cd05d005bb69be33684f2a372886766723bb2c432fdebb
6
+ metadata.gz: 5bac0dbe6355ee74fcc0649fecefc809cca2ec8beb48a0609bf0a83e252280dc8a0a636efcf71f7645229aae12b199940c868348cf6428d7f1a888397295ed74
7
+ data.tar.gz: 0c01f22fd87ead009d771cbc99d7f25cebbda6e5afcab6587fb7e2f28c847382b70ca35aa4ab86b46cd46d1841bd99aa9e40252abbce0e148c46b32a6ef9dcf9
data/Gemfile CHANGED
@@ -6,7 +6,7 @@ group :development do
6
6
  gem 'rake', '~> 10.2.2'
7
7
  gem 'guard-rspec', '~> 4.2.0', :require => false
8
8
  gem 'pry', :require => false
9
- gem 'pry-byebug', :require => false
9
+ #gem 'pry-byebug', :require => false
10
10
  end
11
11
 
12
12
  group :test do
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-12'
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
- module ::Compass::AppIntegration::StandAlone
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Awestruct
2
- VERSION = '0.5.6.beta6'
2
+ VERSION = '0.5.6.beta7'
3
3
  end
@@ -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 # There may be some sort of race condition here
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/clean_init'
7
+ FileUtils.mkdir_p 'spec/support/clean_invoker'
8
8
  end
9
9
 
10
10
  after(:each) do
11
- FileUtils.rm_rf 'spec/support/clean_init'
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.beta6
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-12 00:00:00.000000000 Z
16
+ date: 2014-11-13 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: haml