arver 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8ec56c5c57da5c904ede2f834a7a31f11227f89bae92357a7849341dbf00a0b5
4
+ data.tar.gz: 5a8049767274641a034549459e5faab6199210dfd6b66659856bf06207beb2f7
5
+ SHA512:
6
+ metadata.gz: 5ea82ee6e26a0eadb8c87c7ee590eeb7015560eaed5df7faaad07de0cd3d969e39bfd5b60cf67b368e2f52e8b0a8f6b0cff227b7e0226e17a1ad4a3873f4cedc
7
+ data.tar.gz: a1fed0ca7e559246b886a7cfafe9019ffa1e287b5389d9b29a4a5475e458725747cc8122b8cb22da5b531eced4a4f10569c71b7294eee4b48da803587295504a
@@ -1,3 +1,7 @@
1
+ === 0.1.7 2018-09-01
2
+
3
+ * Updated gems to work with 2.5.1
4
+
1
5
  === 0.1.4 2012-07-24
2
6
 
3
7
  * Introducing the --refresh action to renew the luks key. You should always run this command, when receiving a new permission.
@@ -1,4 +1,4 @@
1
- %w{singleton yaml fileutils rubygems active_support/secure_random highline/import gpgme openssl zlib}.each {|f| require f }
1
+ %w{singleton yaml fileutils rubygems active_support highline/import gpgme openssl zlib}.each {|f| require f }
2
2
  $:.unshift(File.dirname(__FILE__)) unless
3
3
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
4
4
 
@@ -1,3 +1,5 @@
1
+ require 'securerandom'
2
+
1
3
  module Arver
2
4
  class KeyGenerator
3
5
  def initialize
@@ -5,7 +7,7 @@ module Arver
5
7
  end
6
8
 
7
9
  def generate_key( partition )
8
- key = ActiveSupport::SecureRandom.base64(192)
10
+ key = SecureRandom.base64(192)
9
11
  @keys[partition] = key
10
12
  end
11
13
 
@@ -1,3 +1,5 @@
1
+ require 'securerandom'
2
+
1
3
  module Arver
2
4
  class KeySaver
3
5
 
@@ -37,6 +39,7 @@ module Arver
37
39
  #compress the key before applying padding, so the size after encryption+compression by gpg is more stable...
38
40
  key = deflate(key)
39
41
  unless GPGKeyManager.check_key_of( user )
42
+ Arver::Log.error( "Error no key for #{user}" )
40
43
  return
41
44
  end
42
45
  gpg_key = GPGKeyManager.key_of( user )
@@ -115,14 +118,14 @@ module Arver
115
118
  end
116
119
 
117
120
  def self.add_padding( key )
118
- marker = "--"+ActiveSupport::SecureRandom.base64( 82 )
121
+ marker = "--"+SecureRandom.base64( 82 )
119
122
  size = 200000
120
123
  padding_size = size - key.size
121
124
  if padding_size <= 0
122
125
  padding_size = 0
123
126
  Arver::Log.warn( "Warning: Your arver keys exceed the maximal padding size, therefore i can no longer disguise how many keys you possess.")
124
127
  end
125
- padding = ActiveSupport::SecureRandom.base64( padding_size )[0..padding_size]
128
+ padding = SecureRandom.base64( padding_size )[0..padding_size]
126
129
  marker +"\n"+ key + "\n" + marker + "\n" + padding
127
130
  end
128
131
 
@@ -1,4 +1,4 @@
1
- require 'active_support/core_ext'
1
+ require 'active_support/all'
2
2
 
3
3
  module Arver
4
4
  module PartitionHierarchyNode
@@ -16,6 +16,7 @@ module TestConfigLoader
16
16
  def load_test_config
17
17
  Arver::LocalConfig.instance.config_dir= "spec/data"
18
18
  Arver::LocalConfig.instance.username= "test"
19
+ Arver::RuntimeConfig.instance.trust_all = true
19
20
  config = Arver::Config.instance
20
21
  config.load
21
22
  end
@@ -1,3 +1,3 @@
1
1
  module Arver
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
5
- prerelease:
4
+ version: 0.1.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - o
@@ -11,74 +10,92 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2012-08-03 00:00:00.000000000Z
13
+ date: 2018-09-01 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: gpgme
18
- requirement: &27298220 !ruby/object:Gem::Requirement
19
- none: false
17
+ requirement: !ruby/object:Gem::Requirement
20
18
  requirements:
21
- - - ! '>='
19
+ - - ">="
22
20
  - !ruby/object:Gem::Version
23
21
  version: 2.0.0
24
22
  type: :runtime
25
23
  prerelease: false
