subspace 3.0.16 → 3.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a260828450e308fd7317630c6c600d03978e98f335685c9d951e82e036a8ac9
4
- data.tar.gz: abe9b351937889ffb9132f2ce470b2b81d3f4eced1fc7d0524e041be5709172a
3
+ metadata.gz: dc8db3afb1c3db6e68604397fdfe0f9cde0596fc1555229a0b351d75facbfffe
4
+ data.tar.gz: '08a5e8fb0d688b31c1f69a7c8137e25c788403037f92f55c385d9c74097e8269'
5
5
  SHA512:
6
- metadata.gz: 39a81cd786609648733f07ea2c566cf401f3c37da825f4fea7ab411ea10a01b154e41fccb458ee8ff5280db0f37fe99a8c715d9d5c0c543428f59d1689af2a23
7
- data.tar.gz: fa9470ca357e1cf688720426287460b3abfa601b0c13e9f69a6f300f3d566519933953d3c7dc6ad200251a22914e3bd2dc686e1fca65fbab05979fce1cdea517
6
+ metadata.gz: b0f20a459a4e204e205d655a26467b6a9f3993b14ae9e510c03968dd4075ea81926b01dfac1329a28122243e0864c517bc8be6df10deb0673662b19127cdaf4f
7
+ data.tar.gz: 29ef7da3ab3b766b685290d94b3e1345707d6c9127056e74de078017384c595e17cd5b659989081cdfac22061cdcc71879a91af0f1e969ebece3e749d8852735
data/CHANGELOG.md CHANGED
@@ -12,6 +12,12 @@ This project attempts to follow [semantic versioning](https://semver.org/).
12
12
 
13
13
  ## Unreleased
14
14
 
15
+ ## 3.0.18
16
+ * Fix conditional when checking for newrelic_logs so that it returns a boolean instead of an integer
17
+
18
+ ## 3.0.17
19
+ * Fix update count when sending stats
20
+
15
21
  ## 3.0.16
16
22
  * Ignore errors on getting rails version
17
23
 
@@ -146,7 +146,7 @@
146
146
  - name: Get os_upgrades stats
147
147
  shell:
148
148
  cmd: |
149
- sed -n "/$(date '+%Y-%m')/,+2p" updates.log | # Groups of lines from the current month
149
+ awk -v month="$(date '+%Y-%m')" '/^\[/ {flag = ($0 ~ month)} flag && !/^\[/' updates.log | # Groups of lines from the current month
150
150
  grep 'packages\|immediately' | # Only lines matching 'packages' or 'immediately'
151
151
  grep -P -o '(^\d+)' | #Extract the numbers at the beginning of the lines
152
152
  awk '{s+=$1} END {print s}' # Sum all the lines
@@ -25,7 +25,7 @@
25
25
  become: true
26
26
 
27
27
  - name: Configure application log forwarding if enabled
28
- when: "{{ newrelic_logs|length }}"
28
+ when: newrelic_logs | length > 0
29
29
  become: true
30
30
  template:
31
31
  dest: "/etc/newrelic-infra/logging.d/subspace.yml"
@@ -1,3 +1,3 @@
1
1
  module Subspace
2
- VERSION = "3.0.16"
2
+ VERSION = "3.0.18"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: subspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.16
4
+ version: 3.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Samson
@@ -326,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  - !ruby/object:Gem::Version
327
327
  version: '0'
328
328
  requirements: []
329
- rubygems_version: 3.6.9
329
+ rubygems_version: 3.7.2
330
330
  specification_version: 4
331
331
  summary: Ansible-based server provisioning for rails projects
332
332
  test_files: []