gemdiff 0.6.2 → 0.6.3
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/.travis.yml +1 -1
- data/README.md +13 -15
- data/lib/gemdiff/outdated_gem.rb +1 -1
- data/lib/gemdiff/repo_finder.rb +12 -11
- 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: dff209861d6c4aeafbd19493b1ddbe55c4736cb3
|
4
|
+
data.tar.gz: 5158845be8606c890ecb28584b84717ca9ce6376
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fa88a72ce27d34ea3a832c5d0a343fa6f9fc68db42ba8b1c59590c32a2c26ee21fcae9a1fc0e2a40d08a9602c498fe795b359a16d64c44742d2d26955b50cd3
|
7
|
+
data.tar.gz: a15e03a0acfa93383b4969d2c5995769629f53950e0370c564f465b375737d26a9f01565bb1ed91f0727f310e965b59ff7923414c539da8deadfe7bd253fa5a0
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -11,12 +11,12 @@ between the current version of a gem in your bundle and the latest version of th
|
|
11
11
|
#### Why?
|
12
12
|
|
13
13
|
You want to view the source code differences between versions of gems when your dependencies are updated.
|
14
|
-
`gemdiff`
|
15
|
-
|
14
|
+
`gemdiff` does the source repository lookup, opens common GitHub pages, and simplifies your git workflow for a
|
15
|
+
bundled project (see `outdated`, `update`).
|
16
16
|
|
17
17
|
#### How?
|
18
18
|
|
19
|
-
`gemdiff` finds a repository by inspecting the local
|
19
|
+
`gemdiff` finds a repository by inspecting the local or remote gemspec, or searching github if needed.
|
20
20
|
It uses bundler to list your outdated gems. For each outdated gem, it determines your currently used version and
|
21
21
|
the version you can update to, and builds a compare view URL with the old and new version tags.
|
22
22
|
It also provides `update` for a simple `bundle update <gem>` and commit workflow.
|
@@ -32,7 +32,7 @@ gem install gemdiff
|
|
32
32
|
### `outdated`
|
33
33
|
|
34
34
|
Runs `bundle outdated --strict` in the current directory.
|
35
|
-
For each outdated gem,
|
35
|
+
For each outdated gem, you can open the compare view for that gem, skip it, or exit all prompts.
|
36
36
|
Enter `y` to review.
|
37
37
|
|
38
38
|
`outdated` is the default task, so `gemdiff` with no arguments is the same as `gemdiff outdated`.
|
@@ -65,8 +65,8 @@ Open a compare view for an individual outdated gem in your bundle:
|
|
65
65
|
$ gemdiff compare haml
|
66
66
|
```
|
67
67
|
|
68
|
-
You can bypass bundler and query a gem by including the old and new version numbers. This is faster since
|
69
|
-
the `bundle` command to
|
68
|
+
You can bypass bundler and query a gem by including the old and new version numbers. This is faster since it bypasses
|
69
|
+
the `bundle outdated --strict` command used to get the versions.
|
70
70
|
|
71
71
|
For example, open the GitHub compare view in browser for difference between `haml` versions 4.0.4 and 4.0.5:
|
72
72
|
|
@@ -115,9 +115,8 @@ $ gemdiff master haml
|
|
115
115
|
|
116
116
|
### `update`
|
117
117
|
|
118
|
-
`
|
119
|
-
|
120
|
-
you may choose to commit or reset the change.
|
118
|
+
Use `update` to update a gem in your bundle and commit the change to your git repository.
|
119
|
+
You will be shown a preview of the `git diff` and you may choose to commit or reset the change.
|
121
120
|
|
122
121
|
```sh
|
123
122
|
$ gemdiff update haml
|
@@ -163,14 +162,15 @@ To get help on the command line:
|
|
163
162
|
$ gemdiff help
|
164
163
|
```
|
165
164
|
|
166
|
-
###
|
165
|
+
### What if it didn't work?
|
167
166
|
|
168
|
-
`gemdiff`
|
167
|
+
`gemdiff` assumes a few things:
|
169
168
|
|
170
169
|
1. The gem must have a repository on GitHub. If not, `gemdiff` will find nothing or a similar repository, which
|
171
|
-
is not helpful.
|
170
|
+
is not helpful. Some gems' source code is not on GitHub. `gemdiff` could support other source hosts. Submit a pull request!
|
172
171
|
|
173
|
-
2. The GitHub repository must have tagged releases to show compare views.
|
172
|
+
2. The GitHub repository must have tagged releases to show compare views. If you find gems that do not tag
|
173
|
+
releases, submit an issue to the gem maintainer to tag their releases.
|
174
174
|
|
175
175
|
3. The versions must be tagged using the standard name format of v1.2.3. If you find gems that follow
|
176
176
|
a non-standard format (such as 1.2.3), please open an issue or submit a pull request.
|
@@ -180,5 +180,3 @@ See [`lib/gemdiff/outdated_gem.rb`](https://github.com/teeparham/gemdiff/blob/ma
|
|
180
180
|
or anywhere in the description. `gemdiff` is much faster if so, and if not, it guesses the best match using
|
181
181
|
the GitHub search API. If you find exceptions, open an issue or submit a pull request.
|
182
182
|
See [`lib/gemdiff/repo_finder.rb`](https://github.com/teeparham/gemdiff/blob/master/lib/gemdiff/repo_finder.rb).
|
183
|
-
|
184
|
-
5. Some gems' source code is not on GitHub (gasp!). `gemdiff` could support other source hosts. Submit a pull request!
|
data/lib/gemdiff/outdated_gem.rb
CHANGED
@@ -5,7 +5,7 @@ module Gemdiff
|
|
5
5
|
|
6
6
|
# gems that tag releases with tag names like 1.2.3
|
7
7
|
# keep it alphabetical
|
8
|
-
LIST_NO_V = %w[atomic babosa cancan compass haml sass
|
8
|
+
LIST_NO_V = %w[atomic babosa cancan compass haml safe_yaml sass]
|
9
9
|
|
10
10
|
attr_accessor :name, :old_version, :new_version
|
11
11
|
|
data/lib/gemdiff/repo_finder.rb
CHANGED
@@ -9,17 +9,18 @@ module Gemdiff
|
|
9
9
|
# some repos are not mostly ruby so the github search doesn't find them
|
10
10
|
REPO_EXCEPTIONS =
|
11
11
|
{
|
12
|
-
actionmailer:
|
13
|
-
actionpack:
|
14
|
-
actionview:
|
15
|
-
activemodel:
|
16
|
-
activerecord:
|
17
|
-
activesupport:
|
18
|
-
delayed_job:
|
19
|
-
nokogiri:
|
20
|
-
passenger:
|
21
|
-
railties:
|
22
|
-
resque:
|
12
|
+
actionmailer: 'rails/rails',
|
13
|
+
actionpack: 'rails/rails',
|
14
|
+
actionview: 'rails/rails',
|
15
|
+
activemodel: 'rails/rails',
|
16
|
+
activerecord: 'rails/rails',
|
17
|
+
activesupport: 'rails/rails',
|
18
|
+
delayed_job: 'collectiveidea/delayed_job',
|
19
|
+
nokogiri: 'sparklemotion/nokogiri',
|
20
|
+
passenger: 'phusion/passenger',
|
21
|
+
railties: 'rails/rails',
|
22
|
+
resque: 'resque/resque',
|
23
|
+
:"resque-multi-job-forks" => 'stulentsev/resque-multi-job-forks',
|
23
24
|
}
|
24
25
|
|
25
26
|
class << self
|
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: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tee Parham
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|