Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
david942j committed Mar 12, 2017
1 parent e574cfb commit 67ba252
Show file tree
Hide file tree
Showing 10 changed files with 148 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.gem
/coverage/
19 changes: 19 additions & 0 deletions .rubocop.yml
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

17 changes: 17 additions & 0 deletions .travis.yml
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
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'

gemspec
59 changes: 59 additions & 0 deletions Gemfile.lock
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
Empty file added README.md
Empty file.
13 changes: 13 additions & 0 deletions Rakefile
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
24 changes: 24 additions & 0 deletions elftools.gemspec
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
3 changes: 3 additions & 0 deletions lib/elftools/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module ELFTools
VERSION = '0.0.0'.freeze
end
8 changes: 8 additions & 0 deletions spec/spec_helper.rb
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

0 comments on commit 67ba252

Please sign in to comment.