bill_hicks 2.0.5 → 2.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8dcbcc2f22a456555f4cdac8eb08ab219bbb3b9
4
- data.tar.gz: dc9161d10148549977c0a6eac9f2be53861703ab
3
+ metadata.gz: 2ca02720b728ba6ffbd8680ab53dafe05d2b5c4e
4
+ data.tar.gz: 515d78c5fb032b38d3cca0abe94ff2253f9a204d
5
5
  SHA512:
6
- metadata.gz: 475c79974675c788ebd7e26cfbb86d7f50eebbfe8c92be475776e6e4e35ab741be3d5880afc3fe060966235a48ec0ed34de4e21fd24fcebf46cbfe16e4762473
7
- data.tar.gz: 80c29b42896d92130fd8f75027234d23ea73d153a6b04bcf25b1c78fb3746fcd0c17b3003f553b0d53f8200e11eb38d0e605ad0044adc9176982204dbde7fddf
6
+ metadata.gz: 179c92b5191a733d5ee0aee03037a36c9a231354f3326adc86eb1cc5fec8550c6c5b12430977bdadf0edb8548f916a8063cdacfd1f00ba23edda50c2d72b9feb
7
+ data.tar.gz: 9eb6201c9bc7f075da07869236f9d85495815b6619280c158284175ccbe295c0a3a295c6092962e965802a727cb1cd69619205c52f52342205c7ec0189e25084
@@ -31,12 +31,14 @@ module BillHicks
31
31
  end
32
32
 
33
33
  class Configuration
34
+ attr_accessor :debug_mode
34
35
  attr_accessor :ftp_host
35
36
  attr_accessor :response_dir
36
37
  attr_accessor :submission_dir
37
38
  attr_accessor :top_level_dir
38
39
 
39
40
  def initialize
41
+ @debug_mode ||= false
40
42
  @ftp_host ||= "billhicksco.hostedftp.com"
41
43
  @top_level_dir ||= "AmmoReady"
42
44
  @submission_dir ||= "toBHC"
@@ -5,6 +5,7 @@ module BillHicks
5
5
  requires!(options, :username, :password)
6
6
 
7
7
  Net::FTP.open(BillHicks.config.ftp_host, options[:username], options[:password]) do |ftp|
8
+ ftp.debug_mode = BillHicks.config.debug_mode
8
9
  ftp.passive = true
9
10
  yield ftp
10
11
  end
@@ -1,3 +1,3 @@
1
1
  module BillHicks
2
- VERSION = '2.0.5'
2
+ VERSION = '2.0.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bill_hicks
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Campbell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-28 00:00:00.000000000 Z
11
+ date: 2017-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smarter_csv