realityforge-braid 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/braid/command.rb CHANGED
@@ -61,6 +61,8 @@ module Braid
61
61
  end
62
62
 
63
63
  def with_reset_on_error
64
+ bail_on_local_changes!
65
+
64
66
  work_head = git.head
65
67
 
66
68
  begin
@@ -2,8 +2,6 @@ module Braid
2
2
  module Commands
3
3
  class Add < Command
4
4
  def run(url, options = {})
5
- bail_on_local_changes!
6
-
7
5
  with_reset_on_error do
8
6
  mirror = config.add_from_options(url, options)
9
7
 
@@ -4,8 +4,6 @@ module Braid
4
4
  def run(path, options = {})
5
5
  mirror = config.get!(path)
6
6
 
7
- bail_on_local_changes!
8
-
9
7
  with_reset_on_error do
10
8
  msg "Removing mirror from '#{mirror.path}'."
11
9
 
@@ -2,8 +2,6 @@ module Braid
2
2
  module Commands
3
3
  class Update < Command
4
4
  def run(path, options = {})
5
- bail_on_local_changes!
6
-
7
5
  with_reset_on_error do
8
6
  path ? update_one(path, options) : update_all(options)
9
7
  end
data/lib/braid/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Braid
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: realityforge-braid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-03-15 00:00:00.000000000 Z
13
+ date: 2013-04-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: main