starscope 1.5.5 → 1.5.6

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
  SHA1:
3
- metadata.gz: 3c72cd4340520b310e933a37a03a15b225b004ad
4
- data.tar.gz: ab7d86bf75973140122e694b52bd7fbdc912aeb2
3
+ metadata.gz: a672745a78f09d23b3777f8f11ca3725f673afe6
4
+ data.tar.gz: 7ec09bdfae0344c549d6c145d10dfc6593bf6bfc
5
5
  SHA512:
6
- metadata.gz: 360f6441b7fd47e89c04bcad5d55d780adac9b843a0690637ef6e5848c8a9351b7ffd374b076db998f301d8954be3992a1cae4e2e3752ec7cd05895824f72ceb
7
- data.tar.gz: cd3c3ac976e199745f98131c4d5ac03de4c6093029b387896c54046a205dba8c706989921e5722347096372d146fd3a7619ce27b026cdb8f6d7ed4d6f5c6d75c
6
+ metadata.gz: 7026d21cc7c2c1be4755db9f6b4c5ab93cbed8073c31b417d39dc9d8ffdf8bb2c028cb5d999cff4185795a86c19fedc7d0a45ecadd9bbb1d14effbce1265ada1
7
+ data.tar.gz: 2fe2786def57bbbae6e24d4baeee414dc971a7c6b07e0b7f1b0ed56e5db03f723da28b9023bc245ff810e4ce5c7f812144e466c2476cfc1c6a0807b32bb27450
@@ -5,6 +5,9 @@ AllCops:
5
5
  Metrics/AbcSize:
6
6
  Enabled: false
7
7
 
8
+ Metrics/BlockLength:
9
+ Enabled: false
10
+
8
11
  Metrics/BlockNesting:
9
12
  Enabled: false
10
13
 
@@ -34,3 +37,6 @@ Style/SpecialGlobalVars:
34
37
 
35
38
  Style/FrozenStringLiteralComment:
36
39
  Enabled: false
40
+
41
+ Style/NumericPredicate:
42
+ Enabled: false
@@ -2,9 +2,8 @@ language: ruby
2
2
  sudo: false
3
3
 
4
4
  rvm:
5
- - 1.9.3
6
5
  - 2.0
7
6
  - 2.1
8
7
  - 2.2
9
- - 2.3.3
10
- - 2.4.0
8
+ - 2.3
9
+ - 2.4
@@ -1,6 +1,13 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ v1.5.6 (2018-01-16)
5
+ --------------------
6
+
7
+ * Be more lenient parsing ERB files: accept some of Erubi's expanded syntax.
8
+ * Drop support for ruby 1.9.3.
9
+ * Update some dependencies.
10
+
4
11
  v1.5.5 (2017-01-02)
5
12
  --------------------
6
13
 
@@ -17,8 +17,7 @@ options = { read: true,
17
17
  update: true,
18
18
  output: :normal,
19
19
  export: [],
20
- db: DEFAULT_DB
21
- }
20
+ db: DEFAULT_DB }
22
21
 
23
22
  # Options Parsing
24
23
  OptionParser.new do |opts|
@@ -4,7 +4,7 @@ module Starscope
4
4
  VERSION = 1
5
5
 
6
6
  ERB_START = /<%(?:-|={1,4})?/
7
- ERB_END = /-?%>/
7
+ ERB_END = /[-=]?%>/
8
8
 
9
9
  def self.match_file(name)
10
10
  name.end_with?('.erb')
@@ -13,10 +13,9 @@ module Starscope
13
13
  end
14
14
 
15
15
  def match(input)
16
- case
17
- when input.end_with?(@query)
16
+ if input.end_with?(@query)
18
17
  :literal_match
19
- when @regexp && @regexp.match(input)
18
+ elsif @regexp && @regexp.match(input)
20
19
  :regexp_match
21
20
  end
22
21
  end
@@ -1,3 +1,3 @@
1
1
  module Starscope
2
- VERSION = '1.5.5'.freeze
2
+ VERSION = '1.5.6'.freeze
3
3
  end
@@ -17,19 +17,19 @@ Gem::Specification.new do |gem|
17
17
  gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
18
18
  gem.test_files = `git ls-files -- test/*`.split("\n")
19
19
  gem.require_paths = ['lib']
20
- gem.required_ruby_version = '>= 1.9.3'
20
+ gem.required_ruby_version = '>= 2.0'
21
21
 
