github-pr 0.0.91 → 0.0.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/github-pr/runner.rb +1 -1
- data/test/test_github-pr.rb +5 -2
- data/test/test_runner.rb +17 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23271e6cc2c6d7d67e12613e4481929c63447024
|
4
|
+
data.tar.gz: 652847683fcf749bace269296d3165aa9d5db798
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dce2b198361ca22ccd14a5da98460990fa4557f9b7ea58a46e2c3af0ad56d44e13db00b04535f45ad24220f247be6a99df5a1a0ccee146ddbc335d8be8425be7
|
7
|
+
data.tar.gz: 3c53acd1cd49df1ce9f8010bd997ce8191b6262e93a15faa82339612a5ea6b453c28fda2abf20db88620e6d66b497a4aa8c926979d17098b08b57a8bb782fc70
|
data/lib/github-pr/runner.rb
CHANGED
@@ -5,7 +5,7 @@ module GitHubPr
|
|
5
5
|
options = CLI.parse(opts)
|
6
6
|
puts options
|
7
7
|
|
8
|
-
poster = Poster.new(Token.create(token_file_path:File.expand_path
|
8
|
+
poster = Poster.new(Token.create(token_file_path:File.expand_path('~/.config/gh-pr-token'), direct_token: options[:token]))
|
9
9
|
poster.post(options)
|
10
10
|
end
|
11
11
|
end
|
data/test/test_github-pr.rb
CHANGED
@@ -28,9 +28,12 @@ module GitHubPr
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
describe "when token" do
|
31
|
+
describe "when passed token and assagnee" do
|
32
32
|
it "must contain assign field" do
|
33
|
-
CLI.parse(['-a', 'hovox', '-g', 'sometoken'])
|
33
|
+
options = CLI.parse(['-a', 'hovox', '-g', 'sometoken'])
|
34
|
+
options[:token].must_equal 'sometoken'
|
35
|
+
options[:base].must_equal 'master'
|
36
|
+
|
34
37
|
end
|
35
38
|
end
|
36
39
|
|
data/test/test_runner.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-pr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.92
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hovhannes Safaryan
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- lib/github-pr/runner.rb
|
53
53
|
- lib/github-pr/token.rb
|
54
54
|
- test/test_github-pr.rb
|
55
|
+
- test/test_runner.rb
|
55
56
|
- test/test_token.rb
|
56
57
|
homepage: http://rubygems.org/gems/github-pr
|
57
58
|
licenses:
|