puppetdb_query 0.0.41 → 0.0.42
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +7 -3
- data/Gemfile +6 -4
- data/Rakefile +1 -2
- data/lib/puppetdb_query/logging.rb +0 -2
- data/lib/puppetdb_query/puppetdb.rb +1 -1
- data/lib/puppetdb_query/version.rb +1 -1
- data/puppetdb_query.gemspec +9 -7
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 319a2cce7db9ed74178688346751d952b68f321b
|
4
|
+
data.tar.gz: b79abeb8a5172e5d423bf9cf7bad9b074e3a4d7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d0ba428695f97b6336c8a2c6874a1167079bef5dadff94f946a6c15f417423a98eeeec42bbf0733d8cd2eaa503d7e76573ff3796e0a02729f185992aeba2186
|
7
|
+
data.tar.gz: f1032befc0bc8579ea381cf49dc2a83cdb61ce4192acf301fefbc4ecf3596437fff26df451d9a9c13f210152da98f661959980c289e5db4feddfe9e7ec73828a
|
data/.rubocop.yml
CHANGED
@@ -14,9 +14,9 @@ AllCops:
|
|
14
14
|
- 'bundle/**/*'
|
15
15
|
- 'local-gems/**/*'
|
16
16
|
- '**/*.sh'
|
17
|
-
- '**/Gemfile'
|
18
17
|
- 'tester.rb'
|
19
18
|
- 'test/**/*'
|
19
|
+
- 'toaster.rb'
|
20
20
|
|
21
21
|
# --- XXXLength-Section --------------------------------------------------------------------
|
22
22
|
# too long lines, methods and classes are annoying,
|
@@ -50,7 +50,7 @@ Documentation:
|
|
50
50
|
|
51
51
|
# check filename conventions
|
52
52
|
FileName:
|
53
|
-
Enabled:
|
53
|
+
Enabled: false
|
54
54
|
|
55
55
|
# this 3-digit thing for portnumbers? oh, come on!
|
56
56
|
NumericLiterals:
|
@@ -72,7 +72,11 @@ Style/BracesAroundHashParameters:
|
|
72
72
|
Style/EachWithObject:
|
73
73
|
Enabled: false
|
74
74
|
|
75
|
-
# we
|
75
|
+
# we don't want be forced to use %i
|
76
|
+
Style/SymbolArray:
|
77
|
+
Enabled: false
|
78
|
+
|
79
|
+
# we know the special global variables by heart
|
76
80
|
Style/SpecialGlobalVars:
|
77
81
|
Enabled: false
|
78
82
|
|
data/Gemfile
CHANGED
@@ -4,10 +4,12 @@ gemspec
|
|
4
4
|
|
5
5
|
# only for local testing but not needed for spec tests
|
6
6
|
group :test do
|
7
|
-
gem 'rake', '~>11'
|
8
7
|
gem 'mongo', '>=2.2.0' # if you want to work with a mongodb
|
9
|
-
gem 'ruby-puppetdb', '=2.2.0' if RUBY_VERSION !~ /^1\./
|
10
8
|
gem 'puppet', '=3.8.7' if RUBY_VERSION !~ /^1\./
|
11
|
-
gem '
|
9
|
+
gem 'rake', '~>11'
|
12
10
|
gem 'rubocop' if RUBY_VERSION !~ /^1\./
|
13
|
-
|
11
|
+
# rubocop:disable Bundler/DuplicatedGem
|
12
|
+
gem 'rubocop', '=0.39.0' if RUBY_VERSION =~ /^1\./
|
13
|
+
# rubocop:enable Bundler/DuplicatedGem
|
14
|
+
gem 'ruby-puppetdb', '=2.2.0' if RUBY_VERSION !~ /^1\./
|
15
|
+
end
|
data/Rakefile
CHANGED
@@ -17,7 +17,6 @@ module PuppetDBQuery
|
|
17
17
|
|
18
18
|
# addition
|
19
19
|
def self.included(base)
|
20
|
-
# rubocop:disable Lint/NestedMethodDefinition
|
21
20
|
class << base
|
22
21
|
def logger
|
23
22
|
# :nocov:
|
@@ -31,7 +30,6 @@ module PuppetDBQuery
|
|
31
30
|
# :nocov:
|
32
31
|
end
|
33
32
|
end
|
34
|
-
# rubocop:enable Lint/NestedMethodDefinition
|
35
33
|
end
|
36
34
|
|
37
35
|
def logger
|
@@ -30,7 +30,7 @@ module PuppetDBQuery
|
|
30
30
|
# in '/v3/nodes' we must take 'name'
|
31
31
|
name = data['certname']
|
32
32
|
values = data.dup
|
33
|
-
%w
|
33
|
+
%w[deactivated certname].each { |key| values.delete(key) }
|
34
34
|
result[name] = values
|
35
35
|
end
|
36
36
|
result
|
data/puppetdb_query.gemspec
CHANGED
@@ -1,25 +1,27 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
|
2
3
|
lib = File.expand_path('../lib', __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'puppetdb_query/version'
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
8
|
+
spec.name = 'puppetdb_query'
|
8
9
|
spec.version = PuppetDBQuery::VERSION
|
9
10
|
spec.authors = ["Michael Meyling"]
|
10
11
|
spec.email = ["search@meyling.com"]
|
11
|
-
spec.summary =
|
12
|
-
spec.description =
|
13
|
-
spec.homepage =
|
14
|
-
spec.license =
|
12
|
+
spec.summary = 'access puppetdb data from other sources'
|
13
|
+
spec.description = 'Allow puppetdb access from resources like mongodb.'
|
14
|
+
spec.homepage = 'https://github.com/m-31/puppetdb_query'
|
15
|
+
spec.license = 'MIT'
|
15
16
|
|
16
17
|
spec.files = `git ls-files -z`.split("\x0")
|
17
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
19
|
spec.bindir = "exe"
|
19
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
21
|
spec.required_ruby_version = '>= 1.9.3'
|
21
|
-
spec.require_paths = [
|
22
|
-
spec.post_install_message = " Sitting quietly, doing nothing, spring comes,
|
22
|
+
spec.require_paths = ['lib']
|
23
|
+
spec.post_install_message = " Sitting quietly, doing nothing, spring comes," \
|
24
|
+
" and grass grows by itself."
|
23
25
|
|
24
26
|
spec.add_development_dependency "rspec"
|
25
27
|
spec.add_development_dependency "easy_diff"
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
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.42
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Meyling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
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
|
-
- .gitignore
|
49
|
-
- .rubocop.yml
|
50
|
-
- .travis.yml
|
48
|
+
- ".gitignore"
|
49
|
+
- ".rubocop.yml"
|
50
|
+
- ".travis.yml"
|
51
51
|
- Gemfile
|
52
52
|
- LICENSE.txt
|
53
53
|
- README.md
|
@@ -75,24 +75,24 @@ 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: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.6.8
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: access puppetdb data from other sources
|