hcanzl_test_gem 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/bin/test_gem ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ puts "test_gem script executing"
4
+ puts ARGV[0]
@@ -0,0 +1,7 @@
1
+ module TestGem
2
+
3
+ class Hello
4
+ puts "class #{self} defined"
5
+ end
6
+
7
+ end
@@ -0,0 +1,7 @@
1
+ module TestGem
2
+
3
+ puts "file version.rb required"
4
+
5
+ VERSION = "0.0.2"
6
+
7
+ end
data/lib/test_gem.rb ADDED
@@ -0,0 +1,27 @@
1
+ $LOAD_PATH.unshift File.expand_path("../test_gem", __FILE__)
2
+
3
+ require 'version'
4
+ require 'hello'
5
+
6
+ module TestGem
7
+
8
+ puts "module TestGem defined"
9
+
10
+ class MyFile
11
+ def first input_file
12
+ f = File.open(File.expand_path("../../spec/#{input_file}", __FILE__))
13
+ first_line = f.gets
14
+ f.close
15
+ return first_line
16
+ end
17
+
18
+ def last input_file
19
+ f = File.open(File.expand_path("../../spec/#{input_file}", __FILE__))
20
+ lines = f.readlines
21
+ f.close
22
+
23
+ return lines[-1]
24
+ end
25
+ end
26
+
27
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hcanzl_test_gem
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Helen Canzler
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-07 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: A gem to explain how to make gems
15
+ email: hcanzl@hotmail.com
16
+ executables:
17
+ - test_gem
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/test_gem.rb
22
+ - lib/test_gem/version.rb
23
+ - lib/test_gem/hello.rb
24
+ - !binary |-
25
+ YmluL3Rlc3RfZ2Vt
26
+ homepage: http://rubygems.org/gems/test_gem
27
+ licenses: []
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 1.8.24
47
+ signing_key:
48
+ specification_version: 3
49
+ summary: Making a Test Gem
50
+ test_files: []
51
+ has_rdoc: