gitlab-ci-lint 0.1.5 → 0.1.6

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: 0ef5eb902372d22fc7c7976e8e09f5582e2f98fdec2415adf82d1b4b12fd6f73
4
- data.tar.gz: e4380981cff13d8c9481155f18baa12d45d0f6e67a6c1e84a3d0fc4d5ff65aca
3
+ metadata.gz: 61518047327c349d0a489d88f447fedafa791904bbeeed237ca311805853180d
4
+ data.tar.gz: ac121706ab1b543112d0932bb6b455b3c67c30b57d06eea0c268b2d5ca9c9ecc
5
5
  SHA512:
6
- metadata.gz: d282caeea425a3b2bc0159b905d232d3f88ffc5a1287ab985a80384f328b444bd61137bcd71eeb5c2d758a9cf887b91b4227ff90b23794841eda41b4aa9d7b62
7
- data.tar.gz: 43384ddb7c10def3f4fd4ef9b3ff1e1da5eeb73929ad3ee6e55ae7cfa02806b7f7174c5a36cb3cc2c5d535d1e2bcd9cb2b625a12a268565a24e0b5c6df183b0e
6
+ metadata.gz: a23bbc3a10fa66b6ef0cce2c23b0af19e81283fa991c4a331ec9d906fcf32d0f7ba9d0d1fc91c221cc4af4b3e40cd0198cc5adeece03c16510604f0982353ae0
7
+ data.tar.gz: 49d8c1cdbeb73342f5704cd9e1a93a033ed700308718bcab6036790b84c35faea7c786aaadbeff62a4623cd7267c0a3d0060842b264b99a69faa02138e7733c7
@@ -1,6 +1,6 @@
1
- require "bundler/setup"
2
- require "pry"
3
-
4
- require File.expand_path('../lib/telegram/bot', __dir__)
5
-
6
- Pry.start
1
+ require "bundler/setup"
2
+ require "pry"
3
+
4
+ require File.expand_path("../lib/gitlab/ci/lint", __dir__)
5
+
6
+ Pry.start
@@ -41,7 +41,7 @@ module Gitlab
41
41
 
42
42
  logger.info("Starting GitLab CI YML Validation...")
43
43
 
44
- headers = gitlab_token ? { "Content-Type" => "application/json", "Private-Token" => gitlab_token } : { "Content-Type" => "application/json"}
44
+ headers = gitlab_token ? { "Content-Type" => "application/json", "Private-Token" => gitlab_token } : { "Content-Type" => "application/json" }
45
45
 
46
46
  actions.validate_gitlab_ci_yml(gitlab_endpoint, gitlab_ci_file, headers, timeout)
47
47
 
@@ -7,7 +7,7 @@ module GitLab
7
7
  class Actions < GitLab::CI::Lint::Client
8
8
 
9
9
  def validate_gitlab_ci_yml url, content, headers, timeout
10
- result = post(url, headers, timeout, content)
10
+ result = post(url, content, headers, timeout)
11
11
  message = GitLab::CI::Lint::Serializer.new(result)
12
12
  if result["status"] == "valid"
13
13
  message.success()
@@ -12,7 +12,7 @@ module GitLab
12
12
  begin
13
13
  if content = GitLab::CI::Lint::YMLReader.new(content).get_json_content()
14
14
  body = { content: content }.to_json
15
- request = self.class.post(url, :body => body, :headers => headers, :timeout => timeout)
15
+ request = self.class.post(url, :body => body, :headers => headers)
16
16
  if request.code == 200
17
17
  puts "\nSuccessful request!"
18
18
  return JSON.parse(request.body)
@@ -1,7 +1,7 @@
1
1
  module Gitlab
2
2
  module Ci
3
3
  module Lint
4
- VERSION = "0.1.5".freeze
4
+ VERSION = "0.1.6".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-ci-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucca Pessoa da Silva Matos