keyring 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/Rakefile +1 -0
- data/ext/mkrf_conf.rb +23 -0
- data/keyring.gemspec +5 -4
- data/lib/keyring.rb +2 -0
- data/lib/keyring/version.rb +1 -1
- data/test/test_keyring.rb +4 -0
- metadata +11 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a8467d964ad1c788df7e31c7ed552042ac376fa
|
4
|
+
data.tar.gz: 758fe7b413d3b898ddac9d3213e1f7d6cd9f7dfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd42453e514c5ed351dfaa6311d94bd4f2ca53a239a16d7f40f5503856b9b361cdb7278c26f62bcacbb06c7c91c276b7dce76cdb79fd6e8cd383636283c22fc2
|
7
|
+
data.tar.gz: 7ee748c39df64d23c801aba72c9c4d48bc4a7fc793edfa25f7ad194f905cd1c18d8eac725c72a5800e5ad965e0f178b407df8661e4a50646d200be444a011708
|
data/ext/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
task :default
|
data/ext/mkrf_conf.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# http://en.wikibooks.org/wiki/Ruby_Programming/RubyGems#How_to_install_different_versions_of_gems_depending_on_which_version_of_ruby_the_installee_is_using
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'rubygems/command.rb'
|
5
|
+
require 'rubygems/dependency_installer.rb'
|
6
|
+
begin
|
7
|
+
Gem::Command.build_args = ARGV
|
8
|
+
rescue NoMethodError
|
9
|
+
end
|
10
|
+
inst = Gem::DependencyInstaller.new
|
11
|
+
begin
|
12
|
+
if RUBY_PLATFORM =~ /linux/
|
13
|
+
warn "*linux: installing gir_ffi-gnome_keyring..."
|
14
|
+
inst.install "gir_ffi-gnome_keyring", '~> 0.0.3'
|
15
|
+
end
|
16
|
+
rescue
|
17
|
+
exit(1)
|
18
|
+
end
|
19
|
+
|
20
|
+
# create dummy Rakefile to indicate success
|
21
|
+
f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w")
|
22
|
+
f.write("task :default\n")
|
23
|
+
f.close
|
data/keyring.gemspec
CHANGED
@@ -24,9 +24,10 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
25
25
|
spec.add_development_dependency "rake"
|
26
26
|
spec.add_development_dependency 'mocha'
|
27
|
-
spec.add_dependency 'slop'
|
27
|
+
spec.add_dependency 'slop', "< 4.0"
|
28
28
|
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
spec.extensions = %w[ext/mkrf_conf.rb]
|
30
|
+
# if RUBY_PLATFORM =~ /linux/
|
31
|
+
# spec.add_dependency 'gir_ffi-gnome_keyring', '~> 0.0.3'
|
32
|
+
# end
|
32
33
|
end
|
data/lib/keyring.rb
CHANGED
data/lib/keyring/version.rb
CHANGED
data/test/test_keyring.rb
CHANGED
@@ -19,6 +19,10 @@ class KeyringTests < Test::Unit::TestCase
|
|
19
19
|
keyring = Keyring.new(backend)
|
20
20
|
assert_equal backend, keyring.instance_variable_get(:@backend)
|
21
21
|
end
|
22
|
+
|
23
|
+
def test_backend
|
24
|
+
assert_equal @backend, @keyring.backend
|
25
|
+
end
|
22
26
|
|
23
27
|
def test_get_password
|
24
28
|
@backend.expects(:get_password).with('service', 'username').returns('password')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: keyring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Heiss
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,23 +56,24 @@ dependencies:
|
|
56
56
|
name: slop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "<"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
61
|
+
version: '4.0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "<"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
68
|
+
version: '4.0'
|
69
69
|
description: This library provides a easy way to access the system keyring service
|
70
70
|
from ruby
|
71
71
|
email:
|
72
72
|
- jheiss@aput.net
|
73
73
|
executables:
|
74
74
|
- keyring
|
75
|
-
extensions:
|
75
|
+
extensions:
|
76
|
+
- ext/mkrf_conf.rb
|
76
77
|
extra_rdoc_files: []
|
77
78
|
files:
|
78
79
|
- ".gitignore"
|
@@ -81,6 +82,8 @@ files:
|
|
81
82
|
- README.md
|
82
83
|
- Rakefile
|
83
84
|
- bin/keyring
|
85
|
+
- ext/Rakefile
|
86
|
+
- ext/mkrf_conf.rb
|
84
87
|
- keyring.gemspec
|
85
88
|
- lib/keyring.rb
|
86
89
|
- lib/keyring/backend.rb
|
@@ -126,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
129
|
version: '0'
|
127
130
|
requirements: []
|
128
131
|
rubyforge_project:
|
129
|
-
rubygems_version: 2.
|
132
|
+
rubygems_version: 2.4.5
|
130
133
|
signing_key:
|
131
134
|
specification_version: 4
|
132
135
|
summary: Store and access your passwords safely
|
@@ -148,4 +151,3 @@ test_files:
|
|
148
151
|
- test/testcmds/macosx/security-notfound
|
149
152
|
- test/testcmds/macosx/security-righthelp
|
150
153
|
- test/testcmds/macosx/security-wronghelp
|
151
|
-
has_rdoc:
|