Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 104 lines (87 sloc) 2.715 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",
c6ee635 @banister Ripper for 1.9, RubyParser for 1.8. Fixed 1.8 inspect difficulties, a…
banister authored
10 "ext/**/*~", "ext/**/*#*", "ext/**/*.obj", "**/*#*", "**/*#*.*",
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
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")
f1c5fa4 @banister version 0.6.7pre3, getting syntax higlighting working and adding new …
banister authored
23 s.add_dependency("coderay",">=0.9.7")
6aacc87 @banister Made it so defining methods on a pry'd on object puts the methods on …
banister authored
24 s.add_development_dependency("bacon",">=1.1.0")
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
25 s.homepage = "http://banisterfiend.wordpress.com"
26 s.has_rdoc = 'yard'
22d31c0 @banister version 0.5.7, added Pry executable, pry --help at command line for m…
banister authored
27 s.executables = ["pry"]
d890d7b @banister version 0.4.4, oops added examples/
banister authored
28 s.files = Dir["ext/**/extconf.rb", "ext/**/*.h", "ext/**/*.c", "lib/**/*.rb", "examples/**/*.rb",
8682e26 @banister Version 0.4.2
banister authored
29 "test/*.rb", "CHANGELOG", "LICENSE", "README.markdown", "Rakefile", ".gemtest"]
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
30 end
31
32 task :test do
33 sh "bacon -k #{direc}/test/test.rb"
34 end
35
228b95f @banister added new 'alias_command' and 'desc' commands to CommandBase; also ma…
banister authored
36 desc "run pry"
37 task :pry do
38 require "#{direc}/lib/pry.rb"
39 Pry.start
40 end
41
8682e26 @banister Version 0.4.2
banister authored
42 desc "show pry version"
43 task :version do
44 puts "Pry version: #{Pry::VERSION}"
45 end
46
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
47 namespace :ruby do
48 spec = Gem::Specification.new do |s|
7ed6c17 @banister version 0.6.6, building separate jruby gem since it breaks with the r…
banister authored
49 apply_spec_defaults(s)
50 s.add_dependency("method_source",">=0.3.4")
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
51 s.platform = Gem::Platform::RUBY
52 end
53
54 Rake::GemPackageTask.new(spec) do |pkg|
55 pkg.need_zip = false
56 pkg.need_tar = false
57 end
58 end
59
f1c5fa4 @banister version 0.6.7pre3, getting syntax higlighting working and adding new …
banister authored
60 [:mingw32, :mswin32].each do |v|
61 namespace v do
62 spec = Gem::Specification.new do |s|
63 apply_spec_defaults(s)
64 s.add_dependency("method_source",">=0.3.4")
65 s.add_dependency("win32console", ">=1.3.0")
66 s.platform = "i386-#{v}"
67 end
68
69 Rake::GemPackageTask.new(spec) do |pkg|
70 pkg.need_zip = false
71 pkg.need_tar = false
72 end
73 end
74 end
75
7ed6c17 @banister version 0.6.6, building separate jruby gem since it breaks with the r…
banister authored
76 namespace :jruby do
77 spec = Gem::Specification.new do |s|
78 apply_spec_defaults(s)
79 s.add_dependency("method_source","=0.2.0")
80 s.platform = "java"
81 end
82
83 Rake::GemPackageTask.new(spec) do |pkg|
84 pkg.need_zip = false
85 pkg.need_tar = false
86 end
87 end
88
89
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
90 desc "build all platform gems at once"
f1c5fa4 @banister version 0.6.7pre3, getting syntax higlighting working and adding new …
banister authored
91 task :gems => [:rmgems, "ruby:gem", "jruby:gem", "mswin32:gem", "mingw32:gem"]
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
92
93 desc "remove all platform gems"
94 task :rmgems => ["ruby:clobber_package"]
95
96 desc "build and push latest gems"
97 task :pushgems => :gems do
98 chdir("#{direc}/pkg") do
99 Dir["*.gem"].each do |gemfile|
100 sh "gem push #{gemfile}"
101 end
102 end
103 end
Something went wrong with that request. Please try again.