hockey-gerrit 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +0 -0
- data/bin/hockey-gerrit +2 -0
- data/lib/hockey-gerrit.rb +15 -0
- data/test/test_hockey-gerrit.rb +0 -0
- metadata +48 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a344d31d3bcea5df9b002458db6f688a16166ceb
|
4
|
+
data.tar.gz: 785c44de36b1cdd187099381cb378139dc6fc98c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9bbf0c071b63c350d939c0df853de3c65327c04b775cc3310200908c1c45c5699a861d9085a98553a19fad08a2022cb13511637ed7c425be0626affb7cdcf989
|
7
|
+
data.tar.gz: 0e180361a6a0b4bec5d7bbadae4769b0ea78d01e16daf73f6cc398afb5e364159cf9fb8daf73ab8e201ceca60cc06aa1f9013c49b00a2fd7d56a72ef63116ed6
|
data/Rakefile
ADDED
File without changes
|
data/bin/hockey-gerrit
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
class GetEnv
|
2
|
+
def self.getVar
|
3
|
+
|
4
|
+
ENV['GERRIT_REFSPEC'] = 'refs/changes/13/79213/1'
|
5
|
+
|
6
|
+
|
7
|
+
puts "Getting Environment Variable"
|
8
|
+
# Gets env
|
9
|
+
change, patch = ENV['GERRIT_REFSPEC'].split('/')[-2..-1]
|
10
|
+
puts "g#{change},#{patch}"
|
11
|
+
cmd = %x(git log --reverse -1 --format='%an: %s')
|
12
|
+
#Output to file
|
13
|
+
File.write("changelog.md", "g#{change},#{patch}\n#{cmd}")
|
14
|
+
end
|
15
|
+
end
|
File without changes
|
metadata
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hockey-gerrit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Trevor Renshaw
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-05-16 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Gem to extract the gerrit build
|
14
|
+
email: nick@quaran.to
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- Rakefile
|
20
|
+
- bin/hockey-gerrit
|
21
|
+
- lib/hockey-gerrit.rb
|
22
|
+
- test/test_hockey-gerrit.rb
|
23
|
+
homepage: http://rubygems.org/gems/hockey-gerrit
|
24
|
+
licenses:
|
25
|
+
- MIT
|
26
|
+
metadata: {}
|
27
|
+
post_install_message:
|
28
|
+
rdoc_options: []
|
29
|
+
require_paths:
|
30
|
+
- lib
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
requirements: []
|
42
|
+
rubyforge_project:
|
43
|
+
rubygems_version: 2.6.4
|
44
|
+
signing_key:
|
45
|
+
specification_version: 3
|
46
|
+
summary: Gets gem build information from gerrit to then send to hockeyapp
|
47
|
+
test_files:
|
48
|
+
- test/test_hockey-gerrit.rb
|