u2i-ci_utils 3.1.1 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -0
- data/lib/u2i/ci_utils/rake_tasks/pronto.rake +29 -18
- data/lib/u2i/ci_utils/version.rb +1 -1
- data/u2i-ci_utils.gemspec +10 -6
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b1e8046724e806949d1c9ff7e01f43e2f970b55
|
4
|
+
data.tar.gz: e30cfbd7f92e1127271139eba544f3690d81751b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0189322786fd419637f3aec6b50dd1a59ebab218568ad4e2ae12fb986c11b289f1aa4a4219fcd1e6ea903bcac85912beb029a8a27146d61a2c4057ee1e924c40
|
7
|
+
data.tar.gz: 56d3b40b9d55be44b6f496818a34ad406b66aeb034237e71275f0ae35540e59ba108493a4bdf14a5fbac1773666adf3709ef3838c87b1b3e942e1f3a4d2dd40a
|
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]
|
@@ -1,26 +1,37 @@
|
|
1
|
-
|
2
|
-
namespace :
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
6
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
|
7
17
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
18
|
+
desc 'run pronto against unstaged'
|
19
|
+
task local: :load_pronto_plugins do
|
20
|
+
Pronto.run('HEAD', '.')
|
21
|
+
end
|
12
22
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
17
27
|
|
18
|
-
|
28
|
+
desc 'run pronto on PR, provide base branch as argument and ' \
|
19
29
|
'GITHUB_ACCESS_TOKEN=token and PULL_REQUEST_ID=id as ENV variables'
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
24
35
|
end
|
25
36
|
end
|
26
37
|
end
|
data/lib/u2i/ci_utils/version.rb
CHANGED
data/u2i-ci_utils.gemspec
CHANGED
@@ -33,10 +33,14 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_dependency 'ci_reporter'
|
34
34
|
spec.add_dependency 'ci_reporter_rspec'
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
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
|
42
46
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: u2i-ci_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Zima
|
@@ -245,6 +245,7 @@ files:
|
|
245
245
|
- ".gitignore"
|
246
246
|
- ".ruby-version"
|
247
247
|
- ".travis.yml"
|
248
|
+
- CHANGELOG.md
|
248
249
|
- Gemfile
|
249
250
|
- LICENSE.txt
|
250
251
|
- README.md
|