Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 105 lines (88 sloc) 2.466 kb
2dc06b2 John Mair 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 John Mair adding READMEs and CHANGELOG etc
banister authored
6
71ac555 unshift lib into load path
Lee Jarvis authored
7 CLOBBER.include("**/*~", "**/*#*", "**/*.log")
933ce7b John Mair added first stab at amend-line, works to modify previous line in eval_st...
banister authored
8 CLEAN.include("**/*#*", "**/*#*.*", "**/*_flymake*.*", "**/*_flymake",
9 "**/*.rbc", "**/.#*.*")
2dc06b2 John Mair adding READMEs and CHANGELOG etc
banister authored
10
11 def apply_spec_defaults(s)
12 s.name = "pry"
db42e52 John Mair JRuby 1.9 color turned back on, CodeRay 0.9.8 dependency fixes color in ...
banister authored
13 s.summary = "an IRB alternative and runtime developer console"
2dc06b2 John Mair 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 John Mair version 0.5.7, added Pry executable, pry --help at command line for more...
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 Bump Slop version.
Rob Gleeson 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")
3776baa Add Open4 as a development dependency.
Rob Gleeson authored
28 s.add_development_dependency("open4", "~>1.0.1")
2dc06b2 John Mair adding READMEs and CHANGELOG etc
banister authored
29 end
30
31 task :test do
eeababc rename test to test_pry to allow bacon -a to autotest
Lee Jarvis authored
32 sh "bacon -Itest -rubygems -a"
2dc06b2 John Mair adding READMEs and CHANGELOG etc
banister authored
33 end
34
228b95f John Mair added new 'alias_command' and 'desc' commands to CommandBase; also made ...
banister authored
35 desc "run pry"
36 task :pry do
bbb375d John Mair changed 'rake pry' to invoke executable instead of starting pry session ...
banister authored
37 load 'bin/pry'
228b95f John Mair added new 'alias_command' and 'desc' commands to CommandBase; also made ...
banister authored
38 end
39
8682e26 John Mair Version 0.4.2
banister authored
40 desc "show pry version"
41 task :version do
42 puts "Pry version: #{Pry::VERSION}"
43 end
44
2dc06b2 John Mair adding READMEs and CHANGELOG etc
banister authored
45 namespace :ruby do
46 spec = Gem::Specification.new do |s|
7ed6c17 John Mair version 0.6.6, building separate jruby gem since it breaks with the rece...
banister authored
47 apply_spec_defaults(s)
2dc06b2 John Mair adding READMEs and CHANGELOG etc
banister authored
48 s.platform = Gem::Platform::RUBY
49 end
169090c dont alter LOAD_PATH and require files relative to lib/
Lee Jarvis authored
50
2dc06b2 John Mair adding READMEs and CHANGELOG etc
banister authored
51 Rake::GemPackageTask.new(spec) do |pkg|
52 pkg.need_zip = false
53 pkg.need_tar = false
54 end
164ff2b Adding rake ruby:gemspec to dump a .gemspec file so I can bundle the gem...
David Palm authored
55
56 desc "Generate gemspec file"
57 task :gemspec do
4bba687 Removing versioning from gemspec file: just plain "pry.gemspec" now
David Palm authored
58 File.open("#{spec.name}.gemspec", "w") do |f|
164ff2b Adding rake ruby:gemspec to dump a .gemspec file so I can bundle the gem...
David Palm authored
59 f << spec.to_ruby
7fe09c8 whitespace
David Palm authored
60 end
164ff2b Adding rake ruby:gemspec to dump a .gemspec file so I can bundle the gem...
David Palm authored
61 end
2dc06b2 John Mair adding READMEs and CHANGELOG etc
banister authored
62 end
63
f1c5fa4 John Mair version 0.6.7pre3, getting syntax higlighting working and adding new com...
banister authored
64 [:mingw32, :mswin32].each do |v|
65 namespace v do
66 spec = Gem::Specification.new do |s|
169090c dont alter LOAD_PATH and require files relative to lib/
Lee Jarvis authored
67 apply_spec_defaults(s)
f1c5fa4 John Mair version 0.6.7pre3, getting syntax higlighting working and adding new com...
banister authored
68 s.add_dependency("win32console", ">=1.3.0")
69 s.platform = "i386-#{v}"
70 end
71
72 Rake::GemPackageTask.new(spec) do |pkg|
73 pkg.need_zip = false
74 pkg.need_tar = false
75 end
76 end
77 end
78
7ed6c17 John Mair version 0.6.6, building separate jruby gem since it breaks with the rece...
banister authored
79 namespace :jruby do
80 spec = Gem::Specification.new do |s|
81 apply_spec_defaults(s)
82 s.platform = "java"
83 end
169090c dont alter LOAD_PATH and require files relative to lib/
Lee Jarvis authored
84
7ed6c17 John Mair version 0.6.6, building separate jruby gem since it breaks with the rece...
banister authored
85 Rake::GemPackageTask.new(spec) do |pkg|
86 pkg.need_zip = false
87 pkg.need_tar = false
88 end
89 end
90
2dc06b2 John Mair adding READMEs and CHANGELOG etc
banister authored
91 desc "build all platform gems at once"
cc15c76 John Mair Added clean task as prerequisite to gems task
banister authored
92 task :gems => [:clean, :rmgems, "ruby:gem", "jruby:gem", "mswin32:gem", "mingw32:gem"]
2dc06b2 John Mair adding READMEs and CHANGELOG etc
banister authored
93
94 desc "remove all platform gems"
95 task :rmgems => ["ruby:clobber_package"]
96
97 desc "build and push latest gems"
98 task :pushgems => :gems do
bbcf802 John Mair fixed Rakefile path for pushgems task
banister authored
99 chdir("#{File.dirname(__FILE__)}/pkg") do
2dc06b2 John Mair adding READMEs and CHANGELOG etc
banister authored
100 Dir["*.gem"].each do |gemfile|
101 sh "gem push #{gemfile}"
102 end
103 end
104 end
Something went wrong with that request. Please try again.