a1516so_speedtest 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/a1516so_speedtest.rb +29 -0
- metadata +88 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 53e7f301175428578c676307059dc2837e5f3090
|
4
|
+
data.tar.gz: 4712529aaa83a62abe0a6686f4a64163661ac911
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6251e41f43de5b026be252314cda1a156ecd5c24807fe0a6776bf1aa47229c3323bce877b570fe21a58b2c2f3a9559d88dd86ac1b4936c75cc48f6cbb182be23
|
7
|
+
data.tar.gz: 12b55232592efee5438602b0b34d2fdebfb7fc4b94cba06953634168709205163d9bcc4be8b0cddd3ac84fb256a56455067a7727df5e01a2ea2e3434f62d9450
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'time'
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
class A1516soSpeedTest
|
5
|
+
@@s = nil
|
6
|
+
|
7
|
+
# It will start the time measurement at any time..
|
8
|
+
def self.start
|
9
|
+
@@s = Time.now
|
10
|
+
end
|
11
|
+
|
12
|
+
# after calling the start method, by calling the end method,
|
13
|
+
# it is possible to measure the processing performed in the meantime.
|
14
|
+
def self.end
|
15
|
+
puts Time.now - @@s
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.get_age(y,m,d)
|
19
|
+
m = Date.new(y,m,d).strftime("%Y%m%d").to_i
|
20
|
+
e = Date.today.strftime("%Y%m%d").to_i
|
21
|
+
puts (e - m) / 10000
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.bmi(w,t)
|
25
|
+
puts (w / ((t*0.01)**2)).to_f
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
|
metadata
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: a1516so_speedtest
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- sinsnk
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-07-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: this library is measurement possible.
|
56
|
+
email:
|
57
|
+
- cb.so.devope@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- lib/a1516so_speedtest.rb
|
63
|
+
homepage: https://github.com/sinsnk.
|
64
|
+
licenses:
|
65
|
+
- MIT
|
66
|
+
metadata: {}
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
requirements: []
|
82
|
+
rubyforge_project:
|
83
|
+
rubygems_version: 2.4.5
|
84
|
+
signing_key:
|
85
|
+
specification_version: 4
|
86
|
+
summary: speed test gem.
|
87
|
+
test_files: []
|
88
|
+
has_rdoc:
|