Skip to content

Commit cc7bd8a

Browse files
authored
Merge branch 'dev' into master
2 parents 030f1ce + b9b5f5e commit cc7bd8a

17 files changed

+911
-378
lines changed

.rspec

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
--format documentation
22
--color
3+
-f d

.rubocop.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This configuration was generated by
2+
# `rubocop --auto-gen-config`
3+
# on 2017-05-16 13:17:04 +0200 using RuboCop version 0.48.1.
4+
# The point is for the user to remove these configuration records
5+
# one by one as the offenses are removed from the code base.
6+
# Note that changes in the inspected code, or installation of new
7+
# versions of RuboCop, may require this file to be generated again.
8+
9+
# Offense count: 12
10+
Metrics/AbcSize:
11+
Max: 50
12+
13+
# Offense count: 6
14+
# Configuration parameters: CountComments, ExcludedMethods.
15+
Metrics/BlockLength:
16+
Max: 200
17+
18+
# Offense count: 2
19+
# Configuration parameters: CountComments.
20+
Metrics/ClassLength:
21+
Max: 200
22+
23+
# Offense count: 2
24+
Metrics/CyclomaticComplexity:
25+
Max: 10
26+
27+
# Offense count: 38
28+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
29+
# URISchemes: http, https
30+
Metrics/LineLength:
31+
Max: 160
32+
33+
# Offense count: 13
34+
# Configuration parameters: CountComments.
35+
Metrics/MethodLength:
36+
Max: 50
37+
38+
# Offense count: 1
39+
Metrics/PerceivedComplexity:
40+
Max: 10

Gemfile.lock

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
gitlabci-cli (1.0.0)
4+
gitlabci-cli (2.0.0)
55
json
66
json_pure
77
rest-client
@@ -13,6 +13,7 @@ GEM
1313
specs:
1414
addressable (2.5.1)
1515
public_suffix (~> 2.0, >= 2.0.2)
16+
ast (2.3.0)
1617
crack (0.4.3)
1718
safe_yaml (~> 1.0.0)
1819
diff-lcs (1.3)
@@ -27,7 +28,12 @@ GEM
2728
mime-types-data (~> 3.2015)
2829
mime-types-data (3.2016.0521)
2930
netrc (0.11.0)
31+
parser (2.4.0.0)
32+
ast (~> 2.2)
33+
powerpack (0.1.1)
3034
public_suffix (2.0.5)
35+
rainbow (2.2.2)
36+
rake
3137
rake (10.5.0)
3238
rest-client (2.0.2)
3339
http-cookie (>= 1.0.2, < 2.0)
@@ -46,6 +52,13 @@ GEM
4652
diff-lcs (>= 1.2.0, < 2.0)
4753
rspec-support (~> 3.5.0)
4854
rspec-support (3.5.0)
55+
rubocop (0.48.1)
56+
parser (>= 2.3.3.1, < 3.0)
57+
powerpack (~> 0.1)
58+
rainbow (>= 1.99.1, < 3.0)
59+
ruby-progressbar (~> 1.7)
60+
unicode-display_width (~> 1.0, >= 1.0.1)
61+
ruby-progressbar (1.8.1)
4962
safe_yaml (1.0.4)
5063
terminal-table (1.7.3)
5164
unicode-display_width (~> 1.1.1)
@@ -68,4 +81,5 @@ DEPENDENCIES
6881
rake (~> 10.0)
6982
rspec (~> 3.0)
7083
rspec-mocks
84+
rubocop
7185
webmock

Rakefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
require "bundler/gem_tasks"
2-
require "rspec/core/rake_task"
1+
require 'bundler/gem_tasks'
2+
require 'rspec/core/rake_task'
33

44
RSpec::Core::RakeTask.new(:spec)
55

6-
task :default => :spec
6+
task default: :spec

USAGE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,4 @@ OPTIONS
5555
AUTHOR
5656
------
5757

58-
Wassim DHIF (wassim.dhif@worldline.com)
58+
Wassim DHIF (wassimdhif@gmail.com)

bin/gitlabci-cli

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env ruby
22

3-
require "gitlabci/controller"
3+
require 'gitlabci/controller'
44

5-
Gitlabci::Controller::Cli.start ( ARGV )
5+
Gitlabci::Controller::Cli.start ARGV

gitlabci-cli.gemspec

+15-14
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
11
# coding: utf-8
2+
23
lib = File.expand_path('../lib', __FILE__)
34
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
45
require 'gitlabci/controller/version'
56

67
Gem::Specification.new do |spec|
7-
spec.name = "gitlabci-cli"
8+
spec.name = 'gitlabci-cli'
89
spec.version = Gitlabci::Controller::VERSION
9-
spec.authors = ["Wassim DHIF"]
10-
spec.email = ["wassimdhif@gmail.com"]
10+
spec.authors = ['Wassim DHIF']
11+
spec.email = ['wassimdhif@gmail.com']
1112

12-
spec.summary = %q{Control your GitlabCI workflow from your terminal}
13-
spec.description = %q{Control your GitlabCI workflow from your terminal}
14-
spec.homepage = "http://github.com/wdhif/gitlabci-cli"
13+
spec.summary = 'Control your GitlabCI workflow from your terminal'
14+
spec.description = 'Control your GitlabCI workflow from your terminal'
15+
spec.homepage = 'http://github.com/wdhif/gitlabci-cli'
1516

1617
spec.files = []
17-
spec.executables = "gitlabci-cli"
18-
spec.require_paths = ["lib"]
18+
spec.executables = 'gitlabci-cli'
19+
spec.require_paths = ['lib']
1920

2021
spec.add_dependency 'thor'
2122
spec.add_dependency 'rest-client'
2223
spec.add_dependency 'json'
2324
spec.add_dependency 'json_pure'
2425
spec.add_dependency 'terminal-table'
2526

26-
spec.add_development_dependency "bundler"
27-
spec.add_development_dependency "rake", "~> 10.0"
28-
spec.add_development_dependency "rspec", "~> 3.0"
29-
spec.add_development_dependency "rspec-mocks"
30-
spec.add_development_dependency "webmock"
31-
27+
spec.add_development_dependency 'bundler'
28+
spec.add_development_dependency 'rake', '~> 10.0'
29+
spec.add_development_dependency 'rspec', '~> 3.0'
30+
spec.add_development_dependency 'rspec-mocks'
31+
spec.add_development_dependency 'webmock'
32+
spec.add_development_dependency 'rubocop'
3233
end

lib/gitlabci/controller.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
require "gitlabci/controller/version"
2-
require "gitlabci/controller/cli"
1+
require 'gitlabci/controller/cli'
2+
require 'gitlabci/controller/version'
33

44
module Gitlabci
5+
# Main Controller Class
56
module Controller
6-
# Your code goes here...
77
end
88
end

0 commit comments

Comments
 (0)