shoe 0.1.12 → 0.1.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/README.rdoc +2 -1
  2. data/Rakefile +1 -1
  3. data/bin/shoe +1 -0
  4. data/lib/shoe.rb +12 -5
  5. data/shoe.gemspec +3 -3
  6. metadata +3 -3
@@ -11,7 +11,8 @@ Here's how your Rakefile looks:
11
11
  require 'shoe'
12
12
 
13
13
  Shoe.tie('myproject', '0.1.0', "This is my project, and it's awesome!") do |spec|
14
- spec.add_development_dependency 'shoulda'
14
+ # do whatever you want with the Gem::Specification here, for example:
15
+ # spec.add_development_dependency 'shoulda'
15
16
  end
16
17
 
17
18
  And here's what you get, at most:
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), 'lib'))
2
2
  require 'shoe'
3
3
 
4
- Shoe.tie('shoe', '0.1.12', 'Another take on hoe, jeweler & friends.') do |spec|
4
+ Shoe.tie('shoe', '0.1.13', 'Another take on hoe, jeweler & friends.') do |spec|
5
5
  spec.remove_development_dependency_on_shoe
6
6
  spec.requirements = ['git']
7
7
  spec.add_runtime_dependency 'cucumber'
data/bin/shoe CHANGED
@@ -19,6 +19,7 @@ rescue LoadError
19
19
  end
20
20
 
21
21
  Shoe.tie('NAME', '0.0.0', 'TODO write a summary of NAME here.') do |spec|
22
+ # do whatever you want with the Gem::Specification here, for example:
22
23
  # spec.add_development_dependency 'shoulda'
23
24
  end
24
25
  END
@@ -1,4 +1,5 @@
1
1
  require 'rubygems/doc_manager'
2
+ require 'rubygems/ext'
2
3
 
3
4
  # Shoe defines some handy Rake tasks for your project, all built around your Gem::Specification.
4
5
  #
@@ -6,7 +7,8 @@ require 'rubygems/doc_manager'
6
7
  #
7
8
  # require 'shoe'
8
9
  # Shoe.tie('myproject', '0.1.0', "This is my project, and it's awesome!") do |spec|
9
- # spec.add_development_dependency 'shoulda'
10
+ # # do whatever you want with the Gem::Specification here, for example:
11
+ # # spec.add_development_dependency 'shoulda'
10
12
  # end
11
13
  #
12
14
  # Shoe comes with an executable named "shoe" that will generate a Rakefile like this (but slightly fancier) for you.
@@ -72,14 +74,17 @@ class Shoe
72
74
  if File.file?("lib/#{spec.name}.rb")
73
75
  desc 'Run an irb console'
74
76
  task :shell do
75
- exec 'irb', '-Iext', '-Ilib', "-r#{spec.name}"
77
+ exec 'irb', '-Ilib', "-r#{spec.name}"
76
78
  end
77
79
  end
78
80
 
79
81
  if File.directory?('test')
80
82
  require 'rake/testtask'
81
83
  # MAYBE be a little more forgiving in test selection, using test/**/*_test.rb. Or create suites based on subdirectory?
82
- Rake::TestTask.new { |task| task.pattern = 'test/*_test.rb' }
84
+ Rake::TestTask.new do |task|
85
+ task.libs = ['lib', 'test']
86
+ task.pattern = 'test/*_test.rb'
87
+ end
83
88
  default_depends_on(:test)
84
89
  end
85
90
 
@@ -117,10 +122,12 @@ class Shoe
117
122
  if File.directory?('ext')
118
123
  desc 'Compile C extensions'
119
124
  task :compile do
125
+ top_level_path = File.expand_path('.')
126
+ destination_path = File.join(top_level_path, spec.require_paths.first)
127
+
120
128
  spec.extensions.each do |extension|
121
129
  Dir.chdir(File.dirname(extension)) do
122
- sh 'ruby extconf.rb'
123
- sh 'make'
130
+ Gem::Ext::ExtConfBuilder.build(extension, top_level_path, destination_path, results = [])
124
131
  end
125
132
  end
126
133
  end
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{shoe}
5
- s.version = "0.1.12"
5
+ s.version = "0.1.13"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Matthew Todd"]
9
- s.date = %q{2009-12-21}
9
+ s.date = %q{2009-12-26}
10
10
  s.default_executable = %q{shoe}
11
11
  s.email = %q{matthew.todd@gmail.com}
12
12
  s.executables = ["shoe"]
13
13
  s.extra_rdoc_files = ["README.rdoc"]
14
14
  s.files = ["Rakefile", "shoe.gemspec", "README.rdoc", "bin/shoe", "features/cucumber.feature", "features/getting_started.feature", "features/release.feature", "features/step_definitions", "features/step_definitions/shoe_steps.rb", "features/support", "features/support/env.rb", "lib/shoe.rb"]
15
- s.rdoc_options = ["--main", "README.rdoc", "--title", "shoe-0.1.12", "--inline-source"]
15
+ s.rdoc_options = ["--main", "README.rdoc", "--title", "shoe-0.1.13", "--inline-source"]
16
16
  s.require_paths = ["lib"]
17
17
  s.requirements = ["git"]
18
18
  s.rubygems_version = %q{1.3.5}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Todd
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-21 00:00:00 -05:00
12
+ date: 2009-12-26 00:00:00 -05:00
13
13
  default_executable: shoe
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -70,7 +70,7 @@ rdoc_options:
70
70
  - --main
71
71
  - README.rdoc
72
72
  - --title
73
- - shoe-0.1.12
73
+ - shoe-0.1.13
74
74
  - --inline-source
75
75
  require_paths:
76
76
  - lib