flay 2.0.0.b1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data.tar.gz.sig +0 -0
  2. data/History.txt +6 -0
  3. data/Rakefile +2 -2
  4. data/lib/flay.rb +7 -2
  5. metadata +17 -23
  6. metadata.gz.sig +0 -0
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 2.0.0 / 2012-11-02
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Added a timeout handler to skip when RubyParser times out on a large file
6
+
1
7
  === 2.0.0.b1 / 2012-08-07
2
8
 
3
9
  * 2 major enhancements:
data/Rakefile CHANGED
@@ -15,8 +15,8 @@ Hoe.spec 'flay' do
15
15
  self.rubyforge_name = 'seattlerb'
16
16
  self.flay_threshold = 250
17
17
 
18
- extra_deps << ['sexp_processor', '~> 4.0']
19
- extra_deps << ['ruby_parser', '~> 3.0.0.a4']
18
+ dependency 'sexp_processor', '~> 4.0'
19
+ dependency 'ruby_parser', '~> 3.0.0'
20
20
  end
21
21
 
22
22
  # vim: syntax=ruby
@@ -4,6 +4,7 @@ require 'optparse'
4
4
  require 'rubygems'
5
5
  require 'sexp_processor'
6
6
  require 'ruby_parser'
7
+ require 'timeout'
7
8
 
8
9
  class File
9
10
  RUBY19 = "<3".respond_to? :encoding
@@ -14,7 +15,7 @@ class File
14
15
  end
15
16
 
16
17
  class Flay
17
- VERSION = '2.0.0.b1'
18
+ VERSION = '2.0.0'
18
19
 
19
20
  def self.default_options
20
21
  {
@@ -170,7 +171,11 @@ class Flay
170
171
  end
171
172
 
172
173
  def process_rb file
173
- RubyParser.new.process(File.binread(file), file)
174
+ begin
175
+ RubyParser.new.process(File.binread(file), file)
176
+ rescue Timeout::Error
177
+ warn "TIMEOUT parsing #{file}. Skipping."
178
+ end
174
179
  end
175
180
 
176
181
  def process_sexp pt
metadata CHANGED
@@ -1,15 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flay
3
3
  version: !ruby/object:Gem::Version
4
- hash: 4094303487
5
- prerelease: 6
4
+ hash: 15
5
+ prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
9
  - 0
10
- - b
11
- - 1
12
- version: 2.0.0.b1
10
+ version: 2.0.0
13
11
  platform: ruby
14
12
  authors:
15
13
  - Ryan Davis
@@ -38,7 +36,7 @@ cert_chain:
38
36
  FBHgymkyj/AOSqKRIpXPhjC6
39
37
  -----END CERTIFICATE-----
40
38
 
41
- date: 2012-08-07 00:00:00 Z
39
+ date: 2012-11-02 00:00:00 Z
42
40
  dependencies:
43
41
  - !ruby/object:Gem::Dependency
44
42
  name: sexp_processor
@@ -63,14 +61,12 @@ dependencies:
63
61
  requirements:
64
62
  - - ~>
65
63
  - !ruby/object:Gem::Version
66
- hash: 4094286549
64
+ hash: 7
67
65
  segments:
68
66
  - 3
69
67
  - 0
70
68
  - 0
71
- - a
72
- - 4
73
- version: 3.0.0.a4
69
+ version: 3.0.0
74
70
  type: :runtime
75
71
  version_requirements: *id002
76
72
  - !ruby/object:Gem::Dependency
@@ -81,11 +77,11 @@ dependencies:
81
77
  requirements:
82
78
  - - ~>
83
79
  - !ruby/object:Gem::Version
84
- hash: 3
80
+ hash: 25
85
81
  segments:
86
- - 3
87
- - 2
88
- version: "3.2"
82
+ - 4
83
+ - 1
84
+ version: "4.1"
89
85
  type: :development
90
86
  version_requirements: *id003
91
87
  - !ruby/object:Gem::Dependency
@@ -111,11 +107,11 @@ dependencies:
111
107
  requirements:
112
108
  - - ~>
113
109
  - !ruby/object:Gem::Version
114
- hash: 7
110
+ hash: 5
115
111
  segments:
116
112
  - 3
117
- - 0
118
- version: "3.0"
113
+ - 1
114
+ version: "3.1"
119
115
  type: :development
120
116
  version_requirements: *id005
121
117
  description: |-
@@ -165,14 +161,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
161
  required_rubygems_version: !ruby/object:Gem::Requirement
166
162
  none: false
167
163
  requirements:
168
- - - ">"
164
+ - - ">="
169
165
  - !ruby/object:Gem::Version
170
- hash: 25
166
+ hash: 3
171
167
  segments:
172
- - 1
173
- - 3
174
- - 1
175
- version: 1.3.1
168
+ - 0
169
+ version: "0"
176
170
  requirements: []
177
171
 
178
172
  rubyforge_project: seattlerb
metadata.gz.sig CHANGED
Binary file