neo2vim 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/neo2vim.rb +3 -3
  2. metadata +1 -1
data/lib/neo2vim.rb CHANGED
@@ -20,9 +20,9 @@ class Neo2Vim
20
20
  # Supported pattern: @neovim.{type}({name}, attr1 = value1, attr2 = value2, ...)
21
21
  if line =~ /^\s*@neovim\.(\w+)\(((?:'\w+')|(?:"\w+"))(.+)/
22
22
  basic = {type: $1, name: $2[1..-2]}
23
- args = $3.scan(/\s*,\s*(\w+)\s*=\s*((?:'[^']*')|(?:"[^"]*"))/).map {|name, value|
23
+ args = Hash[$3.scan(/\s*,\s*(\w+)\s*=\s*((?:'[^']*')|(?:"[^"]*"))/).map {|name, value|
24
24
  [name.to_sym, value[1..-2]]
25
- }.to_h
25
+ }]
26
26
  basic.merge(args)
27
27
  else
28
28
  nil
@@ -82,7 +82,7 @@ class Neo2Vim
82
82
  end
83
83
  def initialize source, destination
84
84
  @names = ["autoload_function", "function", "command", "autocmd"]
85
- @stores = (@names.map{|name| [name, {}]}).to_h
85
+ @stores = Hash[@names.map{|name| [name, {}]}]
86
86
  @annotation = nil
87
87
  @plugin_class_name = nil
88
88
  @in_plugin_class = false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo2vim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: