pronto 0.9.0 → 0.9.1

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
2
  SHA1:
3
- metadata.gz: 099138cee32a88a8f83065a6fc4c270da56a7a6d
4
- data.tar.gz: 623bb35ba84b91ba174d1d50cd89ef9fa4a808a7
3
+ metadata.gz: 9d790438c36a0945548e93b684a0225d4f65b639
4
+ data.tar.gz: ca04d65732a2caf6a2fef29ad051dfca62435e73
5
5
  SHA512:
6
- metadata.gz: 4aab1e003de4850796ccb246d9a19e1cd3af73672846bfb1f6aa0480c3601b975922bd12d2d8138ab2a5d3422e0493934b472a7dd6ea39837e7b03bd0c205471
7
- data.tar.gz: 9c06c011e43bd2e0c82f685182502b7f292d8bb4954fab1fcba4a9b1ac1cd6bd55df86940d778d34f7e52e032cbd52da43bd72d8bec609fbc5fcb71e08330ccc
6
+ metadata.gz: db97dd116571fd0e2e43060e2356805f5a2e1e06b058d23fae943d086b9aae01ff3d57cf3624134100ae55a5fb54ba2cd9159f5d40fa50b0377c8763a6b5dc31
7
+ data.tar.gz: 510838cc30c3d6a97340a9940d86876bdc303c391f7f784b75783a16bb410397eaa7911563be9fcbe3d79f251ab26c192379b36a98f01f39c852a46b21264a5d
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.1
4
+
5
+ ### Bugs fixed
6
+
7
+ * Poper and some other runners were not working correctly. When using staged/unstaged flags, pass a string instead of Rugged::Commit as commit parameter for runners.
8
+
3
9
  ## 0.9.0
4
10
 
5
11
  ### New features
@@ -10,9 +10,9 @@ module Pronto
10
10
  def diff(commit, options = nil)
11
11
  target, patches = case commit
12
12
  when :unstaged, :index
13
- [head, @repo.index.diff(options)]
13
+ [head_commit_sha, @repo.index.diff(options)]
14
14
  when :staged
15
- [head, @repo.head.target.diff(@repo.index, options)]
15
+ [head_commit_sha, head.diff(@repo.index, options)]
16
16
  else
17
17
  merge_base = merge_base(commit)
18
18
  patches = @repo.diff(merge_base, head, options)
@@ -1,6 +1,6 @@
1
1
  module Pronto
2
2
  module Version
3
- STRING = '0.9.0'.freeze
3
+ STRING = '0.9.1'.freeze
4
4
 
5
5
  MSG = '%s (running on %s %s %s)'.freeze
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindaugas Mozūras