Permalink
Browse files

Added support for Ruby 1.9.

  • Loading branch information...
1 parent 30f7a93 commit e9282b37992d40be1f42bac9303408d8091ccfbd @miloops miloops committed with leanucci Feb 24, 2011
Showing with 30 additions and 3 deletions.
  1. +8 −1 Gemfile
  2. +15 −0 Gemfile.lock
  3. +1 −0 lib/bravo/constants.rb
  4. +6 −2 spec/bravo/auth_data_spec.rb
View
@@ -2,9 +2,16 @@ source "http://rubygems.org"
gem "savon", "~> 0.7.8"
group :development do
- gem "ruby-debug"
+ platforms :ruby_18 do
+ gem "ruby-debug"
+ end
+ platforms :ruby_19 do
+ gem 'ruby-debug-base19', "0.11.24"
+ gem 'ruby-debug19', "0.11.6"
+ end
gem "rspec", "~> 2.4.0"
gem "bundler", "~> 1.0.0"
gem "jeweler", "~> 1.5.1"
gem "rcov", ">= 0"
end
+
View
@@ -1,6 +1,7 @@
GEM
remote: http://rubygems.org/
specs:
+ archive-tar-minitar (0.5.2)
builder (3.0.0)
columnize (0.3.2)
crack (0.1.8)
@@ -11,6 +12,8 @@ GEM
git (>= 1.2.5)
rake
linecache (0.43)
+ linecache19 (0.5.11)
+ ruby_core_source (>= 0.1.4)
rake (0.8.7)
rcov (0.9.9)
rspec (2.4.0)
@@ -26,6 +29,16 @@ GEM
ruby-debug-base (~> 0.10.4.0)
ruby-debug-base (0.10.4)
linecache (>= 0.3)
+ ruby-debug-base19 (0.11.24)
+ columnize (>= 0.3.1)
+ linecache19 (>= 0.5.11)
+ ruby_core_source (>= 0.1.4)
+ ruby-debug19 (0.11.6)
+ columnize (>= 0.3.1)
+ linecache19 (>= 0.5.11)
+ ruby-debug-base19 (>= 0.11.19)
+ ruby_core_source (0.1.4)
+ archive-tar-minitar (>= 0.5.2)
savon (0.7.9)
builder (>= 2.1.2)
crack (>= 0.1.4)
@@ -39,4 +52,6 @@ DEPENDENCIES
rcov
rspec (~> 2.4.0)
ruby-debug
+ ruby-debug-base19 (= 0.11.24)
+ ruby-debug19 (= 0.11.6)
savon (~> 0.7.8)
@@ -1,3 +1,4 @@
+# encoding: utf-8
module Bravo
CBTE_TIPO = {
"01"=>"Factura A",
@@ -3,6 +3,10 @@
describe "AuthData" do
it "should create constants for todays data" do
Bravo::AuthData.fetch
- Bravo.constants.should include("TOKEN", "SIGN")
+ if RUBY_VERSION >= "1.9"
+ Bravo.constants.should include(:TOKEN, :SIGN)
+ else
+ Bravo.constants.should include("TOKEN", "SIGN")
+ end
end
-end
+end

0 comments on commit e9282b3

Please sign in to comment.