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 +4 -2
- data/VERSION +1 -1
- data/lib/string_to_editor.rb +1 -1
- data/spec/string_to_editor_spec.rb +0 -1
- metadata +39 -21
- data/.gitignore +0 -21
data/README.rdoc
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
= string_to_editor
|
2
2
|
|
3
|
-
Adds
|
4
|
-
|
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.
|
1
|
+
0.0.3
|
data/lib/string_to_editor.rb
CHANGED
@@ -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 "
|
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
|
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
|
-
|
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:
|
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
|
-
|
18
|
-
|
19
|
-
|
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
|
-
|
34
|
+
type: :development
|
35
|
+
version_requirements: *id001
|
25
36
|
- !ruby/object:Gem::Dependency
|
26
37
|
name: cucumber
|
27
|
-
|
28
|
-
|
29
|
-
|
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
|
-
|
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
|
-
|
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.
|
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
|
-
|
88
|
-
- spec/string_to_editor_spec.rb
|
105
|
+
test_files: []
|
106
|
+
|