Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 94 lines (79 sloc) 2.235 kB
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
1 require 'rake/clean'
2 require 'rake/gempackagetask'
7e59e5c no need for this variable, rearrange requires
Lee Jarvis authored
3
4 $:.unshift 'lib'
71ac555 unshift lib into load path
Lee Jarvis authored
5 require 'pry/version'
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
6
71ac555 unshift lib into load path
Lee Jarvis authored
7 CLOBBER.include("**/*~", "**/*#*", "**/*.log")
933ce7b @banister added first stab at amend-line, works to modify previous line in eval…
banister authored
8 CLEAN.include("**/*#*", "**/*#*.*", "**/*_flymake*.*", "**/*_flymake",
9 "**/*.rbc", "**/.#*.*")
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
10
11 def apply_spec_defaults(s)
12 s.name = "pry"
9ff0530 @banister upated homepage for gem
banister authored
13 s.summary = "An IRB alternative and runtime developer console"
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
14 s.version = Pry::VERSION
15 s.date = Time.now.strftime '%Y-%m-%d'
16 s.author = "John Mair (banisterfiend)"
17 s.email = 'jrmair@gmail.com'
18 s.description = s.summary
9ff0530 @banister upated homepage for gem
banister authored
19 s.homepage = "http://pry.github.com"
22d31c0 @banister version 0.5.7, added Pry executable, pry --help at command line for m…
banister authored
20 s.executables = ["pry"]
164ff67 use git ls-files instead of globbing ourselves
Lee Jarvis authored
21 s.files = `git ls-files`.split("\n")
8cccb4c added test_files to spec
Lee Jarvis authored
22 s.test_files = `git ls-files -- test/*`.split("\n")
a6bf33e move method_source dep to default gemspec
Lee Jarvis authored
23 s.add_dependency("ruby_parser",">=2.0.5")
a58fec0 bump coderay version to 0.9.8
Lee Jarvis authored
24 s.add_dependency("coderay",">=0.9.8")
57073b7 @banister updated slop and method_source dependencies
banister authored
25 s.add_dependency("slop","~>1.9.0")
26 s.add_dependency("method_source",">=0.6.0")
a6bf33e move method_source dep to default gemspec
Lee Jarvis authored
27 s.add_development_dependency("bacon",">=1.1.0")
3776baa @strcmp Add Open4 as a development dependency.
strcmp authored
28 s.add_development_dependency("open4", "~>1.0.1")
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
29 end
30
28b58fb Adding a Desc to the test task so it shows up running "rake -T"
David Palm authored
31 desc "Run tests"
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
32 task :test do
eeababc rename test to test_pry to allow bacon -a to autotest
Lee Jarvis authored
33 sh "bacon -Itest -rubygems -a"
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
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
bbb375d @banister changed 'rake pry' to invoke executable instead of starting pry sessi…
banister authored
38 load 'bin/pry'
228b95f @banister added new 'alias_command' and 'desc' commands to CommandBase; also ma…
banister authored
39 end
40
8682e26 @banister Version 0.4.2
banister authored
41 desc "show pry version"
42 task :version do
43 puts "Pry version: #{Pry::VERSION}"
44 end
45
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
46 namespace :ruby do
47 spec = Gem::Specification.new do |s|
7ed6c17 @banister version 0.6.6, building separate jruby gem since it breaks with the r…
banister authored
48 apply_spec_defaults(s)
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
49 s.platform = Gem::Platform::RUBY
50 end
169090c dont alter LOAD_PATH and require files relative to lib/
Lee Jarvis authored
51
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
52 Rake::GemPackageTask.new(spec) do |pkg|
53 pkg.need_zip = false
54 pkg.need_tar = false
55 end
57073b7 @banister updated slop and method_source dependencies
banister authored
56
164ff2b Adding rake ruby:gemspec to dump a .gemspec file so I can bundle the …
David Palm authored
57 desc "Generate gemspec file"
58 task :gemspec do
4bba687 Removing versioning from gemspec file: just plain "pry.gemspec" now
David Palm authored
59 File.open("#{spec.name}.gemspec", "w") do |f|
164ff2b Adding rake ruby:gemspec to dump a .gemspec file so I can bundle the …
David Palm authored
60 f << spec.to_ruby
7fe09c8 whitespace
David Palm authored
61 end
164ff2b Adding rake ruby:gemspec to dump a .gemspec file so I can bundle the …
David Palm authored
62 end
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
63 end
64
f1c5fa4 @banister version 0.6.7pre3, getting syntax higlighting working and adding new …
banister authored
65 [:mingw32, :mswin32].each do |v|
66 namespace v do
67 spec = Gem::Specification.new do |s|
169090c dont alter LOAD_PATH and require files relative to lib/
Lee Jarvis authored
68 apply_spec_defaults(s)
f1c5fa4 @banister version 0.6.7pre3, getting syntax higlighting working and adding new …
banister authored
69 s.add_dependency("win32console", ">=1.3.0")
70 s.platform = "i386-#{v}"
71 end
72
73 Rake::GemPackageTask.new(spec) do |pkg|
74 pkg.need_zip = false
75 pkg.need_tar = false
76 end
77 end
78 end
79
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
80 desc "build all platform gems at once"
6f5037f @banister removed jruby package, it has no specific needs anymore
banister authored
81 task :gems => [:clean, :rmgems, "ruby:gem", "mswin32:gem", "mingw32:gem"]
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
82
83 desc "remove all platform gems"
84 task :rmgems => ["ruby:clobber_package"]
85
86 desc "build and push latest gems"
87 task :pushgems => :gems do
bbcf802 @banister fixed Rakefile path for pushgems task
banister authored
88 chdir("#{File.dirname(__FILE__)}/pkg") do
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
89 Dir["*.gem"].each do |gemfile|
90 sh "gem push #{gemfile}"
91 end
92 end
93 end
Something went wrong with that request. Please try again.