string_to_editor 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,7 +1,9 @@
1
1
  = string_to_editor
2
2
 
3
- Adds an :edit method to strings which send it to the default editor
4
- (set in ENV['EDITOR']). Mostly for debugging purposes.
3
+ Adds a :view method to all strings. When called on a string
4
+ it writes its content to a temporary file which is then opened
5
+ in the default editor (set in ENV['EDITOR']). Mostly for
6
+ debugging purposes.
5
7
 
6
8
  == Note on Patches/Pull Requests
7
9
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -14,7 +14,7 @@ module OpenStringInEditor
14
14
  write_to_tmp_file
15
15
  system("#{ENV['EDITOR']} #{@path_of_tmp_file_for_string_to_editor} &")
16
16
  else
17
- raise "edit was called for a String, but the EDITOR variable was not set in ENV"
17
+ raise ":view was called for a String, but the EDITOR variable was not set in ENV"
18
18
  end
19
19
  end
20
20
  end
@@ -1,6 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
- require 'tempfile'
4
3
  require 'string_to_editor'
5
4
 
6
5
  describe "StringToEditor" do
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_to_editor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ hash: 25
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 3
10
+ version: 0.0.3
5
11
  platform: ruby
6
12
  authors:
7
13
  - Tom ten Thij
@@ -9,29 +15,38 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-12-08 00:00:00 +00:00
13
- default_executable:
18
+ date: 2012-01-26 00:00:00 Z
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: rspec
17
- type: :development
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
20
25
  requirements:
21
26
  - - ">="
22
27
  - !ruby/object:Gem::Version
28
+ hash: 13
29
+ segments:
30
+ - 1
31
+ - 2
32
+ - 9
23
33
  version: 1.2.9
24
- version:
34
+ type: :development
35
+ version_requirements: *id001
25
36
  - !ruby/object:Gem::Dependency
26
37
  name: cucumber
27
- type: :development
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
30
41
  requirements:
31
42
  - - ">="
32
43
  - !ruby/object:Gem::Version
44
+ hash: 3
45
+ segments:
46
+ - 0
33
47
  version: "0"
34
- version:
48
+ type: :development
49
+ version_requirements: *id002
35
50
  description: Send ruby strings to your editor or a file
36
51
  email: string_to_editor@tomtenthij.nl
37
52
  executables: []
@@ -43,7 +58,6 @@ extra_rdoc_files:
43
58
  - README.rdoc
44
59
  files:
45
60
  - .document
46
- - .gitignore
47
61
  - LICENSE
48
62
  - README.rdoc
49
63
  - Rakefile
@@ -55,34 +69,38 @@ files:
55
69
  - spec/spec.opts
56
70
  - spec/spec_helper.rb
57
71
  - spec/string_to_editor_spec.rb
58
- has_rdoc: true
59
72
  homepage: http://github.com/tomtt/string_to_editor
60
73
  licenses: []
61
74
 
62
75
  post_install_message:
63
- rdoc_options:
64
- - --charset=UTF-8
76
+ rdoc_options: []
77
+
65
78
  require_paths:
66
79
  - lib
67
80
  required_ruby_version: !ruby/object:Gem::Requirement
81
+ none: false
68
82
  requirements:
69
83
  - - ">="
70
84
  - !ruby/object:Gem::Version
85
+ hash: 3
86
+ segments:
87
+ - 0
71
88
  version: "0"
72
- version:
73
89
  required_rubygems_version: !ruby/object:Gem::Requirement
90
+ none: false
74
91
  requirements:
75
92
  - - ">="
76
93
  - !ruby/object:Gem::Version
94
+ hash: 3
95
+ segments:
96
+ - 0
77
97
  version: "0"
78
- version:
79
98
  requirements: []
80
99
 
81
100
  rubyforge_project:
82
- rubygems_version: 1.3.5
101
+ rubygems_version: 1.8.10
83
102
  signing_key:
84
103
  specification_version: 3
85
104
  summary: Send ruby strings to your editor or a file
86
- test_files:
87
- - spec/spec_helper.rb
88
- - spec/string_to_editor_spec.rb
105
+ test_files: []
106
+
data/.gitignore DELETED
@@ -1,21 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
-
21
- ## PROJECT::SPECIFIC