ohlol-nachos 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3 @@
1
+ conf/*.pem
2
+ conf/*.yml
3
+ conf/*.enc
@@ -14,7 +14,6 @@ EXAMPLE USAGE
14
14
 
15
15
  e = Nachos::Encryptor('password')
16
16
  e.clear_data = 'foo bar baz'
17
- e.secret_data = e.encrypt(e.clear_data)
18
17
  e.save_data
19
18
 
20
19
  ...to load:
@@ -0,0 +1,13 @@
1
+ begin
2
+ require 'jeweler'
3
+ Jeweler::Tasks.new do |gemspec|
4
+ gemspec.name = 'nachos'
5
+ gemspec.summary = 'Nachos is a Ruby library for managing an encrypted data store.'
6
+ gemspec.description = 'Nachos is a Ruby library for managing an encrypted data store.'
7
+ gemspec.email = 'scott@ohlol.net'
8
+ gemspec.homepage = 'http://github.com/ohlol/nachos'
9
+ gemspec.authors = ['Scott Smith']
10
+ end
11
+ rescue LoadError
12
+ puts "Jeweler not available."
13
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.3.1
File without changes
@@ -72,15 +72,14 @@ class Nachos::Encryptor
72
72
  @clear_secret_key = @cipher.random_key
73
73
  @clear_secret_iv = @cipher.random_iv
74
74
 
75
- @secret_key = @keystore.secret_key encrypt(@clear_secret_key)
75
+ @secret_key = @keystore.secret_key = encrypt(@clear_secret_key)
76
76
  @secret_iv = @keystore.secret_iv = encrypt(@clear_secret_iv)
77
77
  @keystore.save_secrets
78
78
  rescue => e
79
- raise Nachos::EncryptorException, "There was a problem generating" +
79
+ raise Nachos::EncryptorException, "There was a problem generating " +
80
80
  "random secret key and/or IV!"
81
81
  end
82
82
  else
83
- p "foo"
84
83
  @secret_key = @keystore.secret_key
85
84
  @secret_iv = @keystore.secret_iv
86
85
  end
@@ -134,7 +133,7 @@ class Nachos::Encryptor
134
133
 
135
134
  def save_data
136
135
  if @encrypted_data.empty?
137
- encrypt
136
+ @encrypted_data = encrypt(@clear_data)
138
137
  end
139
138
 
140
139
  begin
@@ -0,0 +1,41 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{nachos}
5
+ s.version = "0.3.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Scott Smith"]
9
+ s.date = %q{2009-07-16}
10
+ s.description = %q{Nachos is a Ruby library for managing an encrypted data store.}
11
+ s.email = %q{scott@ohlol.net}
12
+ s.extra_rdoc_files = [
13
+ "LICENSE",
14
+ "README.markdown"
15
+ ]
16
+ s.files = [
17
+ ".gitignore",
18
+ "LICENSE",
19
+ "README.markdown",
20
+ "Rakefile",
21
+ "VERSION",
22
+ "conf/.empty",
23
+ "lib/nachos.rb",
24
+ "nachos.gemspec"
25
+ ]
26
+ s.homepage = %q{http://github.com/ohlol/nachos}
27
+ s.rdoc_options = ["--charset=UTF-8"]
28
+ s.require_paths = ["lib"]
29
+ s.rubygems_version = %q{1.3.4}
30
+ s.summary = %q{Nachos is a Ruby library for managing an encrypted data store.}
31
+
32
+ if s.respond_to? :specification_version then
33
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
34
+ s.specification_version = 3
35
+
36
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
37
+ else
38
+ end
39
+ else
40
+ end
41
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohlol-nachos
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.3"
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Smith
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-14 00:00:00 -07:00
12
+ date: 2009-07-16 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -19,19 +19,22 @@ executables: []
19
19
 
20
20
  extensions: []
21
21
 
22
- extra_rdoc_files: []
23
-
22
+ extra_rdoc_files:
23
+ - LICENSE
24
+ - README.markdown
24
25
  files:
26
+ - .gitignore
25
27
  - LICENSE
26
28
  - README.markdown
27
- - conf
28
- - lib
29
+ - Rakefile
30
+ - VERSION
31
+ - conf/.empty
29
32
  - lib/nachos.rb
33
+ - nachos.gemspec
30
34
  has_rdoc: false
31
- homepage: http://github.com/ohlol/nachos"
35
+ homepage: http://github.com/ohlol/nachos
32
36
  post_install_message:
33
37
  rdoc_options:
34
- - --inline-source
35
38
  - --charset=UTF-8
36
39
  require_paths:
37
40
  - lib
@@ -49,10 +52,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
52
  version:
50
53
  requirements: []
51
54
 
52
- rubyforge_project: nachos
55
+ rubyforge_project:
53
56
  rubygems_version: 1.2.0
54
57
  signing_key:
55
- specification_version: 2
58
+ specification_version: 3
56
59
  summary: Nachos is a Ruby library for managing an encrypted data store.
57
60
  test_files: []
58
61