reedb 0.10.rc1 → 0.11

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/tests/tests.rb CHANGED
@@ -1,64 +1,12 @@
1
+ require 'base64'
1
2
 
2
- # user_pw = "1234567890123"
3
+ path = '/home/spacekookie/Desktop/file.txt'
4
+ data = 'wmkDuSa9OrV17aXZ0o0v+A==$bCZbwv8LccapjKxkuSADPxGBNA0nhw5wjXA+thUNer2ENrliYnY2A+aHhVdXJbli'
3
5
 
4
- # Reedb.init(:unix, 12) # => defines OS and minimal password length on vault
5
- # path = File.expand_path('~/Desktop/reedb')
6
+ puts 'YES!'
6
7
 
7
- # # Default encryption is set to 'aes'
8
- # begin
9
- # Reedb.vault('default', "#{path}", :aes).load(user_pw)
10
- # rescue VaultDoesNotExistError, VaultExistsAtLocationError => e
11
- # puts e.message
12
- # puts "If you think this is a bug, please report it <3"
13
- # # exit
14
- # end
8
+ File.write(path, Base64.encode64(data))
15
9
 
16
- # data = {
17
- # 'body'=>{
18
- # 'password'=>'mega_secure_password',
19
- # 'username'=>'spacekookie'
20
- # }
21
- # }
10
+ after = Base64.decode64(File.read(path))
22
11
 
