h 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/VERSION.yml +1 -1
  2. data/bin/h +0 -1
  3. data/h.gemspec +2 -5
  4. data/lib/h.rb +6 -6
  5. metadata +38 -45
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 1
4
- :patch: 1
4
+ :patch: 2
data/bin/h CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- # encoding: UTF-8
3
2
 
4
3
  require 'h'
5
4
 
data/h.gemspec CHANGED
@@ -2,23 +2,20 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "h"
5
- s.version = Psych.load_file("VERSION.yml").values.join('.')
5
+ s.version = YAML.load_file("VERSION.yml").values.join('.')
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ["Cyril Wack"]
8
- s.email = ["cyril@gosu.fr"]
8
+ s.email = ["contact@cyril.io"]
9
9
  s.homepage = "http://github.com/cyril/h"
10
10
  s.summary = %q{Custom hash generator}
11
11
  s.description = %q{A quick tool for those who prefer to put makeup on passwords rather than yield them to Manager™}
12
12
 
13
- s.required_ruby_version = '>= 1.9.2'
14
-
15
13
  s.rubyforge_project = 'h'
16
14
 
17
15
  s.bindir = 'bin'
18
16
  s.executables = ['h']
19
17
 
20
18
  s.add_dependency 'highline'
21
- s.add_dependency 'psych'
22
19
 
23
20
  s.files = `git ls-files`.split("\n")
24
21
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
data/lib/h.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'digest'
2
2
  require 'highline/import'
3
- require 'psych'
3
+ require 'yaml'
4
4
 
5
5
  module H
6
6
  class Generator
@@ -9,16 +9,16 @@ module H
9
9
  def initialize(options = {})
10
10
  unless File.exists?(CONF_PATH)
11
11
  File.open(CONF_PATH, 'w') do |f|
12
- Psych.dump({ 'encryption' => 'SHA1',
13
- 'static_key' => 'foobar',
14
- 'max_length' => 15,
15
- 'radix' => 36 }, f)
12
+ YAML.dump({ 'encryption' => 'SHA1',
13
+ 'static_key' => 'foobar',
14
+ 'max_length' => 15,
15
+ 'radix' => 36 }, f)
16
16
  end
17
17
 
18
18
  File.chmod(0600, CONF_PATH)
19
19
  end
20
20
 
21
- @params = Psych.load_file(CONF_PATH)
21
+ @params = YAML.load_file(CONF_PATH)
22
22
  @params.update(options)
23
23
  @params.freeze
24
24
  end
metadata CHANGED
@@ -1,47 +1,38 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: h
3
- version: !ruby/object:Gem::Version
4
- version: 1.1.1
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 1.1.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Cyril Wack
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-04-23 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
12
+
13
+ date: 2011-08-29 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
15
16
  name: highline
16
- requirement: &2153658560 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
17
  prerelease: false
24
- version_requirements: *2153658560
25
- - !ruby/object:Gem::Dependency
26
- name: psych
27
- requirement: &2153658100 !ruby/object:Gem::Requirement
18
+ requirement: &id001 !ruby/object:Gem::Requirement
28
19
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
33
24
  type: :runtime
34
- prerelease: false
35
- version_requirements: *2153658100
36
- description: A quick tool for those who prefer to put makeup on passwords rather than
37
- yield them to Manager™
38
- email:
39
- - cyril@gosu.fr
40
- executables:
25
+ version_requirements: *id001
26
+ description: "A quick tool for those who prefer to put makeup on passwords rather than yield them to Manager\xE2\x84\xA2"
27
+ email:
28
+ - contact@cyril.io
29
+ executables:
41
30
  - h
42
31
  extensions: []
32
+
43
33
  extra_rdoc_files: []
44
- files:
34
+
35
+ files:
45
36
  - .gitignore
46
37
  - .rvmrc
47
38
  - Gemfile
@@ -56,28 +47,30 @@ files:
56
47
  - test/test_helper.rb
57
48
  homepage: http://github.com/cyril/h
58
49
  licenses: []
50
+
59
51
  post_install_message:
60
52
  rdoc_options: []
61
- require_paths:
53
+
54
+ require_paths:
62
55
  - lib
63
- required_ruby_version: !ruby/object:Gem::Requirement
56
+ required_ruby_version: !ruby/object:Gem::Requirement
64
57
  none: false
65
- requirements:
66
- - - ! '>='
67
- - !ruby/object:Gem::Version
68
- version: 1.9.2
69
- required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: "0"
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
63
  none: false
71
- requirements:
72
- - - ! '>='
73
- - !ruby/object:Gem::Version
74
- version: '0'
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: "0"
75
68
  requirements: []
69
+
76
70
  rubyforge_project: h
77
- rubygems_version: 1.7.2
71
+ rubygems_version: 1.8.9
78
72
  signing_key:
79
73
  specification_version: 3
80
74
  summary: Custom hash generator
81
- test_files:
82
- - test/h_test.rb
83
- - test/test_helper.rb
75
+ test_files: []
76
+