File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 1
1
# This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2015-03-12 17:46:21 -0700 using RuboCop version 0.29.1.
2
+ # on 2015-03-12 17:46:52 -0700 using RuboCop version 0.29.1.
3
3
# The point is for the user to remove these configuration records
4
4
# one by one as the offenses are removed from the code base.
5
5
# Note that changes in the inspected code, or installation of new
10
10
Lint/AssignmentInCondition :
11
11
Enabled : false
12
12
13
- # Offense count: 1
14
- Lint/Eval :
15
- Enabled : false
16
-
17
13
# Offense count: 1
18
14
Lint/RescueException :
19
15
Enabled : false
@@ -51,7 +47,7 @@ Metrics/BlockNesting:
51
47
Metrics/CyclomaticComplexity :
52
48
Max : 23
53
49
54
- # Offense count: 238
50
+ # Offense count: 237
55
51
# Configuration parameters: AllowURI, URISchemes.
56
52
Metrics/LineLength :
57
53
Max : 232
Original file line number Diff line number Diff line change 1
1
require File . expand_path ( '../lib/mysql2/version' , __FILE__ )
2
2
3
- Gem ::Specification . new do |s |
3
+ Mysql2 :: GEMSPEC = Gem ::Specification . new do |s |
4
4
s . name = 'mysql2'
5
5
s . version = Mysql2 ::VERSION
6
6
s . authors = [ 'Brian Lopez' , 'Aaron Stone' ]
Original file line number Diff line number Diff line change 1
1
require "rake/extensiontask"
2
2
3
- def gemspec
4
- @clean_gemspec ||= eval ( File . read ( File . expand_path ( '../../mysql2.gemspec' , __FILE__ ) ) )
5
- end
3
+ load File . expand_path ( '../../mysql2.gemspec' , __FILE__ )
6
4
7
- Rake ::ExtensionTask . new ( "mysql2" , gemspec ) do |ext |
5
+ Rake ::ExtensionTask . new ( "mysql2" , Mysql2 :: GEMSPEC ) do |ext |
8
6
# put binaries into lib/mysql2/ or lib/mysql2/x.y/
9
7
ext . lib_dir = File . join 'lib' , 'mysql2'
10
8
@@ -60,7 +58,7 @@ file 'vendor/README' do |t|
60
58
end
61
59
62
60
file 'lib/mysql2/mysql2.rb' do |t |
63
- name = gemspec . name
61
+ name = Mysql2 :: GEMSPEC . name
64
62
File . open ( t . name , 'wb' ) do |f |
65
63
f . write <<-eoruby
66
64
RUBY_VERSION =~ /(\\ d+.\\ d+)/
You can’t perform that action at this time.
0 commit comments