23
- # data2 = {
24
- # 'body'=>{
25
- # 'password'=>'less_secure',
26
- # }
27
- # }
28
-
29
- # Reedb.active_vaults['default'].insert('Peter pan', data)
30
-
31
- # begin
32
- # puts Reedb.active_vaults['default'].read_file('Peter pan')
33
- # rescue
34
- # puts "This error was handled: could not read!"
35
- # end
36
-
37
-
38
- # begin
39
- # Reedb.active_vaults['default'].remove_file('Peter pan')
40
- # rescue
41
- # puts "This error was handled: could not remove!"
42
- # end
43
-
44
-
45
-
46
- # begin
47
- # Reedb.vault(name='default', "#{path}", :aes).secure_config(true).create(user_pw)
48
-
49
- # sample_data = {}
50
- # sample_data['header'] = {}
51
- # sample_data['header']['name'] = "Sample"
52
- # sample_data['header']['category'] = "Unsorted"
53
- # sample_data['body'] = {}
54
- # sample_data['body']['username'] = "spacekookie"
55
- # sample_data['body']['password'] = 'the_flying_unicorn_shits_rainbows'
56
-
57
- # Reedb.active_vaults['default'].insert('Sample', sample_data)
58
-
59
- # rescue
60
- # puts "Error occured opening your vault. Does it exist?"
61
- # end
62
-
63
- # puts Reedb.active_vaults['default'].read_file('Peter Pan')
64
- # Reedb.active_vaults['default'].close
12
+ puts data == after
@@ -0,0 +1,80 @@
1
+ # Generated from aes-0.5.0.gem by gem2rpm -*- rpm-spec -*-
2
+ %global gem_name aes
3
+
4
+ Name: rubygem-%{gem_name}
5
+ Version: 0.5.0
6
+ Release: 1%{?dist}
7
+ Summary: An AES encrypt/decrypt gem built ontop of OpenSSL.
8
+ Group: Development/Languages
9
+ License: MIT
10
+ URL: http://github.com/chicks/aes
11
+ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
12
+ BuildRequires: ruby(release)
13
+ BuildRequires: rubygems-devel
14
+ BuildRequires: ruby
15
+ # BuildRequires: rubygem(shoulda)
16
+ # BuildRequires: rubygem(jeweler)
17
+ # BuildRequires: rubygem(simplecov)
18
+ BuildArch: noarch
19
+
20
+ %description
21
+ An AES encrypt/decrypt gem built ontop of OpenSSL. Not as quick as FastAES, but it doesn't require building native extensions and supports Base64 encoded input and output.
22
+
23
+ %package doc
24
+ Summary: Documentation for %{name}
25
+ Group: Documentation
26
+ Requires: %{name} = %{version}-%{release}
27
+ BuildArch: noarch
28
+
29
+ %description doc
30
+ Documentation for %{name}.
31
+
32
+ %prep
33
+ gem unpack %{SOURCE0}
34
+
35
+ %setup -q -D -T -n %{gem_name}-%{version}
36
+
37
+ gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
38
+
39
+ %build
40
+ # Create the gem as gem install only works on a gem file
41
+ gem build %{gem_name}.gemspec
42
+
43
+ # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
44
+ # by default, so that we can move it into the buildroot in %%install
45
+ %gem_install
46
+
47
+ %install
48
+ mkdir -p %{buildroot}%{gem_dir}
49
+ cp -a .%{gem_dir}/* \
50
+ %{buildroot}%{gem_dir}/
51
+
52
+
53
+
54
+
55
+ # Run the test suite
56
+ %check
57
+ pushd .%{gem_instdir}
58
+
59
+ popd
60
+
61
+ %files
62
+ %dir %{gem_instdir}
63
+ %license %{gem_instdir}/LICENSE.txt
64
+ %{gem_instdir}/VERSION
65
+ %{gem_libdir}
66
+ %exclude %{gem_cache}
67
+ %{gem_spec}
68
+
69
+ %files doc
70
+ %doc %{gem_docdir}
71
+ %doc %{gem_instdir}/.document
72
+ %{gem_instdir}/Gemfile
73
+ %doc %{gem_instdir}/README.rdoc
74
+ %{gem_instdir}/Rakefile
75
+ %{gem_instdir}/aes.gemspec
76
+ %{gem_instdir}/test
77
+
78
+ %changelog
79
+ * Thu May 21 2015 Katharina 'spacekookie' Sabel <sabel.katharina@gmail.com> - 0.5.0-1
80
+ - Initial package
@@ -0,0 +1,85 @@
1
+ # Generated from digest-tiger-1.0.2.gem by gem2rpm -*- rpm-spec -*-
2
+ %global gem_name digest-tiger
3
+
4
+ Name: rubygem-%{gem_name}
5
+ Version: 1.0.2
6
+ Release: 1%{?dist}
7
+ Summary: A Digest module implementing the Tiger hashing algorithm
8
+ Group: Development/Languages
9
+ License: BSD
10
+ URL: https://github.com/knu/ruby-digest-extra
11
+ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
12
+ BuildRequires: ruby(release)
13
+ BuildRequires: rubygems-devel
14
+ BuildRequires: ruby-devel
15
+
16
+ %description
17
+ This is a Digest module implementing the Tiger hashing algorithm.
18
+ The size of a Tiger hash value is 192 bits.
19
+
20
+
21
+ %package doc
22
+ Summary: Documentation for %{name}
23
+ Group: Documentation
24
+ Requires: %{name} = %{version}-%{release}
25
+ BuildArch: noarch
26
+
27
+ %description doc
28
+ Documentation for %{name}.
29
+
30
+ %prep
31
+ gem unpack %{SOURCE0}
32
+
33
+ %setup -q -D -T -n %{gem_name}-%{version}
34
+
35
+ gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
36
+
37
+ %build
38
+ # Create the gem as gem install only works on a gem file
39
+ gem build %{gem_name}.gemspec
40
+
41
+ # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
42
+ # by default, so that we can move it into the buildroot in %%install
43
+ %gem_install
44
+
45
+ %install
46
+ mkdir -p %{buildroot}%{gem_dir}
47
+ cp -a .%{gem_dir}/* \
48
+ %{buildroot}%{gem_dir}/
49
+
50
+ mkdir -p %{buildroot}%{gem_extdir_mri}
51
+ cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
52
+
53
+ # Prevent dangling symlink in -debuginfo (rhbz#878863).
54
+ rm -rf %{buildroot}%{gem_instdir}/ext/
55
+
56
+
57
+
58
+ # Run the test suite
59
+ %check
60
+ pushd .%{gem_instdir}
61
+
62
+ popd
63
+
64
+ %files
65
+ %dir %{gem_instdir}
66
+ %{gem_extdir_mri}
67
+ %exclude %{gem_instdir}/.gitignore
68
+ %license %{gem_instdir}/LICENSE
69
+ %{gem_instdir}/ext
70
+ %{gem_libdir}
71
+ %exclude %{gem_cache}
72
+ %{gem_spec}
73
+
74
+ %files doc
75
+ %doc %{gem_docdir}
76
+ %doc %{gem_instdir}/.document
77
+ %{gem_instdir}/Gemfile
78
+ %doc %{gem_instdir}/README.rdoc
79
+ %{gem_instdir}/Rakefile
80
+ %{gem_instdir}/digest-tiger.gemspec
81
+ %{gem_instdir}/test
82
+
83
+ %changelog
84
+ * Thu May 21 2015 Katharina 'spacekookie' Sabel <sabel.katharina@gmail.com> - 1.0.2-1
85
+ - Initial package
@@ -0,0 +1,118 @@
1
+ # Generated from <%= package.spec.file_name %> by gem2rpm -*- rpm-spec -*-
2
+ %global gem_name <%= spec.name %>
3
+
4
+ Name: rubygem-%{gem_name}
5
+ Version: <%= spec.version %>
6
+ Release: 1%{?dist}
7
+ Summary: <%= spec.summary.gsub(/\.$/, "") %>
8
+ Group: Development/Languages
9
+ License: <%= spec.licenses.join(" and ") %>
10
+ <% if spec.homepage -%>
11
+ URL: <%= spec.homepage %>
12
+ <% end -%>
13
+ Source0: <%= download_path %>%{gem_name}-%{version}.gem
14
+ BuildRequires: ruby(release)
15
+ <% for req in spec.required_rubygems_version -%>
16
+ BuildRequires: <%= requirement 'rubygems-devel', req %>
17
+ <% end -%>
18
+ <% for req in spec.required_ruby_version -%>
19
+ BuildRequires: <%= requirement "ruby#{'-devel' unless spec.extensions.empty?}", req %>
20
+ <% end -%>
21
+ <% for d in spec.development_dependencies -%>
22
+ <% unless ["rdoc", "rake", "bundler"].include? d.name -%>
23
+ <% for req in d.requirement -%>
24
+ # BuildRequires: <%= requirement "rubygem(#{d.name})", req %>
25
+ <% end -%>
26
+ <% end -%>
27
+ <% end -%>
28
+ <% if spec.extensions.empty? -%>
29
+ BuildArch: noarch
30
+ <% end -%>
31
+
32
+ %description
33
+ <%= spec.description %>
34
+
35
+ <% if doc_subpackage -%>
36
+ %package doc
37
+ Summary: Documentation for %{name}
38
+ Group: Documentation
39
+ Requires: %{name} = %{version}-%{release}
40
+ BuildArch: noarch
41
+
42
+ %description doc
43
+ Documentation for %{name}.
44
+ <% end # if doc_subpackage -%>
45
+
46
+ %prep
47
+ gem unpack %{SOURCE0}
48
+
49
+ %setup -q -D -T -n %{gem_name}-%{version}
50
+
51
+ gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
52
+
53
+ %build
54
+ # Create the gem as gem install only works on a gem file
55
+ gem build %{gem_name}.gemspec
56
+
57
+ # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
58
+ # by default, so that we can move it into the buildroot in %%install
59
+ %gem_install
60
+
61
+ %install
62
+ mkdir -p %{buildroot}%{gem_dir}
63
+ cp -a .%{gem_dir}/* \
64
+ %{buildroot}%{gem_dir}/
65
+
66
+ <% unless spec.extensions.empty? -%>
67
+ mkdir -p %{buildroot}%{gem_extdir_mri}
68
+ cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/
69
+
70
+ <% for ext in spec.extensions -%>
71
+ # Prevent dangling symlink in -debuginfo (rhbz#878863).
72
+ rm -rf %{buildroot}%{gem_instdir}/<%= ext.split(File::SEPARATOR).first %>/
73
+ <% end -%>
74
+ <% end -%>
75
+
76
+ <% unless spec.executables.nil? or spec.executables.empty? -%>
77
+ mkdir -p %{buildroot}%{_bindir}
78
+ cp -pa .%{_bindir}/* \
79
+ %{buildroot}%{_bindir}/
80
+ <% end -%>
81
+
82
+ <% unless spec.executables.empty? -%>
83
+ find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
84
+ <% end -%>
85
+
86
+ # Run the test suite
87
+ %check
88
+ pushd .%{gem_instdir}
89
+
90
+ popd
91
+
92
+ %files
93
+ %dir %{gem_instdir}
94
+ <% unless spec.executables.nil? or spec.executables.empty? -%>
95
+ <% for f in spec.executables -%>
96
+ %{_bindir}/<%= f %>
97
+ <% end -%>
98
+ <% end -%>
99
+ <% unless spec.extensions.empty? -%>
100
+ %{gem_extdir_mri}
101
+ <% end -%>
102
+ <%= main_file_entries(spec) %>
103
+ <% unless doc_subpackage -%>
104
+ %doc %{gem_docdir}
105
+ <%= doc_file_entries(spec) -%>
106
+ <% end -%>
107
+ %exclude %{gem_cache}
108
+ %{gem_spec}
109
+
110
+ <% if doc_subpackage -%>
111
+ %files doc
112
+ %doc %{gem_docdir}
113
+ <%= doc_file_entries(spec) %>
114
+ <% end # if doc_subpackage -%>
115
+
116
+ %changelog
117
+ * <%= Time.now.strftime("%a %b %d %Y") %> Katharina 'spacekookie' Sabel <sabel.katharina@gmail.com> - <%= spec.version %>-1
118
+ - Initial package
@@ -0,0 +1,75 @@
1
+ # Generated from twofish-1.0.5.gem by gem2rpm -*- rpm-spec -*-
2
+ %global gem_name twofish
3
+
4
+ Name: rubygem-%{gem_name}
5
+ Version: 1.0.5
6
+ Release: 1%{?dist}
7
+ Summary: Twofish symmetric cipher in pure Ruby
8
+ Group: Development/Languages
9
+ License: BSD
10
+ URL: http://mcarpenter.org/projects/twofish
11
+ Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
12
+ BuildRequires: ruby(release)
13
+ BuildRequires: rubygems-devel
14
+ BuildRequires: ruby
15
+ BuildArch: noarch
16
+
17
+ %description
18
+ Twofish symmetric cipher in pure Ruby with ECB and CBC cipher modes derived
19
+ from an original Perl implementation by Guido Flohr.
20
+
21
+
22
+ %package doc
23
+ Summary: Documentation for %{name}
24
+ Group: Documentation
25
+ Requires: %{name} = %{version}-%{release}
26
+ BuildArch: noarch
27
+
28
+ %description doc
29
+ Documentation for %{name}.
30
+
31
+ %prep
32
+ gem unpack %{SOURCE0}
33
+
34
+ %setup -q -D -T -n %{gem_name}-%{version}
35
+
36
+ gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
37
+
38
+ %build
39
+ # Create the gem as gem install only works on a gem file
40
+ gem build %{gem_name}.gemspec
41
+
42
+ # %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
43
+ # by default, so that we can move it into the buildroot in %%install
44
+ %gem_install
45
+
46
+ %install
47
+ mkdir -p %{buildroot}%{gem_dir}
48
+ cp -a .%{gem_dir}/* \
49
+ %{buildroot}%{gem_dir}/
50
+
51
+
52
+
53
+
54
+ # Run the test suite
55
+ %check
56
+ pushd .%{gem_instdir}
57
+
58
+ popd
59
+
60
+ %files
61
+ %dir %{gem_instdir}
62
+ %license %{gem_instdir}/LICENSE
63
+ %{gem_libdir}
64
+ %exclude %{gem_cache}
65
+ %{gem_spec}
66
+
67
+ %files doc
68
+ %doc %{gem_docdir}
69
+ %doc %{gem_instdir}/README.rdoc
70
+ %{gem_instdir}/Rakefile
71
+ %{gem_instdir}/test
72
+
73
+ %changelog
74
+ * Thu May 21 2015 Katharina 'spacekookie' Sabel <sabel.katharina@gmail.com> - 1.0.5-1
75
+ - Initial package
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reedb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.rc1
4
+ version: '0.11'
5
5
  platform: ruby
6
6
  authors:
7
- - Lonely Robot
8
7
  - Katharina Sabel
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-05-17 00:00:00.000000000 Z
11
+ date: 2015-06-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
@@ -25,6 +24,20 @@ dependencies:
25
24
  - - "~>"
26
25
  - !ruby/object:Gem::Version
27
26
  version: '1.7'
27
+ - !ruby/object:Gem::Dependency
28
+ name: yard
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.8'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.8'
28
41
  - !ruby/object:Gem::Dependency
29
42
  name: rake
30
43
  requirement: !ruby/object:Gem::Requirement
@@ -124,22 +137,24 @@ dependencies:
124
137
  - !ruby/object:Gem::Version
125
138
  version: '1.4'
126
139
  - !ruby/object:Gem::Dependency
127
- name: hashids
140
+ name: uuid
128
141
  requirement: !ruby/object:Gem::Requirement
129
142
  requirements:
130
143
  - - "~>"
131
144
  - !ruby/object:Gem::Version
132
- version: '1.0'
145
+ version: '2.3'
133
146
  type: :runtime
134
147
  prerelease: false
135
148
  version_requirements: !ruby/object:Gem::Requirement
136
149
  requirements:
137
150
  - - "~>"
138
151
  - !ruby/object:Gem::Version
139
- version: '1.0'
152
+ version: '2.3'
140
153
  description: Ruby storage containers/ database. Uses Rinjdael, Twofish, ... to keep
141
154
  your data safe. Made for native and local application development. Spawns a system
142
- daemon that manages vaults that applications can talk to.
155
+ daemon that manages vaults that applications can talk to or provides a powerful
156
+ interface to interact with vaults from within other ruby applications. Check the
157
+ wiki for details
143
158
  email:
144
159
  - sabel.katharina@gmail.com
145
160
  executables:
@@ -147,8 +162,6 @@ executables:
147
162
  extensions: []
148
163
  extra_rdoc_files: []
149
164
  files:
150
- - ".ruby-gemset"
151
- - ".ruby-version"
152
165
  - Gemfile
153
166
  - Gemfile.lock
154
167
  - Rakefile
@@ -158,14 +171,18 @@ files:
158
171
  - lib/reedb/constants.rb
159
172
  - lib/reedb/daemon_wrapper.rb
160
173
  - lib/reedb/datafile.rb
174
+ - lib/reedb/debouncer.rb
161
175
  - lib/reedb/errors/daemon_errors.rb
162
176
  - lib/reedb/errors/encryption_errors.rb
177
+ - lib/reedb/errors/exit_errors.rb
178
+ - lib/reedb/errors/reedb_errors.rb
163
179
  - lib/reedb/errors/vault_errors.rb
164
180
  - lib/reedb/reevault.rb
165
181
  - lib/reedb/security/aes.rb
166
182
  - lib/reedb/security/encryption.rb
167
183
  - lib/reedb/security/multifish.rb
168
184
  - lib/reedb/security/secure_hash.rb
185
+ - lib/reedb/security/tokens.rb
169
186
  - lib/reedb/security/twofish.rb
170
187
  - lib/reedb/utils/logger.rb
171
188
  - lib/reedb/utils/meta_vault.rb
@@ -175,13 +192,24 @@ files:
175
192
  - lib/reedb/utils/version.rb
176
193
  - reedb.gemspec
177
194
  - tests/daemons/reedb.rb
195
+ - tests/embeddedc/MyTest/Makefile
196
+ - tests/embeddedc/MyTest/MyTest.c
197
+ - tests/embeddedc/MyTest/MyTest.o
198
+ - tests/embeddedc/MyTest/extconf.rb
199
+ - tests/embeddedc/MyTest/mytest.so
200
+ - tests/embeddedc/mytest.rb
201
+ - tests/http_tester.py
178
202
  - tests/layout.rb
179
203
  - tests/networking/client.rb
180
204
  - tests/networking/server.rb
181
205
  - tests/play.rb
182
206
  - tests/serialisation.rb
183
207
  - tests/tests.rb
184
- homepage: https://github.com/tr-lonelyrobot/reedb/wiki
208
+ - tmp/gems/aes-0.5.0.spec
209
+ - tmp/gems/digest-tiger-1.0.2.spec
210
+ - tmp/gems/main.template
211
+ - tmp/gems/twofish-1.0.5.spec
212
+ homepage: https://github.com/tr-lonelyrobot/reedb/
185
213
  licenses:
186
214
  - LGPL v3.0
187
215
  metadata: {}
@@ -189,21 +217,22 @@ post_install_message:
189
217
  rdoc_options: []
190
218
  require_paths:
191
219
  - lib
220
+ - bin
192
221
  required_ruby_version: !ruby/object:Gem::Requirement
193
222
  requirements:
194
- - - ">="
223
+ - - "~>"
195
224
  - !ruby/object:Gem::Version
196
- version: '0'
225
+ version: '2.1'
197
226
  required_rubygems_version: !ruby/object:Gem::Requirement
198
227
  requirements:
199
- - - ">"
228
+ - - ">="
200
229
  - !ruby/object:Gem::Version
201
- version: 1.3.1
230
+ version: '0'
202
231
  requirements: []
203
232
  rubyforge_project:
204
233
  rubygems_version: 2.4.6
205
234
  signing_key:
206
235
  specification_version: 4
207
- summary: Ruby storage containers/ database that uses completely encrpypted files for
208
- maximum security.
236
+ summary: Ruby database that uses completely encrypted files for maximum security
209
237
  test_files: []
238
+ has_rdoc:
data/.ruby-gemset DELETED
@@ -1 +0,0 @@
1
- reedb
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- ruby-2.1.5