guard 1.6.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.6.1 - 27 December, 2012
2
+
3
+ ### Improvements
4
+
5
+ - [#344][] Restore Pry visibility after each evaluation. (reported by [@rking][], fixed by [@netzpirat][])
6
+
1
7
  ## 1.6.0 - 21 December, 2012
2
8
 
3
9
  ### New features
@@ -675,6 +681,7 @@ The Listen integration has been supervised by [@thibaudgg][] and executed by [@M
675
681
  [#334]: https://github.com/guard/guard/issues/334
676
682
  [#342]: https://github.com/guard/guard/issues/342
677
683
  [#343]: https://github.com/guard/guard/issues/343
684
+ [#344]: https://github.com/guard/guard/issues/344
678
685
  [#345]: https://github.com/guard/guard/issues/345
679
686
  [#348]: https://github.com/guard/guard/issues/348
680
687
  [#351]: https://github.com/guard/guard/issues/351
@@ -690,6 +697,7 @@ The Listen integration has been supervised by [@thibaudgg][] and executed by [@M
690
697
  [#367]: https://github.com/guard/guard/issues/367
691
698
  [#368]: https://github.com/guard/guard/issues/368
692
699
  [#369]: https://github.com/guard/guard/issues/369
700
+ [#372]: https://github.com/guard/guard/issues/372
693
701
  [#376]: https://github.com/guard/guard/issues/376
694
702
  [#377]: https://github.com/guard/guard/issues/377
695
703
  [#378]: https://github.com/guard/guard/issues/378
@@ -752,8 +760,10 @@ The Listen integration has been supervised by [@thibaudgg][] and executed by [@M
752
760
  [@pcreux]: https://github.com/pcreux
753
761
  [@philomory]: https://github.com/philomory
754
762
  [@pirukire]: https://github.com/pirukire
763
+ [@rking]: https://github.com/rking
755
764
  [@rmm5t]: https://github.com/rmm5t
756
765
  [@royvandewater]: https://github.com/royvandewater
766
+ [@rudicode]: https://github.com/rudicode
757
767
  [@rupert654]: https://github.com/rupert654
758
768
  [@rymai]: https://github.com/rymai
759
769
  [@schmurfy]: https://github.com/schmurfy
@@ -89,7 +89,7 @@ module Guard
89
89
  Pry.config.should_load_local_rc = false
90
90
  Pry.config.history.file = self.class.options[:history_file] || HISTORY_FILE
91
91
 
92
- load_guard_rc
92
+ add_hooks
93
93
 
94
94
  create_run_all_command
95
95
  create_command_aliases
@@ -99,12 +99,21 @@ module Guard
99
99
  configure_prompt
100
100
  end
101
101
 
102
- # Loads the `~/.guardrc` file when pry has started.
102
+ # Add Pry hooks:
103
103
  #
104
- def load_guard_rc
104
+ # * Load `~/.guardrc` within each new Pry session.
105
+ # * Restore prompt after each evaluation.
106
+ #
107
+ def add_hooks
105
108
  Pry.config.hooks.add_hook :when_started, :load_guard_rc do
106
109
  load GUARD_RC if File.exist?(File.expand_path(self.class.options[:guard_rc] || GUARD_RC))
107
110
  end
111
+
112
+ if stty_exists?
113
+ Pry.config.hooks.add_hook :after_eval, :restore_visibility do
114
+ system('stty echo')
115
+ end
116
+ end
108
117
  end
109
118
 
110
119
  # Creates a command that triggers the `:run_all` action
data/lib/guard/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Guard
2
2
  # The current gem version of Guard
3
- VERSION = '1.6.0'
3
+ VERSION = '1.6.1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-21 00:00:00.000000000 Z
12
+ date: 2012-12-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor