ndr_dev_support 5.4.2 → 5.4.3

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: 40ccc810a2c161f76dc266186853a4e99b55bb3e5d787152c6fb991c15d37ad2
4
- data.tar.gz: ed3864f3a6407480926e6d12fcc52608f027f21623bc6be50156b96b4e47bd53
3
+ metadata.gz: 88fa4dc2d23262c7862de5de6c3b84c3621755cb26f8aea709bb0987994387df
4
+ data.tar.gz: 7071375825241e3f64ca568c51206540262b499d82d022758a9daef325be422c
5
5
  SHA512:
6
- metadata.gz: 91b5c6307cffd80b185ec2277efccb99b6a836211753ae8858b9f901b9f0e7956d196268a115fb9aaa8a80396e15c7b42b4ee102929aaeea2dc2d860f2f19f1e
7
- data.tar.gz: 362d64a1fc3daccad19fdf05be711ce7b007e4ccde90f6757b1aafc477a49b80e75d9214a9f32532aaaeda028d233b05960c545e6415168f75e69532ebb583bc
6
+ metadata.gz: 28e5ae508027e943ae8ce540d8f9206b194cd55c1544b9eee7a6332670c62f0a2296717f9021d2305cd4f07211b44b326dcb67f9df054147462eaa52e1f1211b
7
+ data.tar.gz: da800d3520a3c2dd2003f1e4dd4b588bb07fc1a06c01e45668b5c35641e87896315ad5c698d7181013101d286cdc95e9ff1de82b5e65a4d9d58ab0b385712ff5
@@ -30,6 +30,14 @@ Layout/DotPosition:
30
30
  # Multi-line method chaining should be done with trailing dots.
31
31
  EnforcedStyle: trailing
32
32
 
33
+ Layout/AlignHash:
34
+ EnforcedColonStyle:
35
+ - key
36
+ - table
37
+ EnforcedHashRocketStyle:
38
+ - key
39
+ - table
40
+
33
41
  ##################### Style ##################################
34
42
 
35
43
  # We make use of block comments, e.g. for validation documentation.
@@ -1,6 +1,11 @@
1
1
  ## [Unreleased]
2
2
  *no unreleased changes*
3
3
 
