saddler-reporter-github 0.1.4 → 0.1.5

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: d21d59d7dbb4932a38fae5d5fe98d343872b2d62
4
- data.tar.gz: 8b0ef6284a246a11b7a3ebc9eaabb2348f4ab22e
3
+ metadata.gz: 1dc735b2cef637c5d5a467a40b8bf593451220f9
4
+ data.tar.gz: ef5f818d8cce267bfd9daad9835774c4301324b0
5
5
  SHA512:
6
- metadata.gz: ab74c0ef9a04a7bd18369b19ad8075a1b4baa75b393af31195d3b828362e9de0fd8aa741145d99fb07d434190c746a10e3eb9e3472b55bf459a506b6fdd7fb19
7
- data.tar.gz: 1aa6cd733e1afd7971f794fd4e5a917b0aa574a5c8e5c8d547b633fe0fbb7b87e21ade42dd73d6a06e0fbe9ec067786a7ba9219229793a83879c1d8c5ab66524
6
+ metadata.gz: 0fae38fc76fb4b589153a7cc78852b2a145f559adbf6aaf5103362ec48f137a505eff4b0362d167cff55694265a92d26ff5ed3a8ef2a234e280c9c7e23d02082
7
+ data.tar.gz: 13c3bdb196b3aa9d8c2afc3230478ed027fa56aac1f3276c455bea638602390db19d240c45d7a1630f6a50bdd438461bc371eddfeb31b4848c282037bdabb0bc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ <a name="0.1.5"></a>
2
+ ## [0.1.5](https://github.com/packsaddle/ruby-saddler-reporter-github/compare/v0.1.4...v0.1.5) (2015-09-21)
3
+
4
+ #### Features
5
+
6
+ * **client:** Compatibility to Jenkins Pull Request Builder ([56fa18d](https://github.com/packsaddle/ruby-saddler-reporter-github/commit/56fa18dd8cef23bb5579971abc087d31de28adf4))
7
+
8
+
1
9
  <a name"0.1.4"></a>
2
10
  ### 0.1.4 (2015-03-23)
3
11
 
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![Gem Version](http://img.shields.io/gem/v/saddler-reporter-github.svg?style=flat)](http://badge.fury.io/rb/saddler-reporter-github)
4
4
  [![Build Status](http://img.shields.io/travis/packsaddle/ruby-saddler-reporter-github/master.svg?style=flat)](https://travis-ci.org/packsaddle/ruby-saddler-reporter-github)
5
5
 
6
+
6
7
  ## Reporters
7
8
 
8
9
  This provides saddler reporters for GitHub.
@@ -12,6 +13,7 @@ This provides saddler reporters for GitHub.
12
13
  * CommitComment(under construction)
13
14
  * CommitReviewComment(under construction)
14
15
 
16
+
15
17
  ## Usage
16
18
 
17
19
  ```
@@ -22,10 +24,12 @@ $ saddler report \
22
24
 
23
25
  like this.
24
26
 
27
+
25
28
  ## Requirement
26
29
 
27
30
  Set `GITHUB_ACCESS_TOKEN=__your_access_token__` to your environment variable.
28
31
 
32
+
29
33
  ### TravisCI
30
34
 
31
35
  [Travis CI: Encryption keys](http://docs.travis-ci.com/user/encryption-keys/)
@@ -35,10 +39,12 @@ $ gem install travis
35
39
  $ travis encrypt -r <owner_name>/<repos_name> "GITHUB_ACCESS_TOKEN=<github_token>"
36
40
  ```
37
41
 
42
+
38
43
  ### CircleCI
39
44
 
40
45
  [Environment variables - CircleCI](https://circleci.com/docs/environment-variables)
41
46
 
47
+
42
48
  ## Installation
43
49
 
44
50
  Add this line to your application's Gemfile:
@@ -55,12 +61,14 @@ Or install it yourself as:
55
61
 
56
62
  $ gem install saddler-reporter-github
57
63
 
64
+
58
65
  ## Development
59
66
 
60
67
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
61
68
 
62
69
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
63
70
 
71
+
64
72
  ## Contributing
65
73
 
66
74
  1. Fork it ( https://github.com/packsaddle/ruby-saddler-reporter-github/fork )
@@ -3,15 +3,33 @@
3
3
  var fs = require('fs');
4
4
  var execSync = require('child_process').execSync;
5
5
  var conventionalChangelog = require('conventional-changelog');
6
+ var tempfile = require('tempfile');
7
+ var addStream = require('add-stream');
6
8
 
7
9
  var version = "" + execSync('ruby -e \'require "./lib/saddler/reporter/github/version"; print Saddler::Reporter::Github::VERSION\'');
8
10
 
9
- conventionalChangelog({
10
- repository: 'https://github.com/packsaddle/ruby-saddler-reporter-github',
11
- version: version
12
- }, function(err, log) {
13
- fs.writeFile('CHANGELOG.md', log, function(err){
14
- console.log(err);
11
+ var options = { preset: 'angular' };
12
+ var templateContext = {
13
+ version: version,
14
+ host: 'https://github.com',
15
+ owner: 'packsaddle',
16
+ repository: 'ruby-saddler-reporter-github'
17
+ };
18
+ var infile = 'CHANGELOG.md';
19
+ var outfile = 'CHANGELOG.md';
20
+ var changelogStream = conventionalChangelog(options, templateContext)
21
+ .on('error', function(err) {
22
+ console.error(err.toString());
23
+ process.exit(1);
24
+ });
25
+
26
+ var tmp = tempfile();
27
+ var readStream = fs.createReadStream(infile);
28
+
29
+ changelogStream
30
+ .pipe(addStream(readStream))
31
+ .pipe(fs.createWriteStream(tmp))
32
+ .on('finish', function() {
33
+ fs.createReadStream(tmp)
34
+ .pipe(fs.createWriteStream(outfile));
15
35
  });
16
- console.log('Here is your changelog!', log);
17
- });
@@ -89,6 +89,8 @@ module Saddler
89
89
  ENV['TRAVIS_PULL_REQUEST'].to_i
90
90
  elsif ENV['CIRCLE_PR_NUMBER']
91
91
  ENV['CIRCLE_PR_NUMBER'].to_i
92
+ elsif ENV['ghprbPullId']
93
+ ENV['ghprbPullId'].to_i
92
94
  end
93
95
  end
94
96
  end
@@ -1,7 +1,7 @@
1
1
  module Saddler
2
2
  module Reporter
3
3
  module Github
4
- VERSION = '0.1.4'
4
+ VERSION = '0.1.5'
5
5
  end
6
6
  end
7
7
  end
@@ -30,12 +30,12 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ['lib']
32
32
 
33
- spec.add_runtime_dependency 'octokit'
34
- spec.add_runtime_dependency 'git_diff_parser'
35
- spec.add_runtime_dependency 'saddler-reporter-support'
36
- spec.add_runtime_dependency 'saddler-reporter-support-git'
33
+ spec.add_runtime_dependency 'octokit', '>= 0'
34
+ spec.add_runtime_dependency 'git_diff_parser', '>= 0'
35
+ spec.add_runtime_dependency 'saddler-reporter-support', '>= 0'
36
+ spec.add_runtime_dependency 'saddler-reporter-support-git', '>= 0'
37
37
 
38
- spec.add_development_dependency 'bundler', '~> 1.8'
39
- spec.add_development_dependency 'rake', '~> 10.0'
40
- spec.add_development_dependency 'test-unit'
38
+ spec.add_development_dependency 'bundler', '>= 0'
39
+ spec.add_development_dependency 'rake', '>= 0'
40
+ spec.add_development_dependency 'test-unit', '>= 0'
41
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saddler-reporter-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - sanemat
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-03-23 00:00:00.000000000 Z
11
+ date: 2015-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -70,30 +70,30 @@ dependencies:
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '1.8'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '1.8'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
89
+ version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '10.0'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: test-unit
99
99
  requirement: !ruby/object:Gem::Requirement