git-approvals 0.1.4 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby -wKU
2
+
3
+ exec 'git add --update --patch spec/*_spec/*'
@@ -7,7 +7,7 @@ module Git
7
7
  FORMATTERS = {
8
8
  :txt => lambda { |object|
9
9
  require 'awesome_print'
10
- object.awesome_inspect :plain => true, :indent => 2
10
+ object.awesome_inspect :plain => true, :indent => -2
11
11
  },
12
12
  :json => lambda { |string|
13
13
  require 'json'
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Approvals
3
- VERSION = '0.1.4'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
1
  {
2
- :foo => "bar",
3
- :baz => "quux"
2
+ :foo => "bar",
3
+ :quux => "bar"
4
4
  }
@@ -63,7 +63,7 @@ describe Git::Approvals::Approval do
63
63
  end
64
64
  it 'formats hashes' do
65
65
  approval = described_class.new './spec/fixtures/hash.txt'
66
- approval.diff( { :foo => 'bar', :baz => 'quux' } ){ |diff| fail diff }
66
+ approval.diff( { :foo => 'bar', :quux => 'bar' } ){ |diff| fail diff }
67
67
  end
68
68
  it 'formats json' do
69
69
  approval = described_class.new './spec/fixtures/hash.json', :format => :json
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-approvals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -126,7 +126,8 @@ dependencies:
126
126
  description: Simple git-powered approval tests. With RSpec integration.
127
127
  email:
128
128
  - jeremy.ruppel@gmail.com
129
- executables: []
129
+ executables:
130
+ - git-approvals
130
131
  extensions: []
131
132
  extra_rdoc_files: []
132
133
  files:
@@ -138,6 +139,7 @@ files:
138
139
  - LICENSE.txt
139
140
  - README.md
140
141
  - Rakefile
142
+ - bin/git-approvals
141
143
  - git-approvals.gemspec
142
144
  - lib/git-approvals.rb
143
145
  - lib/git/approvals.rb