gemdiff 1.0.11 → 1.1.0
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/README.md +16 -16
- data/lib/gemdiff/cli.rb +3 -2
- data/lib/gemdiff/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 361e5df8477b44978171cf06301e1aa29b038a0e
|
4
|
+
data.tar.gz: f1faac975bf6da422de5bd3f052121e850b5577d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1484bc32a5e32a81887f8553f7bc06f38078618b10dc63ad97f64888e4c5f32e6df0a5843bb8f2785b65f92cc01de94e43bc6089d495952356e5136382cec8ac
|
7
|
+
data.tar.gz: dd2d3f40da7a63767e02ace0d7b12d670d925951ddaca45391fb9c8b6b39ff9bb2f92bb246aa9ecdea232ee3475b3ab72d0408eeca9178c5d63700a3862a78e7
|
data/README.md
CHANGED
@@ -3,22 +3,22 @@
|
|
3
3
|
[](http://rubygems.org/gems/gemdiff)
|
4
4
|
[](https://travis-ci.org/teeparham/gemdiff)
|
5
5
|
|
6
|
-
`gemdiff` is a command-line tool to find source code for ruby gems.
|
7
|
-
You can compare source code differences between the current version of a gem in your bundle and
|
6
|
+
`gemdiff` is a command-line tool to find source code for ruby gems.
|
7
|
+
You can compare source code differences between the current version of a gem in your bundle and
|
8
8
|
the version of the gem that would be installed with `bundle update <gem>` (or any two versions of a gem).
|
9
9
|
`gemdiff` connects gem version management (rubygems + bundler) with source code (GitHub).
|
10
10
|
|
11
11
|
### Why?
|
12
12
|
|
13
|
-
You want to view differences between versions of gems before updating.
|
14
|
-
`gemdiff` does the source repository lookup, opens a compare view of commits on GitHub,
|
13
|
+
You want to view differences between versions of gems before updating.
|
14
|
+
`gemdiff` does the source repository lookup, opens a compare view of commits on GitHub,
|
15
15
|
and simplifies your git workflow for a bundled project.
|
16
16
|
|
17
17
|
### How?
|
18
18
|
|
19
|
-
`gemdiff` finds a repository by inspecting the local or remote gemspec, or searching GitHub if needed.
|
20
|
-
It uses bundler to list your outdated gems. For each outdated gem, it determines your currently used version and
|
21
|
-
the version you can update to, and builds a compare view URL with the old and new version tags.
|
19
|
+
`gemdiff` finds a repository by inspecting the local or remote gemspec, or searching GitHub if needed.
|
20
|
+
It uses bundler to list your outdated gems. For each outdated gem, it determines your currently used version and
|
21
|
+
the version you can update to, and builds a compare view URL with the old and new version tags.
|
22
22
|
It provides `update` for a simple `bundle update <gem>` and commit workflow.
|
23
23
|
|
24
24
|
## Install
|
@@ -87,7 +87,7 @@ $ gemdiff master haml
|
|
87
87
|
|
88
88
|
### `gemdiff update [gem]`
|
89
89
|
|
90
|
-
Use `update` to update a gem in your bundle and commit the change with git.
|
90
|
+
Use `update` to update a gem in your bundle and commit the change with git.
|
91
91
|
You will be shown a preview of the `git diff` and you may choose to commit or reset the change.
|
92
92
|
|
93
93
|
```sh
|
@@ -115,7 +115,7 @@ Author: Tee Parham
|
|
115
115
|
Date: Mon Mar 3 16:38:32 2014 -0700
|
116
116
|
|
117
117
|
Update haml to 4.0.5
|
118
|
-
|
118
|
+
|
119
119
|
https://github.com/haml/haml/compare/4.0.4...4.0.5
|
120
120
|
|
121
121
|
diff --git a/Gemfile.lock
|
@@ -123,8 +123,8 @@ diff --git a/Gemfile.lock
|
|
123
123
|
|
124
124
|
### `gemdiff outdated`
|
125
125
|
|
126
|
-
Runs `bundle outdated --strict` in the current directory. For each outdated gem,
|
127
|
-
you can open the compare view for that gem, skip it, or exit.
|
126
|
+
Runs `bundle outdated --strict` in the current directory. For each outdated gem,
|
127
|
+
you can open the compare view for that gem, skip it, or exit.
|
128
128
|
Enter `y` to review. Enter `A` to open all compare views (beware!).
|
129
129
|
|
130
130
|
`outdated` is the default task, so `gemdiff` with no arguments is the same as `gemdiff outdated`.
|
@@ -142,11 +142,11 @@ Outdated gems included in the bundle:
|
|
142
142
|
* sprockets (2.11.0 > 2.10.1)
|
143
143
|
* webmock (1.17.4 > 1.17.3)
|
144
144
|
aws-sdk: 1.35.0 > 1.34.1
|
145
|
-
Open? (y to open, x to exit, else skip)
|
145
|
+
Open? (y to open, x to exit, A to open all, s to show all to stdout, else skip)
|
146
146
|
sprockets: 2.11.0 > 2.10.1
|
147
|
-
Open? (y to open, x to exit, else skip) y
|
147
|
+
Open? (y to open, x to exit, A to open all, s to show all to stdout, else skip) y
|
148
148
|
webmock: 1.17.4 > 1.17.3
|
149
|
-
Open? (y to open, x to exit, else skip)
|
149
|
+
Open? (y to open, x to exit, A to open all, s to show all to stdout, else skip)
|
150
150
|
```
|
151
151
|
|
152
152
|
### `gemdiff help`
|
@@ -173,11 +173,11 @@ https://github.com/elabs/pundit
|
|
173
173
|
1. The gem must have a repository on GitHub. If not, `gemdiff` will find nothing or a similar repository, which
|
174
174
|
is not helpful. Some gems' source code is not on GitHub. `gemdiff` could support other source hosts. Submit a pull request!
|
175
175
|
|
176
|
-
2. The GitHub repository must have tagged releases to show compare views. If you find gems that do not tag
|
176
|
+
2. The GitHub repository must have tagged releases to show compare views. If you find gems that do not tag
|
177
177
|
releases, submit an issue to the gem maintainer to tag their releases.
|
178
178
|
|
179
179
|
3. The versions must be tagged using the standard format of `v1.2.3`. If you find gems that follow
|
180
|
-
a non-standard format (such as `1.2.3`), please open an issue or submit a pull request.
|
180
|
+
a non-standard format (such as `1.2.3`), please open an issue or submit a pull request.
|
181
181
|
See [`lib/gemdiff/outdated_gem.rb`](https://github.com/teeparham/gemdiff/blob/master/lib/gemdiff/outdated_gem.rb).
|
182
182
|
|
183
183
|
4. Encourage gem maintainers to enter the GitHub repository URL in the `homepage` field of their gemspec
|
data/lib/gemdiff/cli.rb
CHANGED
@@ -65,9 +65,10 @@ DESC
|
|
65
65
|
open_all = false
|
66
66
|
inspector.list.each do |outdated_gem|
|
67
67
|
puts outdated_gem.compare_message
|
68
|
-
response = open_all || ask("Open? (y to open, x to exit, A to open all, else skip)")
|
69
|
-
open_all =
|
68
|
+
response = open_all || ask("Open? (y to open, x to exit, A to open all, s to show all to stdout, else skip)")
|
69
|
+
open_all = response if %(A s).include?(response)
|
70
70
|
outdated_gem.compare if %w(y A).include?(response)
|
71
|
+
puts outdated_gem.compare_url if response == "s"
|
71
72
|
return if response == "x"
|
72
73
|
end
|
73
74
|
end
|
data/lib/gemdiff/version.rb
CHANGED
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: 1.0
|
4
|
+
version: 1.1.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: 2016-12-
|
11
|
+
date: 2016-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|