crossing 0.1.9 → 0.1.10

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: c19a1726648934547e9686d0348233e42789c8a85cd103e05f7363dc93cdf31f
4
+ data.tar.gz: 2ebc40102f2a60de2e228bdd2ac7ed61f886444bc348bba24761a95a8ed77682
5
5
  SHA512:
6
- metadata.gz: 862c7980df6ba43a5e693fba583a2e67b8f36f43a8cdc1c9557e8e4366c78210fb5b021220e4fb83d7acf8bb44e0994a0b1b9093283c837d09ecd1bd1f563947
7
- data.tar.gz: 98fb1a6158c3f82319e68f83574dcbdcb3b293fcc299eaf27be23d6a73d02f5ae6a25eaf670ec2ce7391de367c09bc45ea74fc40c683199fe99bc574ee929f3b
6
+ metadata.gz: dc3e9a5cbe12f567b2af2606d2dfb6daa843198534e2f81bf6fb499641f99f8cc13348a0af33433a6dea07bf0d640e1d314512e35ac7f5ed97090db1c35355a3
7
+ data.tar.gz: 1ba35fd70007dc6bd401a4ebabc3196573e90e257b58dfd03a3781a8c430c3343b9c36de2465d746a69d601e8eb2e60a94044d9b98382643ec763a75b3ab5ab0
@@ -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.1.10
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