Skip to content

Commit

Permalink
do bump 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
david942j committed Oct 2, 2017
1 parent d4de587 commit 32ff447
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ AllCops:
DisplayCopNames: true
DisplayStyleGuide: true

Layout/EndOfLine:
EnforcedStyle: lf

Metrics/AbcSize:
Enabled: false

Expand All @@ -26,8 +29,5 @@ Style/ClassAndModuleCamelCase:
- lib/elftools/structs.rb
- lib/elftools/constants.rb

Style/EndOfLine:
EnforcedStyle: lf

Style/PercentLiteralDelimiters:
Enabled: false
6 changes: 2 additions & 4 deletions spec/elf_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,14 @@

describe 'patches' do
it 'dup' do
out = Tempfile.new('elftools')
out.binmode
out = Tempfile.new('elftools').binmode
@elf.save(out.path)
expect(out.read.force_encoding('ascii-8bit')).to eq IO.binread(@filepath)
out.close
end

it 'patch header' do
out = Tempfile.new('elftools')
out.binmode
out = Tempfile.new('elftools').binmode
# prevent effect other tests
elf = ELFTools::ELFFile.new(File.open(@filepath))
expect(elf.machine).to eq 'Advanced Micro Devices X86-64'
Expand Down

0 comments on commit 32ff447

Please sign in to comment.