Skip to content

Commit

Permalink
Merge branch 'dev' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhif authored Sep 13, 2017
2 parents 030f1ce + b9b5f5e commit cc7bd8a
Show file tree
Hide file tree
Showing 17 changed files with 911 additions and 378 deletions.
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
--format documentation
--color
-f d
40 changes: 40 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2017-05-16 13:17:04 +0200 using RuboCop version 0.48.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 12
Metrics/AbcSize:
Max: 50

# Offense count: 6
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/BlockLength:
Max: 200

# Offense count: 2
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 200

# Offense count: 2
Metrics/CyclomaticComplexity:
Max: 10

# Offense count: 38
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 160

# Offense count: 13
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 50

# Offense count: 1
Metrics/PerceivedComplexity:
Max: 10
16 changes: 15 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
gitlabci-cli (1.0.0)
gitlabci-cli (2.0.0)
json
json_pure
rest-client
Expand All @@ -13,6 +13,7 @@ GEM
specs:
addressable (2.5.1)
public_suffix (~> 2.0, >= 2.0.2)
ast (2.3.0)
crack (0.4.3)
safe_yaml (~> 1.0.0)
diff-lcs (1.3)
Expand All @@ -27,7 +28,12 @@ GEM
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
netrc (0.11.0)
parser (2.4.0.0)
ast (~> 2.2)
powerpack (0.1.1)
public_suffix (2.0.5)
rainbow (2.2.2)
rake
rake (10.5.0)
rest-client (2.0.2)
http-cookie (>= 1.0.2, < 2.0)
Expand All @@ -46,6 +52,13 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-support (3.5.0)
rubocop (0.48.1)
parser (>= 2.3.3.1, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
ruby-progressbar (1.8.1)
safe_yaml (1.0.4)
terminal-table (1.7.3)
unicode-display_width (~> 1.1.1)
Expand All @@ -68,4 +81,5 @@ DEPENDENCIES
rake (~> 10.0)
rspec (~> 3.0)
rspec-mocks
rubocop
webmock
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require 'bundler/gem_tasks'
require 'rspec/core/rake_task'

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

task :default => :spec
task default: :spec
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ OPTIONS
AUTHOR
------

Wassim DHIF (wassim.dhif@worldline.com)
Wassim DHIF (wassimdhif@gmail.com)
4 changes: 2 additions & 2 deletions bin/gitlabci-cli
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env ruby

require "gitlabci/controller"
require 'gitlabci/controller'

Gitlabci::Controller::Cli.start ( ARGV )
Gitlabci::Controller::Cli.start ARGV
29 changes: 15 additions & 14 deletions gitlabci-cli.gemspec
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
# coding: utf-8

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'gitlabci/controller/version'

Gem::Specification.new do |spec|
spec.name = "gitlabci-cli"
spec.name = 'gitlabci-cli'
spec.version = Gitlabci::Controller::VERSION
spec.authors = ["Wassim DHIF"]
spec.email = ["[email protected]"]
spec.authors = ['Wassim DHIF']
spec.email = ['[email protected]']

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

spec.files = []
spec.executables = "gitlabci-cli"
spec.require_paths = ["lib"]
spec.executables = 'gitlabci-cli'
spec.require_paths = ['lib']

spec.add_dependency 'thor'
spec.add_dependency 'rest-client'
spec.add_dependency 'json'
spec.add_dependency 'json_pure'
spec.add_dependency 'terminal-table'

spec.add_development_dependency "bundler"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rspec-mocks"
spec.add_development_dependency "webmock"

spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'rspec-mocks'
spec.add_development_dependency 'webmock'
spec.add_development_dependency 'rubocop'
end
6 changes: 3 additions & 3 deletions lib/gitlabci/controller.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require "gitlabci/controller/version"
require "gitlabci/controller/cli"
require 'gitlabci/controller/cli'
require 'gitlabci/controller/version'

module Gitlabci
# Main Controller Class
module Controller
# Your code goes here...
end
end
Loading

0 comments on commit cc7bd8a

Please sign in to comment.