string_to_editor 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -9,7 +9,7 @@ module OpenStringInEditor
9
9
  end
10
10
  end
11
11
 
12
- def edit
12
+ def view
13
13
  if ENV['EDITOR']
14
14
  write_to_tmp_file
15
15
  system("#{ENV['EDITOR']} #{@path_of_tmp_file_for_string_to_editor} &")
@@ -47,14 +47,14 @@ describe "StringToEditor" do
47
47
  end
48
48
  end
49
49
 
50
- describe "edit" do
50
+ describe "view" do
51
51
  describe "if no editor command is specified in ENV['EDITOR']" do
52
52
  before do
53
53
  ENV.delete('EDITOR')
54
54
  end
55
55
 
56
56
  it "should raise an error" do
57
- lambda { "breakfast".edit }.should raise_error
57
+ lambda { "breakfast".view }.should raise_error
58
58
  end
59
59
  end
60
60
 
@@ -66,7 +66,7 @@ describe "StringToEditor" do
66
66
  it "should send a string to the edit command in the background" do
67
67
  s = "sausage"
68
68
  s.should_receive(:system).with('/bin/editor/command /path/to/temp_file &')
69
- s.edit
69
+ s.view
70
70
  end
71
71
  end
72
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_to_editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom ten Thij