soywiki 0.1.6 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/Rakefile +16 -0
  2. data/lib/soywiki.rb +1 -1
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -13,8 +13,24 @@ Bundler::GemHelper.install_tasks
13
13
  desc "release and build and push new website"
14
14
  task :push => [:release, :build_webpage]
15
15
 
16
+ desc "Bumps version number up one and git commits"
17
+ task :bump do
18
+ basefile = "lib/soywiki.rb"
19
+ file = File.read(basefile)
20
+ oldver = file[/VERSION = '(\d.\d.\d)'/, 1]
21
+ newver_i = oldver.gsub(".", '').to_i + 1
22
+ newver = ("%.3d" % newver_i).split(//).join('.')
23
+ puts oldver
24
+ puts newver
25
+ puts "Bumping version: #{oldver} => #{newver}"
26
+ newfile = file.gsub("VERSION = '#{oldver}'", "VERSION = '#{newver}'")
27
+ File.open(basefile, 'w') {|f| f.write newfile}
28
+ `git commit -am 'Bump'`
29
+ end
30
+
16
31
  desc "build and push website"
17
32
  task :web => :build_webpage do
33
+ "Building and pushing website"
18
34
  `scp website/soywiki.html zoe2@instantwatcher.com:~/danielchoi.com/public/software/`
19
35
  end
20
36
 
@@ -1,7 +1,7 @@
1
1
  require 'string_ext'
2
2
 
3
3
  module Soywiki
4
- VERSION = '0.1.6'
4
+ VERSION = '0.1.9'
5
5
  WIKI_WORD = /\b([a-z][\w_]+\.)?[A-Z][a-z]+[A-Z]\w*\b/
6
6
 
7
7
  def self.run
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 6
9
- version: 0.1.6
8
+ - 9
9
+ version: 0.1.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi