Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 63 lines (52 sloc) 1.64 kB
db84049 @PhilT Added Bundler for dev support (uses gemspec for dependencies). Update…
authored
1 require 'rspec/core/rake_task'
2
8da029c @PhilT cleanup rake tasks and aligned with machines gem
authored
3 desc 'tests, builds, installs and runs the app'
4 task :default => [:coverage, :integration, :install] do
5 system 'm'
6 end
7
c671ada @PhilT fixed integration specs, added autotest support, added rake integrati…
authored
8 desc 'runs the specs (except integration)'
db84049 @PhilT Added Bundler for dev support (uses gemspec for dependencies). Update…
authored
9 RSpec::Core::RakeTask.new(:spec) do |t|
10 t.pattern = [
8da029c @PhilT cleanup rake tasks and aligned with machines gem
authored
11 './spec/controllers/*_spec.rb',
12 './spec/gtk/*_spec.rb',
13 './spec/lib/*_spec.rb',
14 './spec/models/*_spec.rb'
db84049 @PhilT Added Bundler for dev support (uses gemspec for dependencies). Update…
authored
15 ]
c671ada @PhilT fixed integration specs, added autotest support, added rake integrati…
authored
16 end
17
8da029c @PhilT cleanup rake tasks and aligned with machines gem
authored
18 desc 'Generate code coverage'
db84049 @PhilT Added Bundler for dev support (uses gemspec for dependencies). Update…
authored
19 task :coverage do
20 ENV['COVERAGE'] = 'true'
21 Rake::Task['spec'].invoke
a47b951 @PhilT created gem, executable, more docs, Rakefile# Changed but not updated:
authored
22 end
23
8da029c @PhilT cleanup rake tasks and aligned with machines gem
authored
24 desc 'runs integration specs'
25 RSpec::Core::RakeTask.new(:integration) do |t|
26 t.pattern = './spec/integration/*_spec.rb'
a47b951 @PhilT created gem, executable, more docs, Rakefile# Changed but not updated:
authored
27 end
28
544fef6 @PhilT added file list widget and initially hide it
authored
29 desc 'run local app. Loads application.rb by default. Override with f=file,file,file'
5e74b41 @PhilT created gem and basic GTK Window
authored
30 task :run do
5098036 @PhilT rake run runs local merrol, titlebar shows current working dir, tweak…
authored
31 require_relative 'lib/merrol'
8073741 @PhilT added options to source view and wrapped it but needs more work to co…
authored
32 module Merrol
f25ef1d @PhilT added position and size config options for main view, added applicati…
authored
33 files = %w(lib/merrol/lib/application.rb README.md lib/merrol/lib/widget_builder.rb)
34 Application.new WORKING_DIR, (ENV['f'] && ENV['f'].split(',')) || files
8073741 @PhilT added options to source view and wrapped it but needs more work to co…
authored
35 Gtk.main
36 end
5098036 @PhilT rake run runs local merrol, titlebar shows current working dir, tweak…
authored
37 end
38
8da029c @PhilT cleanup rake tasks and aligned with machines gem
authored
39 desc 'Build and install the gem'
40 task :install do
41 gemspec_path = Dir['*.gemspec'].first
42 spec = eval(File.read(gemspec_path))
43
44 result = `gem build #{gemspec_path} 2>&1`
45 if result =~ /Successfully built/
46 system "gem uninstall -x #{spec.name} 2>&1"
47 system "gem install #{spec.file_name} --no-rdoc --no-ri 2>&1"
48 else
49 raise result
50 end
8073741 @PhilT added options to source view and wrapped it but needs more work to co…
authored
51 end
5e74b41 @PhilT created gem and basic GTK Window
authored
52
08b5b30 @PhilT added missing command test, added task to do a release to rubygems
authored
53 desc 'takes the version in the gemspec creates a git tag and sends the gem to rubygems'
54 task :release do
8da029c @PhilT cleanup rake tasks and aligned with machines gem
authored
55 gemspec_path = Dir['*.gemspec'].first
56 spec = eval(File.read(gemspec_path))
123e689 @PhilT fixed integration tests. Window must be shown otherwise we get GLib c…
authored
57
8da029c @PhilT cleanup rake tasks and aligned with machines gem
authored
58 system "git tag -f -a v#{spec.version} -m 'Version #{spec.version}'"
59 system "git push --tags"
60 system "gem push #{spec.file_name}"
08b5b30 @PhilT added missing command test, added task to do a release to rubygems
authored
61 end
62
Something went wrong with that request. Please try again.