cwa 0.3.1 → 0.3.2

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: 18c398f2c91a08ef355f725b361937608fa500b37ab27b6a610b9668fc3ae92a
4
- data.tar.gz: 90aa7ff8fa4231e29effd83e4093803e862afd4e23c535f31232a59448e5a415
3
+ metadata.gz: ed03242af15ac021b94d8c3ba2d0eeb32d97769f6eba09ab8e71dc112efdb824
4
+ data.tar.gz: 9604ba10ae8fbee2d90b184e219dcc8b8878cf4ce8496f2fc1df632a2ca4430d
5
5
  SHA512:
6
- metadata.gz: b0400884cd212804b16584a58f982ce397b787ea469444f6e936da9a180b89b96b605e9049fe94d5e5c1dba3fcfcdc23de043ab8df9516f089415f054ea46543
7
- data.tar.gz: 6447715b1e308ebd2801748447f7984c49046c526f4cd42244edc43cefb4d75cf2e6c6f1459d68bfe0645d7b9e81741b4016397e2505e0ce45fed45ce6ab9d02
6
+ metadata.gz: '08d9a3e96588461c2c757d8fc038cfa246e9073fd63c8a595a2010a82bd25cbbad60c6aa1b733131bbcc91951bad081a3f3c4f07afe09b28dba1feebd513d1a1'
7
+ data.tar.gz: 72ea2ff7740f58c409fb961230b0d0493079f8a6ae13cb80dbf6f06e4a9fbc5349d71376f4ff28bf299a316ce3340aeb2f8fad3b5723b142c7117bd6fe117a22
@@ -21,10 +21,10 @@ module CWA
21
21
  regexp_query = ->(alm) { alm.alarm_name =~ /#{query[:regexp]}/ }
22
22
  namespace_query = ->(alm) { alm.namespace == query[:namespace] }
23
23
 
24
- @alms = alms.select(&name_query) if query[:name ]
25
- @alms = alms.select(&regexp_query) if query[:regexp ]
26
- @alms = alms.select(&namespace_query) if query[:namespace ]
27
- @alms = dimension?(alms, query[:dimensions]) if query[:dimensions]
24
+ @alms = @alms.select(&name_query) if query[:name ]
25
+ @alms = @alms.select(&regexp_query) if query[:regexp ]
26
+ @alms = @alms.select(&namespace_query) if query[:namespace ]
27
+ @alms = dimension?(@alms, query[:dimensions]) if query[:dimensions]
28
28
 
29
29
  @alms
30
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CWA
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cwa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - gen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-19 00:00:00.000000000 Z
11
+ date: 2020-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -131,9 +131,7 @@ extensions: []
131
131
  extra_rdoc_files: []
132
132
  files:
133
133
  - ".gitignore"
134
- - ".ruby-version"
135
134
  - ".solargraph.yml"
136
- - ".vim-lsp-settings/settings.json"
137
135
  - Gemfile
138
136
  - README.md
139
137
  - Rakefile
@@ -1 +0,0 @@
1
- 2.6.5
@@ -1,5 +0,0 @@
1
- {
2
- "solargraph": {
3
- "cmd": ["bundle", "exec", "solargraph", "stdio"]
4
- }
5
- }