onceover-codequality 0.5.0 → 0.5.1
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 +4 -4
- data/README.md +1 -1
- data/lib/onceover/codequality/syntax.rb +6 -2
- data/lib/onceover/codequality/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c5e0265de668f3ab30a6cc223574ddf14907d37f24c2bb1787f53e69d33c61a
|
|
4
|
+
data.tar.gz: e7e4bd3c0ec5763db2ba67905bef64193cc1b8d74462ddbcecbc7f85914f0826
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9dfe773e6e19ccb0ab0315018c6e5ad03d2ad75a4cbbbf66873d67b1e7cab00f6669ee84ff9ec8557cdd078bc730f8b12b4d6e423a59c788adae43da44003df3
|
|
7
|
+
data.tar.gz: cf6f3714a9fc421ee001e172e70585def375900bc21ad6de4bd0445fa0ec97bcaa5cae8f50e42ac3f5dcb5aae131f875c6167982196356d81beeb0be5fc12890
|
data/README.md
CHANGED
|
@@ -7,14 +7,18 @@ class Onceover
|
|
|
7
7
|
status = true
|
|
8
8
|
|
|
9
9
|
#
|
|
10
|
-
# puppet-
|
|
10
|
+
# puppet-syntax
|
|
11
11
|
#
|
|
12
12
|
|
|
13
13
|
logger.info("Checking syntax using puppet-syntax rake task...")
|
|
14
14
|
# puppet-syntax seems to assign $stdout/$stderr internally in ways that
|
|
15
15
|
# prevent capturing output. As a nasty hack, run it as inline ruby and
|
|
16
16
|
# capture the output from the process...
|
|
17
|
-
inline_ruby =
|
|
17
|
+
inline_ruby = <<-RUBY_CODE
|
|
18
|
+
require 'puppet-syntax/tasks/puppet-syntax'
|
|
19
|
+
PuppetSyntax.exclude_paths = ['vendor/**/*','spec/templates/*.erb']
|
|
20
|
+
Rake::Task['syntax'].invoke
|
|
21
|
+
RUBY_CODE
|
|
18
22
|
output, s = Open3.capture2e("ruby", "-e", inline_ruby)
|
|
19
23
|
ok = s.exitstatus.zero?
|
|
20
24
|
status &= ok
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: onceover-codequality
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Declarative Systems
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-05-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|