benofsky-bolt 0.1.7 → 0.1.8

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.
Files changed (4) hide show
  1. data/lib/bolt/base.rb +1 -4
  2. data/lib/bolt/build.rb +1 -10
  3. data/lib/bolt.rb +1 -1
  4. metadata +1 -1
data/lib/bolt/base.rb CHANGED
@@ -7,16 +7,13 @@
7
7
  #
8
8
 
9
9
  require 'fileutils'
10
-
11
10
  require 'ftools' if RUBY_VERSION.to_f <= 1.8
12
11
 
13
12
  $BOLT_BASE = File.dirname(__FILE__) + "/../../"
14
13
 
15
14
  module Bolt
16
15
  class Base
17
- # Takes an ostruct options object created by parsing ARGV
18
- def initialize(options)
19
- $config = options
16
+ def initialize
20
17
  STDOUT.sync = true
21
18
  end
22
19
 
data/lib/bolt/build.rb CHANGED
@@ -14,16 +14,7 @@ require 'bolt/page'
14
14
  require 'bolt/view'
15
15
 
16
16
  module Bolt
17
- class Build < Base
18
- # Performs all the nessecary steps to build a Bolt project
19
- def initialize()
20
- if $config.out
21
- puts $config.out
22
- else
23
- $config.out = d("out")
24
- end
25
- end
26
-
17
+ class Build < Base
27
18
  def run
28
19
  remove_directory($config.out)
29
20
  create_directory($config.out, :error_if_exists => false)
data/lib/bolt.rb CHANGED
@@ -33,7 +33,7 @@ module Bolt
33
33
  # all nessecary directories for a new bolt project
34
34
  def create
35
35
  require 'bolt/project'
36
- Project.new($config).run
36
+ Project.new.run
37
37
  end
38
38
 
39
39
  # Creates a new build object and runs it resulting in building
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benofsky-bolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben McRedmond