starscope 1.3.0.pre.rc2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/starscope/exportable.rb +3 -7
- data/lib/starscope/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dc4d4ed48ed8e03902cab715035cec7226085dd
|
4
|
+
data.tar.gz: d65334b73069abcfdb1e411dc898e672e556d52c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 084546bf7ecfff1a1bf673d8a302d7fdbd7c0f302dd45830e9a5c8aaae4ec7d28e044a3744ef3eefbf3e1a76ec40d66d9fe2e1a7f601fed94bcf2023649d19df
|
7
|
+
data.tar.gz: de3833eb0f5ee2033760008fac08a0c1726c2fd148f28a81dc5501924e925fce6d06d8ff657e9ba1e6ebc6c29264456918ff60744b652954787539f36b2a561d
|
data/Gemfile.lock
CHANGED
data/lib/starscope/exportable.rb
CHANGED
@@ -40,8 +40,8 @@ module Starscope::Exportable
|
|
40
40
|
# calls must occur in a function, but in ruby et al. it is perfectly legal to
|
41
41
|
# write normal code outside the "scope" of a function definition - we insert a
|
42
42
|
# fake shim "global" function everywhere we can to work around this
|
43
|
-
CSCOPE_GLOBAL_HACK_START = "\n\t$-\n"
|
44
|
-
CSCOPE_GLOBAL_HACK_STOP = "\n\t}\n"
|
43
|
+
CSCOPE_GLOBAL_HACK_START = " \n\t$-\n"
|
44
|
+
CSCOPE_GLOBAL_HACK_STOP = " \n\t}\n"
|
45
45
|
|
46
46
|
def export_ctags(file)
|
47
47
|
file.puts <<END
|
@@ -168,11 +168,7 @@ END
|
|
168
168
|
|
169
169
|
def cscope_output(line, prev, offset, record)
|
170
170
|
buf = ""
|
171
|
-
|
172
|
-
if record[:type] == :func && record[:tbl] == :defs
|
173
|
-
buf << " " if prev > 0 # urgh cscope
|
174
|
-
buf << CSCOPE_GLOBAL_HACK_STOP
|
175
|
-
end
|
171
|
+
buf << CSCOPE_GLOBAL_HACK_STOP if record[:type] == :func && record[:tbl] == :defs
|
176
172
|
|
177
173
|
record[:name][0...-1].each do |key|
|
178
174
|
# output previous components of the name (ie the Foo in Foo::bar) as unmarked symbols
|
data/lib/starscope/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: starscope
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.0
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Huus
|
@@ -198,9 +198,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
198
198
|
version: 1.8.7
|
199
199
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
200
|
requirements:
|
201
|
-
- - "
|
201
|
+
- - ">="
|
202
202
|
- !ruby/object:Gem::Version
|
203
|
-
version:
|
203
|
+
version: '0'
|
204
204
|
requirements: []
|
205
205
|
rubyforge_project:
|
206
206
|
rubygems_version: 2.2.2
|