patchelf 0.0.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,6 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module PatchELF
2
4
  # Current gem version.
3
- VERSION = '0.0.0'.freeze
5
+ VERSION = '1.2.0'.freeze
4
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patchelf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - david942j
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-07 00:00:00.000000000 Z
11
+ date: 2020-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: elftools
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '12.3'
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '12.3'
40
+ version: '13.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.16.1
75
+ version: '0.17'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.16.1
82
+ version: '0.17'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: tty-platform
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -122,11 +122,12 @@ files:
122
122
  - bin/patchelf.rb
123
123
  - lib/patchelf.rb
124
124
  - lib/patchelf/cli.rb
125
+ - lib/patchelf/exceptions.rb
125
126
  - lib/patchelf/helper.rb
126
- - lib/patchelf/interval.rb
127
127
  - lib/patchelf/logger.rb
128
128
  - lib/patchelf/mm.rb
129
129
  - lib/patchelf/patcher.rb
130
+ - lib/patchelf/saver.rb
130
131
  - lib/patchelf/version.rb
131
132
  homepage: https://github.com/david942j/patchelf.rb
132
133
  licenses:
@@ -140,15 +141,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
141
  requirements:
141
142
  - - ">="
142
143
  - !ruby/object:Gem::Version
143
- version: 2.1.0
144
+ version: '2.3'
144
145
  required_rubygems_version: !ruby/object:Gem::Requirement
145
146
  requirements:
146
147
  - - ">="
147
148
  - !ruby/object:Gem::Version
148
149
  version: '0'
149
150
  requirements: []
150
- rubyforge_project:
151
- rubygems_version: 2.7.6
151
+ rubygems_version: 3.0.3
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: patchelf
@@ -1,30 +0,0 @@
1
- module PatchELF
2
- # Provides easier-to-use methods for manipulating LOAD segment.
3
- #
4
- # Internal use only.
5
- class Interval
6
- include Comparable
7
-
8
- attr_reader :head # @return [Integer] Head.
9
- attr_reader :size # @return [Integer] Length.
10
-
11
- # @param [Integer] head
12
- # @param [Integer] size
13
- def initialize(head, size)
14
- @head = head
15
- @size = size
16
- end
17
-
18
- # Comparator.
19
- # @param [Interval] other
20
- def <=>(other)
21
- head <=> other.head
22
- end
23
-
24
- # @return [Integer]
25
- # The end of this interval.
26
- def tail
27
- head + size
28
- end
29
- end
30
- end