harddisk_actaulsize 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/harddisk_actaulsize.rb +10 -0
  3. metadata +44 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 55c7d58b3ff747e666f9d47104487d2d0725c56f
4
+ data.tar.gz: 789ed60139a567f4e2aec0088b39afc68d398994
5
+ SHA512:
6
+ metadata.gz: df89847f926ffd2ca635519f0d4756effb2726dca806e1d7b8124bfe0b4dca320d6aa4ef90536a8678741851b7dcb4dff553db3d43e3ff90d20ab964d6c52bd9
7
+ data.tar.gz: 261d814cb8ce105ad2917b206cc400a6baab98ac7081b7c59617bb4c02a7bdab4d951a1913a334275bb03aa06a271c0d1de9dc08660f468e6d4a8e638657f9f2
@@ -0,0 +1,10 @@
1
+ class Calculatedisk
2
+ def self.actaulsize
3
+ print "Enter the size of Hard disk in GB::"
4
+ hdsize = gets;
5
+ actual = hdsize.to_f * 1000 * 1000 * 1000
6
+ size = ((actual / 1024)/ 1024)/1024
7
+ puts "Actaul Hard disk size in GB::#{size}"
8
+ end
9
+ end
10
+
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: harddisk_actaulsize
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Swapnil patil
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-12 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: To calculate the Actual harddisk
14
+ email: swapnlipatil242@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/harddisk_actaulsize.rb
20
+ homepage: https://rubygems.org/dashboard
21
+ licenses:
22
+ - MIT
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project:
40
+ rubygems_version: 2.2.1
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: HardDiskActualSize
44
+ test_files: []