gitlab-ci-lint 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec_status +0 -0
- data/CHANGELOG.md +25 -2
- data/Gemfile +1 -0
- data/README.md +166 -2
- data/bin/console +6 -0
- data/bin/setup +5 -0
- data/{bin/gitlab_ci_lint → exemple/lint.rb} +0 -2
- data/gitlab.gemspec +10 -6
- data/lib/gitlab/ci/lint.rb +8 -15
- data/lib/gitlab/ci/lint/actions.rb +10 -1
- data/lib/gitlab/ci/lint/arguments.rb +1 -0
- data/lib/gitlab/ci/lint/client.rb +24 -18
- data/lib/gitlab/ci/lint/colors.rb +1 -0
- data/lib/gitlab/ci/lint/configuration.rb +1 -0
- data/lib/gitlab/ci/lint/log.rb +1 -0
- data/lib/gitlab/ci/lint/multio.rb +1 -0
- data/lib/gitlab/ci/lint/serializer.rb +55 -0
- data/lib/gitlab/ci/lint/system.rb +1 -0
- data/lib/gitlab/ci/lint/version.rb +1 -1
- data/lib/gitlab/ci/lint/yml.rb +7 -0
- data/values.yml +0 -1
- metadata +42 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cffebdc201d489ae951e0f6761e0c4ca27664aaf596fd3e30a1eef1339a7b3d0
|
4
|
+
data.tar.gz: 882456be9df1cf3dc63bf09e4b7ff1e377a30fe7a277af23818294605e011272
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84f369a18d824a09c94dff43f04c48580fa5b82fb6f4899899bd37a07b8162111c4fecca45ae4eb39d09600de70f0289bec2a1c9ad95b4c9111e32d33cd958af
|
7
|
+
data.tar.gz: 000c527aeabbf728deaa1fa291cd85a52ec918b2d87b6a70a09da4561decfbb36c5180deac72d35c4c9d9504af14d6f476893ac07258941bd0797676993fc4b8
|
data/.rspec_status
ADDED
File without changes
|
data/CHANGELOG.md
CHANGED
@@ -2,14 +2,37 @@
|
|
2
2
|
|
3
3
|
All important changes to this project will be added to this file! This changelog will be based on [Keep a change log](http://keepachangelog.com/)
|
4
4
|
|
5
|
-
##
|
5
|
+
## 0.1.2 - Core Project - [29-04-2020]
|
6
|
+
|
7
|
+
### Added
|
8
|
+
|
9
|
+
* Many, many features have been added.
|
10
|
+
* Dockerfile and Docker Compose support.
|
11
|
+
* Class:
|
12
|
+
* GitLab::CI::Lint::Actions.
|
13
|
+
* GitLab::CI::Lint::Arguments.
|
14
|
+
* GitLab::CI::Lint::Client.
|
15
|
+
* GitLab::CI::Lint::Configuration.
|
16
|
+
* GitLab::CI::Lint::Log.
|
17
|
+
* GitLab::CI::Lint::MultIO.
|
18
|
+
* GitLab::CI::Lint::Serializer.
|
19
|
+
* GitLab::CI::Lint::System.
|
20
|
+
* GitLab::CI::Lint::YMLReader.
|
21
|
+
* Create a CLI to get values from bash.
|
22
|
+
* Create a YMLReader to get values from yml files.
|
23
|
+
* Create Client Request GitLab CI to post the content of .gitlab to the API.
|
24
|
+
* Actions to evaluate the result.
|
25
|
+
* Request validations.
|
26
|
+
* YAML validations
|
27
|
+
|
28
|
+
## 0.1.1 - Rakefile - [28-04-2020]
|
6
29
|
|
7
30
|
### Added
|
8
31
|
|
9
32
|
* Rake file modules.
|
10
33
|
* Taks in Rakefile.
|
11
34
|
|
12
|
-
## 1.0
|
35
|
+
## 0.1.0 - Just Initial Adding Files - [27-04-2020]
|
13
36
|
|
14
37
|
### Added
|
15
38
|
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,153 @@
|
|
1
|
-
|
1
|
+
<p align="center">
|
2
|
+
<img alt="gitlab" src="https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcQYfhC8pImPXqjjQkZfOH2bAMltzPE5w9QMQJd8dUVqGCICbpF1&usqp=CAU" width="250px" float="center"/>
|
3
|
+
</p>
|
4
|
+
|
5
|
+
<h1 align="center">GitLab CI Lint your CI/CD File</h1>
|
6
|
+
|
7
|
+
<p align="center">
|
8
|
+
<strong>This is a simple project that help when you want check your GitLab CI File</strong>
|
9
|
+
</p>
|
10
|
+
|
11
|
+
<p align="center">
|
12
|
+
<a href="https://github.com/lpmatos/gitlab-ci-lint">
|
13
|
+
<img alt="Open Source" src="https://badges.frapsoft.com/os/v1/open-source.svg?v=102">
|
14
|
+
</a>
|
15
|
+
|
16
|
+
<a href="https://github.com/lpmatos/gitlab-ci-lint/graphs/contributors">
|
17
|
+
<img alt="GitHub Contributors" src="https://img.shields.io/github/contributors/lpmatos/gitlab-ci-lint">
|
18
|
+
</a>
|
19
|
+
|
20
|
+
<a href="https://github.com/lpmatos/gitlab-ci-lint">
|
21
|
+
<img alt="GitHub Language Count" src="https://img.shields.io/github/languages/count/lpmatos/gitlab-ci-lint">
|
22
|
+
</a>
|
23
|
+
|
24
|
+
<a href="https://github.com/lpmatos/gitlab-ci-lint">
|
25
|
+
<img alt="GitHub Top Language" src="https://img.shields.io/github/languages/top/lpmatos/gitlab-ci-lint">
|
26
|
+
</a>
|
27
|
+
|
28
|
+
<a href="https://github.com/lpmatos/gitlab-ci-lint/stargazers">
|
29
|
+
<img alt="GitHub Stars" src="https://img.shields.io/github/stars/lpmatos/gitlab-ci-lint?style=social">
|
30
|
+
</a>
|
31
|
+
|
32
|
+
<a href="https://github.com/lpmatos/gitlab-ci-lint/commits/master">
|
33
|
+
<img alt="GitHub Last Commit" src="https://img.shields.io/github/last-commit/lpmatos/gitlab-ci-lint">
|
34
|
+
</a>
|
35
|
+
|
36
|
+
<a href="https://github.com/lpmatos/gitlab-ci-lint">
|
37
|
+
<img alt="Repository Size" src="https://img.shields.io/github/repo-size/lpmatos/gitlab-ci-lint">
|
38
|
+
</a>
|
39
|
+
|
40
|
+
<a href="https://github.com/lpmatos/gitlab-ci-lint/issues">
|
41
|
+
<img alt="Repository Issues" src="https://img.shields.io/github/issues/lpmatos/gitlab-ci-lint">
|
42
|
+
</a>
|
43
|
+
|
44
|
+
<a href="https://github.com/lpmatos/gitlab-ci-lint/blob/master/LICENSE">
|
45
|
+
<img alt="MIT License" src="https://img.shields.io/github/license/lpmatos/gitlab-ci-lint">
|
46
|
+
</a>
|
47
|
+
</p>
|
48
|
+
|
49
|
+
<p align="center">
|
50
|
+
<a href="#pre-requisites">Pre-Requisites</a> |
|
51
|
+
<a href="#description">Description</a> |
|
52
|
+
<a href="#environment-variables">Environment Variables</a> |
|
53
|
+
<a href="#how-to-contribute">How to contribute</a>
|
54
|
+
</p>
|
55
|
+
|
56
|
+
## ▶️ Getting Started
|
57
|
+
|
58
|
+
Starting with **git clone**:
|
59
|
+
|
60
|
+
```bash
|
61
|
+
git clone --depth 1 https://github.com/lpmatos/gitlab-ci-lint.git -b master
|
62
|
+
```
|
63
|
+
|
64
|
+
This will give access on your local machine to this project.
|
65
|
+
|
66
|
+
## ☕ Buy me a coffee
|
67
|
+
|
68
|
+
Pull requests are welcome. If you'd like to support the work and buy me a ☕, I greatly appreciate it!
|
69
|
+
|
70
|
+
<a href="https://www.buymeacoffee.com/EatdMck" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 100px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>
|
71
|
+
|
72
|
+
## 🚏 Pre-requisites
|
73
|
+
|
74
|
+
To this project you yeed:
|
75
|
+
|
76
|
+
- Ruby.
|
77
|
+
- Docker.
|
78
|
+
- Docker Compose.
|
79
|
+
- Install all Dependencies.
|
80
|
+
|
81
|
+
## Gem Steps
|
82
|
+
|
83
|
+
```bash
|
84
|
+
gem build .\gitlab.gemspec
|
85
|
+
gem install .\gitlab-ci-lint-0.1.2.gem
|
86
|
+
gem push .\gitlab-ci-lint-0.1.2.gem
|
87
|
+
```
|
88
|
+
|
89
|
+
## Environment variables
|
90
|
+
|
91
|
+
**Name** | **Description**
|
92
|
+
:---: | :---:
|
93
|
+
**GITLAB_ENDPOINT** | GitLab API Lint Endpoint
|
94
|
+
**GITLAB_CI_FILE** | GitLab CI File
|
95
|
+
**VALUES** | Values File
|
96
|
+
**LOG_FILE** | Log File
|
97
|
+
|
98
|
+
## 🐋 Development with Docker
|
99
|
+
|
100
|
+
Steps to build the Docker Image.
|
101
|
+
|
102
|
+
### Build
|
103
|
+
|
104
|
+
```bash
|
105
|
+
docker image build -t <IMAGE_NAME> -f <PATH_DOCKERFILE> <PATH_CONTEXT_DOCKERFILE>
|
106
|
+
docker image build -t <IMAGE_NAME> . (This context)
|
107
|
+
```
|
108
|
+
|
109
|
+
### Run
|
110
|
+
|
111
|
+
Steps to run the Docker Container.
|
112
|
+
|
113
|
+
* **Linux** running:
|
114
|
+
|
115
|
+
```bash
|
116
|
+
docker container run -d -p <LOCAL_PORT:CONTAINER_PORT> <IMAGE_NAME> <COMMAND>
|
117
|
+
docker container run -it --rm --name <CONTAINER_NAME> -p <LOCAL_PORT:CONTAINER_PORT> <IMAGE_NAME> <COMMAND>
|
118
|
+
```
|
119
|
+
|
120
|
+
* **Windows** running:
|
121
|
+
|
122
|
+
```
|
123
|
+
winpty docker.exe container run -it --rm <IMAGE_NAME> <COMMAND>
|
124
|
+
```
|
125
|
+
|
126
|
+
For more information, access the [Docker](https://docs.docker.com/) documentation or [this](docs/annotations/docker.md).
|
127
|
+
|
128
|
+
## 🐋 Development with Docker Compose
|
129
|
+
|
130
|
+
Build and run a docker-compose.
|
131
|
+
|
132
|
+
```bash
|
133
|
+
docker-compose up --build
|
134
|
+
```
|
135
|
+
|
136
|
+
Down all services deployed by docker-compose.
|
137
|
+
|
138
|
+
```bash
|
139
|
+
docker-compose down
|
140
|
+
```
|
141
|
+
|
142
|
+
Down all services and delete all images.
|
143
|
+
|
144
|
+
```bash
|
145
|
+
docker-compose down --rmi all
|
146
|
+
```
|
147
|
+
|
148
|
+
## 📣 Usage
|
149
|
+
|
150
|
+
<kbd>gitlab_ci_lint --help</kbd> - Helper
|
2
151
|
|
3
152
|
## 🎒 How to contribute
|
4
153
|
|
@@ -39,6 +188,21 @@ Hey!! If you like this project or if you find some bugs feel free to contact me
|
|
39
188
|
[![Facebook](https://github.frapsoft.com/social/facebook.png)](https://www.facebook.com/lucca.pessoa.9)
|
40
189
|
[![Github](https://github.frapsoft.com/social/github.png)](https://github.com/lpmatos)
|
41
190
|
|
191
|
+
## ✨ Contributors
|
192
|
+
|
193
|
+
<table>
|
194
|
+
<tr>
|
195
|
+
<td align="center"><a href="https://github.com/lpmatos"><img src="https://avatars2.githubusercontent.com/u/58797390?s=400&v=4" width="100px;" alt=""/><br /><sub><b>Lucca Pessoa</b></sub></a><br /><a href="https://github.com/lpmatos/gitlab-ci-lint/commits?author=lpmatos" title="Code">💻</a></a></td>
|
196
|
+
<tr>
|
197
|
+
</table>
|
198
|
+
|
199
|
+
## 🐯 Autor
|
200
|
+
|
201
|
+
<table>
|
202
|
+
<tr>
|
203
|
+
<td align="center"><a href="https://github.com/lpmatos"><img src="https://avatars2.githubusercontent.com/u/58797390?s=400&v=4" width="100px;" alt=""/><br /><sub><b>Lucca Pessoa</b></sub></a><br /><a href="https://github.com/lpmatos/gitlab-ci-lint/commits?author=lpmatos" title="Code">💻</a> <a href="https://github.com/lpmatos/gitlab-ci-lint/commits?author=lpmatos" title="Design">🎨</a></td>
|
204
|
+
<tr>
|
205
|
+
</table>
|
42
206
|
|
43
207
|
## Project Status
|
44
208
|
|
@@ -46,4 +210,4 @@ Hey!! If you like this project or if you find some bugs feel free to contact me
|
|
46
210
|
|
47
211
|
---
|
48
212
|
|
49
|
-
Feito com ❤️ by
|
213
|
+
<p align="center">Feito com ❤️ by <strong>Lucca Pessoa :wave:</p>
|
data/bin/console
ADDED
data/bin/setup
ADDED
data/gitlab.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.platform = Gem::Platform::RUBY
|
10
10
|
spec.authors = ["Lucca Pessoa da Silva Matos"]
|
11
11
|
spec.email = "luccapsm@gmail.com"
|
12
|
-
spec.summary = %q{Validate your gitlab-ci.yml
|
12
|
+
spec.summary = %q{Validate your gitlab-ci.yml file}
|
13
13
|
spec.description = "Gitlab CI Lint"
|
14
14
|
spec.homepage = "https://github.com/lpmatos/gitlab-ci-lint"
|
15
15
|
spec.metadata["homepage_uri"] = spec.homepage
|
@@ -22,9 +22,13 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
23
23
|
spec.bindir = "bin"
|
24
24
|
spec.require_paths = ["lib"]
|
25
|
-
spec.license =
|
26
|
-
|
27
|
-
spec.
|
28
|
-
spec.
|
29
|
-
spec.
|
25
|
+
spec.license = "MIT"
|
26
|
+
|
27
|
+
spec.add_dependency "httparty", "~> 0.18.0"
|
28
|
+
spec.add_dependency "OptionParser", "~> 0.5.1"
|
29
|
+
spec.add_dependency "yaml", "~> 0.1.0"
|
30
|
+
spec.add_dependency "colorize", "~> 0.8.1"
|
31
|
+
|
32
|
+
spec.add_development_dependency "pry"
|
33
|
+
spec.add_development_dependency "rspec", "~> 3.4"
|
30
34
|
end
|
data/lib/gitlab/ci/lint.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
+
require "gitlab/ci/lint/yml"
|
2
|
+
require "gitlab/ci/lint/log"
|
3
|
+
require "gitlab/ci/lint/system"
|
4
|
+
require "gitlab/ci/lint/actions"
|
5
|
+
|
1
6
|
module Gitlab
|
2
7
|
module Ci
|
3
8
|
module Lint
|
4
|
-
require File.expand_path("lint/yml", File.dirname(__FILE__))
|
5
|
-
require File.expand_path("lint/log", File.dirname(__FILE__))
|
6
|
-
require File.expand_path("lint/system", File.dirname(__FILE__))
|
7
|
-
require File.expand_path("lint/client", File.dirname(__FILE__))
|
8
|
-
|
9
9
|
def self.validate values, configuration, options
|
10
10
|
system = GitLab::CI::Lint::System.new
|
11
|
-
|
11
|
+
actions = GitLab::CI::Lint::Actions.new
|
12
12
|
|
13
13
|
system.file_exist?(values, "Error: You must specify the values.yml file")
|
14
14
|
|
@@ -31,16 +31,9 @@ module Gitlab
|
|
31
31
|
options["file"] : ((!gitlab["file"].to_s.empty? && !gitlab["file"].nil?) ?
|
32
32
|
gitlab["file"] : configuration.gitlab_ci_file)
|
33
33
|
|
34
|
-
logger.info("Starting
|
35
|
-
|
36
|
-
result = client.get_gitlab_ci_lint(gitlab_endpoint, gitlab_ci_file)
|
34
|
+
logger.info("Starting GitLab CI YML Validation...")
|
37
35
|
|
38
|
-
|
39
|
-
puts "\nYour GitLab CI File is Okay: #{result}".colorize(:green)
|
40
|
-
else
|
41
|
-
puts "\nYour GitLab CI File is Invalid. Information:\n".colorize(:red)
|
42
|
-
puts result["errors"]
|
43
|
-
end
|
36
|
+
actions.validate_gitlab_ci_yml(gitlab_endpoint, gitlab_ci_file)
|
44
37
|
|
45
38
|
return 0
|
46
39
|
end
|
@@ -1,10 +1,19 @@
|
|
1
1
|
require "gitlab/ci/lint/client"
|
2
|
+
require "gitlab/ci/lint/serializer"
|
2
3
|
|
3
4
|
module GitLab
|
4
5
|
module CI
|
5
6
|
module Lint
|
6
7
|
class Actions < GitLab::CI::Lint::Client
|
7
|
-
|
8
|
+
def validate_gitlab_ci_yml url, content
|
9
|
+
result = post(url, content)
|
10
|
+
message = GitLab::CI::Lint::Serializer.new(result)
|
11
|
+
if result["status"] == "valid"
|
12
|
+
message.success()
|
13
|
+
else
|
14
|
+
message.failure()
|
15
|
+
end
|
16
|
+
end
|
8
17
|
end
|
9
18
|
end
|
10
19
|
end
|
@@ -1,33 +1,39 @@
|
|
1
|
-
require "httparty"
|
2
1
|
require "json"
|
3
|
-
|
2
|
+
require "httparty"
|
3
|
+
require "gitlab/ci/lint/yml.rb"
|
4
4
|
|
5
5
|
module GitLab
|
6
6
|
module CI
|
7
7
|
module Lint
|
8
8
|
class Client
|
9
|
-
|
9
|
+
include HTTParty
|
10
|
+
|
11
|
+
def initialize
|
12
|
+
@headers = { "Content-Type" => "application/json" }
|
13
|
+
end
|
14
|
+
|
15
|
+
def post url, content
|
10
16
|
begin
|
11
|
-
if
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
end
|
17
|
+
if content = GitLab::CI::Lint::YMLReader.new(content).get_json_content()
|
18
|
+
body = { content: content }.to_json
|
19
|
+
request = self.class.post(url, :body => body, :headers => @headers)
|
20
|
+
if request.code == 200
|
21
|
+
puts "\nSuccessful request!"
|
22
|
+
return JSON.parse(request.body)
|
23
|
+
else
|
24
|
+
puts "Error - Bad Request #{request.code}"
|
25
|
+
exit
|
26
|
+
end
|
27
|
+
else
|
28
|
+
puts "\nError - No Content..."
|
29
|
+
exit
|
25
30
|
end
|
26
31
|
rescue => error
|
27
|
-
|
32
|
+
puts "\nError Post - #{error}"
|
28
33
|
end
|
29
34
|
end
|
30
35
|
end
|
36
|
+
|
31
37
|
end
|
32
38
|
end
|
33
39
|
end
|
data/lib/gitlab/ci/lint/log.rb
CHANGED
@@ -0,0 +1,55 @@
|
|
1
|
+
module GitLab
|
2
|
+
module CI
|
3
|
+
module Lint
|
4
|
+
class Serializer
|
5
|
+
attr_reader :content
|
6
|
+
|
7
|
+
def initialize content
|
8
|
+
@content = content
|
9
|
+
@sucess_message = "Your GitLab CI File is Okay.".colorize(:green)
|
10
|
+
@failure_message = "Your GitLab CI File is Invalid.".colorize(:red)
|
11
|
+
@serialize = serialize
|
12
|
+
end
|
13
|
+
|
14
|
+
def success
|
15
|
+
puts """
|
16
|
+
Result: #{@sucess_message}
|
17
|
+
|
18
|
+
Information:
|
19
|
+
|
20
|
+
* Status: #{@serialize[:status]}
|
21
|
+
* Erros: #{@serialize[:errors]}
|
22
|
+
|
23
|
+
Yeaaaah!!!! Congrats!!!!
|
24
|
+
"""
|
25
|
+
end
|
26
|
+
|
27
|
+
def failure
|
28
|
+
puts """
|
29
|
+
Result: #{@failure_message}
|
30
|
+
|
31
|
+
#{"Information".colorize(:yellow)}
|
32
|
+
|
33
|
+
* Status: #{@serialize[:status].colorize(:red)}
|
34
|
+
* Erros: #{@serialize[:errors].to_s.colorize(:red)}
|
35
|
+
|
36
|
+
Baaaaaad GitLab CI! Fuck man, you're a idiot...
|
37
|
+
"""
|
38
|
+
puts "Error Details:\n".colorize(:yellow)
|
39
|
+
@content["errors"].each_with_index do |value, index|
|
40
|
+
puts "Error #{index} - #{value}"
|
41
|
+
end
|
42
|
+
puts
|
43
|
+
end
|
44
|
+
|
45
|
+
def serialize
|
46
|
+
{
|
47
|
+
:status => @content["status"],
|
48
|
+
:error => @content["errors"]
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
data/lib/gitlab/ci/lint/yml.rb
CHANGED
@@ -8,6 +8,13 @@ module GitLab
|
|
8
8
|
attr_reader :file
|
9
9
|
def initialize file
|
10
10
|
@file = file
|
11
|
+
validate!
|
12
|
+
end
|
13
|
+
|
14
|
+
def validate!
|
15
|
+
unless @file.chars.last(4).join == ".yml" or @file.chars.last(5).join == ".yaml"
|
16
|
+
raise ArgumentError.new("We need a YML File...")
|
17
|
+
end
|
11
18
|
end
|
12
19
|
|
13
20
|
def get_content
|
data/values.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-ci-lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lucca Pessoa da Silva Matos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -17,7 +17,7 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.18.0
|
20
|
-
type: :
|
20
|
+
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.5.1
|
34
|
-
type: :
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
@@ -45,7 +45,7 @@ dependencies:
|
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.1.0
|
48
|
-
type: :
|
48
|
+
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
@@ -59,17 +59,46 @@ dependencies:
|
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.8.1
|
62
|
-
type: :
|
62
|
+
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.8.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.4'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.4'
|
69
97
|
description: Gitlab CI Lint
|
70
98
|
email: luccapsm@gmail.com
|
71
99
|
executables:
|
72
|
-
-
|
100
|
+
- console
|
101
|
+
- setup
|
73
102
|
extensions: []
|
74
103
|
extra_rdoc_files: []
|
75
104
|
files:
|
@@ -77,6 +106,7 @@ files:
|
|
77
106
|
- ".editorconfig"
|
78
107
|
- ".gitignore"
|
79
108
|
- ".gitlab-ci.yml"
|
109
|
+
- ".rspec_status"
|
80
110
|
- CHANGELOG.md
|
81
111
|
- Dockerfile
|
82
112
|
- Gemfile
|
@@ -84,12 +114,14 @@ files:
|
|
84
114
|
- Makefile
|
85
115
|
- README.md
|
86
116
|
- Rakefile
|
87
|
-
- bin/
|
117
|
+
- bin/console
|
118
|
+
- bin/setup
|
88
119
|
- docker-compose.yml
|
89
120
|
- docs/annotations/docker.md
|
90
121
|
- docs/annotations/rake.md
|
91
122
|
- docs/annotations/replace.md
|
92
123
|
- docs/annotations/structure.md
|
124
|
+
- exemple/lint.rb
|
93
125
|
- gitlab.gemspec
|
94
126
|
- lib/gitlab/ci/lint.rb
|
95
127
|
- lib/gitlab/ci/lint/actions.rb
|
@@ -99,6 +131,7 @@ files:
|
|
99
131
|
- lib/gitlab/ci/lint/configuration.rb
|
100
132
|
- lib/gitlab/ci/lint/log.rb
|
101
133
|
- lib/gitlab/ci/lint/multio.rb
|
134
|
+
- lib/gitlab/ci/lint/serializer.rb
|
102
135
|
- lib/gitlab/ci/lint/system.rb
|
103
136
|
- lib/gitlab/ci/lint/version.rb
|
104
137
|
- lib/gitlab/ci/lint/yml.rb
|
@@ -129,5 +162,5 @@ requirements: []
|
|
129
162
|
rubygems_version: 3.1.2
|
130
163
|
signing_key:
|
131
164
|
specification_version: 4
|
132
|
-
summary: Validate your gitlab-ci.yml
|
165
|
+
summary: Validate your gitlab-ci.yml file
|
133
166
|
test_files: []
|