Permalink
Browse files

Updating so the Gemfile sources dependencies from the flashsdk.gemspec

  • Loading branch information...
1 parent 250392c commit cc238d2a3824640ae173404066bf32ea866b35e3 @simongregory simongregory committed Sep 30, 2011
Showing with 46 additions and 49 deletions.
  1. +1 −7 Gemfile
  2. +3 −0 flashsdk.gemspec
  3. +42 −42 rakefile.rb
View
8 Gemfile
@@ -1,9 +1,3 @@
source "http://rubygems.org"
-gem 'sprout', '>= 1.1.15.pre'
-
-group :development do
- gem "shoulda"
- gem "mocha"
-end
-
+gemspec
View
3 flashsdk.gemspec
@@ -18,6 +18,9 @@ Gem::Specification.new do |s|
s.files = Dir['**/*']
s.files.reject! { |fn| fn.match /.git|.svn|.DS_Store/ }
s.add_dependency('sprout', '>= 1.1.15.pre')
+ s.add_development_dependency "shoulda"
+ s.add_development_dependency "mocha"
+ s.add_development_dependency "rake"
s.require_paths << 'lib'
end
View
84 rakefile.rb
@@ -1,42 +1,42 @@
-require 'rubygems'
-require 'bundler'
-
-test_package = File.join(File.dirname(__FILE__), 'test', 'unit')
-$: << test_package unless $:.include? test_package
-
-Bundler.require
-
-require 'rake'
-require 'rake/clean'
-require 'rake/testtask'
-
-require File.join(File.dirname(__FILE__), 'lib', 'flashsdk', 'module')
-
-namespace :test do
- Rake::TestTask.new(:units) do |t|
- t.libs << "test/unit"
- t.test_files = FileList["test/unit/*_test.rb"]
- t.verbose = true
- end
-end
-
-desc "Run the test harness"
-task :test => 'test:units'
-
-file 'pkg' do
- FileUtils.makedirs 'pkg'
-end
-
-gem_package = "flashsdk-#{FlashSDK::VERSION}.gem"
-
-file "pkg/#{gem_package}" => [:clean, 'pkg'] do
- sh "gem build flashsdk.gemspec"
- FileUtils.mv gem_package, "pkg/#{gem_package}"
-end
-
-desc "Create the gem package"
-task :package => "pkg/#{gem_package}"
-
-CLEAN.add gem_package
-CLEAN.add 'pkg'
-
+$:.unshift File.expand_path("../lib", __FILE__)
+
+require 'rubygems'
+require "bundler/gem_tasks"
+
+test_package = File.join(File.dirname(__FILE__), 'test', 'unit')
+$: << test_package unless $:.include? test_package
+
+Bundler.require
+
+require 'rake/clean'
+require 'rake/testtask'
+
+#require File.join(File.dirname(__FILE__), 'lib', 'flashsdk', 'module')
+
+namespace :test do
+ Rake::TestTask.new(:units) do |t|
+ t.libs << "test/unit"
+ t.test_files = FileList["test/unit/*_test.rb"]
+ t.verbose = true
+ end
+end
+
+desc "Run the test harness"
+task :test => 'test:units'
+
+file 'pkg' do
+ FileUtils.makedirs 'pkg'
+end
+
+gem_package = "flashsdk-#{FlashSDK::VERSION}.gem"
+
+file "pkg/#{gem_package}" => [:clean, 'pkg'] do
+ sh "gem build flashsdk.gemspec"
+ FileUtils.mv gem_package, "pkg/#{gem_package}"
+end
+
+desc "Create the gem package"
+task :package => "pkg/#{gem_package}"
+
+CLEAN.add gem_package
+CLEAN.add 'pkg'

0 comments on commit cc238d2

Please sign in to comment.