encryptatron 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0df17cc658773d7c73978f7c2e64e5f18bcc4b3f
4
- data.tar.gz: f4289b74d7d492cfc7784a13616f58e11c9d0c2a
2
+ SHA256:
3
+ metadata.gz: 04c41bdacaf99969e34f49d0f564d6121403b98d9711073876ff5d54c9d8c242
4
+ data.tar.gz: 357c028f977374e124556d0d4d7b42cb55a2a4067ac5cf4ab45f8642d739a603
5
5
  SHA512:
6
- metadata.gz: 37e22dceb61ec29a64890e0a28e432664e9394e2338cd38b526ee33bcecfcfd437ab30c12ab6e394dd85844c21907b479cea511619d0278e9acc812e469bbaad
7
- data.tar.gz: dc68666d0f59484fd1268e36c3bc235ad9a2ec9457e657cc0e1b01995c262290f4cd1023eedbd3638abe7d01902e7d77528d4c705d3ba48e91085b8bbd88159c
6
+ metadata.gz: 8d9694f68f41e900a176d5410edbaab3516af0bba100df77aa7b56155e2869b3a38240fbde2585a39946ee16b7d8b12e549fcb8c6c41b854d4836c0532c73f3e
7
+ data.tar.gz: 1c19af2bb1ce1551bb256c9aff6441b5fd0f9c243e4edacf3dbb09e0454ad23a8902a051975c86762e4598e4740d7c203bf57a9b14ea4d66e5c36738232d0256
data/.gitignore CHANGED
@@ -6,7 +6,7 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
-
9
+ .idea/
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
12
  .env
@@ -0,0 +1,11 @@
1
+ sudo: false
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.3.5
6
+ before_install: gem install bundler -v 1.16.1
7
+ language: ruby
8
+ env:
9
+ - TEST_COMMAND="bundle exec rspec"
10
+ - TEST_COMMAND="bundle exec rubocop"
11
+ script: (eval "$TEST_COMMAND")
data/.version CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- encryptatron (1.0.0)
4
+ encryptatron (1.0.1)
5
5
  configatron (> 2)
6
6
  deep_merge (> 1)
7
7
  dotenv (> 1)
@@ -24,7 +24,7 @@ GEM
24
24
  coderay (~> 1.1.0)
25
25
  method_source (~> 0.9.0)
26
26
  rainbow (3.0.0)
27
- rake (10.5.0)
27
+ rake (13.0.1)
28
28
  rspec (3.7.0)
29
29
  rspec-core (~> 3.7.0)
30
30
  rspec-expectations (~> 3.7.0)
@@ -55,9 +55,9 @@ DEPENDENCIES
55
55
  bundler (~> 1.16)
56
56
  encryptatron!
57
57
  pry (> 0)
58
- rake (~> 10.0)
58
+ rake (~> 13.0)
59
59
  rspec (~> 3.0)
60
60
  rubocop (~> 0.56)
61
61
 
62
62
  BUNDLED WITH
63
- 1.16.1
63
+ 1.17.2
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2018, GovDelivery
1
+ Copyright (c) 2019, Granicus
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
@@ -11,7 +11,7 @@ modification, are permitted provided that the following conditions are met:
11
11
  this list of conditions and the following disclaimer in the documentation
12
12
  and/or other materials provided with the distribution.
13
13
 
14
- * Neither the name of GovDelivery nor the names of its
14
+ * Neither the name of Granicus nor the names of its
15
15
  contributors may be used to endorse or promote products derived from
16
16
  this software without specific prior written permission.
17
17
 
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Used to load encrypted data from disk into configatron.
4
4
 