22
- gem.add_dependency 'oj', '~> 2.9'
23
- gem.add_dependency 'parser', '~> 2.3'
24
- gem.add_dependency 'ruby-progressbar', '~> 1.8'
22
+ gem.add_dependency 'oj', '~> 3.3'
23
+ gem.add_dependency 'parser', '~> 2.4'
24
+ gem.add_dependency 'ruby-progressbar', '~> 1.9'
25
25
  gem.add_dependency 'rkelly-remix', '~> 0.0.7'
26
26
  gem.add_dependency 'babel-transpiler', '~> 0.7'
27
27
  gem.add_dependency 'sourcemap', '~> 0.1'
28
28
 
29
29
  gem.add_development_dependency 'bundler', '~> 1.7'
30
30
  gem.add_development_dependency 'rake', '~> 11.2'
31
- gem.add_development_dependency 'pry', '~> 0.10.1'
32
- gem.add_development_dependency 'minitest', '~> 5.8'
33
- gem.add_development_dependency 'mocha', '~> 1.1'
34
- gem.add_development_dependency 'rubocop', '~> 0.39.0'
31
+ gem.add_development_dependency 'pry', '~> 0.11'
32
+ gem.add_development_dependency 'minitest', '~> 5.10'
33
+ gem.add_development_dependency 'mocha', '~> 1.3'
34
+ gem.add_development_dependency 'rubocop', '~> 0.44.0'
35
35
  end
@@ -15,7 +15,8 @@ describe Starscope::FragmentExtractor do
15
15
  { frag: "def foo; end\n", line_no: 12 },
16
16
  { frag: "def bar\n", line_no: 15 },
17
17
  { frag: "end\n", line_no: 29 }
18
- ])
18
+ ]
19
+ )
19
20
  @reconstructed = "def foo; end\ndef bar\nend"
20
21
  end
21
22
 
metadata CHANGED
@@ -1,183 +1,183 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: starscope
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.5
4
+ version: 1.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Huus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-02 00:00:00.000000000 Z
11
+ date: 2018-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.9'
19
+ version: '3.3'
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: '2.9'
26
+ version: '3.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: parser
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.3'
33
+ version: '2.4'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.3'
40
+ version: '2.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: ruby-progressbar
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.8'
47
+ version: '1.9'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.8'
54
+ version: '1.9'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rkelly-remix
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: 0.0.7
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.0.7
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: babel-transpiler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.7'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.7'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: sourcemap
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0.1'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0.1'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '1.7'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '1.7'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: '11.2'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '11.2'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: pry
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 0.10.1
131
+ version: '0.11'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 0.10.1
138
+ version: '0.11'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: minitest
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '5.8'
145
+ version: '5.10'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ~>
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '5.8'
152
+ version: '5.10'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: mocha
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ~>
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: '1.1'
159
+ version: '1.3'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ~>
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: '1.1'
166
+ version: '1.3'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rubocop
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ~>
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 0.39.0
173
+ version: 0.44.0
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - ~>
178
+ - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 0.39.0
180
+ version: 0.44.0
181
181
  description: |2
182
182
  Starscope is a code indexer, search and navigation tool for Ruby, Golang, and JavaScript.
183
183
  Inspired by the extremely popular Ctags and Cscope utilities, Starscope can
@@ -188,9 +188,9 @@ executables:
188
188
  extensions: []
189
189
  extra_rdoc_files: []
190
190
  files:
191
- - .gitignore
192
- - .rubocop.yml
193
- - .travis.yml
191
+ - ".gitignore"
192
+ - ".rubocop.yml"
193
+ - ".travis.yml"
194
194
  - CHANGELOG.md
195
195
  - Gemfile
196
196
  - LICENSE.txt
@@ -247,17 +247,17 @@ require_paths:
247
247
  - lib
248
248
  required_ruby_version: !ruby/object:Gem::Requirement
249
249
  requirements:
250
- - - '>='
250
+ - - ">="
251
251
  - !ruby/object:Gem::Version
252
- version: 1.9.3
252
+ version: '2.0'
253
253
  required_rubygems_version: !ruby/object:Gem::Requirement
254
254
  requirements:
255
- - - '>='
255
+ - - ">="
256
256
  - !ruby/object:Gem::Version
257
257
  version: '0'
258
258
  requirements: []
259
259
  rubyforge_project:
260
- rubygems_version: 2.0.14.1
260
+ rubygems_version: 2.5.2
261
261
  signing_key:
262
262
  specification_version: 4
263
263
  summary: Smart code search and indexing