ruby_cop 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -448,6 +448,8 @@ module RubyCop
448
448
  ref
449
449
  end
450
450
 
451
+ alias on_vcall on_var_ref
452
+
451
453
  def on_void_stmt
452
454
  nil
453
455
  end
@@ -518,4 +520,4 @@ module RubyCop
518
520
  Ruby::Position.new(lineno, column)
519
521
  end
520
522
  end
521
- end
523
+ end
@@ -1,3 +1,3 @@
1
1
  module RubyCop
2
- VERSION = '1.0.3'
2
+ VERSION = '1.0.4'
3
3
  end
data/ruby_cop.gemspec CHANGED
@@ -20,6 +20,6 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
 
22
22
  s.add_development_dependency 'geminabox'
23
- s.add_development_dependency 'rspec', '~> 2.3.0'
23
+ s.add_development_dependency 'rspec', '~> 2.0'
24
24
  s.add_development_dependency 'yard'
25
25
  end
@@ -77,7 +77,6 @@ describe RubyCop::Policy do
77
77
  # Enumerable#select, but not Kernel#select / IO#select.
78
78
  it { should allow('[1, 2, 3].select { |x| x.odd? }') }
79
79
  it { should_not allow('select([$stdin], nil, nil, 1.5)') }
80
- it { pending('Kernel#select') { should_not allow('select([$stdin], nil, nil, 1.5)') } }
81
80
 
82
81
  # TODO: these are a possible concern because symbols are not GC'ed and
83
82
  # an attacker could create a large number of them to eat up memory. If
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_cop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-02-20 00:00:00.000000000Z
13
+ date: 2012-05-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: geminabox
17
- requirement: &70157758657660 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,21 +22,31 @@ dependencies:
22
22
  version: '0'
23
23
  type: :development
24
24
  prerelease: false
25
- version_requirements: *70157758657660
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: rspec
28
- requirement: &70157758657160 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ~>
32
37
  - !ruby/object:Gem::Version
33
- version: 2.3.0
38
+ version: '2.0'
34
39
  type: :development
35
40
  prerelease: false
36
- version_requirements: *70157758657160
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
37
47
  - !ruby/object:Gem::Dependency
38
48
  name: yard
39
- requirement: &70157758656740 !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
40
50
  none: false
41
51
  requirements:
42
52
  - - ! '>='
@@ -44,7 +54,12 @@ dependencies:
44
54
  version: '0'
45
55
  type: :development
46
56
  prerelease: false
47
- version_requirements: *70157758656740
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
48
63
  description: Statically analyze Ruby and neutralize nefarious code
49
64
  email:
50
65
  - dray@envylabs.com
@@ -115,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
130
  version: '0'
116
131
  requirements: []
117
132
  rubyforge_project: ruby_cop
118
- rubygems_version: 1.8.17
133
+ rubygems_version: 1.8.24
119
134
  signing_key:
120
135
  specification_version: 3
121
136
  summary: Statically analyze Ruby and neutralize nefarious code
@@ -124,3 +139,4 @@ test_files:
124
139
  - spec/analyzer/policy_spec.rb
125
140
  - spec/policy_spec.rb
126
141
  - spec/spec_helper.rb
142
+ has_rdoc: