gemdiff 2.1.0 → 2.2.0

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
  SHA256:
3
- metadata.gz: 173ec5ea250a39f9f3f8bc1d8b4d780c72b85a7feb7b5265432f20a949294f32
4
- data.tar.gz: 6bb3676b463a56dda594e753b9600aeeff318ce842a81ac99c4640f3b063eebd
3
+ metadata.gz: 8fdbdbd1ffb871db368605d34f61af46af7aaf9ac39788f85dfe0596e26a23f1
4
+ data.tar.gz: e9e1eb917e2c6ec8d6a57117141b0aba1cf541597ebe2a4068f6b0b86ef0f932
5
5
  SHA512:
6
- metadata.gz: 42fb8c2b3c17e8d9899c806c936a17c1bed2930132327e80b99f76e6f65b5adaa2a03fcda110c2362750b4139117fe9b4d5ce62a523c0630c6e978664f51b7ac
7
- data.tar.gz: 4c85de98d620a5cdf32fd0d5b272d46607f9d6e8cdacc16bee7d35da637ffdf31f17add43e8f57f5b4b2abf7907bbcc9ac214b33ba7444f1b688e451e2f37b5f
6
+ metadata.gz: 0d6cc5b2cea824b076a68b60273251be681a3d03179096e8c20b2b610250d10af9298522a51e493ee17cf0923ceaf63869fa161438b10b142613d3c1f204cd1c
7
+ data.tar.gz: da1da4bfbda1ba79fe9d098ecae4d0e8e9566f6ea21dfb489f0927124e17c484b236c472d0fc8d288cd65cc91b33df0db8be89a51b48cea3c1aacdf631bbd577
data/README.md CHANGED
@@ -32,9 +32,12 @@ gem install gemdiff
32
32
 
33
33
  ### `gemdiff [list]`
34
34
 
35
- Output outdated gems in your bundle with their compare URLs to stdout. `list` is the default command.
35
+ Runs `bundle outdated --strict` in the current directory.
36
+ Outputs outdated gems in your bundle with their compare URLs to stdout.
37
+ `list` is the default command.
36
38
 
37
39
  ```sh
40
+ $ cd /your/ruby/project/using/bundler
38
41
  $ gemdiff
39
42
  Checking for outdated gems in your bundle...
40
43
  Fetching gem metadata from https://rubygems.org/.......
@@ -64,7 +67,6 @@ Enter `y` to review. Enter `A` to open all compare views (beware!).
64
67
  Enter `s` to list all the compare URLs to stdout (same as the `list` command).
65
68
 
66
69
  ```sh
67
- $ cd /your/ruby/project/using/bundler
68
70
  $ gemdiff each
69
71
  Checking for outdated gems in your bundle...
70
72
  Fetching gem metadata from https://rubygems.org/.......
@@ -132,7 +134,8 @@ https://github.com/elabs/pundit
132
134
 
133
135
  ### `gemdiff open [gem]`
134
136
 
135
- Open the repository URL (with your default browser unless you have an odd setup):
137
+ Open the repository URL with your default browser (or whatever your operating system is configured
138
+ to run with the `open` command with a URL argument):
136
139
 
137
140
  ```sh
138
141
  $ gemdiff open pundit
@@ -194,6 +197,12 @@ $ gemdiff f pundit
194
197
  https://github.com/elabs/pundit
195
198
  ```
196
199
 
200
+ ### Authenticated Github API requests
201
+
202
+ If Github returns rate limit errors you can make authenticated API
203
+ requests to Github. Set the `GITHUB_TOKEN` environment variable to a
204
+ [personal access token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/).
205
+
197
206
  ### What if it didn't work?
198
207
 
199
208
  `gemdiff` assumes a few things:
@@ -113,7 +113,7 @@ module Gemdiff
113
113
  end
114
114
 
115
115
  def octokit_client
116
- Octokit::Client.new
116
+ Octokit::Client.new(access_token: ENV["GITHUB_TOKEN"])
117
117
  end
118
118
 
119
119
  def gemspec(name)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gemdiff
4
- VERSION = "2.1.0"
4
+ VERSION = "2.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemdiff
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tee Parham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-06 00:00:00.000000000 Z
11
+ date: 2018-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit