kryptos 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 142fc66be80d6e4a602c0478ca358379c56e2b9b
4
- data.tar.gz: de4806b2f1035b65a1090e6c82b4b41e7fa4dbbe
3
+ metadata.gz: 5a2b2b272713f82125924486f93a94e36e0cd2dd
4
+ data.tar.gz: 66be45918e3db92bd09a72160fd2e8d2ab37184e
5
5
  SHA512:
6
- metadata.gz: b9b6cb688dd09e6a06bd24c1e84a4d5d8559406067f8250a743ec49262c7ffde51c39e239e163fab6a072c32ab2ef61cfc7ffc3a223cc0ca3269802e6d34583e
7
- data.tar.gz: b7504adfff38e829d45407709b0d67c5846c755aeb8de31ee3085a0f918a0f26b322995fb174d3a71fb11d6177d3d85e7d6596a026fa800b530e3a2d17121e7a
6
+ metadata.gz: d3c52bcccbf940228da701995790f988638a8ecd03844927e340f7a152186305a2c986cb2da5f46f513a40f401e3deb703e8f4fddbad9e6fb88606b4aa84fc5d
7
+ data.tar.gz: 2df488e449f9296359879cbc4ce33a8a85c61977baa56fee516f8bb8fc755bfdf3f6ec5f470bbdbfa12e4bda989c717681757ebe56b9f1b8df6dccb95226e8c6
data/README.md CHANGED
@@ -50,3 +50,8 @@ Fire up the console again. You should be able to access the config data:
50
50
  > Rails.application.secrets.sample_api_key
51
51
  => "DUMMY"
52
52
 
53
+ The krytos gem comes with a capistrano task to simplify deploying the key file.
54
+ Add this line to your Capfile:
55
+
56
+ require 'kryptos/capistrano'
57
+
@@ -0,0 +1,14 @@
1
+ namespace :kryptos do
2
+
3
+ desc 'Deploy key file for kryptos'
4
+ task :deploy_key do
5
+ on roles(:app) do
6
+ puts "#{fetch(:deploy_to)}/config/kryptos.key"
7
+ upload! 'config/kryptos.key', "#{fetch(:release_path)}/config/kryptos.key"
8
+ end
9
+ end
10
+
11
+
12
+ after "deploy:updating", "kryptos:deploy_key"
13
+
14
+ end
@@ -1,3 +1,3 @@
1
1
  module Kryptos
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kryptos
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - wlipa
@@ -39,6 +39,7 @@ files:
39
39
  - Rakefile
40
40
  - kryptos.gemspec
41
41
  - lib/kryptos.rb
42
+ - lib/kryptos/capistrano.rb
42
43
  - lib/kryptos/secret.rb
43
44
  - lib/kryptos/version.rb
44
45
  homepage: ''