textbringer 1.0.2 → 1.0.3

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: 57f1c5253fdfca677d4cf620a4577823054202a3f58c7dcb42fd2575cbf69110
4
- data.tar.gz: 4aaea98c3f0e310c94dd339a0f8ef15e0168aff3166606cb117592c96bcf9401
3
+ metadata.gz: a50dd7957ac593c31d5f1f0102d2240b277f419cd7ea431af422afe53cb3746b
4
+ data.tar.gz: 7c4ad8bca8b8ec2ca21bea0a855872f4de39f7e18e22c64e072a4723fbf8a029
5
5
  SHA512:
6
- metadata.gz: 8a15f03fc588b2f6cb8f8ed899273903ad0433ea01cfab84223df60afe6bc8afc01a2dcef543730f4704783becdefcd4ab00538c63bd37017c4a7cd6e78b5f57
7
- data.tar.gz: d1f7f90da2441ff8112f3289dcebb928201060bd3841fb8be82876a4dfeda057cab9e9153c9f69ff588716fa5ce4b65d9880229e5a2d056aab44ece893d39279
6
+ metadata.gz: 96b9ca053d2efeef296ff47db39aa1ef8d345456a5bd3a762025a4928ffb63dc8a3f63cdab5c60e6280a1cf47d56eedfa7734ddd0a23d0bd368fece0e58a96a3
7
+ data.tar.gz: 1cbe3d4cc148f6d837913c5080199bff92417a584fd6b9a452d2f414e1b9e3a09259ce16cc7bfd5a05c2987ac2bc4a55f1d417d42314c59155100d5d0c98764c
data/CHANGES.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 1.0.3
2
+
3
+ * Fix indentation bugs.
4
+ * Fix a bug of fourground! when it is called in the main thread.
5
+
1
6
  ## 1.0.2
2
7
 
3
8
  * Add isearch_quoted_insert.
@@ -283,6 +283,7 @@ def calculate_indentation
283
283
  end
284
284
 
285
285
  BLOCK_END = {
286
+ '#{' => "}",
286
287
  "{" => "}",
287
288
  "(" => ")",
288
289
  "[" => "]"
@@ -326,7 +327,7 @@ def find_nearest_beginning_token(tokens)
326
327
  stack.pop
327
328
  end
328
329
  end
329
- return nil, stack.size
330
+ return nil, stack.grep_v(/[)\]]/).size
330
331
  end
331
332
 
332
333
  def find_test_target_path(base, namespace, name)
@@ -66,6 +66,9 @@ def foreground(&block)
66
66
  alias next_tick foreground
67
67
 
68
68
  def foreground!
69
+ if Thread.current == Thread.main
70
+ return yield
71
+ end
69
72
  q = Queue.new
70
73
  foreground do
71
74
  begin
@@ -1,3 +1,3 @@
1
1
  module Textbringer
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textbringer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shugo Maeda
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-25 00:00:00.000000000 Z
11
+ date: 2020-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -253,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
253
253
  - !ruby/object:Gem::Version
254
254
  version: '0'
255
255
  requirements: []
256
- rubygems_version: 3.1.2
256
+ rubygems_version: 3.2.0.pre1
257
257
  signing_key:
258
258
  specification_version: 4
259
259
  summary: An Emacs-like text editor