deplomat 0.2.6 → 0.2.7

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: b2e9c687661352413bf11257f2172c76202376cf4991a8a3dd8cb612b46db576
4
- data.tar.gz: 2fa7f0158cce90e3955ac102e9727ec27b04710d124ae4a0652c8ef5965c712a
3
+ metadata.gz: 9a14e300c965c64acae0c3e0bcd15ac98e63c7d88ad3a3d049b9a81464f61bce
4
+ data.tar.gz: 0777d45bd41579e9a2150417333a588b69cc0e4868cd81be487697535c1fd520
5
5
  SHA512:
6
- metadata.gz: dc4bb610ad93ebd7ada7fc8eb0a1d5ff9c1709e37ff570e9a344b7f661a7929927759889eecc77958885b44c4acde9a8c0f7613f3da202298d42a793f2eb25d3
7
- data.tar.gz: 559bc6be58a7e5c22473c6881bbba65e83e1b96eebbc4d9310f3f9e499d9cfe5d77eb509b181e2bef8d0126b2a26a4705c9f15f4af7c736a3f63061f7cbc5d85
6
+ metadata.gz: 6e30d3719bbbc0792795b74346ad30add36cad08006ce8701147552d18ed635c91e4ba915214d3a562605a3d4a132884536062556f4fb9cdd5924bd0fe741ad2
7
+ data.tar.gz: '0978a9f8ab19ee6ee8c42a684d59d169871d3f52d92a46111bb89c8b9c68aca08e7303dd247a32dd9daed5545141564a1734f65cd4b4dd6a6be630ea8a4ee030'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.7
data/deplomat.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: deplomat 0.2.6 ruby lib
5
+ # stub: deplomat 0.2.7 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "deplomat".freeze
9
- s.version = "0.2.6"
9
+ s.version = "0.2.7"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
@@ -68,11 +68,19 @@ def load_requisites!(counter, requisites_path: "#{Dir.pwd}/deployment_requisites
68
68
  number = fn.split("/").last.match(/\A\d+_/).to_a.first&.chomp("_")
69
69
  number ? [number, fn] : nil
70
70
  end
71
- .compact # ignore files that don't start with a number
71
+
72
+ if files
73
+ files = files.compact # ignore files that don't start with a number
72
74
  .sort { |x,y| x.first <=> y.first } # Sort files according to the number in front of their names
73
75
  .map { |fn| fn.last } # lose the folded Array we used to store the consecutive requisite number
74
76
  .slice(counter..-1) # lose files whose consecutive requisite number is below or equals the counter
75
- log_requisites_count += "found #{files.size} new requisites."
77
+ end
78
+
79
+ if files && files.size > 0
80
+ log_requisites_count += "found #{files.size} new requisites."
81
+ else
82
+ log_requisites_count += "no files found"
83
+ end
76
84
  log << log_requisites_count
77
85
 
78
86
  files.each do |fn|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deplomat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Snitko