Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 29 lines (24 sloc) 0.51 kb
175e2b6 Initial wrapper script, inspired by defunkt/repl
Samer Abukhait authored
1 $LOAD_PATH.unshift 'lib'
53e07ff Add db2 keywords to autocomplete list, use rlwrap goodies
Samer Abukhait authored
2 require "db2c"
175e2b6 Initial wrapper script, inspired by defunkt/repl
Samer Abukhait authored
3
4 def version
5 Db2c::VERSION
6 end
7
8 def git(command)
9 system("git #{command}")
10 end
11
f2a4c94 Add version info argument
Samer Abukhait authored
12 desc "Build and install gem"
13 task :build do
0b5acfd help, \h command, update docs and version up
Samer Abukhait authored
14 sh "ronn man/*.ronn"
f2a4c94 Add version info argument
Samer Abukhait authored
15 sh "gem build db2c.gemspec"
16 sh "gem install db2c-#{version}.gem"
17 end
18
175e2b6 Initial wrapper script, inspired by defunkt/repl
Samer Abukhait authored
19 desc "Push new version"
20 task :publish do
21 git "tag v#{version}"
22 git "push origin v#{version}"
23 git "push origin master"
24 git "push origin master:latest"
25 sh "gem build db2c.gemspec"
26 sh "gem push db2c-#{version}.gem"
27 git "clean -fd"
28 end
Something went wrong with that request. Please try again.