5
+ [![Build Status](https://travis-ci.org/granicus/encryptatron.svg?branch=master)](https://travis-ci.org/granicus/encryptatron)
6
+
5
7
  ## Installation
6
8
 
7
9
  Add this line to your application's Gemfile:
@@ -33,4 +35,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
33
35
 
34
36
  ## Contributing
35
37
 
36
- Bug reports and pull requests are welcome on GitHub at https://github.com/govdelivery/encryptatron.
38
+ Bug reports and pull requests are welcome on GitHub at https://github.com/granicus/encryptatron.
@@ -6,11 +6,11 @@ require "encryptatron/version"
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "encryptatron"
8
8
  spec.version = Encryptatron::VERSION
9
- spec.authors = ["Alex Ives"]
10
- spec.email = ["alex.ives@granicus.com"]
9
+ spec.authors = ["Team Pigeon"]
10
+ spec.email = ["pigeon@granicus.com"]
11
11
 
12
12
  spec.summary = 'Load and encrypt configuration files for configatron'
13
- spec.homepage = "https://github.com/govdelivery/encryptatron"
13
+ spec.homepage = "https://github.com/granicus/encryptatron"
14
14
 
15
15
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
16
16
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
 
35
35
  spec.add_development_dependency "bundler", "~> 1.16"
36
36
  spec.add_development_dependency "pry", ">0"
37
- spec.add_development_dependency "rake", "~> 10.0"
37
+ spec.add_development_dependency "rake", "~> 13.0"
38
38
  spec.add_development_dependency "rspec", "~> 3.0"
39
39
  spec.add_development_dependency "rubocop", "~>0.56"
40
40
  end
@@ -31,7 +31,7 @@ module Encryptatron
31
31
  new_key = file.encrypt!(key)
32
32
  puts "Generated new encryption key: #{new_key}" unless key
33
33
  elsif action == 'decrypt'
34
- file.load_encrypted(key)
34
+ file.load(key)
35
35
  File.write(file.file, YAML.dump(file.data))
36
36
  end
37
37
  end
@@ -30,6 +30,7 @@ module Encryptatron
30
30
  end
31
31
 
32
32
  def load_encrypted(encoded_key)
33
+ raise 'Encryption key is nil, you may need to set the ENCRYPTATRON_KEY environment variable' unless encoded_key
33
34
  key = Base64.decode64(encoded_key)
34
35
  decipher = OpenSSL::Cipher::AES.new(256, :CBC)
35
36
  decipher.decrypt
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: encryptatron
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
- - Alex Ives
8
- autorequire:
7
+ - Team Pigeon
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-30 00:00:00.000000000 Z
11
+ date: 2020-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: configatron
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
89
+ version: '13.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '10.0'
96
+ version: '13.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -122,9 +122,9 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0.56'
125
- description:
125
+ description:
126
126
  email:
127
- - alex.ives@granicus.com
127
+ - pigeon@granicus.com
128
128
  executables:
129
129
  - encryptatron
130
130
  extensions: []
@@ -134,6 +134,7 @@ files:
134
134
  - ".rspec"
135
135
  - ".rubocop.yml"
136
136
  - ".ruby-version"
137
+ - ".travis.yml"
137
138
  - ".version"
138
139
  - Gemfile
139
140
  - Gemfile.lock
@@ -148,11 +149,11 @@ files:
148
149
  - lib/encryptatron/cli.rb
149
150
  - lib/encryptatron/file.rb
150
151
  - lib/encryptatron/version.rb
151
- homepage: https://github.com/govdelivery/encryptatron
152
+ homepage: https://github.com/granicus/encryptatron
152
153
  licenses: []
153
154
  metadata:
154
155
  allowed_push_host: https://rubygems.org
155
- post_install_message:
156
+ post_install_message:
156
157
  rdoc_options: []
157
158
  require_paths:
158
159
  - lib
@@ -167,9 +168,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
168
  - !ruby/object:Gem::Version
168
169
  version: '0'
169
170
  requirements: []
170
- rubyforge_project:
171
- rubygems_version: 2.5.2.1
172
- signing_key:
171
+ rubygems_version: 3.1.4
172
+ signing_key:
173
173
  specification_version: 4
174
174
  summary: Load and encrypt configuration files for configatron
175
175
  test_files: []