advance 0.1.0 → 0.1.1

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: 0704814d6913c4e1e3bccbc24d697e2681ba71d7
4
- data.tar.gz: 0408447d2efe199de361c058262065193341e964
3
+ metadata.gz: b554bb49d7d5003e2fc5031754afe1a4c08f7741
4
+ data.tar.gz: 5231a634d47aca8a8d15a578b0b4e0d2f7b17fd9
5
5
  SHA512:
6
- metadata.gz: cdb7d8f6c80d3f7df834d5eab82846c055bfc968d68d0df3ee863c08994adf2c3a09f50d79d42653119bf51d7c5407df6a0dc69832fbdc4be90d412f7f1441b2
7
- data.tar.gz: e77444b0f5e04ed12f31df208c22cfbb6d2b2eed99b2310caa040d17a01c7dc438b030a36b69d89121a161ef4bfb644086453c35ca13c418cb4bf1939ceaa4dc
6
+ metadata.gz: 02c498e7694e15b3b59cb2ac69582b0ddefab93de3b2863cc838e4b700dcc08ec873801268cbcb0fc47f308d705ce31f4d7db03a6fc11c9fa5d4d8791f590757
7
+ data.tar.gz: 3526bb8ed0671d1cc43a1aae89b91ecaaa541d5143526acec587cdcdef9a1e605483f068449f7d279080197dee6c5ae9bf5e32d87dfb40d9f184430d31044e87
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- advance (0.1.0)
4
+ advance (0.1.1)
5
5
  team_effort
6
6
 
7
7
  GEM
@@ -9,7 +9,7 @@ GEM
9
9
  specs:
10
10
  minitest (5.10.1)
11
11
  rake (10.4.2)
12
- team_effort (1.0.0)
12
+ team_effort (1.0.1)
13
13
 
14
14
  PLATFORMS
15
15
  ruby
data/bin/concat_csv.rb CHANGED
@@ -11,7 +11,7 @@ end
11
11
 
12
12
  files_dir_path = ARGV[0]
13
13
  output_file = ARGV[1]
14
- files = Find.find(files_dir_path).reject { |p| FileTest.directory?(p) || p =~ %r(\b(stdout|stderr)$) }
14
+ files = Find.find(files_dir_path).reject { |p| FileTest.directory?(p) || File.basename(p) == "log" }
15
15
 
16
16
  # 1. capture the header from the first file
17
17
  do_cmd "ghead -n 1 #{files.first} > header"
data/bin/split_csv.rb CHANGED
@@ -11,7 +11,7 @@ lines = ARGV[1]
11
11
  csv_file_name = File.basename(csv_file)
12
12
  system "ghead -n 1 #{csv_file} > #{csv_file_name}_header"
13
13
  system "gtail -n +2 #{csv_file} | gsplit -l #{lines} -a 3 - #{csv_file_name}_"
14
- files = Dir.entries(".").reject { |f| f =~ %r{^(\.\.?|stdout|stderr)$} }
14
+ files = Dir.entries(".").reject { |f| f =~ %r{^(\.\.?|log)$} }
15
15
  TeamEffort.work(files, 1) do |file|
16
16
  tmp_file = "tmp_#{file}"
17
17
  do_cmd "gcat #{csv_file_name}_header #{file} >> #{tmp_file}"
data/lib/advance.rb CHANGED
@@ -88,7 +88,7 @@ module Advance
88
88
  do_command command, no_feedback
89
89
  end
90
90
  rescue
91
- puts "%%%% error while processing #{file}"
91
+ puts "%%%% error while processing >>#{file}<<"
92
92
  raise
93
93
  end
94
94
  end
@@ -1,3 +1,3 @@
1
1
  module Advance
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: advance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - janemacfarlane