Skip to content

Commit 981e551

Browse files
committed
Rubocop + add licenses
1 parent c4eb696 commit 981e551

18 files changed

+120
-17
lines changed

.rubocop.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ AllCops:
33
- 'vendor/**/*'
44
TargetRubyVersion: 2.1
55

6+
Layout/EmptyLineAfterMagicComment:
7+
Enabled: false
8+
69
Lint/EndAlignment:
710
Enabled: true
811
EnforcedStyleAlignWith: variable
@@ -25,9 +28,6 @@ Metrics/LineLength:
2528
Metrics/MethodLength:
2629
Max: 20
2730

28-
Style/EmptyLineAfterMagicComment:
29-
Enabled: false
30-
3131
# When support for Ruby < 2.3 is dropped, re-enable
3232
Style/IndentHeredoc:
3333
Enabled: false

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- encoding: utf-8 -*-
21
# frozen_string_literal: true
32

43
source 'https://rubygems.org'

Rakefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- encoding: utf-8 -*-
21
# frozen_string_literal: true
32
#
43
# Copyright (c) 2016 Mark Lee and contributors

lib/thermite/cargo.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- encoding: utf-8 -*-
21
# frozen_string_literal: true
32
#
43
# Copyright (c) 2016 Mark Lee and contributors
@@ -86,12 +85,12 @@ def inform_user_about_cargo
8685
# `require_severity` is the verb that indicates how important Rust is to the library.
8786
#
8887
def cargo_msg(require_severity)
89-
<<EOM
88+
<<MESSAGE
9089
****
9190
Rust's Cargo is #{require_severity} to build this extension. Please install
9291
Rust and put it in the PATH, or set the CARGO environment variable appropriately.
9392
****
94-
EOM
93+
MESSAGE
9594
end
9695

9796
#

lib/thermite/config.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- encoding: utf-8 -*-
21
# frozen_string_literal: true
32
#
43
# Copyright (c) 2016 Mark Lee and contributors

lib/thermite/custom_binary.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- encoding: utf-8 -*-
21
# frozen_string_literal: true
32
#
43
# Copyright (c) 2016 Mark Lee and contributors

lib/thermite/fiddle.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- encoding: utf-8 -*-
21
# frozen_string_literal: true
32
#
43
# Copyright (c) 2016 Mark Lee and contributors

lib/thermite/github_release_binary.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- encoding: utf-8 -*-
21
# frozen_string_literal: true
32
#
43
# Copyright (c) 2016, 2017 Mark Lee and contributors

lib/thermite/package.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- encoding: utf-8 -*-
21
# frozen_string_literal: true
32
#
43
# Copyright (c) 2016 Mark Lee and contributors

lib/thermite/tasks.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- encoding: utf-8 -*-
21
# frozen_string_literal: true
32
#
43
# Copyright (c) 2016 Mark Lee and contributors

0 commit comments

Comments
 (0)