crossing 0.1.9 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/crossing.rb +4 -6
  3. metadata +11 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 423ad0ec95550b0f2e781a5266c5ad69baa953f0dc9cfae6050a858de31e74be
4
- data.tar.gz: 83a0831462ccd5280397c75f8ab0c0cd6df0da4d643bdee9a9f5253a9b9f2cb1
3
+ metadata.gz: 95d090265cd05780ed3f928170d8678fde2271bb1a9a36c4eb64d4b874b18421
4
+ data.tar.gz: 67123e5f60a7e5ca309d55fa36961ac6f61ed4b1ef8e92a52c585e022127e142
5
5
  SHA512:
6
- metadata.gz: 862c7980df6ba43a5e693fba583a2e67b8f36f43a8cdc1c9557e8e4366c78210fb5b021220e4fb83d7acf8bb44e0994a0b1b9093283c837d09ecd1bd1f563947
7
- data.tar.gz: 98fb1a6158c3f82319e68f83574dcbdcb3b293fcc299eaf27be23d6a73d02f5ae6a25eaf670ec2ce7391de367c09bc45ea74fc40c683199fe99bc574ee929f3b
6
+ metadata.gz: e17e5d97501f1b4fb7356d8cdca61673c417cc2d189a6c8aef405ab320c1c042071f28db5647181742e307ec84ea15b3a64612f26cae6f3cff262814ee9a81af
7
+ data.tar.gz: 36e3e9ab895de8f36afb8ec083678b196e9970abfe8435b1363e501c77589c022d98b7f8cd40545414bba39306fd801e4b4205e8827ae4428ac158723b296a67
data/lib/crossing.rb CHANGED
@@ -1,15 +1,11 @@
1
- require 'aws-sdk'
2
- # aws-sdk v3 compatibility
3
- begin
4
- require 'aws-sdk-s3'
5
- rescue LoadError # rubocop:disable Lint/HandleExceptions
6
- end
1
+ require 'aws-sdk-s3'
7
2
 
8
3
  # Documentation incoming
9
4
  class Crossing
10
5
  def setup_unencrypted_client(s3_client_encrypted, s3_client_unencrypted)
11
6
  if !s3_client_unencrypted.nil?
12
7
  raise CrossingMisconfigurationException unless s3_client_unencrypted.is_a? Aws::S3::Client
8
+
13
9
  @s3_client_unencrypted = s3_client_unencrypted
14
10
  else
15
11
  # assign regular s3 client
@@ -19,9 +15,11 @@ class Crossing
19
15
 
20
16
  def initialize(s3_client_encrypted, s3_client_unencrypted = nil)
21
17
  raise CrossingMisconfigurationException if s3_client_encrypted.nil?
18
+
22
19
  unless s3_client_encrypted.is_a? Aws::S3::Encryption::Client
23
20
  raise CrossingMisconfigurationException
24
21
  end
22
+
25
23
  @s3_client_encrypted = s3_client_encrypted
26
24
 
27
25
  setup_unencrypted_client s3_client_encrypted, s3_client_unencrypted
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crossing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Ulick
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-05-30 00:00:00.000000000 Z
14
+ date: 2018-12-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: cucumber
@@ -84,33 +84,33 @@ dependencies:
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  - !ruby/object:Gem::Dependency
87
- name: aws-sdk
87
+ name: aws-sdk-s3
88
88
  requirement: !ruby/object:Gem::Requirement
89
89
  requirements:
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
- version: 2.0.0
92
+ version: '0'
93
93
  type: :runtime
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
- version: 2.0.0
99
+ version: '0'
100
100
  - !ruby/object:Gem::Dependency
101
101
  name: trollop
102
102
  requirement: !ruby/object:Gem::Requirement
103
103
  requirements:
104
- - - '='
104
+ - - ">="
105
105
  - !ruby/object:Gem::Version
106
- version: 2.1.2
106
+ version: '0'
107
107
  type: :runtime
108
108
  prerelease: false
109
109
  version_requirements: !ruby/object:Gem::Requirement
110
110
  requirements:
111
- - - '='
111
+ - - ">="
112
112
  - !ruby/object:Gem::Version
113
- version: 2.1.2
113
+ version: '0'
114
114
  description: |2
115
115
  The native AWS command line does not have an easy way to upload encrypted files
116
116
  to S3. The Ruby SDK has a way to do this, but not everyone wants to use it.
@@ -139,7 +139,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - ">="
141
141
  - !ruby/object:Gem::Version
142
- version: '2.2'
142
+ version: '2.5'
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - ">="
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 2.7.6
150
+ rubygems_version: 2.7.7
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Utility for storing objects in S3 while taking advantage of client side envelope