quick_script 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module QuickScript
2
- VERSION = "0.9.8"
2
+ VERSION = "0.9.9"
3
3
  end
@@ -36,6 +36,11 @@ String.prototype.truncate = (val)->
36
36
  ret = this.substring(0, val)
37
37
  ret = ret + "..." if this.length > val
38
38
  return ret
39
+ String.prototype.rjust = (length, char)->
40
+ ret = this
41
+ while (ret.length < length)
42
+ ret = char + ret
43
+ return ret
39
44
 
40
45
  History.getRelativeUrl = ->
41
46
  url = History.getState().url
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 8
9
- version: 0.9.8
8
+ - 9
9
+ version: 0.9.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Alan Graham