gemdiff 1.0.11 → 1.1.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
  SHA1:
3
- metadata.gz: d0597dc52dcb8e46cb99615562e756f2e9616a7f
4
- data.tar.gz: 2a66c9fb9364087f4d87c41d69c6dcfb52079643
3
+ metadata.gz: 361e5df8477b44978171cf06301e1aa29b038a0e
4
+ data.tar.gz: f1faac975bf6da422de5bd3f052121e850b5577d
5
5
  SHA512:
6
- metadata.gz: b256a5eb8d669c6dc4cf30a2b1ae5a4f310653207edb245f6412c244c3f08c30d3f8fdf10c41af191ece57cb32807f16f9b2590d6a3888819fe6fb8233bab6d6
7
- data.tar.gz: 3fa4ba30bd7fc71aee8d721a58a9cf334c3e5ffbc9caee488f27f3bb7fe2c66f6b3ac15d64b353b9856d0b06c65ef398dbcf39fe5eb712425b97e21a6fcc1f50
6
+ metadata.gz: 1484bc32a5e32a81887f8553f7bc06f38078618b10dc63ad97f64888e4c5f32e6df0a5843bb8f2785b65f92cc01de94e43bc6089d495952356e5136382cec8ac
7
+ data.tar.gz: dd2d3f40da7a63767e02ace0d7b12d670d925951ddaca45391fb9c8b6b39ff9bb2f92bb246aa9ecdea232ee3475b3ab72d0408eeca9178c5d63700a3862a78e7
data/README.md CHANGED
@@ -3,22 +3,22 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/gemdiff.svg)](http://rubygems.org/gems/gemdiff)
4
4
  [![Build Status](https://travis-ci.org/teeparham/gemdiff.svg?branch=master)](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
@@ -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 = "A" if response == "A"
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
@@ -1,3 +1,3 @@
1
1
  module Gemdiff
2
- VERSION = "1.0.11"
2
+ VERSION = "1.1.0"
3
3
  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: 1.0.11
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-07 00:00:00.000000000 Z
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit