gemdiff 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +28 -1
- data/lib/gemdiff/cli.rb +13 -0
- data/lib/gemdiff/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d053651198d0d311b733374b0430e8a39d5c802b
|
4
|
+
data.tar.gz: ae2c70eaaa6ca1c6da1962b4b82d4b12c1d7292e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afedfcce27a830fd68a949ebdb12fa271049b802062ba5d00fb47a4ff4995d779cc965748b76d39c7d0d4c58d26050040993a347ea3d5051b7edc711b4bbac1e
|
7
|
+
data.tar.gz: 2fa0e5185b8be91e7f6591210096551c30c7cd4087acdfc7a3176c67a5c9a4a805f219a5d8e8ba5e8534ee1fa3beac5126a0a842ab90f7491dacf9996121607f
|
data/README.md
CHANGED
@@ -126,6 +126,7 @@ diff --git a/Gemfile.lock
|
|
126
126
|
Runs `bundle outdated --strict` in the current directory. For each outdated gem,
|
127
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
|
+
Enter `s` to list all the compare URLs to stdout (same as the `list` command).
|
129
130
|
|
130
131
|
`outdated` is the default task, so `gemdiff` with no arguments is the same as `gemdiff outdated`.
|
131
132
|
|
@@ -134,7 +135,7 @@ $ cd /your/ruby/project/using/bundler
|
|
134
135
|
$ gemdiff
|
135
136
|
Checking for outdated gems in your bundle...
|
136
137
|
Fetching gem metadata from https://rubygems.org/.......
|
137
|
-
Fetching
|
138
|
+
Fetching version metadata from https://rubygems.org/..
|
138
139
|
Resolving dependencies...
|
139
140
|
|
140
141
|
Outdated gems included in the bundle:
|
@@ -149,6 +150,32 @@ webmock: 1.17.4 > 1.17.3
|
|
149
150
|
Open? (y to open, x to exit, A to open all, s to show all to stdout, else skip)
|
150
151
|
```
|
151
152
|
|
153
|
+
### `gemdiff list`
|
154
|
+
|
155
|
+
Outputs outdated gems in your bundle with their compare URLs to stdout.
|
156
|
+
|
157
|
+
```sh
|
158
|
+
$ gemdiff list
|
159
|
+
Checking for outdated gems in your bundle...
|
160
|
+
Fetching gem metadata from https://rubygems.org/.......
|
161
|
+
Fetching version metadata from https://rubygems.org/..
|
162
|
+
Resolving dependencies...
|
163
|
+
|
164
|
+
Outdated gems included in the bundle:
|
165
|
+
* mocha (newest 1.2.1, installed 1.1.0, requested ~> 1.0) in group "development"
|
166
|
+
* rake (newest 11.3.0, installed 11.1.2, requested ~> 11.0) in group "development"
|
167
|
+
* sqlite3 (newest 1.3.12, installed 1.3.11, requested ~> 1.3) in group "development"
|
168
|
+
|
169
|
+
mocha: 1.2.1 > 1.1.0
|
170
|
+
https://github.com/freerange/mocha/compare/v1.1.0...v1.2.1
|
171
|
+
|
172
|
+
rake: 11.3.0 > 11.1.2
|
173
|
+
https://github.com/ruby/rake/compare/v11.1.2...v11.3.0
|
174
|
+
|
175
|
+
sqlite3: 1.3.12 > 1.3.11
|
176
|
+
https://github.com/sparklemotion/sqlite3-ruby/compare/v1.3.11...v1.3.12
|
177
|
+
```
|
178
|
+
|
152
179
|
### `gemdiff help`
|
153
180
|
|
154
181
|
To get help on the command line:
|
data/lib/gemdiff/cli.rb
CHANGED
@@ -73,6 +73,19 @@ DESC
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
+
desc "list", "List compare URLs for all outdated gems in the bundle."
|
77
|
+
def list
|
78
|
+
puts CHECKING_FOR_OUTDATED
|
79
|
+
inspector = BundleInspector.new
|
80
|
+
puts inspector.outdated
|
81
|
+
puts "\n"
|
82
|
+
inspector.list.each do |outdated_gem|
|
83
|
+
puts outdated_gem.compare_message
|
84
|
+
puts outdated_gem.compare_url
|
85
|
+
puts "\n"
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
76
89
|
desc "update <gem>", "Update a gem, show a git diff of the update, and commit or reset"
|
77
90
|
def update(name)
|
78
91
|
gem_updater = GemUpdater.new(name)
|
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.
|
4
|
+
version: 1.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: 2016-12-
|
11
|
+
date: 2016-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '12.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
110
|
+
version: '12.0'
|
111
111
|
description: Command-line utility to find source repositories for ruby gems, open
|
112
112
|
common github pages, compare gem versions, and simplify gem update workflow in git)
|
113
113
|
email:
|
@@ -140,7 +140,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
140
140
|
requirements:
|
141
141
|
- - ">="
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version: 1.
|
143
|
+
version: 2.1.0
|
144
144
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
145
|
requirements:
|
146
146
|
- - ">="
|