h 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/h.gemspec +3 -0
- data/lib/h.rb +3 -3
- data/lib/h/version.rb +1 -1
- metadata +45 -41
data/h.gemspec
CHANGED
@@ -14,6 +14,9 @@ Gem::Specification.new do |s|
|
|
14
14
|
|
15
15
|
s.rubyforge_project = "h"
|
16
16
|
|
17
|
+
s.add_dependency('highline')
|
18
|
+
s.add_dependency('psych')
|
19
|
+
|
17
20
|
s.files = `git ls-files`.split("\n")
|
18
21
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
22
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
data/lib/h.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'digest'
|
2
2
|
require 'highline/import'
|
3
|
-
require '
|
3
|
+
require 'psych'
|
4
4
|
|
5
5
|
module H
|
6
6
|
class Generator
|
@@ -9,7 +9,7 @@ module H
|
|
9
9
|
def initialize
|
10
10
|
unless File.exists?(CONF_PATH)
|
11
11
|
File.open(CONF_PATH, 'w') do |f|
|
12
|
-
|
12
|
+
Psych.dump({ 'encryption' => 'SHA1',
|
13
13
|
'static_key' => 'foobar',
|
14
14
|
'max_length' => 15,
|
15
15
|
'radix' => 36 }, f)
|
@@ -18,7 +18,7 @@ module H
|
|
18
18
|
File.chmod(0600, CONF_PATH)
|
19
19
|
end
|
20
20
|
|
21
|
-
@params =
|
21
|
+
@params = Psych.load_file(CONF_PATH)
|
22
22
|
@params.freeze
|
23
23
|
end
|
24
24
|
|
data/lib/h/version.rb
CHANGED
metadata
CHANGED
@@ -1,34 +1,48 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: h
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 1.0.0
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Cyril Wack
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
date: 2011-04-08 00:00:00 +02:00
|
12
|
+
date: 2011-04-21 00:00:00.000000000 %:z
|
19
13
|
default_executable:
|
20
|
-
dependencies:
|
21
|
-
|
22
|
-
|
23
|
-
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: highline
|
17
|
+
requirement: &2157571020 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *2157571020
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: psych
|
28
|
+
requirement: &2157570600 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ! '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *2157570600
|
37
|
+
description: Very small cryptographic tool that generates custom message digests according
|
38
|
+
to some parameters.
|
39
|
+
email:
|
24
40
|
- cyril@gosu.fr
|
25
|
-
executables:
|
41
|
+
executables:
|
26
42
|
- h
|
27
43
|
extensions: []
|
28
|
-
|
29
44
|
extra_rdoc_files: []
|
30
|
-
|
31
|
-
files:
|
45
|
+
files:
|
32
46
|
- .gitignore
|
33
47
|
- Gemfile
|
34
48
|
- LICENSE
|
@@ -41,36 +55,26 @@ files:
|
|
41
55
|
has_rdoc: true
|
42
56
|
homepage: http://github.com/cyril/h
|
43
57
|
licenses: []
|
44
|
-
|
45
58
|
post_install_message:
|
46
59
|
rdoc_options: []
|
47
|
-
|
48
|
-
require_paths:
|
60
|
+
require_paths:
|
49
61
|
- lib
|
50
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
51
63
|
none: false
|
52
|
-
requirements:
|
53
|
-
- -
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
|
56
|
-
|
57
|
-
- 0
|
58
|
-
version: "0"
|
59
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ! '>='
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
69
|
none: false
|
61
|
-
requirements:
|
62
|
-
- -
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
|
65
|
-
segments:
|
66
|
-
- 0
|
67
|
-
version: "0"
|
70
|
+
requirements:
|
71
|
+
- - ! '>='
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '0'
|
68
74
|
requirements: []
|
69
|
-
|
70
75
|
rubyforge_project: h
|
71
|
-
rubygems_version: 1.
|
76
|
+
rubygems_version: 1.6.2
|
72
77
|
signing_key:
|
73
78
|
specification_version: 3
|
74
79
|
summary: Custom hash generator
|
75
80
|
test_files: []
|
76
|
-
|