onceover-codequality 0.5.1 → 0.5.2

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: 6c5e0265de668f3ab30a6cc223574ddf14907d37f24c2bb1787f53e69d33c61a
4
- data.tar.gz: e7e4bd3c0ec5763db2ba67905bef64193cc1b8d74462ddbcecbc7f85914f0826
3
+ metadata.gz: 9cc85533082f17d96152a3c59fc6348ea8be68b55042b6d1bb0f6cff652ef2a4
4
+ data.tar.gz: 87de572b5cfa41d75e561b11b6203a8b08ea9697dc6b34b9c5c9c08eb62b48b3
5
5
  SHA512:
6
- metadata.gz: 9dfe773e6e19ccb0ab0315018c6e5ad03d2ad75a4cbbbf66873d67b1e7cab00f6669ee84ff9ec8557cdd078bc730f8b12b4d6e423a59c788adae43da44003df3
7
- data.tar.gz: cf6f3714a9fc421ee001e172e70585def375900bc21ad6de4bd0445fa0ec97bcaa5cae8f50e42ac3f5dcb5aae131f875c6167982196356d81beeb0be5fc12890
6
+ metadata.gz: dc5f19fa30675b22d3dcfa22426160270cfa701daf5b5e42873308276850a069af0b6457b0b637d28bc071ed767c63b0c93910dfece1874e5a349c573409a568
7
+ data.tar.gz: 3613935fb0d6dca40cd26275db0db1242bf796b3e820b67085e55157db4e8a2035b5b64c89ec539961e71890538cd3dc8fa7317131201d90c626350448340302
data/.travis.yml CHANGED
@@ -1,5 +1,4 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.3
5
- before_install: gem install bundler -v 1.15.4
4
+ - 2.5.5
@@ -44,7 +44,7 @@ class Onceover
44
44
  # file and make it consistent. This is yaml implementation dependent but
45
45
  # users would be advised to fix the file, so lets _also_ validate yaml
46
46
  # files with python if available on our path...
47
- if system("python --version", :err => File::NULL)
47
+ if system("python --version && python -c 'import yaml'", :err => File::NULL)
48
48
  logger.info("Running additional python YAML validation")
49
49
  script = File.join(File.dirname(File.expand_path(__FILE__)), "../../../res/validate_yaml.py")
50
50
  output, s = Open3.capture2e("python #{script}")
@@ -1,5 +1,5 @@
1
1
  class Onceover
2
2
  module CodeQuality
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
data/res/validate_yaml.py CHANGED
@@ -17,6 +17,7 @@ try:
17
17
  print("YAML syntax error in %s: %s" % (target, str(e)))
18
18
 
19
19
  except ImportError as e:
20
+ status = 1
20
21
  print("Please install the python-yaml library: pip install pyyaml")
21
22
 
22
23
 
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.1
4
+ version: 0.5.2
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-05-13 00:00:00.000000000 Z
11
+ date: 2019-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler