u2i-ci_utils 3.0.0 → 3.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bfe76d3d7ce8c0ba030ae8814d63e02b1f348b67
4
- data.tar.gz: b10aba0845c18447c25b09926f739aeb47ff6028
3
+ metadata.gz: 017ad7c8ac8d45368f36ef286b936cc8f836864e
4
+ data.tar.gz: 2019f566218fe5dea5af523a8e2a0df9749fdfc7
5
5
  SHA512:
6
- metadata.gz: 8bf7323560e959a639caa108f7f7973b406263bfba1e4b8673ff65f69ac7b1e0002365a9789d428c45d3fe717e7f6802019d86216817c0e198a05b5b315ee25b
7
- data.tar.gz: 54aacf1c4fb3404ceb3401b3f6c4e9956c822395dba0b6ff6b31a34e65988eee90ae6271a32ab40ff1d16c818544987a44469b90908016317d5dc459237b520e
6
+ metadata.gz: c33a45fee47d072e626c39e284909c32dabb72e6eb1a46094a29e1bdeeeb2c743e4a2dabc0a33624706ab7d6258979abe205ee5f6df23486bdd2c880e7ecc5ff
7
+ data.tar.gz: 6fdf2376c0d279b67a818ea0cae1990f1039e165c7686091111340b5fe65e22e6091c7167a55d19aae2014d364d374b88c8209874829cbe58e4283c849c8abb2
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.0
1
+ 2.3
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in u2i-ci_utils.gemspec
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
+
4
6
  gemspec
@@ -1,2 +1,3 @@
1
+ load 'u2i/ci_utils/rake_tasks/pronto.rake'
1
2
  load 'u2i/ci_utils/rake_tasks/rspec.rake'
2
3
  load 'u2i/ci_utils/rake_tasks/rubocop.rake'
@@ -0,0 +1,26 @@
1
+ namespace :ci do
2
+ namespace :pronto do
3
+ task :load_pronto_plugins do
4
+ require 'pronto'
5
+ Pronto::GemNames.new.to_a.each { |gem_name| require "pronto/#{gem_name}" }
6
+ end
7
+
8
+ desc 'run pronto against unstaged'
9
+ task local: :load_pronto_plugins do
10
+ Pronto.run('HEAD', '.')
11
+ end
12
+
13
+ desc 'run pronto against branch, eg. origin/master'
14
+ task :branch, [:branch_name] => :load_pronto_plugins do |_t, args|
15
+ Pronto.run(args[:branch_name], '.')
16
+ end
17
+
18
+ desc 'run pronto on PR, provide base branch as argument and ' \
19
+ 'GITHUB_ACCESS_TOKEN=token and PULL_REQUEST_ID=id as ENV variables'
20
+ task :pr, [:branch_name] => :load_pronto_plugins do |_t, args|
21
+ formatter = Pronto::Formatter::GithubPullRequestFormatter.new
22
+ status_formatter = Pronto::Formatter::GithubStatusFormatter.new
23
+ Pronto.run(args[:branch_name], '.', [formatter, status_formatter])
24
+ end
25
+ end
26
+ end
@@ -1,5 +1,5 @@
1
1
  module U2i
2
2
  module CiUtils
3
- VERSION = '3.0.0'
3
+ VERSION = '3.1.1'
4
4
  end
5
5
  end
data/u2i-ci_utils.gemspec CHANGED
@@ -32,4 +32,11 @@ Gem::Specification.new do |spec|
32
32
 
33
33
  spec.add_dependency 'ci_reporter'
34
34
  spec.add_dependency 'ci_reporter_rspec'
35
+
36
+ spec.add_dependency 'pronto', '~> 0.7'
37
+ spec.add_dependency 'pronto-rubocop', '~> 0.7'
38
+ spec.add_dependency 'pronto-brakeman', '~> 0.7'
39
+ spec.add_dependency 'pronto-flay', '~> 0.7'
40
+ spec.add_dependency 'pronto-reek', '~> 0.7'
41
+ spec.add_dependency 'pronto-fasterer', '~> 0.7'
35
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: u2i-ci_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Zima
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-07 00:00:00.000000000 Z
11
+ date: 2016-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -150,6 +150,90 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: pronto
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '0.7'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '0.7'
167
+ - !ruby/object:Gem::Dependency
168
+ name: pronto-rubocop
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '0.7'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '0.7'
181
+ - !ruby/object:Gem::Dependency
182
+ name: pronto-brakeman
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '0.7'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: '0.7'
195
+ - !ruby/object:Gem::Dependency
196
+ name: pronto-flay
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: '0.7'
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: '0.7'
209
+ - !ruby/object:Gem::Dependency
210
+ name: pronto-reek
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: '0.7'
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: '0.7'
223
+ - !ruby/object:Gem::Dependency
224
+ name: pronto-fasterer
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: '0.7'
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: '0.7'
153
237
  description: Write a longer description. Optional.
154
238
  email:
155
239
  - adam.zima@u2i.com
@@ -159,7 +243,6 @@ extra_rdoc_files: []
159
243
  files:
160
244
  - ".codeclimate.yml"
161
245
  - ".gitignore"
162
- - ".ruby-gemset"
163
246
  - ".ruby-version"
164
247
  - ".travis.yml"
165
248
  - Gemfile
@@ -170,6 +253,7 @@ files:
170
253
  - lib/u2i/ci_utils/coverage.rb
171
254
  - lib/u2i/ci_utils/railtie.rb
172
255
  - lib/u2i/ci_utils/rake_tasks/all.rb
256
+ - lib/u2i/ci_utils/rake_tasks/pronto.rake
173
257
  - lib/u2i/ci_utils/rake_tasks/rspec.rake
174
258
  - lib/u2i/ci_utils/rake_tasks/rubocop.rake
175
259
  - lib/u2i/ci_utils/version.rb
data/.ruby-gemset DELETED
@@ -1 +0,0 @@
1
- u2i-ci_utils