cryptic 1.0.0.beta.9 → 1.0.0.beta.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,7 +27,7 @@ module Cryptic
27
27
  def initialize(private_key, opts = { public_key: nil, passphrase: nil })
28
28
  if private_key.is_a? OpenSSL::PKey::RSA
29
29
  @private_key = private_key
30
- elsif !private_key.to_pem.eql? ''
30
+ elsif !private_key.to_s.eql?('')
31
31
  @private_key = OpenSSL::PKey::RSA.new(
32
32
  if File.exists?(private_key)
33
33
  File.read(private_key)
@@ -53,8 +53,6 @@ module Cryptic
53
53
  elsif opts[:public_key]
54
54
  opts[:public_key]
55
55
  else
56
- require 'pry'
57
- binding.pry
58
56
  @private_key or raise(Cryptic::KeyNotFound)
59
57
  end,
60
58
  opts[:passphrase]
@@ -1,4 +1,4 @@
1
1
  module Cryptic
2
2
  # The version of the cryptic gem
3
- VERSION = '1.0.0.beta.9'
3
+ VERSION = '1.0.0.beta.10'
4
4
  end
data/spec/keypair_spec.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'cryptic/keypair'
2
2
 
3
+ # TODO: Update tests to work
3
4
  describe Cryptic::Keypair do
4
5
  let :private_keys do
5
6
  keys = [
metadata CHANGED
@@ -1,74 +1,84 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.9
4
+ version: 1.0.0.beta.10
5
+ prerelease: 6
5
6
  platform: ruby
6
7
  authors:
7
8
  - Erran Carey
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-07-09 00:00:00.000000000 Z
12
+ date: 2013-07-10 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: colorize
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: redcarpet
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: thor
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: yard
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
- - - '>='
67
+ - - ! '>='
60
68
  - !ruby/object:Gem::Version
61
69
  version: '0'
62
70
  type: :runtime
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
- - - '>='
75
+ - - ! '>='
67
76
  - !ruby/object:Gem::Version
68
77
  version: '0'
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: bundler
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ~>
74
84
  - !ruby/object:Gem::Version
@@ -76,6 +86,7 @@ dependencies:
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ~>
81
92
  - !ruby/object:Gem::Version
@@ -83,29 +94,33 @@ dependencies:
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: rake
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
- - - '>='
99
+ - - ! '>='
88
100
  - !ruby/object:Gem::Version
89
101
  version: '0'
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
- - - '>='
107
+ - - ! '>='
95
108
  - !ruby/object:Gem::Version
96
109
  version: '0'
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: rspec
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
- - - '>='
115
+ - - ! '>='
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
- - - '>='
123
+ - - ! '>='
109
124
  - !ruby/object:Gem::Version
110
125
  version: '0'
111
126
  description: A gem to encrypt data using public keys.
@@ -146,26 +161,30 @@ files:
146
161
  homepage: https://github.com/ipwnstuff/cryptic
147
162
  licenses:
148
163
  - MIT
149
- metadata: {}
150
164
  post_install_message:
151
165
  rdoc_options: []
152
166
  require_paths:
153
167
  - lib
154
168
  required_ruby_version: !ruby/object:Gem::Requirement
169
+ none: false
155
170
  requirements:
156
- - - '>='
171
+ - - ! '>='
157
172
  - !ruby/object:Gem::Version
158
173
  version: '0'
174
+ segments:
175
+ - 0
176
+ hash: -1850158767966332657
159
177
  required_rubygems_version: !ruby/object:Gem::Requirement
178
+ none: false
160
179
  requirements:
161
- - - '>'
180
+ - - ! '>'
162
181
  - !ruby/object:Gem::Version
163
182
  version: 1.3.1
164
183
  requirements: []
165
184
  rubyforge_project:
166
- rubygems_version: 2.0.3
185
+ rubygems_version: 1.8.25
167
186
  signing_key:
168
- specification_version: 4
187
+ specification_version: 3
169
188
  summary: A quick way to encrypt data using public keys. Only people with the private
170
189
  key can decrypt said data.
171
190
  test_files:
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: e35bfdebfe81ab3a5f56618ad5a231e1f1db4e7d
4
- data.tar.gz: 980067e2811eef4752ff7964ded44bbe546a59f4
5
- SHA512:
6
- metadata.gz: a58727274617570b059f332d843236dd5c37aeb4397c2d48979e40357a07468b9beede0a5e6f8c47c1adb9e082a4f76f10c647d425fdc66983edc8b45b0b09c1
7
- data.tar.gz: e99ecbd7df5eb8461512e93bfbed18434257284f0a457b0695678ade19b20533f6baf90dbb34ef43a7ff840262e3ba4f7a1a4e84c68ce58223143ec5e311c82c