riml 0.2.9 → 0.3.0

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.
data/lib/riml.rb CHANGED
@@ -34,7 +34,7 @@ module Riml
34
34
  elsif input.respond_to?(:read)
35
35
  source = input.read
36
36
  path = input.respond_to?(:path) ? input.path : nil
37
- nodes = parser.parse(source, AST_Rewriter.new, path)
37
+ nodes = parser.parse(source, parser.ast_rewriter || AST_Rewriter.new, path)
38
38
  else
39
39
  raise ArgumentError, "input must be one of AST (Nodes), tokens (Array), " \
40
40
  "code (String) or respond_to?(:read), is #{input.inspect}"
@@ -190,6 +190,7 @@ module Riml
190
190
 
191
191
  FILE_HEADER = File.read(File.expand_path("../header.vim", __FILE__)) % VERSION.join('.')
192
192
  INCLUDE_COMMENT_FMT = File.read(File.expand_path("../included.vim", __FILE__))
193
+ GET_SID_FUNCTION_SRC = File.read(File.expand_path("../get_sid_function.vim", __FILE__))
193
194
 
194
195
  def self.write_file(compiler, output, fname, cmdline_file = true)
195
196
  # writing out a file that's compiled from cmdline, output into output_dir
data/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Riml
2
- # last changed: August 18, 2013
3
- VERSION = [0,2,9]
2
+ # last changed: Sept. 7, 2013
3
+ VERSION = [0,3,0]
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-18 00:00:00.000000000 Z
12
+ date: 2013-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: racc
@@ -57,6 +57,7 @@ files:
57
57
  - LICENSE
58
58
  - version.rb
59
59
  - lib/parser.rb
60
+ - lib/get_sid_function.vim
60
61
  - lib/walker.rb
61
62
  - lib/warning_buffer.rb
62
63
  - lib/class_map.rb
@@ -75,7 +76,6 @@ files:
75
76
  - lib/ast_rewriter.rb
76
77
  - Rakefile
77
78
  - CONTRIBUTING
78
- - Gemfile
79
79
  - Gemfile.lock
80
80
  - bin/riml
81
81
  homepage: https://github.com/luke-gru/riml
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- group :development do
4
- # create the parser by going to the lib directory
5
- # and executing the following:
6
- #
7
- # $ racc -o parser.rb grammar.y
8
- gem 'racc'
9
- gem 'debugger'
10
- end
11
-
12
- group :test do
13
- gem 'rake' # for travis-ci
14
- gem 'minitest', '~> 2.5.1'
15
- end