4
+ ## 5.4.3 / 2019-06-18
5
+ ### Fixed
6
+ * Avoid `RBENV_ROOT` issues when deploying to NDR-model targets
7
+ * Avoid duplicate 'tests passed' notifications (#49)
8
+
4
9
  ## 5.4.2 / 2019-06-18
5
10
  ### Fixed
6
11
  * Tweak `:chrome_headless` driver for Chrome 75+
@@ -11,7 +11,7 @@ file safety:
11
11
  ".rubocop.yml":
12
12
  comments:
13
13
  reviewed_by: josh.pencheon
14
- safe_revision: a4fc1188be78ee287799c2fafd2395f94fccabbe
14
+ safe_revision: e67a239f5e3917fb190092a50862d17f540584fb
15
15
  ".travis.yml":
16
16
  comments:
17
17
  reviewed_by: josh.pencheon
@@ -19,7 +19,7 @@ file safety:
19
19
  CHANGELOG.md:
20
20
  comments:
21
21
  reviewed_by: josh.pencheon
22
- safe_revision: a17b7d43e0c40ae2c5c3a5062c7c47380184dc32
22
+ safe_revision: f0f36386fbb45f6f8f299fb7784a757d34ed3618
23
23
  CODE_OF_CONDUCT.md:
24
24
  comments:
25
25
  reviewed_by: timgentry
@@ -75,7 +75,7 @@ file safety:
75
75
  lib/ndr_dev_support/capistrano/ndr_model.rb:
76
76
  comments:
77
77
  reviewed_by: josh.pencheon
78
- safe_revision: 809acebc212beaaf23e6d73ae4d9b87382c2d087
78
+ safe_revision: fa4042dc341b14eb7feafcc78baf052dbb100eb3
79
79
  lib/ndr_dev_support/capistrano/restart.rb:
80
80
  comments:
81
81
  reviewed_by: josh.pencheon
@@ -203,7 +203,7 @@ file safety:
203
203
  lib/ndr_dev_support/version.rb:
204
204
  comments:
205
205
  reviewed_by: josh.pencheon
206
- safe_revision: a17b7d43e0c40ae2c5c3a5062c7c47380184dc32
206
+ safe_revision: f0f36386fbb45f6f8f299fb7784a757d34ed3618
207
207
  lib/tasks/audit_code.rake:
208
208
  comments: Identical to the version reviewed by josh.pencheon when contained within
209
209
  ndr_support
@@ -248,7 +248,7 @@ file safety:
248
248
  lib/tasks/ci/redmine.rake:
249
249
  comments:
250
250
  reviewed_by: josh.pencheon
251
- safe_revision: 2d1b9d19acafebe6ca5f995bf15243abe2847eec
251
+ safe_revision: 3c24b66ea4beb348de34330984302f1fe25faefd
252
252
  lib/tasks/ci/rugged.rake:
253
253
  comments:
254
254
  reviewed_by: josh.pencheon
@@ -111,7 +111,10 @@ Capistrano::Configuration.instance(:must_exist).load do
111
111
 
112
112
  # Use the application user's ruby:
113
113
  set(:default_environment) do
114
- { 'PATH' => "#{application_home}/.rbenv/shims:#{application_home}/.rbenv/bin:$PATH" }
114
+ {
115
+ 'PATH' => "#{application_home}/.rbenv/shims:#{application_home}/.rbenv/bin:$PATH",
116
+ 'RBENV_ROOT' => "#{application_home}/.rbenv"
117
+ }
115
118
  end
116
119
 
117
120
  # Set a flag so behaviour can toggle in mixed use cases
@@ -2,5 +2,5 @@
2
2
  # This defines the NdrDevSupport version. If you change it, rebuild and commit the gem.
3
3
  # Use "rake build" to build the gem, see rake -T for all bundler rake tasks (and our own).
4
4
  module NdrDevSupport
5
- VERSION = '5.4.2'.freeze
5
+ VERSION = '5.4.3'.freeze
6
6
  end
@@ -20,6 +20,7 @@ namespace :ci do
20
20
  resolved_tickets = []
21
21
  @attachments ||= []
22
22
 
23
+ require 'active_support/core_ext/object/try'
23
24
  require 'ndr_dev_support/rake_ci/redmine/ticket_resolver'
24
25
 
25
26
  begin
@@ -39,11 +40,16 @@ namespace :ci do
39
40
  next if resolved_tickets.empty?
40
41
  resolved_tickets.map! { |ticket_id| "https://#{hostname}/issues/#{ticket_id}" }
41
42
 
43
+ old_attachment = @attachments.detect { |att| att[:text] =~ /Tests( now)? pass/ }
44
+ basic_text = old_attachment.try(:[], :text) || 'Tests passed'
45
+
46
+ @attachments.delete(old_attachment) if old_attachment
47
+
42
48
  issue_s = resolved_tickets.count == 1 ? 'issue' : 'issues'
43
49
  attachment = {
44
50
  color: 'good',
45
51
  title: "#{issue_s.capitalize} Resolved",
46
- text: "Tests pass, so #{issue_s} #{resolved_tickets.join(', ')}" \
52
+ text: "#{basic_text}, so #{issue_s} #{resolved_tickets.join(', ')}" \
47
53
  " #{resolved_tickets.count == 1 ? 'has' : 'have'} been resolved",
48
54
  footer: 'bundle exec rake ci:minitest',
49
55
  mrkdwn_in: ['text']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ndr_dev_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.2
4
+ version: 5.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - NCRS Development Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-18 00:00:00.000000000 Z
11
+ date: 2019-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry