au 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/bin/au +8 -4
  4. data/lib/au/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8aceb62d4fb9f007f9fd868f1dda7da7da77a809af473c64ab676ce0432434f4
4
- data.tar.gz: 23097866e82fbfcf04c809da185eea97c70771e958b751457bae0d1c61ec386f
3
+ metadata.gz: 3c887e57c864ce6b7ba438d75b02abcff5fac7ec169fe620cbd9b0cbcde97fb0
4
+ data.tar.gz: 5274a3ae886c455de17b72ec24d7ff4a158ea77e2364ad13963dc02a4a10ef7f
5
5
  SHA512:
6
- metadata.gz: 23a2ff2870a3641dd59598d1da4adf964ceba36013db2c8df81fc605fddc4e3ea7bdee2cffd5c1e8577a56ffbde658ef6069a177efc586e1196fdb63d2d3ecee
7
- data.tar.gz: c9de172bc533ce74819b3dc719fffd667b643cd2687616bb44ab3698c4df4c4569335d38597c7319844db6603e12b6d8b551682c6da82e60a615e40960d5140e
6
+ metadata.gz: 3bd410ab8f4d26920750423c2d4808fd26eac8cc75ccf7f79adebe14d3537b780a75f0068d06cf19e550a39b2af733f4ea175c4361e7decfaea83734ba88e602
7
+ data.tar.gz: b7612b9814730869872fa9b20c249ee16eb41d76fd3c79e2660d1478ecd8ab47012a3d67f9fa3b2d52865c5c7e0d88e198f37fbf2b08e7e3ac32eba5bfd2f897
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- au (0.2.2)
4
+ au (0.2.3)
5
5
  colorize
6
6
  thor
7
7
 
data/bin/au CHANGED
@@ -128,10 +128,14 @@ module Au
128
128
 
129
129
  desc "log", "Display parent commits"
130
130
  def log
131
- Repository.head.log.each do |commit|
132
- commit.id == Repository.head.id ? puts("#{commit.id}".green) : puts(commit.id)
133
- puts commit.message
134
- puts
131
+ if Repository.head
132
+ Repository.head.log.each do |commit|
133
+ commit.id == Repository.head.id ? puts("#{commit.id}".green) : puts(commit.id)
134
+ puts commit.message
135
+ puts
136
+ end
137
+ else
138
+ puts 'There is no commit in the repo yet.'
135
139
  end
136
140
  end
137
141
 
@@ -1,3 +1,3 @@
1
1
  module Au
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: au
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edward Du
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-12-01 00:00:00.000000000 Z
13
+ date: 2018-12-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: thor