diakonos 0.9.11 → 0.9.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b33351b4b0bad3ca68486fb1dc94e30cd535817f114a5abfd7840035a4609f0e
4
- data.tar.gz: 798d92231efc8ee699560c297e18250d4218dfa34785c601043115bc2496b570
3
+ metadata.gz: 785260a5c3a705a4bc2a441d3968b79307396fc559e471593dff06ebe5ff6fc9
4
+ data.tar.gz: a7b5686d70facc10e5902fe2ed29d27880676cb745ddf19d74abc2712c568cf0
5
5
  SHA512:
6
- metadata.gz: cd257799d54067d129a84af33c5e188d94c58b5a6c7a66a7826a9983678f61f0e181f87e836e18d6fa84a286882e7c41f2bf7ff94a3f03c8ad128394adf8887e
7
- data.tar.gz: 2a0628f16795c725aa06ee397b3f6e6623a1bea59a3fccee8ce61b63be048729ff0717adb5f0768a38b9dc8093def6f63f215467ba002ef95f74e8c697b6b221
6
+ metadata.gz: 9b87711d7f9422dd2f200a644cfd9b573178a4269c3016b4cbacd6cde0b49a618c5d3004548655c54c3e5d34063f3a4d93dbb8e8ff2f82ad5c4285100cc7f51d
7
+ data.tar.gz: b284dc8cab1fcbeae25ea08e417ffa70e643d4b48dd45c0b8660fd31f247e363e8cfa906bdf7ed0df63cd1e439d09107cc05d79e0a9f82ac7d9b67a5b64771bd
data/CHANGELOG CHANGED
@@ -1,6 +1,10 @@
1
1
  Diakonos Changelog
2
2
  ------------------
3
3
 
4
+ 0.9.12
5
+
6
+ - Fix opening of already-open file
7
+
4
8
  0.9.11
5
9
 
6
10
  - Fix installation on OSX (re: curses 1.4.5)
@@ -32,9 +32,6 @@ module Diakonos
32
32
  end
33
33
  end
34
34
 
35
- if open_match_text
36
- # $diakonos.debug_log "OPEN\t" + [ open_index, open_token_class, open_match_text ].inspect
37
- end
38
35
  [ open_index, open_token_class, open_match_text ]
39
36
  end
40
37
 
@@ -58,9 +55,6 @@ module Diakonos
58
55
  end
59
56
  end
60
57
 
61
- if close_match_text
62
- # $diakonos.debug_log "CLOSE\t" + [close_index, close_match_text].inspect
63
- end
64
58
  [close_index, close_match_text]
65
59
  end
66
60
 
@@ -184,8 +184,10 @@ module Diakonos
184
184
  filename = nil
185
185
  do_open = false
186
186
  else
187
- # TODO: Maybe a bug here, re: paths relative to session dir (external file find)
188
- existing_buffer = @buffers.find { |b| b.name == filename }
187
+ existing_buffer = @buffers.find { |b|
188
+ b.name == filename ||
189
+ b.name == File.expand_path(filename, @session.dir)
190
+ }
189
191
  end
190
192
 
191
193
  if filename
@@ -120,7 +120,6 @@ module Diakonos
120
120
  end
121
121
 
122
122
  def redraw_input
123
- # TODO: Gracefully handle when `input` is nil
124
123
  input = @input[ @view_y...(@view_y + Curses::cols) ]
125
124
 
126
125
  curx = @window.curx
@@ -1,6 +1,6 @@
1
1
  module Diakonos
2
- VERSION = '0.9.11'
3
- LAST_MODIFIED = '2024-05-27'
2
+ VERSION = '0.9.12'
3
+ LAST_MODIFIED = '2024-06-20'
4
4
 
5
5
  def self.parse_version( s )
6
6
  if s
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diakonos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.11
4
+ version: 0.9.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pistos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-27 00:00:00.000000000 Z
11
+ date: 2024-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.4.5
19
+ version: 1.4.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.4.5
26
+ version: 1.4.6
27
27
  description: Diakonos is a console text editor for the masses.
28
28
  email: diakonos dawt pistos aet purepistos dawt net
29
29
  executables:
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.4.19
168
+ rubygems_version: 3.5.11
169
169
  signing_key:
170
170
  specification_version: 4
171
171
  summary: Console text editor for the masses