petes_test_gem 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/test.text +4 -0
- data/bin/test_gem.rb +19 -0
- data/lib/test_gem/my_file.rb +1 -1
- data/lib/test_gem/version.rb +1 -1
- metadata +6 -2
data/bin/test.text
ADDED
data/bin/test_gem.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#! /usr/bin/ruby -w
|
2
|
+
lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
|
3
|
+
$LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
require 'test_gem'
|
6
|
+
|
7
|
+
print "enter a filename here: "
|
8
|
+
this = gets.chomp
|
9
|
+
|
10
|
+
begin
|
11
|
+
thing = TestGem::MyFile.new(this)
|
12
|
+
|
13
|
+
puts thing.first
|
14
|
+
puts thing.last
|
15
|
+
|
16
|
+
rescue => err
|
17
|
+
puts "Exception: #{err}"
|
18
|
+
err
|
19
|
+
end
|
data/lib/test_gem/my_file.rb
CHANGED
data/lib/test_gem/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: petes_test_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -46,7 +46,9 @@ dependencies:
|
|
46
46
|
description: Test gem Week5 Homework
|
47
47
|
email:
|
48
48
|
- pbomars@gmail.com
|
49
|
-
executables:
|
49
|
+
executables:
|
50
|
+
- test.text
|
51
|
+
- test_gem.rb
|
50
52
|
extensions: []
|
51
53
|
extra_rdoc_files: []
|
52
54
|
files:
|
@@ -57,6 +59,8 @@ files:
|
|
57
59
|
- LICENSE.txt
|
58
60
|
- README.md
|
59
61
|
- Rakefile
|
62
|
+
- bin/test.text
|
63
|
+
- bin/test_gem.rb
|
60
64
|
- lib/test.text
|
61
65
|
- lib/test_gem.rb
|
62
66
|
- lib/test_gem/my_file.rb
|