26
- version_requirements: *27298220
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ version: 2.0.0
27
29
  - !ruby/object:Gem::Dependency
28
30
  name: activesupport
29
- requirement: &27297040 !ruby/object:Gem::Requirement
30
- none: false
31
+ requirement: !ruby/object:Gem::Requirement
31
32
  requirements:
32
- - - <
33
+ - - ">="
33
34
  - !ruby/object:Gem::Version
34
- version: 3.0.0
35
+ version: '0'
35
36
  type: :runtime
36
37
  prerelease: false
37
- version_requirements: *27297040
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
38
43
  - !ruby/object:Gem::Dependency
39
44
  name: highline
40
- requirement: &27295900 !ruby/object:Gem::Requirement
41
- none: false
45
+ requirement: !ruby/object:Gem::Requirement
42
46
  requirements:
43
- - - ! '>='
47
+ - - ">="
44
48
  - !ruby/object:Gem::Version
45
49
  version: 1.6.2
46
50
  type: :runtime
47
51
  prerelease: false
48
- version_requirements: *27295900
52
+ version_requirements: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 1.6.2
49
57
  - !ruby/object:Gem::Dependency
50
58
  name: cucumber
51
- requirement: &27295000 !ruby/object:Gem::Requirement
52
- none: false
59
+ requirement: !ruby/object:Gem::Requirement
53
60
  requirements:
54
- - - ! '>='
61
+ - - ">="
55
62
  - !ruby/object:Gem::Version
56
63
  version: 0.10.2
57
64
  type: :development
58
65
  prerelease: false
59
- version_requirements: *27295000
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 0.10.2
60
71
  - !ruby/object:Gem::Dependency
61
72
  name: rspec
62
- requirement: &27290220 !ruby/object:Gem::Requirement
63
- none: false
73
+ requirement: !ruby/object:Gem::Requirement
64
74
  requirements:
65
- - - ! '>='
75
+ - - ">="
66
76
  - !ruby/object:Gem::Version
67
77
  version: 2.5.0
68
78
  type: :development
69
79
  prerelease: false
70
- version_requirements: *27290220
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 2.5.0
71
85
  - !ruby/object:Gem::Dependency
72
86
  name: rake
73
- requirement: &27288840 !ruby/object:Gem::Requirement
74
- none: false
87
+ requirement: !ruby/object:Gem::Requirement
75
88
  requirements:
76
- - - ! '>='
89
+ - - ">="
77
90
  - !ruby/object:Gem::Version
78
91
  version: 0.9.2
79
92
  type: :development
80
93
  prerelease: false
81
- version_requirements: *27288840
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: 0.9.2
82
99
  description: Arver helps you to manage a large amount of crypted devices easily and
83
100
  safe amongst a certain amount of members
84
101
  email: arver@lists.immerda.ch
@@ -87,6 +104,9 @@ executables:
87
104
  extensions: []
88
105
  extra_rdoc_files: []
89
106
  files:
107
+ - CHANGELOG.textile
108
+ - README.textile
109
+ - bin/arver
90
110
  - lib/arver.rb
91
111
  - lib/arver/action.rb
92
112
  - lib/arver/adduser_action.rb
@@ -126,35 +146,28 @@ files:
126
146
  - lib/arver/test_partition.rb
127
147
  - lib/arver/tree.rb
128
148
  - lib/arver/version.rb
129
- - README.textile
130
- - CHANGELOG.textile
131
149
  - man/arver.5
132
- - bin/arver
133
150
  homepage: https://github.com/arver/arver
134
151
  licenses: []
152
+ metadata: {}
135
153
  post_install_message:
136
154
  rdoc_options: []
137
155
  require_paths:
138
156
  - lib
139
157
  required_ruby_version: !ruby/object:Gem::Requirement
140
- none: false
141
158
  requirements:
142
- - - ! '>='
159
+ - - ">="
143
160
  - !ruby/object:Gem::Version
144
161
  version: '0'
145
- segments:
146
- - 0
147
- hash: 1467718207299558599
148
162
  required_rubygems_version: !ruby/object:Gem::Requirement
149
- none: false
150
163
  requirements:
151
- - - ! '>='
164
+ - - ">="
152
165
  - !ruby/object:Gem::Version
153
166
  version: 1.3.6
154
167
  requirements: []
155
- rubyforge_project: ! '[none]'
156
- rubygems_version: 1.8.6
168
+ rubyforge_project: "[none]"
169
+ rubygems_version: 2.7.6
157
170
  signing_key:
158
- specification_version: 3
171
+ specification_version: 4
159
172
  summary: Open crypted devices automatically
160
173
  test_files: []