Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 59 lines (49 sloc) 1.635 kB
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
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",
10 "ext/**/*~", "ext/**/*#*", "ext/**/*.obj",
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
15 s.summary = "attach an irb-like session to any object at runtime"
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
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")
23 s.homepage = "http://banisterfiend.wordpress.com"
24 s.has_rdoc = 'yard'
25 s.files = Dir["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c", "lib/**/*.rb",
26 "test/*.rb", "CHANGELOG", "README.markdown", "Rakefile"]
27 end
28
29 task :test do
30 sh "bacon -k #{direc}/test/test.rb"
31 end
32
33 namespace :ruby do
34 spec = Gem::Specification.new do |s|
35 apply_spec_defaults(s)
36 s.platform = Gem::Platform::RUBY
37 end
38
39 Rake::GemPackageTask.new(spec) do |pkg|
40 pkg.need_zip = false
41 pkg.need_tar = false
42 end
43 end
44
45 desc "build all platform gems at once"
46 task :gems => [:rmgems, "ruby:gem"]
47
48 desc "remove all platform gems"
49 task :rmgems => ["ruby:clobber_package"]
50
51 desc "build and push latest gems"
52 task :pushgems => :gems do
53 chdir("#{direc}/pkg") do
54 Dir["*.gem"].each do |gemfile|
55 sh "gem push #{gemfile}"
56 end
57 end
58 end
Something went wrong with that request. Please try again.