cryptatron 0.0.8 → 0.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 ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZjYwNGUwOGMyYTdmNGI3MDFjZmFkNzdkZDYxMzE1ZWQxMDliZTEyYw==
5
+ data.tar.gz: !binary |-
6
+ ZGVmNzcyYjBjN2YzM2Q4ZjVkYzI2ZDg3NjlkY2VjZTdmYWI5OTlkNQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ODQ1ZWYzNWQxMjI2MGE5YmYyZDYxYmY4MDBjNTEyNzI1OTcwMmNlNTIzOWQ5
10
+ MDcwMTE1NDhiZjYxMjc4M2QyMGI1NmU3ZTUyYjM5NGUyZDUyNGI4ZTBlZGE1
11
+ MzhhNDRiMDNiMDIxNDYyOWU2MzY3NmM2ZDgwOTI0ODFlODAzZmE=
12
+ data.tar.gz: !binary |-
13
+ OTE3YjMwMWYwNjAzZGU2ZDQ2YmI0N2EzMjljYjk0OWY5NjIxZjI1MzE5YmIy
14
+ ZmQzYzg3M2QyM2FkYTYzZWRkNmY1YmU5MTQ5NDI3MzllNjY4MGE1Nzk4ZTA3
15
+ MjIzYzg4MjNmYWViY2ExNTY4ZGE1YzEzOThmY2VmY2VkN2JmMzA=
data/cryptatron.gemspec CHANGED
@@ -5,8 +5,8 @@ require 'cryptatron/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'cryptatron'
7
7
  spec.version = Cryptatron::VERSION
8
- spec.authors = ['Alex Reed', 'Gabriel Kirkpatrick']
9
- spec.email = ['alexreed@outlook.com', 'g@be-k.biz']
8
+ spec.authors = ['Alex Reed', 'Gabriel Kirkpatrick', 'James Billingham']
9
+ spec.email = ['alexreed@outlook.com', 'g@be-k.biz', 'james@billingham.net']
10
10
  spec.summary = 'Encryption for internal secure requests'
11
11
 
12
12
  spec.files = `git ls-files`.split($/)
data/lib/cryptatron.rb CHANGED
@@ -20,7 +20,7 @@ module Cryptatron
20
20
  body = @cipher.decrypt(body)
21
21
  raise unless body.starts_with?(magic)
22
22
 
23
- return body[magic.length..-1]
23
+ return body[magic.length..-1]
24
24
  rescue
25
25
  nil
26
26
  end
@@ -33,7 +33,7 @@ module Cryptatron
33
33
  def self.setup
34
34
  return if @initialized
35
35
 
36
- settings = YAML::load_file "#{Rails.root}/config/crypt-a-tron.yml"
36
+ settings = YAML.load(ERB.new(File.read("#{Rails.root}/config/crypt-a-tron.yml")).result)
37
37
  @key = Base64.strict_decode64 settings['key']
38
38
  @cipher = Gibberish::AES.new(@key, @key.length * 8)
39
39
 
@@ -1,3 +1,3 @@
1
1
  module Cryptatron
2
- VERSION = '0.0.8'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,21 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptatron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Alex Reed
9
8
  - Gabriel Kirkpatrick
9
+ - James Billingham
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-05-22 00:00:00.000000000 Z
13
+ date: 2014-01-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: gibberish
17
17
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
18
  requirements:
20
19
  - - ! '>='
21
20
  - !ruby/object:Gem::Version
@@ -23,7 +22,6 @@ dependencies:
23
22
  type: :runtime
24
23
  prerelease: false
25
24
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
25
  requirements:
28
26
  - - ! '>='
29
27
  - !ruby/object:Gem::Version
@@ -31,7 +29,6 @@ dependencies:
31
29
  - !ruby/object:Gem::Dependency
32
30
  name: rails
33
31
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
32
  requirements:
36
33
  - - ! '>='
37
34
  - !ruby/object:Gem::Version
@@ -39,7 +36,6 @@ dependencies:
39
36
  type: :runtime
40
37
  prerelease: false
41
38
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
39
  requirements:
44
40
  - - ! '>='
45
41
  - !ruby/object:Gem::Version
@@ -48,6 +44,7 @@ description:
48
44
  email:
49
45
  - alexreed@outlook.com
50
46
  - g@be-k.biz
47
+ - james@billingham.net
51
48
  executables: []
52
49
  extensions: []
53
50
  extra_rdoc_files: []
@@ -60,26 +57,25 @@ files:
60
57
  - lib/cryptatron/version.rb
61
58
  homepage:
62
59
  licenses: []
60
+ metadata: {}
63
61
  post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
67
65
  required_ruby_version: !ruby/object:Gem::Requirement
68
- none: false
69
66
  requirements:
70
67
  - - ! '>='
71
68
  - !ruby/object:Gem::Version
72
69
  version: '0'
73
70
  required_rubygems_version: !ruby/object:Gem::Requirement
74
- none: false
75
71
  requirements:
76
72
  - - ! '>='
77
73
  - !ruby/object:Gem::Version
78
74
  version: '0'
79
75
  requirements: []
80
76
  rubyforge_project:
81
- rubygems_version: 1.8.25
77
+ rubygems_version: 2.0.4
82
78
  signing_key:
83
- specification_version: 3
79
+ specification_version: 4
84
80
  summary: Encryption for internal secure requests
85
81
  test_files: []