u2i-ci_utils 3.2.0-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4515ab90c47016b4c5a0dd43b7e31301169ad427
4
+ data.tar.gz: 10af8d13ecd221677f9b225f4227d71ae5a35ada
5
+ SHA512:
6
+ metadata.gz: c363048ff335eb2a1c3afbc62f63bfea78ffc4e960c21b7edf404e2c52387880f0fb1345f1418ba902a6c2f63bc0276eabca05229e57345c703c811de9553125
7
+ data.tar.gz: bbb4d2f198007e165b67412b99ea926bba8583e95bcabce4341e7c51c554aca0be78ad5620a4b1b9f7e2ec9c944689d4350278884c551227e6a0f4e05eae42dc
data/.codeclimate.yml ADDED
@@ -0,0 +1,8 @@
1
+ engines:
2
+ rubocop:
3
+ enabled: true
4
+ duplication:
5
+ enabled: true
6
+ config:
7
+ languages:
8
+ - ruby
data/.gitignore ADDED
@@ -0,0 +1,24 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
23
+
24
+ .idea/
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.3
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ env:
2
+ - COVERAGE=1
3
+ language: ruby
4
+ rvm:
5
+ - 1.9.3
6
+ - 2.1.5
7
+ - 2.2.3
8
+ - 2.3.0
9
+ - jruby-19mode
data/CHANGELOG.md ADDED
@@ -0,0 +1,28 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ ### Changed
13
+
14
+ ## [3.2.0] - 2016-10-11
15
+
16
+ ### Added
17
+ - Pronto uses Rugged which does not support JRuby.
18
+ Exclude Pronto from dependencies for JRuby
19
+ and add support for Java platform
20
+
21
+ ## [3.1.1] - 2016-10-11
22
+
23
+ ### Added
24
+ - CHANGELOG.md
25
+ - Pronto Rake tasks
26
+ - Pronto Runners as a dependency
27
+
28
+ ## [3.1.0] - 2016-10-11 [YANKED]
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Remove once seattlerb/path_expander#2 is resolved
4
+ gem 'path_expander', '~> 1.0.1', git: 'https://github.com/mknapik/path_expander.git', branch: '6734999'
5
+
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Adam Zima
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,32 @@
1
+ [![Build Status](https://travis-ci.org/u2i/u2i-ci_utils.svg?branch=master)](https://travis-ci.org/u2i/u2i-ci_utils)
2
+ [![Code Climate](https://codeclimate.com/github/u2i/u2i-ci_utils/badges/gpa.svg)](https://codeclimate.com/github/u2i/u2i-ci_utils)
3
+
4
+ # U2i::CiUtils
5
+
6
+ Write a gem description
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ gem 'u2i-ci_utils'
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install u2i-ci_utils
21
+
22
+ ## Usage
23
+
24
+ Write usage instructions here
25
+
26
+ ## Contributing
27
+
28
+ 1. Fork it ( https://github.com/[my-github-username]/u2i-ci_utils/fork )
29
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
30
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
31
+ 4. Push to the branch (`git push origin my-new-feature`)
32
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,3 @@
1
+ require 'bundler/gem_tasks'
2
+
3
+ task default: [:build]
@@ -0,0 +1,19 @@
1
+ if ENV['COVERAGE']
2
+ require 'simplecov'
3
+ require 'simplecov-rcov'
4
+ require 'simplecov-rcov-text'
5
+ require 'codeclimate-test-reporter'
6
+
7
+ SimpleCov.add_filter '/spec/'
8
+ SimpleCov.formatters = [
9
+ SimpleCov::Formatter::HTMLFormatter,
10
+ SimpleCov::Formatter::RcovFormatter,
11
+ SimpleCov::Formatter::RcovTextFormatter,
12
+ CodeClimate::TestReporter::Formatter,
13
+ ]
14
+ if defined?(Rails)
15
+ SimpleCov.start 'rails'
16
+ else
17
+ SimpleCov.start
18
+ end
19
+ end
@@ -0,0 +1,14 @@
1
+ require 'u2i/ci_utils'
2
+ require 'rails'
3
+
4
+ module U2i
5
+ module CiUtils
6
+ class Railtie < Rails::Railtie
7
+ railtie_name :u2i_ci_rake_tasks
8
+
9
+ rake_tasks do
10
+ require 'u2i/ci_utils/rake_tasks/all'
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,3 @@
1
+ load 'u2i/ci_utils/rake_tasks/pronto.rake'
2
+ load 'u2i/ci_utils/rake_tasks/rspec.rake'
3
+ load 'u2i/ci_utils/rake_tasks/rubocop.rake'
@@ -0,0 +1,37 @@
1
+ if RUBY_PLATFORM == 'java'
2
+ namespace :ci do
3
+ namespace :pronto do
4
+ task :load_pronto_plugins
5
+ task local: :load_pronto_plugins
6
+ task branch: :load_pronto_plugins
7
+ task pr: :load_pronto_plugins
8
+ end
9
+ end
10
+ else
11
+ namespace :ci do
12
+ namespace :pronto do
13
+ task :load_pronto_plugins do
14
+ require 'pronto'
15
+ Pronto::GemNames.new.to_a.each { |gem_name| require "pronto/#{gem_name}" }
16
+ end
17
+
18
+ desc 'run pronto against unstaged'
19
+ task local: :load_pronto_plugins do
20
+ Pronto.run('HEAD', '.')
21
+ end
22
+
23
+ desc 'run pronto against branch, eg. origin/master'
24
+ task :branch, [:branch_name] => :load_pronto_plugins do |_t, args|
25
+ Pronto.run(args[:branch_name], '.')
26
+ end
27
+
28
+ desc 'run pronto on PR, provide base branch as argument and ' \
29
+ 'GITHUB_ACCESS_TOKEN=token and PULL_REQUEST_ID=id as ENV variables'
30
+ task :pr, [:branch_name] => :load_pronto_plugins do |_t, args|
31
+ formatter = Pronto::Formatter::GithubPullRequestFormatter.new
32
+ status_formatter = Pronto::Formatter::GithubStatusFormatter.new
33
+ Pronto.run(args[:branch_name], '.', [formatter, status_formatter])
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,6 @@
1
+ require 'ci/reporter/rake/rspec'
2
+
3
+ namespace :ci do
4
+ desc 'run RSpec with CI formatters (JUnit XML)'
5
+ task :spec => %w(ci:setup:rspec ^spec)
6
+ end
@@ -0,0 +1,11 @@
1
+ require 'rubocop'
2
+ require 'rubocop/rake_task'
3
+
4
+ namespace :ci do
5
+ RuboCop::RakeTask.new(:rubocop) do |task|
6
+ task.requires = %w(rubocop/formatter/checkstyle_formatter)
7
+ task.formatters = %w(RuboCop::Formatter::CheckstyleFormatter)
8
+ task.options += %w(--no-color --out=checkstyle.xml)
9
+ task.fail_on_error = false
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ module U2i
2
+ module CiUtils
3
+ VERSION = '3.2.0'
4
+ end
5
+ end
@@ -0,0 +1,7 @@
1
+ require 'u2i/ci_utils/version'
2
+
3
+ module U2i
4
+ module CiUtils
5
+ require 'u2i/ci_utils/railtie' if defined?(Rails)
6
+ end
7
+ end
@@ -0,0 +1,46 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'u2i/ci_utils/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'u2i-ci_utils'
8
+ spec.version = U2i::CiUtils::VERSION
9
+ spec.authors = ['Adam Zima']
10
+ spec.email = ['adam.zima@u2i.com']
11
+ spec.summary = %q{Gem with rake tasks used across ns projects.}
12
+ spec.description = %q{Write a longer description. Optional.}
13
+ spec.homepage = ''
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ['lib']
20
+
21
+ spec.add_development_dependency 'bundler', '~> 1.6'
22
+ # TODO - check if we need production dependency
23
+ spec.add_dependency 'rake'
24
+
25
+ spec.add_dependency 'rubocop-rspec'
26
+ spec.add_dependency 'rubocop-checkstyle_formatter'
27
+
28
+ spec.add_dependency 'simplecov', '~> 0.11.0'
29
+ spec.add_dependency 'simplecov-rcov'
30
+ spec.add_dependency 'simplecov-rcov-text'
31
+ spec.add_dependency 'codeclimate-test-reporter'
32
+
33
+ spec.add_dependency 'ci_reporter'
34
+ spec.add_dependency 'ci_reporter_rspec'
35
+
36
+ if RUBY_PLATFORM == 'java'
37
+ spec.platform = 'java'
38
+ else
39
+ spec.add_dependency 'pronto', '~> 0.7'
40
+ spec.add_dependency 'pronto-rubocop', '~> 0.7'
41
+ spec.add_dependency 'pronto-brakeman', '~> 0.7'
42
+ spec.add_dependency 'pronto-flay', '~> 0.7'
43
+ spec.add_dependency 'pronto-reek', '~> 0.7'
44
+ spec.add_dependency 'pronto-fasterer', '~> 0.7'
45
+ end
46
+ end
metadata ADDED
@@ -0,0 +1,202 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: u2i-ci_utils
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.2.0
5
+ platform: java
6
+ authors:
7
+ - Adam Zima
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-10-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '1.6'
19
+ name: bundler
20
+ prerelease: false
21
+ type: :development
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ name: rake
34
+ prerelease: false
35
+ type: :runtime
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ name: rubocop-rspec
48
+ prerelease: false
49
+ type: :runtime
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ name: rubocop-checkstyle_formatter
62
+ prerelease: false
63
+ type: :runtime
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: 0.11.0
75
+ name: simplecov
76
+ prerelease: false
77
+ type: :runtime
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.11.0
83
+ - !ruby/object:Gem::Dependency
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ name: simplecov-rcov
90
+ prerelease: false
91
+ type: :runtime
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ name: simplecov-rcov-text
104
+ prerelease: false
105
+ type: :runtime
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ name: codeclimate-test-reporter
118
+ prerelease: false
119
+ type: :runtime
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ requirement: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ name: ci_reporter
132
+ prerelease: false
133
+ type: :runtime
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ requirement: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ name: ci_reporter_rspec
146
+ prerelease: false
147
+ type: :runtime
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Write a longer description. Optional.
154
+ email:
155
+ - adam.zima@u2i.com
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - ".codeclimate.yml"
161
+ - ".gitignore"
162
+ - ".ruby-version"
163
+ - ".travis.yml"
164
+ - CHANGELOG.md
165
+ - Gemfile
166
+ - LICENSE.txt
167
+ - README.md
168
+ - Rakefile
169
+ - lib/u2i/ci_utils.rb
170
+ - lib/u2i/ci_utils/coverage.rb
171
+ - lib/u2i/ci_utils/railtie.rb
172
+ - lib/u2i/ci_utils/rake_tasks/all.rb
173
+ - lib/u2i/ci_utils/rake_tasks/pronto.rake
174
+ - lib/u2i/ci_utils/rake_tasks/rspec.rake
175
+ - lib/u2i/ci_utils/rake_tasks/rubocop.rake
176
+ - lib/u2i/ci_utils/version.rb
177
+ - u2i-ci_utils.gemspec
178
+ homepage: ''
179
+ licenses:
180
+ - MIT
181
+ metadata: {}
182
+ post_install_message:
183
+ rdoc_options: []
184
+ require_paths:
185
+ - lib
186
+ required_ruby_version: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ required_rubygems_version: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ requirements: []
197
+ rubyforge_project:
198
+ rubygems_version: 2.4.8
199
+ signing_key:
200
+ specification_version: 4
201
+ summary: Gem with rake tasks used across ns projects.
202
+ test_files: []