shiftzilla 0.2.22 → 0.2.23

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
  SHA256:
3
- metadata.gz: a9e9ace955249bdb89d69b99109741b37d827b5c9dd3abb7be7c2733f615cdf1
4
- data.tar.gz: 802c36f72f1571ab298cb74f4f3e72cfb2e694f40f8fe768a120fb374700d7b7
3
+ metadata.gz: 6120a38d461b58efc1f748b11b18d47c28500221480b8add0857edefa7f7fe21
4
+ data.tar.gz: 9e5f15558b012781ff0a0936b8f3e994719427d9a4c4949fb9bbb872474356ff
5
5
  SHA512:
6
- metadata.gz: 737b8e19515ffe95a1228885bae143f2d26efdfef803c8ea17ce5127c1ab4028a9a9f0a4dce5ab4d1e307163b7e3a6d8d306e844445d96024db7e3c11681eafe
7
- data.tar.gz: 8bba34ac2ec258cc858715c44d3c25b1dde7b1d19ac4b35f29654b3e854e33560393e27656fefaca58974b40dd6ca3349afb9d13d8f9e97c7d19d1ef1469c972
6
+ metadata.gz: 5c1729bd4c0493aa0c5507778b67083abf019b973f071aaddfa6046e800b12987a7103ed1ad56f513f173e01ebbf8543f204cfdd22a4dbe059592ce856e7e5aa
7
+ data.tar.gz: 55eab99d47d28c12137b51927c14b092fe21fbd0e0f2602f4d1d1057f6c1bf0e515f9c28c752f0543f560d6900a451f9c4dee8bd66bd3a4175916db47aec15b1
@@ -101,6 +101,8 @@ when 'help'
101
101
  when 'version'
102
102
  puts Shiftzilla::VERSION
103
103
  exit 0
104
+ else
105
+ Optimist::educate
104
106
  end
105
107
 
106
108
  if cmd_opts.has_key?(:cfgpath)
@@ -34,8 +34,6 @@ module Shiftzilla
34
34
  menu.choice(:yes) {
35
35
  say("Okay. Creating #{Shiftzilla::DB_FPATH}")
36
36
  sql_tmpl = File.read(SQL_TMPL)
37
- tgt_rel_clause = release_clause(releases)
38
- sql_tmpl.gsub! '$RELEASE_CLAUSE', tgt_rel_clause
39
37
  dbh.execute_batch(sql_tmpl)
40
38
  dbh.close
41
39
  exit
@@ -30,7 +30,16 @@ module Shiftzilla
30
30
  retrieved = []
31
31
  bz_csv.split("||EOR\n").each do |row|
32
32
  values = row.split("\x1F").map{ |v| v.strip }
33
+
34
+ # Validate input
33
35
  next unless values.length > 0
36
+ begin
37
+ next unless Integer(values[0]) > 0
38
+ rescue
39
+ puts "Error: `#{values[0]}` is not a valid Bug ID."
40
+ next
41
+ end
42
+
34
43
  if not @external_bugs_idx.nil?
35
44
  if not @external_sub.nil? and not values[@external_bugs_idx].nil? and values[@external_bugs_idx].include?(@external_sub)
36
45
  values[@external_bugs_idx] = 1
@@ -1,3 +1,3 @@
1
1
  module Shiftzilla
2
- VERSION = "0.2.22"
2
+ VERSION = "0.2.23"
3
3
  end
@@ -18,6 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.required_ruby_version = '>= 2.4'
22
+
21
23
  spec.add_development_dependency 'bundler', '~> 1.16', '>= 1.16.1'
22
24
 
23
25
  spec.add_dependency 'fileutils', '~> 1.0', '>= 1.0.2'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shiftzilla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.22
4
+ version: 0.2.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - N. Harrison Ripps
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-26 00:00:00.000000000 Z
11
+ date: 2019-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -197,15 +197,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - ">="
199
199
  - !ruby/object:Gem::Version
200
- version: '0'
200
+ version: '2.4'
201
201
  required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  requirements:
203
203
  - - ">="
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  requirements: []
207
- rubyforge_project:
208
- rubygems_version: 2.7.6
207
+ rubygems_version: 3.0.1
209
208
  signing_key:
210
209
  specification_version: 4
211
210
  summary: Shiftzilla is a tool for providing historical reports based on Bugzilla data