svxbox 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -27,6 +27,8 @@ end
27
27
  task :pushgem do
28
28
  cmd = 'gem1.8 push svxbox-' << @nv + '.gem'
29
29
  system(cmd)
30
+ cmd = 'sudo gem1.9.1 install svxbox-' << @nv + '.gem'
31
+ system(cmd)
30
32
  system('cp VERSION OLDVERSION')
31
33
  cmd = 'rm svxbox-' << @nv + '.gem'
32
34
  system(cmd)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.11
1
+ 0.0.12
@@ -13,7 +13,7 @@ module SvxBox
13
13
  # given a string, it create a hash of each word and the number of times
14
14
  # each word occurs in the text
15
15
  def svxwc(wstring)
16
- return if wstring.nil?
16
+ return unless wstring.is_a?(String)
17
17
  h = Hash.new(0)
18
18
  wstring.downcase!
19
19
  wstring.gsub!(%q{'s },' ')
@@ -13,7 +13,7 @@ module SvxBox
13
13
  end
14
14
 
15
15
  def svx_debug(msg=nil)
16
- unless ENV['RACK_ENV'] == 'production'
16
+ unless settings.environment == 'production'
17
17
  puts msg unless msg.nil?
18
18
  puts yield if block_given?
19
19
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 11
9
- version: 0.0.11
8
+ - 12
9
+ version: 0.0.12
10
10
  platform: ruby
11
11
  authors:
12
12
  - Albert Lash