awestruct 0.5.6.beta4 → 0.5.6.beta5

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: 451184e1b282a5edaa7f91b42dbd97c3d65b1c8b
4
- data.tar.gz: 4f974bef0f5cbd233b4fb5e170c64b5ccd2fb2ae
3
+ metadata.gz: a8da264db525dd9720d5fb24fcf7caa8f7e0be5f
4
+ data.tar.gz: eccb58baf90c70f61768063f74afbfa2fdb6ec0d
5
5
  SHA512:
6
- metadata.gz: 050c58ea9b0d2147c60e761712761d8417daf42034576b6b1e88deb6fc49f68e9cbea02ee33f7b5feb1aa54d765c0ce58544d300934a643f3600163385bc7144
7
- data.tar.gz: 5b6a63471993f469cfe4ca6ba5aa6896b31d8634aee872c60bee0ecb98d93fd607ce1a4a0d79c7881bdbe7f1df31b60402240bc1cd4c163681e90210b35c738a
6
+ metadata.gz: 28fed5e74ec3e7e0009a91a89712988d8e29cfc7baed8e2e7235598ad104930e472325e522e751a4f96ab0266050f43f493685d14c1b97a64b8672d6dcffa869
7
+ data.tar.gz: f446847490a8208a8da6884a0511a9fcfca1441618cdae077883ab657bd5bf2b2b3d25928843f05bcb062dbb38869aeaacd32cbacd0979cd4ebc4277b4dea8ef
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-10-24'
7
+ s.date = '2014-11-05'
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']
@@ -46,8 +46,11 @@ module Awestruct
46
46
  generate_thread = Thread.new {
47
47
  begin
48
48
  if ( File.extname(path) == '.sass' || File.extname(path) == '.scss' )
49
- # TODO use sass here, eventually
49
+ # TODO use sass here, eventually, as soon as I can figure out how to get it and sprites to work
50
50
  ::Compass::Commands::UpdateProject.new(engine.site.dir, {}).perform
51
+ # fixes the nil later on, there's an outstanding bug that css
52
+ # pages aren't output in the correct directory
53
+ pages = []
51
54
  else
52
55
  page = engine.page_by_source_path(path)
53
56
  pages = []
@@ -97,11 +97,11 @@ module Awestruct
97
97
  self.auto = true
98
98
  self.port = DEFAULT_PORT
99
99
  self.profile = 'development'
100
- self.livereload = livereload
100
+ self.livereload = true
101
101
  end
102
102
  opts.on( '-a', '--auto', 'Auto-generate when changes are noticed' ) do |a|
103
103
  self.auto = a
104
- self.livereload = livereload
104
+ self.livereload = true
105
105
  end
106
106
  opts.on( '--livereload', 'Support for browser livereload' ) do |livereload|
107
107
  self.livereload = livereload
@@ -153,6 +153,10 @@ module Awestruct
153
153
  end
154
154
 
155
155
  opts.parse!(args)
156
+ self.base_url ||= DEFAULT_BASE_URL
157
+ self.port ||= DEFAULT_PORT
158
+ self.bind_addr ||= DEFAULT_BIND_ADDR
159
+
156
160
  self.generate = true if self.generate.nil?
157
161
  self
158
162
  end # parse()
@@ -31,7 +31,7 @@ module Awestruct
31
31
  end
32
32
 
33
33
  def default_css_dir
34
- site.css_dir
34
+ File.join site.output_dir, 'stylesheets'
35
35
  end
36
36
 
37
37
  def default_javascripts_dir
@@ -51,7 +51,7 @@ module Awestruct
51
51
  end
52
52
 
53
53
  def default_generated_images_dir
54
- File.join site.output_path, 'images'
54
+ File.join site.output_dir, 'images'
55
55
  end
56
56
 
57
57
  def default_http_generated_images_dir
@@ -263,7 +263,8 @@ module Awestruct
263
263
  def configure_compass
264
264
  site.images_dir = File.join( site.config.dir, 'images' )
265
265
  site.fonts_dir = File.join( site.config.dir, 'fonts' )
266
- site.stylesheets_dir = File.join( site.config.dir, 'stylesheets' )
266
+ site.sass_dir = File.join( site.config.dir, 'stylesheets' )
267
+ site.css_dir = File.join( site.config.output_dir, 'stylesheets' )
267
268
  site.javascripts_dir = File.join( site.config.dir, 'javascripts' )
268
269
 
269
270
  default_config = Awestruct::Compass::DefaultConfiguration.new(site)
@@ -272,7 +273,9 @@ module Awestruct
272
273
  default_config.inherit_from! ::Compass::Configuration::FileData.new_from_file(compass_config_file)
273
274
  end
274
275
 
276
+ ::Compass.reset_configuration!
275
277
  ::Compass.add_configuration default_config
278
+ ::Compass.configuration # return for use elsewhere
276
279
 
277
280
  # TODO: Should we add an on_stylesheet_error block?
278
281
  end
@@ -320,11 +323,11 @@ module Awestruct
320
323
  # path - relative to output dir
321
324
  def page_by_source_path(path)
322
325
  if (path.include? '_layout')
323
- site.layouts.find { |p| p.source_path.to_s == path }
326
+ site.layouts.find { |p| p.source_path.to_s.include? path }
324
327
  elsif (path.include? '_partial')
325
- site.partials.find { |p| p.source_path.to_s == path }
328
+ site.partials.find { |p| p.source_path.to_s.include? path }
326
329
  else
327
- site.pages.find { |p| p.source_path.to_s == path }
330
+ site.pages.find { |p| p.source_path.to_s.include? path }
328
331
  end
329
332
  end
330
333
 
@@ -1,3 +1,3 @@
1
1
  module Awestruct
2
- VERSION = '0.5.6.beta4'
2
+ VERSION = '0.5.6.beta5'
3
3
  end
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.beta4
4
+ version: 0.5.6.beta5
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-10-24 00:00:00.000000000 Z
16
+ date: 2014-11-05 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: haml