enveloperb 0.1.2 → 0.1.5.4.g10f5d39

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,12 +6,12 @@ edition = "2021"
6
6
  [dependencies]
7
7
  enveloper = { git = "https://github.com/cipherstash/enveloper", branch = "main" }
8
8
  lazy_static = "^0.2.2"
9
- rutie = "0.8.4"
9
+ rb-sys = "0.8.0"
10
+ rutie = { git = "https://github.com/mpalmer/rutie", branch = "rb_sys" }
10
11
  tokio = { version = "^1.17.0", features = [ "rt-multi-thread" ] }
11
12
  aws-config = "0.10.1"
12
13
  aws-sdk-kms = "0.10.1"
13
14
  aws-types = { version = "0.10.1", features = [ "hardcoded-credentials" ] }
14
15
 
15
16
  [lib]
16
- name = "enveloperb"
17
17
  crate-type = ["cdylib"]
@@ -0,0 +1,4 @@
1
+ require "mkmf"
2
+ require "rb_sys/mkmf"
3
+
4
+ create_rust_makefile("enveloperb/enveloperb")
File without changes
data/lib/enveloperb.rb CHANGED
@@ -1,7 +1,15 @@
1
- require "rutie"
2
-
3
1
  module Enveloperb
4
- Rutie.new(:enveloperb).init 'Init_enveloperb', __dir__
2
+ end
3
+
4
+ begin
5
+ RUBY_VERSION =~ /(\d+\.\d+)/
6
+ require_relative "./#{RUBY_VERSION}/enveloperb"
7
+ rescue LoadError
8
+ begin
9
+ require_relative "./enveloperb.#{RbConfig::CONFIG["DLEXT"]}"
10
+ rescue LoadError
11
+ raise LoadError, "Failed to load enveloperb.#{RbConfig::CONFIG["DLEXT"]}; either it hasn't been built, or was built incorrectly for your system"
12
+ end
5
13
  end
6
14
 
7
15
  require_relative "./enveloperb/encrypted_record"
metadata CHANGED
@@ -1,31 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enveloperb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.5.4.g10f5d39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Palmer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-29 00:00:00.000000000 Z
11
+ date: 2022-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rutie
14
+ name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.0.4
20
- type: :runtime
19
+ version: '0'
20
+ type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.0.4
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
28
+ name: github-release
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: gem-compiler
42
+ name: guard-rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,53 +53,47 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: github-release
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '13.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '13.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: guard-rspec
70
+ name: rake-compiler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '1.2'
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'
82
+ version: '1.2'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rake
84
+ name: rake-compiler-dock
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '10.4'
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- version: 10.4.2
89
+ version: '1.2'
93
90
  type: :development
94
91
  prerelease: false
95
92
  version_requirements: !ruby/object:Gem::Requirement
96
93
  requirements:
97
94
  - - "~>"
98
95
  - !ruby/object:Gem::Version
99
- version: '10.4'
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: 10.4.2
96
+ version: '1.2'
103
97
  - !ruby/object:Gem::Dependency
104
98
  name: rb-inotify
105
99
  requirement: !ruby/object:Gem::Requirement
@@ -114,6 +108,20 @@ dependencies:
114
108
  - - "~>"
115
109
  - !ruby/object:Gem::Version
116
110
  version: '0.9'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rb_sys
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.1'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.1'
117
125
  - !ruby/object:Gem::Dependency
118
126
  name: redcarpet
119
127
  requirement: !ruby/object:Gem::Requirement
@@ -175,21 +183,23 @@ email:
175
183
  - matt@cipherstash.com
176
184
  executables: []
177
185
  extensions:
178
- - ext/Rakefile
186
+ - ext/enveloperb/extconf.rb
179
187
  extra_rdoc_files: []
180
188
  files:
181
189
  - CODE_OF_CONDUCT.md
182
190
  - CONTRIBUTING.md
183
- - Cargo.toml
184
191
  - LICENCE
185
192
  - README.md
186
193
  - enveloperb.gemspec
187
- - ext/Rakefile
194
+ - ext/enveloperb/.gitignore
195
+ - ext/enveloperb/Cargo.lock
196
+ - ext/enveloperb/Cargo.toml
197
+ - ext/enveloperb/extconf.rb
198
+ - ext/enveloperb/src/lib.rs
188
199
  - lib/enveloperb.rb
189
200
  - lib/enveloperb/awskms.rb
190
201
  - lib/enveloperb/encrypted_record.rb
191
202
  - lib/enveloperb/simple.rb
192
- - src/lib.rs
193
203
  homepage: https://github.com/cipherstash/enveloperb
194
204
  licenses: []
195
205
  metadata: {}
@@ -204,9 +214,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
204
214
  version: 2.7.0
205
215
  required_rubygems_version: !ruby/object:Gem::Requirement
206
216
  requirements:
207
- - - ">="
217
+ - - ">"
208
218
  - !ruby/object:Gem::Version
209
- version: '0'
219
+ version: 1.3.1
210
220
  requirements: []
211
221
  rubygems_version: 3.1.6
212
222
  signing_key:
data/ext/Rakefile DELETED
@@ -1,5 +0,0 @@
1
- task :build do
2
- sh "cargo build --release"
3
- end
4
-
5
- task default: :build