lock_diff 0.1.6 → 0.1.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5daade500e51cc434beb8931d9ff6b12d7dde3e
4
- data.tar.gz: 8a33731e03a14c8768bae59dd80bf7d84f3f228f
3
+ metadata.gz: 7a8a4d4f0d1b66bbec94910baa92602f0082f7ff
4
+ data.tar.gz: 0c8931abd27edbfb1850e1ff5a67d1a5665d8c35
5
5
  SHA512:
6
- metadata.gz: 123148022cfa87ba4b0b125f4656c779a33f87dcd52f7e1e5ca4e10fc534a35ce82c92dacd539a40060ae45471197973cc7cdf679efaac99f901d0b78fd285b9
7
- data.tar.gz: 2ad1171f41b5a751685780d886e54b9cb9d8857d4f92735c938c17f5b603b60ada2e24b6b58764a08fb6211f103ddc77720f35ff03c3a21d0ba62c6cc42f92c0
6
+ metadata.gz: 5b3804677178fa3eb873db61726546715f0e192256125614429994de2ed6b232de4e4dec27742ab3c3e1e89da8a2e9904aff06f96144efd122e182f7d610f034
7
+ data.tar.gz: f7128f0eb571051ce4b4b64e06e409734d01bd09527c9fa05609f17c4f81b65673bbdd3f6591af928a94ec0d7a48a8e202a8ef6d896a1ab5195b9250f98f8d2b
data/README.md CHANGED
@@ -48,9 +48,14 @@ lock_diff requires you to provide a `GITHUB_ACCESS_TOKEN` as an environment vari
48
48
  ```sh
49
49
  $ lock_diff
50
50
  Usage: lock_diff [options]
51
- -r, --repository=REPOSITORY required. Like as "user/repository"
52
- -n, --number=PULL_REQUEST_NUMBER required
53
- --post-comment=true or false (default=false. Print result to stdout when false.)
51
+ Require flags
52
+ -r, --repository=REPOSITORY Like as "user/repository"
53
+ -n, --number=PULL_REQUEST_NUMBER
54
+
55
+ Optional flags
56
+ --post-comment=true or false Print result to stdout when false. (default is false)
57
+ -v, --verbose Run verbosely
58
+ --version Show version
54
59
  ```
55
60
 
56
61
  For example, to comment on https://github.com/vividmuimui/rails_tutorial/pull/26#issuecomment-312491272, run this command:
@@ -76,8 +81,13 @@ When used in conjunction with [tachikoma](https://rubygems.org/gems/tachikoma),
76
81
  ```sh
77
82
  $ lock_diff_for_tachikoma
78
83
  Usage: lock_diff_for_tachikoma [options]
79
- -r, --repository=REPOSITORY required. Like as "user/repository"
80
- --post-comment=true or false default=false
84
+ Require flags
85
+ -r, --repository=REPOSITORY Like as "user/repository"
86
+
87
+ Optional flags
88
+ --post-comment=true or false Print result to stdout when false. (default is false)
89
+ -v, --verbose Run verbosely
90
+ --version Show version
81
91
  ```
82
92
 
83
93
  ```sh
@@ -24,8 +24,8 @@ module LockDiff
24
24
  Github::PullRequest.new(@client.pull_request(repository, number))
25
25
  end
26
26
 
27
- def latest_pull_request(repository, limit: 3)
28
- @client.pull_requests(repository).first(limit).
27
+ def latest_pull_request(repository)
28
+ @client.pull_requests(repository).
29
29
  map { |pull_request| Github::PullRequest.new(pull_request) }
30
30
  end
31
31
 
@@ -38,7 +38,6 @@ module LockDiff
38
38
  if @require_flags.all? { |flag| options.has_key?(flag) }
39
39
  options
40
40
  else
41
- puts options
42
41
  $stdout.puts opt.help
43
42
  exit
44
43
  end
@@ -1,3 +1,3 @@
1
1
  module LockDiff
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lock_diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - vividmuimui