codeclimate 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cc/analyzer/engine.rb +7 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee34e494be9bbd0ee8f45ae9c623267a78fc0f34
4
- data.tar.gz: 9b069191ffef6aaa928e554ceb3115d9f03551f7
3
+ metadata.gz: 64d4ba8e8ea50087f7d408066d950a0db774658e
4
+ data.tar.gz: 99c2c57b45fc033373f2210ab062de6d69e02c9a
5
5
  SHA512:
6
- metadata.gz: eaddd6cfc3cf5c332a5c51d10d0ed329b9b26888d939751ebee8093752b73e98e44aaed246174b143f1f2b5682d967fa90d1ff70be2ca7f1cf40283df51e319a
7
- data.tar.gz: 622813d777e80533b2a3ab5731753a53e882559b28171362b820a43feb9380f201466cf72ca7f315090af82e56b77dc5126d3e25a52a749dd48519676a5e1355
6
+ metadata.gz: 6827e42fd894fc03bd52895d3147bbbca37d208618df6bc3558d6aa850c6a2a4472d2ebd47566a98904ebe42b75ab6ca105ab26b471c73496b75f3340890bd1b
7
+ data.tar.gz: 58d92881faa13965cccf014506cbc06465f1c2105534d9489931b91478f8cf251ac7cd0e9e747a2f2af4fceb7e097069feba95490bdbe2a38cc56cd77b3ded55
@@ -92,8 +92,14 @@ module CC
92
92
  end
93
93
 
94
94
  def env_file
95
+ contents = "ENGINE_CONFIG=#{@config_json}"
96
+
97
+ if contents.size > 64 * 1024
98
+ raise EngineFailure, "Config for engine #{name} exceeds 64k character limit"
99
+ end
100
+
95
101
  path = File.join("/tmp/cc", SecureRandom.uuid)
96
- File.write(path, "ENGINE_CONFIG=#{@config_json}")
102
+ File.write(path, contents)
97
103
  path
98
104
  end
99
105
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate