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 +4 -4
- data/Gemfile +2 -1
- data/lib/qu/utils.rb +6 -15
- data/lib/qu/utils/version.rb +1 -1
- data/qu-utils.gemspec +2 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9561e788ac674dbedf2ed7b5d8e82135cb2b11e
|
4
|
+
data.tar.gz: d45af87698b5eb8af8a0626afcc1a267546f685e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52b01ffef7adb2e4abbbe2a6c7d0a49cfffe1150fc04f81c1ef0a26db2a56e8396815fdfe3e845d08665383b9ab88755fecab6f4a09e94257aaf2c9f46471ceb
|
7
|
+
data.tar.gz: b3563c7fb8b01874797bd5018b279b811a39ea52e1f96714352a9bc4e2e93dc491c89a38dad762648ab8495f629745f1e75dfcda20b97ea98537cb8b91865ce7
|
data/Gemfile
CHANGED
data/lib/qu/utils.rb
CHANGED
@@ -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
|
-
|
101
|
-
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
|
101
|
+
if OS.windows?
|
102
102
|
return 'windows'
|
103
|
-
|
103
|
+
elsif OS.mac?
|
104
104
|
return 'mac'
|
105
|
-
|
105
|
+
elsif OS.linux?
|
106
106
|
return 'linux'
|
107
|
-
when /solaris|bsd/
|
108
|
-
return 'unix'
|
109
107
|
else
|
110
|
-
|
108
|
+
return 'unknown'
|
111
109
|
end
|
112
110
|
end
|
113
111
|
|
114
112
|
def platform_bit
|
115
|
-
|
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
|
data/lib/qu/utils/version.rb
CHANGED
data/qu-utils.gemspec
CHANGED
@@ -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{
|
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.
|
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-
|
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:
|
69
|
+
description: Useful class or methods used in qu-* projects.
|
56
70
|
email:
|
57
71
|
- quwubin@gmail.com
|
58
72
|
executables: []
|