git-switcher 1.0.2 → 1.0.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 +5 -5
- data/Gemfile.lock +1 -1
- data/Rakefile +6 -1
- data/lib/ext/rugged.rb +13 -1
- data/lib/git/switcher/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 26079404b3e91d274dde09f81f15d41d80b2c1a47e1ef11c4f17d65c13895862
|
|
4
|
+
data.tar.gz: 7ce515c22d2d85073b7d0f45ef31705bd1f03f7f993e31fe3dd50d522e946fb6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb9bec82d189bc321acf78d5ed9998be14df1d8d816c01737494c81bd72cedc1fbb16c681937697d1b2c9503da48d3c90219765a51874c98f91b99ebf84a584f
|
|
7
|
+
data.tar.gz: 15f239f578f19624c74ff5fd2d70d754fdd9efc383c1104eb61b45a21ca6601da93ebe2490a4b6c7ae5e838a764b802d0bfde8aa37a3874211fdbab18b4c38ac
|
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
|
@@ -27,7 +27,12 @@ task :default => [:version, :rubocop, :test]
|
|
|
27
27
|
|
|
28
28
|
task :documentation
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
task :ready => :documentation do
|
|
31
|
+
sh('bundle --quiet') # regenerate Gemfile.lock e.g. if version has changed
|
|
32
|
+
sh('git diff-index --quiet HEAD --') # https://stackoverflow.com/a/2659808
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
Rake::Task['build'].enhance([:default, :ready])
|
|
31
36
|
|
|
32
37
|
# rubocop:enable Style/HashSyntax
|
|
33
38
|
# rubocop:enable Style/SymbolArray
|
data/lib/ext/rugged.rb
CHANGED
|
@@ -5,7 +5,19 @@ module Rugged
|
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
def time
|
|
8
|
-
|
|
8
|
+
#
|
|
9
|
+
# we can't just use `target.time` here, because that
|
|
10
|
+
# corresponds to the time attribute for the commit's
|
|
11
|
+
# so-called "committer", not for its "author"...
|
|
12
|
+
#
|
|
13
|
+
# for regular commits these two time attributes will be
|
|
14
|
+
# the same, but after rebasing for instance "committer"
|
|
15
|
+
# will be different from "author", as will their "time"
|
|
16
|
+
# attributes
|
|
17
|
+
#
|
|
18
|
+
# see also: https://git.io/fhNEv
|
|
19
|
+
#
|
|
20
|
+
target.author[:time]
|
|
9
21
|
end
|
|
10
22
|
|
|
11
23
|
def targets?(reference)
|
data/lib/git/switcher/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git-switcher
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Vandenberk
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-02-
|
|
11
|
+
date: 2019-02-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rainbow
|
|
@@ -154,8 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
154
154
|
- !ruby/object:Gem::Version
|
|
155
155
|
version: '0'
|
|
156
156
|
requirements: []
|
|
157
|
-
|
|
158
|
-
rubygems_version: 2.5.2.3
|
|
157
|
+
rubygems_version: 3.0.2
|
|
159
158
|
signing_key:
|
|
160
159
|
specification_version: 4
|
|
161
160
|
summary: The ultimate CLI git branch and tag switcher
|