keyring 0.4.0 → 0.4.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: d59fdf205915208c45349154db548ac71a6162f5
4
- data.tar.gz: 2715a0cbc8bf7f24a2f11322af70d2ee70857dc6
3
+ metadata.gz: 791bbb2044125af863560b14c3b0d6e1f1c8ddb5
4
+ data.tar.gz: f9f2fad58c306b5c6f9773083d3170c898f4fd20
5
5
  SHA512:
6
- metadata.gz: ab83ae87c6128614d1a47581d4ea725479bcf719a1644c6ac20dbcfa9164d7ac6e5ea357d5b2262fea75df9179c91bc2418cdd81e57664ca8d2a1e6fe6bc5473
7
- data.tar.gz: bdb3d3d9a482b9f5a2b463685ad430f673078ce59813f096d1fd81cec3e06c1d1b2a9021404a120459ae87a15f911c44cd16b604ba9088f2d612238e8732f8c5
6
+ metadata.gz: 4ce9332d5cadaac678eecc3a44ef0eac3dd78fe7d0005fa012f9274ec7a252595a0f7ce90dc318e4ec118dea84f86df197b8bb8eaad451af3daf445f0d0139fd
7
+ data.tar.gz: 4b44c12f192e89cfa7f6e334084988097b763c0caa939e1ad42bb1536d40f70efaf61b779b654f41e82d32c00026c997c7cca574f51e82a15ffa76f6e35c7d51
data/Gemfile CHANGED
@@ -6,12 +6,6 @@ source 'https://rubygems.org'
6
6
  # Specify your gem's dependencies in keyring.gemspec
7
7
  gemspec
8
8
 
9
- # Duplicated contents of ext/mkrf_conf.rb here - afaict, the
10
- # spec.extensions stuff in the gemspec file doesn't run on a
11
- # bundle install
12
-
13
- gem 'ruby-keychain', '~> 0.3.2'
14
-
15
9
  group :test, :development do
16
10
  gem 'test-unit'
17
11
  end
@@ -1,5 +1,6 @@
1
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
2
 
3
+
3
4
  require 'rubygems'
4
5
  require 'rubygems/command.rb'
5
6
  require 'rubygems/dependency_installer.rb'
@@ -10,12 +11,11 @@ end
10
11
  inst = Gem::DependencyInstaller.new
11
12
  begin
12
13
 
13
- if RUBY_PLATFORM =~ /linux/
14
+ case Gem::Platform.local.os
15
+ when 'linux'
14
16
  warn "*linux: installing gir_ffi-gnome_keyring..."
15
17
  inst.install "gir_ffi-gnome_keyring", '~> 0.0.3'
16
- end
17
-
18
- if RUBY_PLATFORM =~ /darwin10/
18
+ when 'darwin'
19
19
  warn '*osx: installing ruby-keychain'
20
20
  inst.install 'ruby-keychain', '~> 0.3.2'
21
21
  end
@@ -26,6 +26,16 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'mocha'
27
27
  spec.add_dependency 'slop', "< 4.0"
28
28
 
29
+ # Note that when updating these versions you must also make
30
+ # equivalent changes in ext/mkrf_conf.rb
31
+
32
+ case Gem::Platform.local.os
33
+ when 'linux'
34
+ spec.add_dependency "gir_ffi-gnome_keyring", '~> 0.0.3'
35
+ when 'darwin'
36
+ spec.add_dependency 'ruby-keychain', '~> 0.3.2'
37
+ end
38
+
29
39
  spec.extensions = %w[ext/mkrf_conf.rb]
30
40
 
31
41
  end
@@ -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.4.0"
5
+ VERSION = "0.4.1"
6
6
  end
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.4.0
4
+ version: 0.4.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: 2016-09-19 00:00:00.000000000 Z
11
+ date: 2016-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "<"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '4.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ruby-keychain
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.3.2
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.3.2
69
83
  description: This library provides a easy way to access the system keyring service
70
84
  from ruby
71
85
  email: