giovanigenerali-gemtest 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "rake/testtask"
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs << "lib"
5
+ t.test_files = Dir["test/**/*_test.rb"]
6
+ end
data/lib/mygem.rb ADDED
@@ -0,0 +1,5 @@
1
+ module MyGem
2
+ def self.say
3
+ "Hello World!"
4
+ end
5
+ end
@@ -0,0 +1,8 @@
1
+ module MyGem
2
+ module Version
3
+ MAJOR = 0
4
+ MINOR = 1
5
+ PATCH = 0
6
+ STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
+ end
8
+ end
data/mygem.gemspec ADDED
@@ -0,0 +1,11 @@
1
+ Gem::Specification.new do |s|
2
+ s.name = "giovanigenerali-gemtest"
3
+ s.version = "0.1.0"
4
+ s.description = "A simple gem that says hello to the world!"
5
+ s.summary = "Say hello!"
6
+ s.author = "Giovani Generali"
7
+ s.email = "giovani.generali@gmail.com"
8
+ s.homepage = "http://giovanigenerali.com"
9
+ s.files = Dir["{lib/**/*.rb,README.rdoc,test/**/*.rb,Rakefile,*.gemspec}"]
10
+ s.rubyforge_project = "rubygems"
11
+ end
@@ -0,0 +1,10 @@
1
+ require "test/unit"
2
+ require "mygem"
3
+
4
+ class MyGemTest < Test::Unit::TestCase
5
+
6
+ def test_say_hello_to_the_world
7
+ assert_equal "Hello World!", MyGem.say
8
+ end
9
+
10
+ end
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: giovanigenerali-gemtest
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Giovani Generali
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2010-12-27 00:00:00 -02:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: A simple gem that says hello to the world!
23
+ email: giovani.generali@gmail.com
24
+ executables: []
25
+
26
+ extensions: []
27
+
28
+ extra_rdoc_files: []
29
+
30
+ files:
31
+ - lib/mygem/version.rb
32
+ - lib/mygem.rb
33
+ - test/mygem_test.rb
34
+ - Rakefile
35
+ - mygem.gemspec
36
+ has_rdoc: true
37
+ homepage: http://giovanigenerali.com
38
+ licenses: []
39
+
40
+ post_install_message:
41
+ rdoc_options: []
42
+
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ none: false
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ hash: 3
51
+ segments:
52
+ - 0
53
+ version: "0"
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ requirements: []
64
+
65
+ rubyforge_project: rubygems
66
+ rubygems_version: 1.3.7
67
+ signing_key:
68
+ specification_version: 3
69
+ summary: Say hello!
70
+ test_files: []
71
+