z15021sn_binary_prefix_bytes 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/.gitignore +1 -0
- data/.travis.yml +13 -2
- data/Guardfile +6 -0
- data/lib/z15021sn_binary_prefix_bytes.rb +1 -2
- data/lib/z15021sn_binary_prefix_bytes/version.rb +1 -1
- data/z15021sn_binary_prefix_bytes.gemspec +3 -0
- metadata +42 -13
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NDFhMDM4ODBjNjg0YTQ0YzUyNzg4NGZiODE2NWNjZjU1OTJkOGUxNg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YjNjOTZkY2RjYTQ3ZjdjODZjNTUxM2QyYjRkY2UyMzZkZTlhNGU3YQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZTcyODYwMTIxZWY3YjdjZTU2MmFhYzkyZWJjZDdjMDg5OGI1ZGEyOTExZGM4
|
10
|
+
ZjhlNjAwOWVkOGQ5MTljMDkzN2VlNGExOWU0OWM0ZGFmZWU5MjVjMGUxZTFh
|
11
|
+
NzcwYmMzY2ZjNDM2NGJmMjBhMzg3MmFlZTJjZDhmN2Q4NmJkYzg=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZDI2YTc5OTg4MDU1MWE2ODViMjg5NDE4ZTM5YTdmNmU0OTMzOTE2ODE2OTYx
|
14
|
+
MGNhOGU4NzllZDUzZWI2YzJmZmI0NWQxYzRmOTE0MjhiMzU2OTBjYWIyNzYx
|
15
|
+
YjRiOTM5OWEyNGM3Y2IwYWM5ZjRhNjkzY2UwOWU3NTg1NjVjNjY=
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,7 +1,18 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
|
3
|
+
- 2.2.2
|
4
4
|
before_install: gem install bundler -v 1.10.5
|
5
5
|
branches:
|
6
6
|
only:
|
7
|
-
|
7
|
+
- /^v[0-9]/
|
8
|
+
bundler_args: "--without production --path=vendor/bundle"
|
9
|
+
cache:
|
10
|
+
directories:
|
11
|
+
- vendor/bundle
|
12
|
+
deploy:
|
13
|
+
provider: rubygems
|
14
|
+
api_key:
|
15
|
+
secure: VDNJFVROSQskCiVLjYddaY9ZwI8KEq6rOm5QZqgEd9Sue8nVT6yJV3MrjnxRLC4GJlZ7RKC1rDT30qxKJsVAp68A6xVwq+ntbrbE389bOHeIuIgW8mJApgqfge3IHHi2zvXXYs3xX7Qq4KIeFHv+Ea6CWSYslkgkMb3dN8NDe+PBeKZIhqfFs1TuDqXeCGSQjl1bfJESnRjA4aoLtTSVRonXlA4RCvvVxDeOx3plI+XGK3iY4oJyFQnQKTcRlTOBGZZabvqADdYS0D32Deo7OOWodoJyCdzfPfM0ocbk6+09vpERoogavhh9YrxjLOA2/h7WBp6oncgU3AheAyB+ZIR7uXOcRUt8YoV+DQ7JcD+qFgSbcoPmnsND9hcG6Pnn7XPOcrxsVTso0tznO2FikKSMkBRx0hnUOcp2ODodwYFNaRA3VNOpWlkosWgfqEO4WgwDETTwYmbQX+FIAwiYX14I+fs2roFNLU0GPrK2OqKfzJVMW7WQceTE2xgA0EoT0711SNKcMe3awehHBt+OY2ntjNvuYkyGb0tRURik8up8tiRchkeF0oKrfQi0X5qxuIXnRf7pwgPCgI8K22PqdAZKI2CQK5c9Tp3A1OFtgrT+MkfjRCL/FnaH16aD7r+ON7nzfya03qaF+w7VA/8nS2g6vAqK9Lq3spcPqF8iMxw=
|
16
|
+
on:
|
17
|
+
tags: true
|
18
|
+
all_branches: true
|
data/Guardfile
ADDED
@@ -12,7 +12,6 @@ class String
|
|
12
12
|
($~[3..10]).each_with_index {|m, i| exponent = i + 1 if m != nil }
|
13
13
|
return nil if exponent == nil
|
14
14
|
|
15
|
-
value
|
16
|
-
value = /^\d+\.0$/ =~ value.to_s ? value.to_i : value
|
15
|
+
value *= 2 ** (10 * exponent)
|
17
16
|
end
|
18
17
|
end
|
@@ -21,4 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.10"
|
22
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
23
|
spec.add_development_dependency "minitest"
|
24
|
+
spec.add_development_dependency "guard"
|
25
|
+
spec.add_development_dependency "guard-minitest"
|
26
|
+
spec.add_development_dependency "terminal-notifier-guard" if RUBY_PLATFORM.match(/darwin/)
|
24
27
|
end
|
metadata
CHANGED
@@ -1,55 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: z15021sn_binary_prefix_bytes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- z15021sn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.10'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.10'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ! '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: guard-minitest
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ! '>='
|
53
81
|
- !ruby/object:Gem::Version
|
54
82
|
version: '0'
|
55
83
|
description: This is a Ruby String class extension. It converts SI/IEC binary prefix
|
@@ -62,9 +90,10 @@ executables:
|
|
62
90
|
extensions: []
|
63
91
|
extra_rdoc_files: []
|
64
92
|
files:
|
65
|
-
-
|
66
|
-
-
|
93
|
+
- .gitignore
|
94
|
+
- .travis.yml
|
67
95
|
- Gemfile
|
96
|
+
- Guardfile
|
68
97
|
- LICENSE.txt
|
69
98
|
- README.md
|
70
99
|
- Rakefile
|
@@ -83,17 +112,17 @@ require_paths:
|
|
83
112
|
- lib
|
84
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
85
114
|
requirements:
|
86
|
-
- -
|
115
|
+
- - ! '>='
|
87
116
|
- !ruby/object:Gem::Version
|
88
117
|
version: '0'
|
89
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
119
|
requirements:
|
91
|
-
- -
|
120
|
+
- - ! '>='
|
92
121
|
- !ruby/object:Gem::Version
|
93
122
|
version: '0'
|
94
123
|
requirements: []
|
95
124
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.4.
|
125
|
+
rubygems_version: 2.4.5
|
97
126
|
signing_key:
|
98
127
|
specification_version: 4
|
99
128
|
summary: Ruby String class extension. Binary prefix bytes to numerical value.
|