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 +4 -4
- data/bin/shiftzilla +2 -0
- data/lib/shiftzilla/engine.rb +0 -2
- data/lib/shiftzilla/source.rb +9 -0
- data/lib/shiftzilla/version.rb +1 -1
- data/shiftzilla.gemspec +2 -0
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6120a38d461b58efc1f748b11b18d47c28500221480b8add0857edefa7f7fe21
|
4
|
+
data.tar.gz: 9e5f15558b012781ff0a0936b8f3e994719427d9a4c4949fb9bbb872474356ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c1729bd4c0493aa0c5507778b67083abf019b973f071aaddfa6046e800b12987a7103ed1ad56f513f173e01ebbf8543f204cfdd22a4dbe059592ce856e7e5aa
|
7
|
+
data.tar.gz: 55eab99d47d28c12137b51927c14b092fe21fbd0e0f2602f4d1d1057f6c1bf0e515f9c28c752f0543f560d6900a451f9c4dee8bd66bd3a4175916db47aec15b1
|
data/bin/shiftzilla
CHANGED
data/lib/shiftzilla/engine.rb
CHANGED
@@ -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
|
data/lib/shiftzilla/source.rb
CHANGED
@@ -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
|
data/lib/shiftzilla/version.rb
CHANGED
data/shiftzilla.gemspec
CHANGED
@@ -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.
|
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:
|
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: '
|
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
|
-
|
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
|