junoser 0.3.2 → 0.3.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: 3f54367b7e85512ff43b04b6c017bd1c3da960e0f8f1a0139c3c4cf1f7974023
4
- data.tar.gz: 12c99039a9ac655afea423dc3d207461f429c024c2790d809a2479c77e371d55
3
+ metadata.gz: f6d28e14a0ab56210ae69dde06bb8b8214c73e2a1fdf9dc3a2795ecc87b484f6
4
+ data.tar.gz: 7a27602b7d000065f7895a1fbfe3d3c5f455800965c552fbcb7bb425fca798f6
5
5
  SHA512:
6
- metadata.gz: 988ab73ed14cfaa60b4287e4729cfae44f56e07890135fb2f88a9fe8a6d4c65be242e1f51a5028a60d36b8bfa9d12128a2b86d635c0d59263bef7a6276745190
7
- data.tar.gz: '08b1daf7678555417d3b1b6edaae80c003fa605d71461be1c8280a8ceeedacaf3318ce17edcc467051ed7c22078f915addb0a17f14ab68892c4f8f56dd17436d'
6
+ metadata.gz: 6f6b8a18eba2166802e3209f20d19072f78edb7dd471c2501987f94bc2921c6e706151bef99216fb9cc7949b460db21b6e3596e89f7d4a7432f5a1240cc897d4
7
+ data.tar.gz: 3df83d912c9870e2ca99de5d11111330bc625fe8a450ea9dfb6f27e554d5cc1553c4ea2228023896d7bb2c3b2be80e944b5d00450ddf28fa8458b4df1c1074cb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.3.3 / 2018-10-09
2
+
3
+ * Bug fix
4
+ * Accept quoted string for
5
+ * "snmp location"
6
+ * "snmp contact"
7
+
1
8
  ## 0.3.2 / 2018-07-12
2
9
 
3
10
  * Bug fix
@@ -6355,8 +6355,8 @@ module Junoser
6355
6355
  c(
6356
6356
  a(str("system-name"), arg),
6357
6357
  a(str("description"), quote | arg),
6358
- a(str("location"), arg),
6359
- a(str("contact"), arg),
6358
+ a(str("location"), quote | arg),
6359
+ a(str("contact"), quote | arg),
6360
6360
  b(str("interface"),
6361
6361
  interface_name
6362
6362
  ),
data/lib/junoser/ruler.rb CHANGED
@@ -143,6 +143,11 @@ module Junoser
143
143
 
144
144
  str.gsub!(/^(\s*)c\(\s*arg,$/) { "#{$1}ca(" }
145
145
 
146
+ str.gsub!(/^(\s*)"location" arg,\s*"contact" arg,/) do
147
+ format(['"location" (quote | arg),',
148
+ '"contact" (quote | arg),'], $1)
149
+ end
150
+
146
151
  str
147
152
  end
148
153
 
@@ -1,3 +1,3 @@
1
1
  module Junoser
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: junoser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shintaro Kojima
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-12 00:00:00.000000000 Z
11
+ date: 2018-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet