Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 104 lines (87 sloc) 2.431 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"
db42e52 @banister JRuby 1.9 color turned back on, CodeRay 0.9.8 dependency fixes color …
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
19 s.homepage = "http://banisterfiend.wordpress.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")
4113c8f @strcmp Bump Slop version.
strcmp authored
25 s.add_dependency("slop","~>1.6.0")
a6bf33e move method_source dep to default gemspec
Lee Jarvis authored
26 s.add_dependency("method_source",">=0.4.0")
27 s.add_development_dependency("bacon",">=1.1.0")
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
28 end
29
30 task :test do
eeababc rename test to test_pry to allow bacon -a to autotest
Lee Jarvis authored
31 sh "bacon -Itest -rubygems -a"
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
32 end
33
228b95f @banister added new 'alias_command' and 'desc' commands to CommandBase; also ma…
banister authored
34 desc "run pry"
35 task :pry do
bbb375d @banister changed 'rake pry' to invoke executable instead of starting pry sessi…
banister authored
36 load 'bin/pry'
228b95f @banister added new 'alias_command' and 'desc' commands to CommandBase; also ma…
banister authored
37 end
38
8682e26 @banister Version 0.4.2
banister authored
39 desc "show pry version"
40 task :version do
41 puts "Pry version: #{Pry::VERSION}"
42 end
43
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
44 namespace :ruby do
45 spec = Gem::Specification.new do |s|
7ed6c17 @banister version 0.6.6, building separate jruby gem since it breaks with the r…
banister authored
46 apply_spec_defaults(s)
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
47 s.platform = Gem::Platform::RUBY
48 end
169090c dont alter LOAD_PATH and require files relative to lib/
Lee Jarvis authored
49
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
50 Rake::GemPackageTask.new(spec) do |pkg|
51 pkg.need_zip = false
52 pkg.need_tar = false
53 end
164ff2b Adding rake ruby:gemspec to dump a .gemspec file so I can bundle the …
David Palm authored
54
55 desc "Generate gemspec file"
56 task :gemspec do
57 File.open("#{spec.name}-#{spec.version}.gemspec", "w") do |f|
58 f << spec.to_ruby
7fe09c8 whitespace
David Palm authored
59 end
164ff2b Adding rake ruby:gemspec to dump a .gemspec file so I can bundle the …
David Palm authored
60 end
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
61 end
62
f1c5fa4 @banister version 0.6.7pre3, getting syntax higlighting working and adding new …
banister authored
63 [:mingw32, :mswin32].each do |v|
64 namespace v do
65 spec = Gem::Specification.new do |s|
169090c dont alter LOAD_PATH and require files relative to lib/
Lee Jarvis authored
66 apply_spec_defaults(s)
f1c5fa4 @banister version 0.6.7pre3, getting syntax higlighting working and adding new …
banister authored
67 s.add_dependency("win32console", ">=1.3.0")
68 s.platform = "i386-#{v}"
69 end
70
71 Rake::GemPackageTask.new(spec) do |pkg|
72 pkg.need_zip = false
73 pkg.need_tar = false
74 end
75 end
76 end
77
7ed6c17 @banister version 0.6.6, building separate jruby gem since it breaks with the r…
banister authored
78 namespace :jruby do
79 spec = Gem::Specification.new do |s|
80 apply_spec_defaults(s)
81 s.platform = "java"
82 end
169090c dont alter LOAD_PATH and require files relative to lib/
Lee Jarvis authored
83
7ed6c17 @banister version 0.6.6, building separate jruby gem since it breaks with the r…
banister authored
84 Rake::GemPackageTask.new(spec) do |pkg|
85 pkg.need_zip = false
86 pkg.need_tar = false
87 end
88 end
89
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
90 desc "build all platform gems at once"
cc15c76 @banister Added clean task as prerequisite to gems task
banister authored
91 task :gems => [:clean, :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
bbcf802 @banister fixed Rakefile path for pushgems task
banister authored
98 chdir("#{File.dirname(__FILE__)}/pkg") do
2dc06b2 @banister adding READMEs and CHANGELOG etc
banister authored
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.