dime 0.0.1 → 0.0.3
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.
- checksums.yaml +4 -4
- data/lib/dime.rb +14 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71f7ae9230ad93a9a737dcc76200daa57fc1f4d3
|
4
|
+
data.tar.gz: 464aa2c35ec075482b59b7f7e73a64da583ff580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e300dee098233914264ebea4b95bd6c3497f990a753cfeb5f4a266245e318965b71fc4ae081c59533915b8cdb49423ace0fac00e95fec8e0ddd335f8328afea0
|
7
|
+
data.tar.gz: 092165b7b5fbdae49cea407f877c97a758fbb0109ac6c574de282e3c5dc49c4ce6fd6283e3f3c90ef9952c580ce341eab9659466e2ce009400ae1b3c73eec267
|
data/lib/dime.rb
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
class Dime
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
2
|
+
def self.sin(prompt) #Standard user input from console..
|
3
|
+
print prompt
|
4
|
+
return gets.chomp
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.cin(name) #Command line input..
|
8
|
+
unless ARGV.length == 1
|
9
|
+
puts "Error: expected argument #{name}."
|
10
|
+
name = name.upcase
|
11
|
+
script_name = __FILE__
|
12
|
+
puts "Usage: ruby #{script_name} [#{name}]"
|
13
|
+
end
|
14
|
+
return ARGV[0]
|
15
|
+
end
|
6
16
|
end
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Eckerman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description: Retrieve user input easier with Dime.
|
14
14
|
email: 6eckermans2015@gmail.com
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
@@ -40,5 +40,5 @@ rubyforge_project:
|
|
40
40
|
rubygems_version: 2.0.14
|
41
41
|
signing_key:
|
42
42
|
specification_version: 4
|
43
|
-
summary:
|
43
|
+
summary: Got your input coveredd
|
44
44
|
test_files: []
|