hockey-gerrit 0.0.2 → 0.0.3

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: f537b407c855d2ceb6b3d883054c1aa58abb45ce
4
- data.tar.gz: 1f2a6b6ab3f65a822aa85e78a4ee5949ee912a40
3
+ metadata.gz: 07a91041838afc36ff2ca2eee64d09781e869267
4
+ data.tar.gz: e934833c65d2ce91cd38af2bf23f9eb6cec255d8
5
5
  SHA512:
6
- metadata.gz: 7bbc5dd5e3f7fdf7222f4dc177668e42521849b3e03fc79d2d4c156b35390d6a97e23552fe97a3e69234e62062dcb04adf82113e1a3f075b39ba04f53f4470aa
7
- data.tar.gz: 7cd36c2269b186231113ad13b59194699f593fb8714e9cd32f4fc02d90dd6f1ee727bba24c30354e8546e07ab351c47047df8d892e211578f99741f0f75de853
6
+ metadata.gz: 50e9143d0dd7a10b29c64a98bf93509d21dc0f82109476fabcc090d2a8a078cabf9c6c4a1c488e6e1392e7e475e6030f65c77f3ace67328007402d97fc151f60
7
+ data.tar.gz: 5310cf82d0d5759e38754f7133a729b108f4e47c056d7f76ba5062409d347ce99b43e82daeb546e7fae2bb2df9f27076a923a715fad285c1c3c02aee25bfc500
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ repo_token: UVBA4cx7xZLddTu9d2a8ofOnJ1MJhUfZf
data/.gitignore CHANGED
@@ -36,4 +36,5 @@ build/
36
36
  .rvmrc
37
37
 
38
38
 
39
- changelog.md
39
+ changelog.md
40
+ pkg
data/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # hockey-gerrit
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/hockey-gerrit.svg)](https://rubygems.org/gems/hockey-gerrit)
4
+ [![Build Status](https://travis-ci.org/instructure/hockey-gerrit.svg?branch=master)](https://travis-ci.org/instructure/hockey-gerrit)
5
+ [![Code Climate](https://codeclimate.com/github/instructure/hockey-gerrit/badges/gpa.svg)](https://codeclimate.com/github/instructure/hockey-gerrit)
6
+ [![Coverage Status](https://coveralls.io/repos/github/instructure/hockey-gerrit/badge.svg?branch=HEAD)](https://coveralls.io/github/instructure/hockey-gerrit?branch=HEAD)
7
+ [![Dependency Status](https://gemnasium.com/badges/github.com/instructure/hockey-gerrit.svg)](https://gemnasium.com/github.com/instructure/hockey-gerrit)
8
+
9
+ The hockey-gerrit gem saves the gerrit change number, patch number, commit message and author to a file.
10
+ The file can then be used with hockeyapp's Jenkins plugin to publish release notes for a mobile app.
11
+
12
+ ## Installation
13
+
14
+ ```
15
+ gem install hockey-gerrit
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ Run hockey-gerrit inside a Jenkins job's execute shell. The job must be triggered by the gerrit-trigger plugin.
21
+
22
+ ## Test
23
+
24
+ This project uses [Rubocop](https://github.com/bbatsov/rubocop) for linting
25
+ and [RSpec](https://github.com/rspec/rspec) for testing.
26
+ Run `rake` to run tests.
27
+
28
+ ### Test Usage
29
+
30
+ 1. Export a temporary environment variable for `GERRIT_REFSPEC`.
31
+ * (eg. `export GERRIT_REFSPEC="this/is/a/test"`
32
+ 2. Inside of a git repo, run `hockey-gerrit`.
33
+ 3. The output will be something similar to the following: (Writes to `changelog.md`)
34
+
35
+ ```
36
+ g70000,10
37
+ John Doe: Made a cool commit
38
+ ```
data/bin/hockey-gerrit CHANGED
@@ -1,2 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
1
3
  require_relative '../lib/hockey_gerrit'
2
- HockeyGerrit.new.write()
4
+
5
+ HockeyGerrit.new.write
@@ -8,6 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.summary = 'Gets build information from gerrit to then send to hockeyapp.'
9
9
  spec.description = 'Generates a change log.'
10
10
  spec.license = 'Apache-2.0'
11
+ spec.homepage = 'https://github.com/instructure/hockey-gerrit'
11
12
 
12
13
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
13
14
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -1,3 +1,3 @@
1
1
  class HockeyGerrit
2
- VERSION = '0.0.2'.freeze unless defined? ::HockeyGerrit::VERSION
2
+ VERSION = '0.0.3'.freeze unless defined? ::HockeyGerrit::VERSION
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hockey-gerrit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trevor Renshaw
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-18 00:00:00.000000000 Z
11
+ date: 2016-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -159,20 +159,20 @@ extensions: []
159
159
  extra_rdoc_files: []
160
160
  files:
161
161
  - ".codeclimate.yml"
162
+ - ".coveralls.yml"
162
163
  - ".gitignore"
163
164
  - ".rspec"
164
165
  - ".rubocop.yml"
165
166
  - ".travis.yml"
166
167
  - Gemfile
167
168
  - LICENSE
169
+ - README.md
168
170
  - Rakefile
169
171
  - bin/hockey-gerrit
170
172
  - hockey-gerrit.gemspec
171
173
  - lib/hockey_gerrit.rb
172
174
  - lib/hockey_gerrit/version.rb
173
- - readme.md
174
- - spec_helpers.rb
175
- homepage:
175
+ homepage: https://github.com/instructure/hockey-gerrit
176
176
  licenses:
177
177
  - Apache-2.0
178
178
  metadata: {}
data/readme.md DELETED
@@ -1,32 +0,0 @@
1
- # hockey-gerrit
2
-
3
- The hockey-gerrit gem saves the gerrit change number, patch number, commit message and author to a file.
4
- The file can then be used with hockeyapp's Jenkins plugin to publish release notes for a mobile app.
5
-
6
- ## Installation
7
-
8
- ```
9
- gem install hockey-gerrit
10
- ```
11
-
12
- ## Usage
13
-
14
- Run hockey-gerrit inside a Jenkins job's execute shell. The job must be triggered by the gerrit-trigger plugin.
15
-
16
- ## Test
17
-
18
- This project uses [Rubocop](https://github.com/bbatsov/rubocop) for linting
19
- and [RSpec](https://github.com/rspec/rspec) for testing.
20
- Run `rake` to run tests.
21
-
22
- ### Test Usage
23
-
24
- 1. Inside of a git repo, run `hockey-gerrit`.
25
- 2. Export a temporary environment variable for `GERRIT_REFSPEC`.
26
- * (eg. `export GERRIT_REFSPEC="this/is/a/test"`
27
- 3. The output will be something similar to the following: (Writes to `changelog.md`)
28
-
29
- ```
30
- g70000,10
31
- John Doe: Made a cool commit
32
- ```
data/spec_helpers.rb DELETED
@@ -1,9 +0,0 @@
1
- require 'coveralls'
2
- Coveralls.wear!
3
-
4
- require_relative '../lib/hockey_gerrit'
5
-
6
- RSpec.configure do |c|
7
- c.raise_errors_for_deprecations!
8
- c.color = true
9
- end