gemstone 0.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Gemstone: Changelog
2
2
 
3
+ ## v0.3
4
+ Fix: require path in executable
5
+
3
6
  ## v0.2
4
7
  Fix: gem executable inclusion
5
8
 
data/bin/gemstone CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
- require './lib/gemstone'
2
+ require File.dirname(__FILE__) + '/../lib/gemstone'
3
3
 
4
4
  GemStone::Generator.new
data/lib/gemstone.rb CHANGED
@@ -3,7 +3,7 @@ require 'fileutils'
3
3
 
4
4
  module GemStone
5
5
 
6
- VERSION = '0.2'
6
+ VERSION = '0.3'
7
7
 
8
8
  class MissingOption < Exception; end
9
9
 
data/test/results_test.rb CHANGED
@@ -215,6 +215,10 @@ class ResultsTest < GemStoneTest
215
215
  def test_executable_includes_ruby_shebang
216
216
  assert_file_includes 'bin/my_gem', "#!/usr/bin/env ruby"
217
217
  end
218
+
219
+ def test_executable_requires_lib_gem_file
220
+ assert_file_includes 'bin/my_gem', "require File.dirname(__FILE__) + '/../lib/my_gem'"
221
+ end
218
222
 
219
223
  def test_executable_includes_dummy_code
220
224
  assert_file_includes 'bin/my_gem', 'puts "This executable needs more love from Raul Murciano"'
@@ -1,2 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
+ require File.dirname(__FILE__) + '/../lib/my_gem'
2
3
  puts "This executable needs more love from Raul Murciano"
metadata CHANGED
@@ -1,11 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemstone
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 13
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
- - 2
8
- version: "0.2"
8
+ - 3
9
+ version: "0.3"
9
10
  platform: ruby
10
11
  authors:
11
12
  - Raul Murciano
@@ -24,6 +25,7 @@ dependencies:
24
25
  requirements:
25
26
  - - ">"
26
27
  - !ruby/object:Gem::Version
28
+ hash: 3
27
29
  segments:
28
30
  - 2
29
31
  - 0
@@ -74,6 +76,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
76
  requirements:
75
77
  - - ">="
76
78
  - !ruby/object:Gem::Version
79
+ hash: 3
77
80
  segments:
78
81
  - 0
79
82
  version: "0"
@@ -82,6 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
85
  requirements:
83
86
  - - ">="
84
87
  - !ruby/object:Gem::Version
88
+ hash: 19
85
89
  segments:
86
90
  - 1
87
91
  - 3
@@ -90,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
94
  requirements: []
91
95
 
92
96
  rubyforge_project: gemstone
93
- rubygems_version: 1.3.7
97
+ rubygems_version: 1.5.2
94
98
  signing_key:
95
99
  specification_version: 3
96
100
  summary: Generates a skeleton to start coding your next ruby gem