rsr_group 1.7.2 → 1.7.3

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: 60aec2f7554722f555e564a63c9955233813af8f
4
- data.tar.gz: c0095cd2bb02d6828e6887d574cc18414295ca3d
3
+ metadata.gz: 06973d0b2a7256d644c94dbec1bc0a6613ddaeed
4
+ data.tar.gz: 5949fcaca6dd6bc0863cac51ce0996164a1c83b6
5
5
  SHA512:
6
- metadata.gz: 4461dc6f17278f30dcdd0b001cb21b737c6b14c1fbaa9f3bcf7af2a9cd94642476f0cf044650bf51da967c6ab00790d20585cb6dd566a52ff277086bd9b680ac
7
- data.tar.gz: dd61925b473eeed563386c973247bb639423c43aac71cc31acb11d751e8c8e0629f92d208ee82595e2861c34b3fa5e7732f0469aa226958335e6b602beba82cb
6
+ metadata.gz: 917b56bc57829dd57615ffed35909cdd0cd8fc5fa42300c64822966cbc19c6d38fdc31c16487568e04719b0f6984bae720255e8065b2fa9162157290bc63fa7d
7
+ data.tar.gz: b644cbc0abff68bbdeae058207a901ff1193b05c425d9b780a1ab62427469c29055416528d6e8a391155082d55e242b6a6e173f615d0fa07abbc1983716dd4a2
data/lib/rsr_group.rb CHANGED
@@ -35,12 +35,14 @@ module RsrGroup
35
35
  end
36
36
 
37
37
  class Configuration
38
+ attr_accessor :debug_mode
38
39
  attr_accessor :ftp_host
39
40
  attr_accessor :submission_dir
40
41
  attr_accessor :response_dir
41
42
  attr_accessor :vendor_email
42
43
 
43
44
  def initialize
45
+ @debug_mode ||= false
44
46
  @ftp_host ||= "ftp.rsrgroup.com"
45
47
  @submission_dir ||= File.join("eo", "incoming")
46
48
  @response_dir ||= File.join("eo", "outgoing")
@@ -5,6 +5,7 @@ module RsrGroup
5
5
  requires!(options, :username, :password)
6
6
 
7
7
  Net::FTP.open(RsrGroup.config.ftp_host, options[:username], options[:password]) do |ftp|
8
+ ftp.debug_mode = RsrGroup.config.debug_mode
8
9
  ftp.passive = true
9
10
  yield ftp
10
11
  end
@@ -1,3 +1,3 @@
1
1
  module RsrGroup
2
- VERSION = '1.7.2'
2
+ VERSION = '1.7.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsr_group
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
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-04-06 00:00:00.000000000 Z
11
+ date: 2017-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: smarter_csv
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.5.1
137
+ rubygems_version: 2.6.7
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: RSR Group Ruby library