puppetdb_query 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/puppetdb_query/to_mongo.rb +2 -2
- data/lib/puppetdb_query/tokenizer.rb +6 -0
- data/lib/puppetdb_query/version.rb +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 513ed4bfa2222264ee22d02cf7aa4a5bc9750e2e
|
4
|
+
data.tar.gz: 0cc6c5e69e9427bbed7024c4ad013d89d40c3b8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f6f76ea62d45deac1c938b1bf54c4f2201fe0ea8239fba0b75468a82d4603093b510d949277d026b237994dd41aec6d1aa1aba5c7982336a43cba06242dc7bf
|
7
|
+
data.tar.gz: 82f7967f11a941d52159fe790959267b6c3f5f429a1a8a0a62a5b085ad07ef30cdfa242d7b1b44c5141734bb5f98b06f7ebbf0801f6ee4953ceb8071aee8d34e
|
@@ -18,7 +18,7 @@ module PuppetDBQuery
|
|
18
18
|
|
19
19
|
private
|
20
20
|
|
21
|
-
# rubocop:disable Metrics/PerceivedComplexity,Metrics/CyclomaticComplexity
|
21
|
+
# rubocop:disable Metrics/PerceivedComplexity,Metrics/CyclomaticComplexity,Metrics/AbcSize
|
22
22
|
def query_term(term)
|
23
23
|
# rubocop:disable Style/GuardClause
|
24
24
|
if term.is_a?(Symbol)
|
@@ -55,6 +55,6 @@ module PuppetDBQuery
|
|
55
55
|
raise "can't handle operator '#{term.operator}' yet"
|
56
56
|
end
|
57
57
|
end
|
58
|
-
# rubocop:enable Metrics/PerceivedComplexity,Metrics/CyclomaticComplexity
|
58
|
+
# rubocop:enable Metrics/PerceivedComplexity,Metrics/CyclomaticComplexity,Metrics/AbcSize
|
59
59
|
end
|
60
60
|
end
|
@@ -115,6 +115,7 @@ module PuppetDBQuery
|
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
118
|
+
# rubocop:disable Metrics/PerceivedComplexity,Style/ConditionalAssignment
|
118
119
|
def read_quoted
|
119
120
|
logger.debug " read quoted"
|
120
121
|
skip_whitespace
|
@@ -131,7 +132,11 @@ module PuppetDBQuery
|
|
131
132
|
when 'n'
|
132
133
|
c = "\n"
|
133
134
|
when '\''
|
135
|
+
c = "\'"
|
136
|
+
when '\\'
|
134
137
|
c = "\\"
|
138
|
+
else
|
139
|
+
c = "\\" + c
|
135
140
|
end
|
136
141
|
end
|
137
142
|
r << c
|
@@ -142,6 +147,7 @@ module PuppetDBQuery
|
|
142
147
|
logger.debug " resulting string: '#{r}'"
|
143
148
|
r
|
144
149
|
end
|
150
|
+
# rubocop:enable Metrics/PerceivedComplexity,Style/ConditionalAssignment
|
145
151
|
|
146
152
|
def read_symbol
|
147
153
|
logger.debug " read symbol"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puppetdb_query
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Meyling
|
@@ -14,28 +14,28 @@ dependencies:
|
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: easy_diff
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Allow puppetdb access from resources like mongodb.
|
@@ -45,9 +45,9 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
-
|
49
|
-
-
|
50
|
-
-
|
48
|
+
- .gitignore
|
49
|
+
- .rubocop.yml
|
50
|
+
- .travis.yml
|
51
51
|
- Gemfile
|
52
52
|
- LICENSE.txt
|
53
53
|
- README.md
|
@@ -75,19 +75,19 @@ homepage: https://github.com/m-31/puppetdb_query
|
|
75
75
|
licenses:
|
76
76
|
- MIT
|
77
77
|
metadata: {}
|
78
|
-
post_install_message:
|
79
|
-
by itself.
|
78
|
+
post_install_message: ' Sitting quietly, doing nothing, spring comes, and grass grows
|
79
|
+
by itself.'
|
80
80
|
rdoc_options: []
|
81
81
|
require_paths:
|
82
82
|
- lib
|
83
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
84
|
requirements:
|
85
|
-
- -
|
85
|
+
- - '>='
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: 1.9.3
|
88
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
|
-
- -
|
90
|
+
- - '>='
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|