git-switcher 1.0.2 → 1.0.3

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
- SHA1:
3
- metadata.gz: a7f2f0273333dea50c03a0dec985bb080d4dc85a
4
- data.tar.gz: 51ed894299ffd98fe7678e052941b7084364e089
2
+ SHA256:
3
+ metadata.gz: 26079404b3e91d274dde09f81f15d41d80b2c1a47e1ef11c4f17d65c13895862
4
+ data.tar.gz: 7ce515c22d2d85073b7d0f45ef31705bd1f03f7f993e31fe3dd50d522e946fb6
5
5
  SHA512:
6
- metadata.gz: eb13ffa3101557beb5619621cdc61d89d1587e547f9773b2e817d1e23b05b628d1773d9b9ca69d29cd68c28630acacc3b2d2e41236daf93fdc6e202322607df9
7
- data.tar.gz: 0e6ee6069a34d013de102a8ee37fb66a1443f65b5bdbdd7cf3e6193e2622d4262a12cf98b5d546da23f2721e16f6362140d4da515b592e3c3e89516043190b0d
6
+ metadata.gz: cb9bec82d189bc321acf78d5ed9998be14df1d8d816c01737494c81bd72cedc1fbb16c681937697d1b2c9503da48d3c90219765a51874c98f91b99ebf84a584f
7
+ data.tar.gz: 15f239f578f19624c74ff5fd2d70d754fdd9efc383c1104eb61b45a21ca6601da93ebe2490a4b6c7ae5e838a764b802d0bfde8aa37a3874211fdbab18b4c38ac
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- git-switcher (1.0.1)
4
+ git-switcher (1.0.3)
5
5
  rainbow (~> 3.0)
6
6
  rugged (~> 0.27)
7
7
 
data/Rakefile CHANGED
@@ -27,7 +27,12 @@ task :default => [:version, :rubocop, :test]
27
27
 
28
28
  task :documentation
29
29
 
30
- Rake::Task['build'].enhance([:default, :documentation])
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
- target.time
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)
@@ -1,7 +1,7 @@
1
1
  module Git
2
2
  module Switcher
3
3
  NAME = 'git-switcher'.freeze
4
- VERSION = '1.0.2'.freeze
4
+ VERSION = '1.0.3'.freeze
5
5
 
6
6
  def self.version
7
7
  "#{NAME} v#{VERSION}"
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.2
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-26 00:00:00.000000000 Z
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
- rubyforge_project:
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