local_pac 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,9 +3,7 @@ require 'fileutils'
3
3
  require 'logger'
4
4
  require 'uglifier'
5
5
  require 'pac'
6
- require 'pstore'
7
6
  require 'yaml/store'
8
- require 'rugged'
9
7
  require 'erb'
10
8
  require 'thread'
11
9
  require 'open3'
@@ -21,7 +21,8 @@ module LocalPac
21
21
  if need_to_run? || options[:force] == true
22
22
  LocalPac.ui_logger.warn "Creating file \"#{destination}\"."
23
23
 
24
- FileUtils.chmod('+x', template(name, destination, data)) if options[:executable] == true
24
+ file = template(name, destination, data)
25
+ FileUtils.chmod('+x', file) if options[:executable] == true
25
26
  else
26
27
  LocalPac.ui_logger.warn "File \"#{destination}\" already exists. Do not create it again!."
27
28
  end
@@ -10,8 +10,8 @@ module LocalPac
10
10
  public
11
11
 
12
12
  def initialize(options = {}, config = LocalPac.config)
13
- @config = config
14
13
  @options = options
14
+ @config = config
15
15
  end
16
16
 
17
17
  def run
@@ -1,4 +1,4 @@
1
1
  #main LocalPac
2
2
  module LocalPac
3
- VERSION = '0.1.0'
3
+ VERSION = '0.1.1'
4
4
  end
@@ -14,8 +14,8 @@ describe Initializer do
14
14
  EOS
15
15
  config_file = create_file('config.yaml', config_string)
16
16
 
17
- config = LocalPac::Config.new({}, config_file)
18
- initializer = Initializer.new(config)
17
+ config = LocalPac::Config.new(config_file)
18
+ initializer = Initializer.new({}, config)
19
19
  silence(:stderr) do
20
20
  initializer.run
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: local_pac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: