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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce4f04bde155cc548222940ab51bf72adc2e6357
4
- data.tar.gz: 050a04df00a9229f8125081a79f99f7e2b5c5a05
3
+ metadata.gz: 6a8467d964ad1c788df7e31c7ed552042ac376fa
4
+ data.tar.gz: 758fe7b413d3b898ddac9d3213e1f7d6cd9f7dfd
5
5
  SHA512:
6
- metadata.gz: 85f263a69ac38e96fca4ccba27afda79097d0f226e0fe93938c0fddfb5b703a507e995d3ba065ddc5daf7302083963033f715bfe91205cac2bead32fa0601aec
7
- data.tar.gz: b4d625b3e639b98c9a8afed3a06c59ffd324271b7377f85da8593c284fdce8997788095ea9e57fab46fcae388dd344341debc82c138afad95487185277b6370c
6
+ metadata.gz: fd42453e514c5ed351dfaa6311d94bd4f2ca53a239a16d7f40f5503856b9b361cdb7278c26f62bcacbb06c7c91c276b7dce76cdb79fd6e8cd383636283c22fc2
7
+ data.tar.gz: 7ee748c39df64d23c801aba72c9c4d48bc4a7fc793edfa25f7ad194f905cd1c18d8eac725c72a5800e5ad965e0f178b407df8661e4a50646d200be444a011708
@@ -0,0 +1 @@
1
+ task :default
@@ -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
@@ -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
- if RUBY_PLATFORM =~ /linux/
30
- spec.add_dependency 'gir_ffi-gnome_keyring', '~> 0.0.3'
31
- end
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
@@ -5,6 +5,8 @@ require "keyring/version"
5
5
 
6
6
  class Keyring
7
7
  require 'keyring/backend'
8
+
9
+ attr_reader :backend
8
10
 
9
11
  # If you want a particular backend then use, for example,
10
12
  # Keyring.new(Keyring::Backend::Memory.new)
@@ -2,5 +2,5 @@
2
2
  # License: MIT (http://www.opensource.org/licenses/mit-license.php)
3
3
 
4
4
  class Keyring
5
- VERSION = "0.3.0"
5
+ VERSION = "0.3.1"
6
6
  end
@@ -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.0
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: 2014-12-17 00:00:00.000000000 Z
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.2.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: