interactive_editor 0.0.10 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: bdb85ed6c98d191b20dc539d9dd7dbd99332d197bff770452bc682f55cd6d7ab
4
+ data.tar.gz: d67ca17a411bc1c9860e8240d6f1b2df969b05f03f3ad2f5e2008179883acb32
5
+ SHA512:
6
+ metadata.gz: ea1f5e408652a817d7ba4ca15a73b2744e5c4a89debd4f336c6d5f5f4e5eec5e9c0838e7da64b147911933e27dd5fc8ed53e6e0eec4cb27e3d9d0fb5153d776c
7
+ data.tar.gz: 706717ff7ff1a07a9f07c9c4aec0158998aec144e4f51d6eef0551376e33bad14019ea75036ad25771767808d2e0bfa73e9837c94e396c899052b1c3b82af4b1
@@ -7,8 +7,8 @@ Gem::Specification.new do |s|
7
7
  ## If your rubyforge_project name is different, then edit it and comment out
8
8
  ## the sub! line in the Rakefile
9
9
  s.name = 'interactive_editor'
10
- s.version = '0.0.10'
11
- s.date = '2011-09-07'
10
+ s.version = '0.0.12'
11
+ s.date = '2023-01-02'
12
12
  s.rubyforge_project = 'interactive_editor'
13
13
 
14
14
  ## Make sure your summary is short. The description may be as long
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
28
28
  s.rdoc_options = ["--charset=UTF-8"]
29
29
  s.extra_rdoc_files = %w[README.md LICENSE]
30
30
 
31
- s.add_dependency('spoon', [">= 0.0.1"])
31
+ s.add_dependency('spoon', ["~> 0.0.6"])
32
32
 
33
33
  ## Leave this section as-is. It will be automatically generated from the
34
34
  ## contents of your Git repository via the gemspec task. DO NOT REMOVE
@@ -9,7 +9,7 @@ require 'shellwords'
9
9
  require 'yaml'
10
10
 
11
11
  class InteractiveEditor
12
- VERSION = '0.0.10'
12
+ VERSION = '0.0.12'
13
13
  EDITORS = Hash.new { |h,k| h[k] = InteractiveEditor.new(k) }
14
14
 
15
15
  attr_accessor :editor
@@ -45,7 +45,7 @@ class InteractiveEditor
45
45
  Exec.system(*args)
46
46
 
47
47
  if object
48
- File.exists?(current_file.path) ? YAML.load_file(current_file.path) : object
48
+ File.exist?(current_file.path) ? YAML.load_file(current_file.path) : object
49
49
  elsif mtime < File.stat(@file.path).mtime
50
50
  execute
51
51
  end
@@ -91,9 +91,11 @@ class InteractiveEditor
91
91
  {
92
92
  :vi => nil,
93
93
  :vim => nil,
94
+ :nvim => nil,
94
95
  :emacs => nil,
95
96
  :nano => nil,
96
97
  :mate => 'mate -w',
98
+ :subl => 'subl -wn',
97
99
  :mvim => 'mvim -g -f' + case ENV['TERM_PROGRAM']
98
100
  when 'iTerm.app'; ' -c "au VimLeave * !open -a iTerm"'
99
101
  when 'Apple_Terminal'; ' -c "au VimLeave * !open -a Terminal"'
metadata CHANGED
@@ -1,83 +1,65 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: interactive_editor
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 10
9
- version: 0.0.10
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.12
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Jan Berkel
13
- autorequire:
8
+ autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2011-09-07 00:00:00 +02:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2023-01-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: spoon
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 0
31
- - 1
32
- version: 0.0.1
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.6
33
20
  type: :runtime
34
- version_requirements: *id001
35
- description: Use vim (or any other text editor) from inside irb to quickly test & write new code.
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.6
27
+ description: Use vim (or any other text editor) from inside irb to quickly test &
28
+ write new code.
36
29
  email: jan.berkel@gmail.com
37
30
  executables: []
38
-
39
31
  extensions: []
40
-
41
- extra_rdoc_files:
32
+ extra_rdoc_files:
42
33
  - README.md
43
34
  - LICENSE
44
- files:
35
+ files:
45
36
  - LICENSE
46
37
  - README.md
47
38
  - Rakefile
48
39
  - interactive_editor.gemspec
49
40
  - lib/interactive_editor.rb
50
- has_rdoc: true
51
41
  homepage: http://github.com/jberkel/interactive_editor
52
- licenses:
42
+ licenses:
53
43
  - MIT
54
- post_install_message:
55
- rdoc_options:
56
- - --charset=UTF-8
57
- require_paths:
44
+ metadata: {}
45
+ post_install_message:
46
+ rdoc_options:
47
+ - "--charset=UTF-8"
48
+ require_paths:
58
49
  - lib
59
- required_ruby_version: !ruby/object:Gem::Requirement
60
- none: false
61
- requirements:
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
62
52
  - - ">="
63
- - !ruby/object:Gem::Version
64
- segments:
65
- - 0
66
- version: "0"
67
- required_rubygems_version: !ruby/object:Gem::Requirement
68
- none: false
69
- requirements:
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
70
57
  - - ">="
71
- - !ruby/object:Gem::Version
72
- segments:
73
- - 0
74
- version: "0"
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
75
60
  requirements: []
76
-
77
- rubyforge_project: interactive_editor
78
- rubygems_version: 1.3.7
79
- signing_key:
61
+ rubygems_version: 3.3.7
62
+ signing_key:
80
63
  specification_version: 2
81
64
  summary: Interactive editing in irb.
82
65
  test_files: []
83
-