puppetdb_query 0.0.41 → 0.0.42

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
  SHA1:
3
- metadata.gz: 5501279b16f9e4c1efe66c8f374393e97fb07036
4
- data.tar.gz: ccb1b607446816621b544c6d1cf6885b83bae5f8
3
+ metadata.gz: 319a2cce7db9ed74178688346751d952b68f321b
4
+ data.tar.gz: b79abeb8a5172e5d423bf9cf7bad9b074e3a4d7c
5
5
  SHA512:
6
- metadata.gz: 719fcc36e5f63e61dfe9bd3f59fcfee3ad2944aba56e869bac8575d7c59cd1f990e3630df87ede8f7c5ba6f8ed6f516f9fa5fce28edc9878ba32784ebda0752d
7
- data.tar.gz: 599e13100028af3edab9d2b908205e7b7698061bd4fa32e3e7751eb253e81569276e18a2554003935e78b33c3234af011bff27190b98f77deb10a6ef456f9676
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: true
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 now the special global variables by heart
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 'rubocop', '=0.39.0' if RUBY_VERSION =~ /^1\./
9
+ gem 'rake', '~>11'
12
10
  gem 'rubocop' if RUBY_VERSION !~ /^1\./
13
- end
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
@@ -15,5 +15,4 @@ RSpec::Core::RakeTask.new(:spec) do |t|
15
15
  t.pattern = 'spec/**/*_spec.rb'
16
16
  end
17
17
 
18
- task :default => ["spec", "rubocop"]
19
-
18
+ task default: %w[spec rubocop]
@@ -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(deactivated certname).each { |key| values.delete(key) }
33
+ %w[deactivated certname].each { |key| values.delete(key) }
34
34
  result[name] = values
35
35
  end
36
36
  result
@@ -1,3 +1,3 @@
1
1
  module PuppetDBQuery
2
- VERSION = "0.0.41".freeze
2
+ VERSION = "0.0.42".freeze
3
3
  end
@@ -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 = "puppetdb_query"
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 = %q{access puppetdb data from other sources}
12
- spec.description = %q{Allow puppetdb access from resources like mongodb.}
13
- spec.homepage = "https://github.com/m-31/puppetdb_query"
14
- spec.license = "MIT"
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 = ["lib"]
22
- spec.post_install_message = " Sitting quietly, doing nothing, spring comes, and grass grows by itself."
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.41
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-25 00:00:00.000000000 Z
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: ' Sitting quietly, doing nothing, spring comes, and grass grows
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.4.8
95
+ rubygems_version: 2.6.8
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: access puppetdb data from other sources