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 CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e41a71fee567659c2d570ef928afb7afa487a434
4
- data.tar.gz: ae5f8c14254514752a4cfe790f223b4c1f60bae6
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NDFhMDM4ODBjNjg0YTQ0YzUyNzg4NGZiODE2NWNjZjU1OTJkOGUxNg==
5
+ data.tar.gz: !binary |-
6
+ YjNjOTZkY2RjYTQ3ZjdjODZjNTUxM2QyYjRkY2UyMzZkZTlhNGU3YQ==
5
7
  SHA512:
6
- metadata.gz: 67770836d51ec5f12d8c9590070a30abe3f3b4dc858ce6acabb43a6bfe6bb08857fe1b489dc259e449ed150852861c65fb39455827cbdffc7aef03292100aa96
7
- data.tar.gz: 6592134822f6d6d8bf5098cbed8fd38f3f22ca73fe00851b2cc229c1bee2c1d03a193c41f3c5177f693334733d89ea6929d1a77f3942ae8047f97e8c3fee7f4b
8
+ metadata.gz: !binary |-
9
+ ZTcyODYwMTIxZWY3YjdjZTU2MmFhYzkyZWJjZDdjMDg5OGI1ZGEyOTExZGM4
10
+ ZjhlNjAwOWVkOGQ5MTljMDkzN2VlNGExOWU0OWM0ZGFmZWU5MjVjMGUxZTFh
11
+ NzcwYmMzY2ZjNDM2NGJmMjBhMzg3MmFlZTJjZDhmN2Q4NmJkYzg=
12
+ data.tar.gz: !binary |-
13
+ ZDI2YTc5OTg4MDU1MWE2ODViMjg5NDE4ZTM5YTdmNmU0OTMzOTE2ODE2OTYx
14
+ MGNhOGU4NzllZDUzZWI2YzJmZmI0NWQxYzRmOTE0MjhiMzU2OTBjYWIyNzYx
15
+ YjRiOTM5OWEyNGM3Y2IwYWM5ZjRhNjkzY2UwOWU3NTg1NjVjNjY=
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /vendor/
data/.travis.yml CHANGED
@@ -1,7 +1,18 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.2
3
+ - 2.2.2
4
4
  before_install: gem install bundler -v 1.10.5
5
5
  branches:
6
6
  only:
7
- - master
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
@@ -0,0 +1,6 @@
1
+ guard :minitest do
2
+ watch(%r{^test/(.*)\/?(.*)_test\.rb$})
3
+ watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
4
+ watch(%r{^test/test_helper\.rb$}) { 'test' }
5
+ watch(%r{^lib/([^/]+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
6
+ end
@@ -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 = value * 2 ** (10 * exponent)
16
- value = /^\d+\.0$/ =~ value.to_s ? value.to_i : value
15
+ value *= 2 ** (10 * exponent)
17
16
  end
18
17
  end
@@ -1,3 +1,3 @@
1
1
  module Z15021snBinaryPrefixBytes
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  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.3
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-04 00:00:00.000000000 Z
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
- - ".gitignore"
66
- - ".travis.yml"
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.7
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.