-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
148 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.gem | ||
/coverage/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
Metrics/ClassLength: | ||
Enabled: false | ||
|
||
Metrics/MethodLength: | ||
Enabled: false | ||
|
||
Metrics/BlockLength: | ||
Enabled: false | ||
|
||
Metrics/CyclomaticComplexity: | ||
Enabled: false | ||
|
||
Metrics/LineLength: | ||
Enabled: true | ||
Max: 120 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
language: ruby | ||
rvm: | ||
- 2.1 | ||
- 2.2 | ||
- 2.3 | ||
- 2.4.0 | ||
- ruby-head | ||
branches: | ||
only: | ||
- master | ||
matrix: | ||
allow_failures: | ||
- rvm: ruby-head | ||
before_install: | ||
- gem update --system | ||
- gem install bundler | ||
- gem --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source 'https://rubygems.org' | ||
|
||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
PATH | ||
remote: . | ||
specs: | ||
elftools (0.0.0) | ||
|
||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
ast (2.3.0) | ||
codeclimate-test-reporter (0.6.0) | ||
simplecov (>= 0.7.1, < 1.0.0) | ||
diff-lcs (1.3) | ||
docile (1.1.5) | ||
json (2.0.3) | ||
parser (2.4.0.0) | ||
ast (~> 2.2) | ||
powerpack (0.1.1) | ||
rainbow (2.2.1) | ||
rake (12.0.0) | ||
rspec (3.5.0) | ||
rspec-core (~> 3.5.0) | ||
rspec-expectations (~> 3.5.0) | ||
rspec-mocks (~> 3.5.0) | ||
rspec-core (3.5.4) | ||
rspec-support (~> 3.5.0) | ||
rspec-expectations (3.5.0) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.5.0) | ||
rspec-mocks (3.5.0) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.5.0) | ||
rspec-support (3.5.0) | ||
rubocop (0.47.1) | ||
parser (>= 2.3.3.1, < 3.0) | ||
powerpack (~> 0.1) | ||
rainbow (>= 1.99.1, < 3.0) | ||
ruby-progressbar (~> 1.7) | ||
unicode-display_width (~> 1.0, >= 1.0.1) | ||
ruby-progressbar (1.8.1) | ||
simplecov (0.13.0) | ||
docile (~> 1.1.0) | ||
json (>= 1.8, < 3) | ||
simplecov-html (~> 0.10.0) | ||
simplecov-html (0.10.0) | ||
unicode-display_width (1.1.3) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
codeclimate-test-reporter (~> 0.6) | ||
elftools! | ||
rake (~> 12.0) | ||
rspec (~> 3.5) | ||
rubocop (~> 0.47) | ||
simplecov (~> 0.13.0) | ||
|
||
BUNDLED WITH | ||
1.14.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require 'rspec/core/rake_task' | ||
require 'rubocop/rake_task' | ||
|
||
task default: %i(rubocop spec) | ||
|
||
RuboCop::RakeTask.new(:rubocop) do |task| | ||
task.patterns = ['lib/**/*.rb', 'spec/**/*.rb'] | ||
end | ||
|
||
RSpec::Core::RakeTask.new(:spec) do |task| | ||
task.pattern = './spec/**/*_spec.rb' | ||
task.rspec_opts = ['--color', '--require spec_helper', '--order rand'] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'elftools/version' | ||
require 'date' | ||
|
||
Gem::Specification.new do |s| | ||
s.name = 'elftools' | ||
s.version = ::ELFTools::VERSION | ||
s.date = Date.today.to_s | ||
s.summary = 'ELFTools - Pure ruby library for parsing ELF files' | ||
s.description = '' | ||
s.authors = ['david942j'] | ||
s.email = ['[email protected]'] | ||
s.files = Dir['lib/**/*.rb'] + %w(README.md) | ||
s.homepage = 'https://github.com/david942j/rbelftools' | ||
s.license = 'MIT' | ||
s.required_ruby_version = '>= 2.1.0' | ||
|
||
s.add_development_dependency 'rspec', '~> 3.5' | ||
s.add_development_dependency 'rubocop', '~> 0.47' | ||
s.add_development_dependency 'rake', '~> 12.0' | ||
s.add_development_dependency 'simplecov', '~> 0.13.0' | ||
s.add_development_dependency 'codeclimate-test-reporter', '~> 0.6' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module ELFTools | ||
VERSION = '0.0.0'.freeze | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
require 'codeclimate-test-reporter' | ||
require 'simplecov' | ||
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new( | ||
[SimpleCov::Formatter::HTMLFormatter, CodeClimate::TestReporter::Formatter] | ||
) | ||
SimpleCov.start do | ||
add_filter '/spec/' | ||
end |