compare_linker 1.2.0 → 1.2.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: 061a65f1395cc27c55e4cdcb32e24466548b83ad
4
- data.tar.gz: a3952ac958f607203a2c025a9c4bfe8ca8a68678
3
+ metadata.gz: 4bd91ee90fc917c5cae680d6d5c3316b142d95d2
4
+ data.tar.gz: 7b594db9f42c2a2b854308395884b514e58d7f63
5
5
  SHA512:
6
- metadata.gz: 18ba00fe45acee1051c760e0a4815a6d24c2b2cbdbd0bfcbac63f4789ed45f8501be53dc27ea2587d990d63b52dec174ec86c2e3c171184ebe9700777522221d
7
- data.tar.gz: 1c72aaa66668992b3dba358e93ae3c7cdfe29d4012a4e32c3a2e98a2f519e5ebfeca9c0ccae756f4e2f227b6050110f66405b40937492c0ca0675123addf2487
6
+ metadata.gz: 514183f5e9ff8ed40cddf123857048296b2b04e4833f57cadbd02b787ab97ecb286892fd3ee002e1db7bec80a71d13cbf7e43a058811b8f7bbf0c4b2421043cc
7
+ data.tar.gz: 82673469c08f0e6905479c30acf6f896c2c3f0c4ea8abe7105995fd4435c93bfddf7f8c3948fe694fe6e9176945ec445bf994f16df53fbe0208fc0683d18a782
data/README.md CHANGED
@@ -6,6 +6,19 @@ Create GitHub's compare view URLs for pull request from diff of `Gemfile.lock` (
6
6
 
7
7
  [GitHub Compare View](https://github.com/blog/612-introducing-github-compare-view) rocks.But [diff of Gemfile.lock](https://github.com/kyanny/compare_linker_demo/pull/14/files) sucks. So I made Compare Linker.
8
8
 
9
+ ## Usage
10
+
11
+ ```ruby
12
+ require 'compare_linker'
13
+
14
+ ENV['OCTOKIT_ACCESS_TOKEN'] = 'xxx'
15
+
16
+ compare_linker = CompareLinker.new('masutaka/compare_linker', '17')
17
+ compare_linker.formatter = CompareLinker::Formatter::Markdown.new
18
+ comment = compare_linker.make_compare_links.to_a.join("\n")
19
+ compare_linker.add_comment('masutaka/compare_linker', '17', comment)
20
+ ```
21
+
9
22
  ## Rack app for listening GitHub Webhook
10
23
 
11
24
  There's rack application for Compare Linker with GitHub's Webhook.
@@ -1,3 +1,3 @@
1
1
  class CompareLinker
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compare_linker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kensuke Nagae
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-09 00:00:00.000000000 Z
11
+ date: 2015-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.4.5.1
137
+ rubygems_version: 2.4.8
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: Create GitHub's compare view URLs for pull request