strongboxio 0.2.0 → 0.2.1

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.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ /Gemfile.lock
1
2
  *.swp
2
3
  *.gem
3
4
  /.rvmrc
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2012 Aric Batkovic
1
+ Copyright (c) 2012 Alex Batko
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of
4
4
  this software and associated documentation files (the "Software"), to deal in
data/Rakefile CHANGED
@@ -1,6 +1,4 @@
1
- lib = File.expand_path('../lib/', __FILE__)
2
- $:.unshift lib unless $:.include?(lib)
3
- require 'strongboxio/version'
1
+ require 'bundler/gem_tasks'
4
2
 
5
3
  require 'rake/testtask'
6
4
 
@@ -9,15 +7,5 @@ Rake::TestTask.new do |t|
9
7
  end
10
8
 
11
9
  desc 'Run tests'
12
- task :default => :test
13
-
14
- desc 'Build gem'
15
- task :build do
16
- system 'gem build strongboxio.gemspec'
17
- end
18
-
19
- desc 'Release gem'
20
- task :release => :build do
21
- system "gem push strongboxio-#{Strongboxio::VERSION}.gem"
22
- end
10
+ task default: :test
23
11
 
data/bin/strongbox.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require 'rubygems' if defined?RUBY_VERSION && RUBY_VERSION =~ /^1.8/ # for requiring gem dependency in Ruby 1.8
4
4
  require 'highline/import' # ask
5
5
  require 'strongboxio'
6
+ #require './lib/strongboxio.rb'
6
7
 
7
8
  def get_filename(filename=ARGV[0])
8
9
  if filename.nil?
data/lib/strongboxio.rb CHANGED
@@ -51,7 +51,7 @@ class Strongboxio
51
51
  d = OpenSSL::Cipher.new(CIPHER)
52
52
  d.decrypt
53
53
  d.key = key
54
- d.iv = iv
54
+ d.iv = iv
55
55
 
56
56
  # decrypt the portion beyond the header
57
57
  begin
@@ -133,7 +133,7 @@ class Strongboxio
133
133
  @sbox['PayloadData'][sbe_index]['CT'] = sbe_ct if sbe_ct.length > 0
134
134
 
135
135
  sbe_ac = strongbox_entity.attr('AC') # accessCount
136
- @sbox['PayloadData'][sbe_index]['AC'] = sbe_ac if sbe_ac.length > 0
136
+ @sbox['PayloadData'][sbe_index]['AC'] = sbe_ac if defined?sbe_ac && sbe_ac.length > 0
137
137
 
138
138
  sbe_name = strongbox_entity.xpath('N').text
139
139
  @sbox['PayloadData'][sbe_index]['N'] = sbe_name if sbe_name.length > 0
@@ -198,3 +198,4 @@ end
198
198
  # self.length % 4 == 0 && self =~ /^[A-Za-z0-9+\/=]+\Z/
199
199
  # end
200
200
  #end
201
+
@@ -1,4 +1,4 @@
1
1
  class Strongboxio
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongboxio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-03 00:00:00.000000000Z
12
+ date: 2013-01-11 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &2153457760 !ruby/object:Gem::Requirement
16
+ requirement: &2157592420 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153457760
24
+ version_requirements: *2157592420
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: highline
27
- requirement: &2153457340 !ruby/object:Gem::Requirement
27
+ requirement: &2157591540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2153457340
35
+ version_requirements: *2157591540
36
36
  description: Decrypt and read www.Strongbox.io files. This is a combination gem and
37
37
  command-line utility.
38
38
  email: