qu-utils 1.0.2 → 1.0.3

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: 72ede475b63a5eb24b046a99dada50780f17305b
4
- data.tar.gz: 5c21824e00aa4e0307326e2d0353aac865239b70
3
+ metadata.gz: f9561e788ac674dbedf2ed7b5d8e82135cb2b11e
4
+ data.tar.gz: d45af87698b5eb8af8a0626afcc1a267546f685e
5
5
  SHA512:
6
- metadata.gz: 272e8f15294a8475bf9dcc83366986a082f61baeed647a833117edabd63d9a1d3fbe552f949c996a264942a4b544fa04cdfc225f21da4d89eae2252d6c611ce4
7
- data.tar.gz: fb72c60813c9afc1c808ff7ea33a8e5a2364118bf5ca97fcc2872b63829e020caf0c3432a4417b8056ac8479bdf7f7994babfbd4a03e3ad3a21a845aab9b7a72
6
+ metadata.gz: 52b01ffef7adb2e4abbbe2a6c7d0a49cfffe1150fc04f81c1ef0a26db2a56e8396815fdfe3e845d08665383b9ab88755fecab6f4a09e94257aaf2c9f46471ceb
7
+ data.tar.gz: b3563c7fb8b01874797bd5018b279b811a39ea52e1f96714352a9bc4e2e93dc491c89a38dad762648ab8495f629745f1e75dfcda20b97ea98537cb8b91865ce7
data/Gemfile CHANGED
@@ -3,4 +3,5 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in qu-utils.gemspec
4
4
  gemspec
5
5
 
6
- gem 'bio'
6
+ gem 'bio'
7
+ gem 'os'
@@ -1,5 +1,6 @@
1
1
  require 'bio'
2
2
  require 'optparse'
3
+ require 'os'
3
4
  require "qu/utils/version"
4
5
 
5
6
  module Qu
@@ -97,29 +98,19 @@ module Qu
97
98
  end
98
99
 
99
100
  def platform_os
100
- case RUBY_PLATFORM
101
- when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
101
+ if OS.windows?
102
102
  return 'windows'
103
- when /darwin|mac/
103
+ elsif OS.mac?
104
104
  return 'mac'
105
- when /linux/
105
+ elsif OS.linux?
106
106
  return 'linux'
107
- when /solaris|bsd/
108
- return 'unix'
109
107
  else
110
- raise Error::WebDriverError, "Unknown os: #{RUBY_PLATFORM.inspect}"
108
+ return 'unknown'
111
109
  end
112
110
  end
113
111
 
114
112
  def platform_bit
115
- case RUBY_PLATFORM
116
- when /64/
117
- return 64
118
- when /32/
119
- return 32
120
- else
121
- raise Error::WebDriverError, "Unknown os bit: #{RUBY_PLATFORM.inspect}"
122
- end
113
+ OS.bits
123
114
  end
124
115
  end
125
116
  end
@@ -1,5 +1,5 @@
1
1
  module Qu
2
2
  module Utils
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Qu::Utils::VERSION
9
9
  spec.authors = ["Wubin Qu"]
10
10
  spec.email = ["quwubin@gmail.com"]
11
- spec.description = %q{Some useful class or methods}
11
+ spec.description = %q{Useful class or methods used in qu-* projects.}
12
12
  spec.summary = %q{Utils by Wubin Qu}
13
13
  spec.homepage = "https://github.com/quwubin/qu-utils"
14
14
  spec.license = "MIT"
@@ -19,6 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_runtime_dependency 'bio', '>= 1.4'
22
+ spec.add_runtime_dependency 'os', '~> 0.9.6'
22
23
 
23
24
  spec.add_development_dependency "bundler", "~> 1.3"
24
25
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qu-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wubin Qu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-15 00:00:00.000000000 Z
11
+ date: 2014-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bio
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: os
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.9.6
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.9.6
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,7 +66,7 @@ dependencies:
52
66
  - - ">="
53
67
  - !ruby/object:Gem::Version
54
68
  version: '0'
55
- description: Some useful class or methods
69
+ description: Useful class or methods used in qu-* projects.
56
70
  email:
57
71
  - quwubin@gmail.com
58
72
  executables: []