Permalink
Browse files

Ruby 1.9 compatibility and other tweaks

  • Loading branch information...
1 parent 86ffda1 commit e5d4c0084b61171df00990904587803f10e0459e @epall epall committed May 18, 2011
Showing with 24 additions and 19 deletions.
  1. +17 −16 .gitignore
  2. +3 −0 Gemfile
  3. +4 −3 rakefile → Rakefile
View
@@ -1,16 +1,17 @@
-_site
-bin
-src/XRefresh.ncb
-src/XRefresh.suo
-src/iexplorer/XRefresh.h
-src/iexplorer/XRefreshAddon.vcproj.WAP.woid.user
-src/iexplorer/XRefresh_i.c
-src/iexplorer/XRefresh_p.c
-src/winmonitor/obj/
-tmp/
-rel/
-src/iexplorer/XRefresh.aps
-_layouts
-shared
-*.TMP
-*.user
+_site
+bin
+src/XRefresh.ncb
+src/XRefresh.suo
+src/iexplorer/XRefresh.h
+src/iexplorer/XRefreshAddon.vcproj.WAP.woid.user
+src/iexplorer/XRefresh_i.c
+src/iexplorer/XRefresh_p.c
+src/winmonitor/obj/
+tmp/
+rel/
+src/iexplorer/XRefresh.aps
+_layouts
+shared
+*.TMP
+*.user
+Gemfile.lock
View
@@ -0,0 +1,3 @@
+source :rubygems
+
+gem 'term-ansicolor'
View
@@ -4,8 +4,9 @@ DST = File.join(ROOT, 'rel')
TMP = File.join(ROOT, 'tmp')
unless defined? OSX then
- OSX = PLATFORM =~ /darwin/
- WIN = PLATFORM =~ /win32/
+ platform = PLATFORM rescue RUBY_PLATFORM
+ OSX = platform =~ /darwin/
+ WIN = platform =~ /win32/
NIX = !(OSX || WIN)
end
@@ -102,4 +103,4 @@ task :default do
Dir.chdir(owd)
remove_dir(TMP) if File.exist?(TMP) # recursive!
puts "-> #{blue(res)}"
-end
+end

0 comments on commit e5d4c00

Please sign in to comment.