keystorage 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -6,8 +6,8 @@ source "http://rubygems.org"
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  group :development do
9
- gem "shoulda", ">= 0"
10
- gem "bundler", "~> 1.0.0"
11
- gem "jeweler", "~> 1.5.2"
12
- gem "rcov", ">= 0"
9
+ gem "shoulda"
10
+ gem "bundler"
11
+ gem "jeweler"
12
+ gem "simplecov"
13
13
  end
data/Rakefile CHANGED
@@ -33,22 +33,5 @@ Rake::TestTask.new(:test) do |test|
33
33
  test.verbose = true
34
34
  end
35
35
 
36
- require 'rcov/rcovtask'
37
- Rcov::RcovTask.new do |test|
38
- test.libs << 'test'
39
- test.pattern = 'test/**/test_*.rb'
40
- test.verbose = true
41
- test.rcov_opts << '-x /usr -x .rvm -x rvm -x vendor'
42
- end
43
-
44
36
  task :default => :test
45
37
 
46
- require 'rake/rdoctask'
47
- Rake::RDocTask.new do |rdoc|
48
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
49
-
50
- rdoc.rdoc_dir = 'rdoc'
51
- rdoc.title = "keystorage #{version}"
52
- rdoc.rdoc_files.include('README*')
53
- rdoc.rdoc_files.include('lib/**/*.rb')
54
- end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.7
1
+ 0.4.8
@@ -4,15 +4,15 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{keystorage}
8
- s.version = "0.4.7"
7
+ s.name = "keystorage"
8
+ s.version = "0.4.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{Yoshihiro TAKAHARA}]
12
- s.date = %q{2011-08-09}
13
- s.description = %q{This is a command to store and manage your passwords.}
14
- s.email = %q{y.takahara@gmail.com}
15
- s.executables = [%q{keystorage}]
11
+ s.authors = ["Yoshihiro TAKAHARA"]
12
+ s.date = "2012-04-01"
13
+ s.description = "This is a command to store and manage your passwords."
14
+ s.email = "y.takahara@gmail.com"
15
+ s.executables = ["keystorage"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
18
  "README.rdoc"
@@ -37,35 +37,31 @@ Gem::Specification.new do |s|
37
37
  "test/helper.rb",
38
38
  "test/test_keystorage.rb"
39
39
  ]
40
- s.homepage = %q{http://github.com/tumf/keystorage}
41
- s.licenses = [%q{MIT}]
42
- s.require_paths = [%q{lib}]
43
- s.rubygems_version = %q{1.8.5}
44
- s.summary = %q{Simple password storage command}
45
- s.test_files = [
46
- "test/helper.rb",
47
- "test/test_keystorage.rb"
48
- ]
40
+ s.homepage = "http://github.com/tumf/keystorage"
41
+ s.licenses = ["MIT"]
42
+ s.require_paths = ["lib"]
43
+ s.rubygems_version = "1.8.21"
44
+ s.summary = "Simple password storage command"
49
45
 
50
46
  if s.respond_to? :specification_version then
51
47
  s.specification_version = 3
52
48
 
53
49
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
54
50
  s.add_development_dependency(%q<shoulda>, [">= 0"])
55
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
56
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
57
- s.add_development_dependency(%q<rcov>, [">= 0"])
51
+ s.add_development_dependency(%q<bundler>, [">= 0"])
52
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
53
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
58
54
  else
59
55
  s.add_dependency(%q<shoulda>, [">= 0"])
60
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
61
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
62
- s.add_dependency(%q<rcov>, [">= 0"])
56
+ s.add_dependency(%q<bundler>, [">= 0"])
57
+ s.add_dependency(%q<jeweler>, [">= 0"])
58
+ s.add_dependency(%q<simplecov>, [">= 0"])
63
59
  end
64
60
  else
65
61
  s.add_dependency(%q<shoulda>, [">= 0"])
66
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
67
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
68
- s.add_dependency(%q<rcov>, [">= 0"])
62
+ s.add_dependency(%q<bundler>, [">= 0"])
63
+ s.add_dependency(%q<jeweler>, [">= 0"])
64
+ s.add_dependency(%q<simplecov>, [">= 0"])
69
65
  end
70
66
  end
71
67
 
@@ -80,9 +80,9 @@ module Keystorage
80
80
  def delete(group,name = nil)
81
81
  data = all
82
82
  if name
83
- data[group].delete(name)
83
+ data[group].delete(name) if data[group]
84
84
  else
85
- data.delete(group)
85
+ data.delete(group) if data
86
86
  end
87
87
  write(data)
88
88
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keystorage
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 7
10
- version: 0.4.7
9
+ - 8
10
+ version: 0.4.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Yoshihiro TAKAHARA
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-09 00:00:00 Z
18
+ date: 2012-04-01 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  version_requirements: &id001 !ruby/object:Gem::Requirement
@@ -27,42 +27,38 @@ dependencies:
27
27
  segments:
28
28
  - 0
29
29
  version: "0"
30
+ name: shoulda
30
31
  type: :development
31
- requirement: *id001
32
32
  prerelease: false
33
- name: shoulda
33
+ requirement: *id001
34
34
  - !ruby/object:Gem::Dependency
35
35
  version_requirements: &id002 !ruby/object:Gem::Requirement
36
36
  none: false
37
37
  requirements:
38
- - - ~>
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- hash: 23
40
+ hash: 3
41
41
  segments:
42
- - 1
43
- - 0
44
42
  - 0
45
- version: 1.0.0
43
+ version: "0"
44
+ name: bundler
46
45
  type: :development
47
- requirement: *id002
48
46
  prerelease: false
49
- name: bundler
47
+ requirement: *id002
50
48
  - !ruby/object:Gem::Dependency
51
49
  version_requirements: &id003 !ruby/object:Gem::Requirement
52
50
  none: false
53
51
  requirements:
54
- - - ~>
52
+ - - ">="
55
53
  - !ruby/object:Gem::Version
56
- hash: 7
54
+ hash: 3
57
55
  segments:
58
- - 1
59
- - 5
60
- - 2
61
- version: 1.5.2
56
+ - 0
57
+ version: "0"
58
+ name: jeweler
62
59
  type: :development
63
- requirement: *id003
64
60
  prerelease: false
65
- name: jeweler
61
+ requirement: *id003
66
62
  - !ruby/object:Gem::Dependency
67
63
  version_requirements: &id004 !ruby/object:Gem::Requirement
68
64
  none: false
@@ -73,10 +69,10 @@ dependencies:
73
69
  segments:
74
70
  - 0
75
71
  version: "0"
72
+ name: simplecov
76
73
  type: :development
77
- requirement: *id004
78
74
  prerelease: false
79
- name: rcov
75
+ requirement: *id004
80
76
  description: This is a command to store and manage your passwords.
81
77
  email: y.takahara@gmail.com
82
78
  executables:
@@ -134,10 +130,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
130
  requirements: []
135
131
 
136
132
  rubyforge_project:
137
- rubygems_version: 1.8.5
133
+ rubygems_version: 1.8.21
138
134
  signing_key:
139
135
  specification_version: 3
140
136
  summary: Simple password storage command
141
- test_files:
142
- - test/helper.rb
143
- - test/test_keystorage.rb
137
+ test_files: []
138
+