git-bundlecompare 1.0.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.
- data/.gitignore +3 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +23 -0
- data/README.md +37 -0
- data/Rakefile +2 -0
- data/bin/ghbundlercompare +13 -0
- data/bin/git-bundlecompare +7 -0
- data/git-bundlecompare.gemspec +31 -0
- data/lib/git-bundlecompare/utils.rb +10 -0
- data/lib/git-bundlecompare/version.rb +5 -0
- metadata +112 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
git-bundlecompare (1.0.0)
|
5
|
+
bundler (>= 1.0.0)
|
6
|
+
launchy
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
configuration (1.1.0)
|
12
|
+
launchy (0.3.7)
|
13
|
+
configuration (>= 0.0.5)
|
14
|
+
rake (>= 0.8.1)
|
15
|
+
rake (0.8.7)
|
16
|
+
|
17
|
+
PLATFORMS
|
18
|
+
ruby
|
19
|
+
|
20
|
+
DEPENDENCIES
|
21
|
+
bundler (>= 1.0.0)
|
22
|
+
git-bundlecompare!
|
23
|
+
launchy
|
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
git-bundlecompare
|
2
|
+
=================
|
3
|
+
|
4
|
+
Do you have git repositories as dependencies in your Gemfile? Do you have no idea what exactly changed after running `bundle update`?
|
5
|
+
|
6
|
+
Don't despair, the solution is here!
|
7
|
+
|
8
|
+
|
9
|
+
Installation
|
10
|
+
============
|
11
|
+
|
12
|
+
It's easy!
|
13
|
+
|
14
|
+
gem install git-bundlecompare
|
15
|
+
|
16
|
+
How to use
|
17
|
+
==========
|
18
|
+
|
19
|
+
Update your Gemfile as usual
|
20
|
+
|
21
|
+
$ bundle update
|
22
|
+
|
23
|
+
**Open the GitHub compare view for every changed repository in your browser**
|
24
|
+
|
25
|
+
$ git bundlecompare
|
26
|
+
|
27
|
+
Commit (or revert) your changes as usual
|
28
|
+
|
29
|
+
$ git commit -a
|
30
|
+
|
31
|
+
|
32
|
+
Meta
|
33
|
+
----
|
34
|
+
|
35
|
+
* Code: `git clone http://github.com/MSch/git-bundlecompare`
|
36
|
+
* Bugs: <http://github.com/MSch/git-bundlecompare/issues>
|
37
|
+
* Gems: <http://rubygems.org/gems/git-bundlecompare>
|
data/Rakefile
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "git-bundlecompare/utils"
|
4
|
+
require "launchy"
|
5
|
+
|
6
|
+
regexp = /(GIT$\n remote: .+github.com\/(.+).git$\n- revision: (.+)$\n\+ revision: (.+)$)/
|
7
|
+
diffs = ARGF.read.scan(regexp)
|
8
|
+
diffs.each do |diff|
|
9
|
+
complete, remote, before, after = diff
|
10
|
+
url = "http://github.com/#{remote}/compare/#{before}...#{after}"
|
11
|
+
puts url
|
12
|
+
suppress_warnings { Launchy.open(url) }
|
13
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path("../lib/git-bundlecompare/version", __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "git-bundlecompare"
|
6
|
+
s.version = Git::Bundlecompare::VERSION
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
s.authors = ['Martin Schuerrer']
|
9
|
+
s.email = ['martin@schuerrer.org']
|
10
|
+
s.homepage = "http://github.com/MSch/bundler-github"
|
11
|
+
s.summary = "Open the GitHub compare view for updates in Gemfile.lock"
|
12
|
+
s.description = <<-CONTENT
|
13
|
+
Do you have git repositories as dependencies in your Gemfile? Do you have no idea what exactly changed after running bundle update?
|
14
|
+
|
15
|
+
Don't despair, the solution is here!
|
16
|
+
|
17
|
+
> bundle update
|
18
|
+
> git bundlecompare # Opens the GitHub compare view in your browser
|
19
|
+
> git commit -a
|
20
|
+
CONTENT
|
21
|
+
|
22
|
+
s.required_rubygems_version = ">= 1.3.6"
|
23
|
+
s.rubyforge_project = "bundler-github"
|
24
|
+
|
25
|
+
s.add_dependency "bundler", ">= 1.0.0"
|
26
|
+
s.add_dependency "launchy"
|
27
|
+
|
28
|
+
s.files = `git ls-files`.split("\n")
|
29
|
+
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
|
30
|
+
s.require_path = 'lib'
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: git-bundlecompare
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
version: 1.0.0
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Martin Schuerrer
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-09-14 00:00:00 +02:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: bundler
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ">="
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 1
|
30
|
+
- 0
|
31
|
+
- 0
|
32
|
+
version: 1.0.0
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
name: launchy
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
segments:
|
44
|
+
- 0
|
45
|
+
version: "0"
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id002
|
48
|
+
description: |
|
49
|
+
Do you have git repositories as dependencies in your Gemfile? Do you have no idea what exactly changed after running bundle update?
|
50
|
+
|
51
|
+
Don't despair, the solution is here!
|
52
|
+
|
53
|
+
> bundle update
|
54
|
+
> git bundlecompare # Opens the GitHub compare view in your browser
|
55
|
+
> git commit -a
|
56
|
+
|
57
|
+
email:
|
58
|
+
- martin@schuerrer.org
|
59
|
+
executables:
|
60
|
+
- ghbundlercompare
|
61
|
+
- git-bundlecompare
|
62
|
+
extensions: []
|
63
|
+
|
64
|
+
extra_rdoc_files: []
|
65
|
+
|
66
|
+
files:
|
67
|
+
- .gitignore
|
68
|
+
- Gemfile
|
69
|
+
- Gemfile.lock
|
70
|
+
- README.md
|
71
|
+
- Rakefile
|
72
|
+
- bin/ghbundlercompare
|
73
|
+
- bin/git-bundlecompare
|
74
|
+
- git-bundlecompare.gemspec
|
75
|
+
- lib/git-bundlecompare/utils.rb
|
76
|
+
- lib/git-bundlecompare/version.rb
|
77
|
+
has_rdoc: true
|
78
|
+
homepage: http://github.com/MSch/bundler-github
|
79
|
+
licenses: []
|
80
|
+
|
81
|
+
post_install_message:
|
82
|
+
rdoc_options: []
|
83
|
+
|
84
|
+
require_paths:
|
85
|
+
- lib
|
86
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
segments:
|
92
|
+
- 0
|
93
|
+
version: "0"
|
94
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
segments:
|
100
|
+
- 1
|
101
|
+
- 3
|
102
|
+
- 6
|
103
|
+
version: 1.3.6
|
104
|
+
requirements: []
|
105
|
+
|
106
|
+
rubyforge_project: bundler-github
|
107
|
+
rubygems_version: 1.3.7
|
108
|
+
signing_key:
|
109
|
+
specification_version: 3
|
110
|
+
summary: Open the GitHub compare view for updates in Gemfile.lock
|
111
|
+
test_files: []
|
112
|
+
|