Skip to content
Newer
Older
100644 77 lines (64 sloc) 1.99 KB
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored Dec 8, 2010
1 dlext = Config::CONFIG['DLEXT']
2 direc = File.dirname(__FILE__)
3
4 require 'rake/clean'
5 require 'rake/gempackagetask'
6 require "#{direc}/lib/pry/version"
7
8 CLOBBER.include("**/*.#{dlext}", "**/*~", "**/*#*", "**/*.log", "**/*.o")
9 CLEAN.include("ext/**/*.#{dlext}", "ext/**/*.log", "ext/**/*.o",
c6ee635 @banister Ripper for 1.9, RubyParser for 1.8. Fixed 1.8 inspect difficulties, a…
banister authored Dec 17, 2010
10 "ext/**/*~", "ext/**/*#*", "ext/**/*.obj", "**/*#*", "**/*#*.*",
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored Dec 8, 2010
11 "ext/**/*.def", "ext/**/*.pdb", "**/*_flymake*.*", "**/*_flymake")
12
13 def apply_spec_defaults(s)
14 s.name = "pry"
890ca85 @banister rescuing SyntaxError as well in valid_expression?
banister authored Dec 9, 2010
15 s.summary = "attach an irb-like session to any object at runtime"
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored Dec 8, 2010
16 s.version = Pry::VERSION
17 s.date = Time.now.strftime '%Y-%m-%d'
18 s.author = "John Mair (banisterfiend)"
19 s.email = 'jrmair@gmail.com'
20 s.description = s.summary
21 s.require_path = 'lib'
22 s.add_dependency("ruby_parser",">=2.0.5")
d2009e6 @banister version bump 0.3.0, added method_doc and friends, added cat, updated …
banister authored Dec 19, 2010
23 s.add_dependency("method_source",">=0.2.0")
6aacc87 @banister Made it so defining methods on a pry'd on object puts the methods on …
banister authored Jan 24, 2011
24 s.add_development_dependency("bacon",">=1.1.0")
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored Dec 8, 2010
25 s.homepage = "http://banisterfiend.wordpress.com"
26 s.has_rdoc = 'yard'
27 s.files = Dir["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c", "lib/**/*.rb",
8682e26 @banister Version 0.4.2
banister authored Jan 27, 2011
28 "test/*.rb", "CHANGELOG", "LICENSE", "README.markdown", "Rakefile", ".gemtest"]
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored Dec 8, 2010
29 end
30
31 task :test do
32 sh "bacon -k #{direc}/test/test.rb"
33 end
34
2ca16a0 @banister Version 0.4.1
banister authored Jan 24, 2011
35 desc "display the Pry version"
36 task :show_version do
37 puts "Pry version: #{Pry::VERSION}"
38 end
39
228b95f @banister added new 'alias_command' and 'desc' commands to CommandBase; also ma…
banister authored Jan 26, 2011
40 desc "run pry"
41 task :pry do
42 require "#{direc}/lib/pry.rb"
43 Pry.start
44 end
45
8682e26 @banister Version 0.4.2
banister authored Jan 26, 2011
46 desc "show pry version"
47 task :version do
48 puts "Pry version: #{Pry::VERSION}"
49 end
50
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored Dec 8, 2010
51 namespace :ruby do
52 spec = Gem::Specification.new do |s|
53 apply_spec_defaults(s)
54 s.platform = Gem::Platform::RUBY
55 end
56
57 Rake::GemPackageTask.new(spec) do |pkg|
58 pkg.need_zip = false
59 pkg.need_tar = false
60 end
61 end
62
63 desc "build all platform gems at once"
64 task :gems => [:rmgems, "ruby:gem"]
65
66 desc "remove all platform gems"
67 task :rmgems => ["ruby:clobber_package"]
68
69 desc "build and push latest gems"
70 task :pushgems => :gems do
71 chdir("#{direc}/pkg") do
72 Dir["*.gem"].each do |gemfile|
73 sh "gem push #{gemfile}"
74 end
75 end
76 end
Something went wrong with that request. Please try again.