shoe 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/README.rdoc +1 -0
  2. data/Rakefile +1 -1
  3. data/lib/shoe.rb +21 -3
  4. data/shoe.gemspec +3 -3
  5. metadata +3 -3
@@ -17,6 +17,7 @@ Here's how your Rakefile looks:
17
17
  And here's what you get, at most:
18
18
 
19
19
  rake clean # Remove ignored files
20
+ rake compile # Compile C extensions
20
21
  rake cucumber # Run features
21
22
  rake cucumber:wip # Run work-in-progress features
22
23
  rake default # Run features
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.11', 'Another take on hoe, jeweler & friends.') do |spec|
4
+ Shoe.tie('shoe', '0.1.12', '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'
@@ -28,8 +28,9 @@ class Shoe
28
28
  spec.name = name
29
29
  spec.version = version
30
30
  spec.summary = summary
31
- spec.files = FileList['Rakefile', '*.gemspec', '**/*.rdoc', 'bin/**/*', 'examples/**/*', 'features/**/*', 'lib/**/*', 'resources/**/*', 'shoulda_macros/**/*', 'test/**/*'].to_a
31
+ spec.files = FileList['Rakefile', '*.gemspec', '**/*.rdoc', 'bin/**/*', 'examples/**/*', 'ext/**/extconf.rb', 'ext/**/*.c', 'features/**/*', 'lib/**/*', 'resources/**/*', 'shoulda_macros/**/*', 'test/**/*'].to_a
32
32
  spec.executables = everything_in_the_bin_directory
33
+ spec.extensions = FileList['ext/**/extconf.rb'].to_a
33
34
  spec.rdoc_options = %W(--main README.rdoc --title #{name}-#{version} --inline-source) # MAYBE include --all, so that we document private methods?
34
35
  spec.extra_rdoc_files = FileList['**/*.rdoc', 'shoulda_macros/**/*'].to_a
35
36
  spec.has_rdoc = true
@@ -71,8 +72,7 @@ class Shoe
71
72
  if File.file?("lib/#{spec.name}.rb")
72
73
  desc 'Run an irb console'
73
74
  task :shell do
74
- # MAYBE include -Iext. I think I'd like to wait until I handle C extensions in general.
75
- exec 'irb', '-Ilib', "-r#{spec.name}"
75
+ exec 'irb', '-Iext', '-Ilib', "-r#{spec.name}"
76
76
  end
77
77
  end
78
78
 
@@ -113,6 +113,24 @@ class Shoe
113
113
  sh "gem push #{spec.file_name}"
114
114
  end
115
115
  end
116
+
117
+ if File.directory?('ext')
118
+ desc 'Compile C extensions'
119
+ task :compile do
120
+ spec.extensions.each do |extension|
121
+ Dir.chdir(File.dirname(extension)) do
122
+ sh 'ruby extconf.rb'
123
+ sh 'make'
124
+ end
125
+ end
126
+ end
127
+
128
+ [:test, :cucumber, 'cucumber:wip', :release].each do |task_name|
129
+ if Rake.application.lookup(task_name)
130
+ task task_name => :compile
131
+ end
132
+ end
133
+ end
116
134
  end
117
135
 
118
136
  private
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{shoe}
5
- s.version = "0.1.11"
5
+ s.version = "0.1.12"
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-10-20}
9
+ s.date = %q{2009-12-21}
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.11", "--inline-source"]
15
+ s.rdoc_options = ["--main", "README.rdoc", "--title", "shoe-0.1.12", "--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.11
4
+ version: 0.1.12
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-10-20 00:00:00 +03:00
12
+ date: 2009-12-21 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.11
73
+ - shoe-0.1.12
74
74
  - --inline-source
75
75
  require_paths:
76
76
  - lib