do_sqlite3 0.10.3-x86-mswin32-60 → 0.10.4.rc1-x86-mswin32-60
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.
- data/LICENSE +1 -1
- data/README.markdown +2 -9
- data/Rakefile +12 -45
- data/ext/do_sqlite3/do_common.c +526 -0
- data/ext/do_sqlite3/do_common.h +170 -0
- data/ext/do_sqlite3/do_sqlite3.c +171 -537
- data/ext/do_sqlite3/do_sqlite3.h +3 -49
- data/ext/do_sqlite3/do_sqlite3_extension.c +28 -29
- data/ext/do_sqlite3/error.h +30 -56
- data/lib/do_sqlite3.rb +8 -3
- data/lib/do_sqlite3/1.8/do_sqlite3.so +0 -0
- data/lib/do_sqlite3/1.9/do_sqlite3.so +0 -0
- data/lib/do_sqlite3/version.rb +1 -1
- data/spec/command_spec.rb +2 -2
- data/spec/connection_spec.rb +9 -9
- data/spec/encoding_spec.rb +3 -3
- data/spec/error/sql_error_spec.rb +2 -2
- data/spec/reader_spec.rb +2 -2
- data/spec/result_spec.rb +4 -4
- data/spec/spec_helper.rb +14 -11
- data/spec/typecast/array_spec.rb +2 -2
- data/spec/typecast/bigdecimal_spec.rb +2 -2
- data/spec/typecast/boolean_spec.rb +2 -2
- data/spec/typecast/byte_array_spec.rb +2 -2
- data/spec/typecast/class_spec.rb +2 -2
- data/spec/typecast/date_spec.rb +2 -2
- data/spec/typecast/datetime_spec.rb +2 -2
- data/spec/typecast/float_spec.rb +3 -3
- data/spec/typecast/integer_spec.rb +2 -2
- data/spec/typecast/nil_spec.rb +5 -5
- data/spec/typecast/other_spec.rb +2 -2
- data/spec/typecast/range_spec.rb +2 -2
- data/spec/typecast/string_spec.rb +2 -2
- data/spec/typecast/time_spec.rb +2 -2
- data/tasks/compile.rake +28 -29
- data/tasks/spec.rake +8 -19
- metadata +50 -47
    
        data/spec/spec_helper.rb
    CHANGED
    
    | @@ -2,6 +2,7 @@ $TESTING=true | |
| 2 2 | 
             
            JRUBY = RUBY_PLATFORM =~ /java/
         | 
| 3 3 |  | 
| 4 4 | 
             
            require 'rubygems'
         | 
| 5 | 
            +
            require 'rspec'
         | 
| 5 6 | 
             
            require 'date'
         | 
| 6 7 | 
             
            require 'ostruct'
         | 
| 7 8 | 
             
            require 'fileutils'
         | 
| @@ -19,19 +20,18 @@ repo_root = File.expand_path('../../..', __FILE__) | |
| 19 20 | 
             
            end
         | 
| 20 21 |  | 
| 21 22 | 
             
            require 'data_objects'
         | 
| 22 | 
            -
            require 'data_objects/spec/ | 
| 23 | 
            +
            require 'data_objects/spec/setup'
         | 
| 24 | 
            +
            require 'data_objects/spec/lib/pending_helpers'
         | 
| 23 25 | 
             
            require 'do_sqlite3'
         | 
| 24 26 |  | 
| 25 | 
            -
            DataObjects::Sqlite3.logger = DataObjects::Logger.new(STDOUT, :off)
         | 
| 26 | 
            -
            at_exit { DataObjects.logger.flush }
         | 
| 27 27 |  | 
| 28 | 
            -
            CONFIG | 
| 29 | 
            -
            CONFIG.scheme | 
| 30 | 
            -
            CONFIG.database | 
| 31 | 
            -
             | 
| 32 | 
            -
            CONFIG. | 
| 33 | 
            -
            CONFIG.jdbc_driver | 
| 34 | 
            -
            CONFIG.jdbc_uri | 
| 28 | 
            +
            CONFIG              = OpenStruct.new
         | 
| 29 | 
            +
            CONFIG.scheme       = 'sqlite3'
         | 
| 30 | 
            +
            CONFIG.database     = ENV['DO_SQLITE3_DATABASE'] || ":memory:"
         | 
| 31 | 
            +
            CONFIG.uri          = ENV["DO_SQLITE3_SPEC_URI"] || "#{CONFIG.scheme}:#{CONFIG.database}"
         | 
| 32 | 
            +
            CONFIG.driver       = 'sqlite3'
         | 
| 33 | 
            +
            CONFIG.jdbc_driver  = DataObjects::Sqlite3.const_get('JDBC_DRIVER') rescue nil
         | 
| 34 | 
            +
            CONFIG.jdbc_uri     = CONFIG.uri.sub(/sqlite3/,"jdbc:sqlite")
         | 
| 35 35 |  | 
| 36 36 | 
             
            module DataObjectsSpecHelpers
         | 
| 37 37 |  | 
| @@ -140,4 +140,7 @@ module DataObjectsSpecHelpers | |
| 140 140 |  | 
| 141 141 | 
             
            end
         | 
| 142 142 |  | 
| 143 | 
            -
             | 
| 143 | 
            +
            RSpec.configure do |config|
         | 
| 144 | 
            +
              config.include(DataObjectsSpecHelpers)
         | 
| 145 | 
            +
              config.include(DataObjects::Spec::PendingHelpers)
         | 
| 146 | 
            +
            end
         | 
    
        data/spec/typecast/array_spec.rb
    CHANGED
    
    | @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/array_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/array_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            describe 'DataObjects::Sqlite3 with Array' do
         | 
| 7 | 
            -
               | 
| 7 | 
            +
              it_should_behave_like 'supporting Array'
         | 
| 8 8 | 
             
            end
         | 
| @@ -1,11 +1,11 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/bigdecimal_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/bigdecimal_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            # Sqlite3 doesn't support decimals natively, so autocasting is not available:
         | 
| 7 7 | 
             
            # http://www.sqlite.org/datatype3.html
         | 
| 8 8 |  | 
| 9 9 | 
             
            describe 'DataObjects::Sqlite3 with BigDecimal' do
         | 
| 10 | 
            -
               | 
| 10 | 
            +
              it_should_behave_like 'supporting BigDecimal'
         | 
| 11 11 | 
             
            end
         | 
| @@ -1,11 +1,11 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/boolean_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/boolean_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            # Sqlite3 doesn't support booleans natively, so autocasting is not available:
         | 
| 7 7 | 
             
            # http://www.sqlite.org/datatype3.html
         | 
| 8 8 |  | 
| 9 9 | 
             
            describe 'DataObjects::Sqlite3 with Boolean' do
         | 
| 10 | 
            -
               | 
| 10 | 
            +
              it_should_behave_like 'supporting Boolean'
         | 
| 11 11 | 
             
            end
         | 
| @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/byte_array_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/byte_array_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            describe 'DataObjects::Sqlite3 with ByteArray' do
         | 
| 7 | 
            -
               | 
| 7 | 
            +
              it_should_behave_like 'supporting ByteArray'
         | 
| 8 8 | 
             
            end
         | 
    
        data/spec/typecast/class_spec.rb
    CHANGED
    
    | @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/class_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/class_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            describe 'DataObjects::Sqlite3 with Class' do
         | 
| 7 | 
            -
               | 
| 7 | 
            +
              it_should_behave_like 'supporting Class'
         | 
| 8 8 | 
             
            end
         | 
    
        data/spec/typecast/date_spec.rb
    CHANGED
    
    | @@ -1,11 +1,11 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/date_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/date_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            # Sqlite3 doesn't support dates natively, so autocasting is not available:
         | 
| 7 7 | 
             
            # http://www.sqlite.org/datatype3.html
         | 
| 8 8 |  | 
| 9 9 | 
             
            describe 'DataObjects::Sqlite3 with Date' do
         | 
| 10 | 
            -
               | 
| 10 | 
            +
              it_should_behave_like 'supporting Date'
         | 
| 11 11 | 
             
            end
         | 
| @@ -1,11 +1,11 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/datetime_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/datetime_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            # Sqlite3 doesn't support datetimes natively, so autocasting is not available:
         | 
| 7 7 | 
             
            # http://www.sqlite.org/datatype3.html
         | 
| 8 8 |  | 
| 9 9 | 
             
            describe 'DataObjects::Sqlite3 with DateTime' do
         | 
| 10 | 
            -
               | 
| 10 | 
            +
              it_should_behave_like 'supporting DateTime'
         | 
| 11 11 | 
             
            end
         | 
    
        data/spec/typecast/float_spec.rb
    CHANGED
    
    | @@ -1,12 +1,12 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/float_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/float_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            describe 'DataObjects::Sqlite3 with Float' do
         | 
| 7 | 
            -
               | 
| 7 | 
            +
              it_should_behave_like 'supporting Float'
         | 
| 8 8 | 
             
            end
         | 
| 9 9 |  | 
| 10 10 | 
             
            describe 'DataObjects::Sqlite3 with Float' do
         | 
| 11 | 
            -
               | 
| 11 | 
            +
              it_should_behave_like 'supporting Float autocasting'
         | 
| 12 12 | 
             
            end
         | 
| @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/integer_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/integer_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            describe 'DataObjects::Sqlite3 with Integer' do
         | 
| 7 | 
            -
               | 
| 7 | 
            +
              it_should_behave_like 'supporting Integer'
         | 
| 8 8 | 
             
            end
         | 
    
        data/spec/typecast/nil_spec.rb
    CHANGED
    
    | @@ -1,20 +1,20 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/nil_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/nil_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            # splitting the descibe into two separate declaration avoids
         | 
| 7 | 
            -
            # concurrent execution of the " | 
| 7 | 
            +
            # concurrent execution of the "it_should_behave_like ....." calls
         | 
| 8 8 | 
             
            # which would lock the database
         | 
| 9 9 |  | 
| 10 10 | 
             
            describe 'DataObjects::Sqlite3 with Nil' do
         | 
| 11 | 
            -
               | 
| 11 | 
            +
              it_should_behave_like 'supporting Nil'
         | 
| 12 12 | 
             
            end
         | 
| 13 13 |  | 
| 14 14 | 
             
            describe 'DataObjects::Sqlite3 with Nil' do
         | 
| 15 | 
            -
               | 
| 15 | 
            +
              it_should_behave_like 'supporting writing an Nil'
         | 
| 16 16 | 
             
            end
         | 
| 17 17 |  | 
| 18 18 | 
             
            describe 'DataObjects::Sqlite3 with Nil' do
         | 
| 19 | 
            -
               | 
| 19 | 
            +
              it_should_behave_like 'supporting Nil autocasting'
         | 
| 20 20 | 
             
            end
         | 
    
        data/spec/typecast/other_spec.rb
    CHANGED
    
    | @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/other_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/other_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            describe 'DataObjects::H2 with other (unknown) type' do
         | 
| 7 | 
            -
               | 
| 7 | 
            +
              it_should_behave_like 'supporting other (unknown) type'
         | 
| 8 8 | 
             
            end
         | 
    
        data/spec/typecast/range_spec.rb
    CHANGED
    
    | @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/range_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/range_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            describe 'DataObjects::Sqlite3 with Range' do
         | 
| 7 | 
            -
               | 
| 7 | 
            +
              it_should_behave_like 'supporting Range'
         | 
| 8 8 | 
             
            end
         | 
| @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/string_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/string_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            describe 'DataObjects::Sqlite3 with String' do
         | 
| 7 | 
            -
               | 
| 7 | 
            +
              it_should_behave_like 'supporting String'
         | 
| 8 8 | 
             
            end
         | 
    
        data/spec/typecast/time_spec.rb
    CHANGED
    
    | @@ -1,8 +1,8 @@ | |
| 1 1 | 
             
            # encoding: utf-8
         | 
| 2 2 |  | 
| 3 3 | 
             
            require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
         | 
| 4 | 
            -
            require 'data_objects/spec/typecast/time_spec'
         | 
| 4 | 
            +
            require 'data_objects/spec/shared/typecast/time_spec'
         | 
| 5 5 |  | 
| 6 6 | 
             
            describe 'DataObjects::Sqlite3 with Time' do
         | 
| 7 | 
            -
               | 
| 7 | 
            +
              it_should_behave_like 'supporting Time'
         | 
| 8 8 | 
             
            end
         | 
    
        data/tasks/compile.rake
    CHANGED
    
    | @@ -3,50 +3,49 @@ begin | |
| 3 3 | 
             
              require 'rake/extensiontask'
         | 
| 4 4 | 
             
              require 'rake/javaextensiontask'
         | 
| 5 5 |  | 
| 6 | 
            -
              # Hack to avoid "allocator undefined for Proc" issue when unpacking Gems:
         | 
| 7 | 
            -
              # gemspec provided by Jeweler uses Rake::FileList for files, test_files and
         | 
| 8 | 
            -
              # extra_rdoc_files, and procs cannot be marshalled.
         | 
| 9 6 | 
             
              def gemspec
         | 
| 10 | 
            -
                @clean_gemspec ||=  | 
| 7 | 
            +
                @clean_gemspec ||= Gem::Specification::load(File.expand_path('../../do_sqlite3.gemspec', __FILE__))
         | 
| 11 8 | 
             
              end
         | 
| 12 9 |  | 
| 13 | 
            -
               | 
| 10 | 
            +
              unless JRUBY
         | 
| 11 | 
            +
                Rake::ExtensionTask.new('do_sqlite3', gemspec) do |ext|
         | 
| 14 12 |  | 
| 15 | 
            -
             | 
| 13 | 
            +
                  sqlite3_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'vendor', 'sqlite3'))
         | 
| 16 14 |  | 
| 17 | 
            -
             | 
| 15 | 
            +
                  ext.lib_dir = "lib/#{gemspec.name}"
         | 
| 18 16 |  | 
| 19 | 
            -
             | 
| 20 | 
            -
             | 
| 21 | 
            -
             | 
| 17 | 
            +
                  ext.cross_compile = true
         | 
| 18 | 
            +
                  ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60']
         | 
| 19 | 
            +
                  ext.cross_config_options << "--with-sqlite3-dir=#{sqlite3_lib}"
         | 
| 22 20 |  | 
| 23 | 
            -
             | 
| 24 | 
            -
             | 
| 21 | 
            +
                  ext.cross_compiling do |gemspec|
         | 
| 22 | 
            +
                    gemspec.post_install_message = <<-POST_INSTALL_MESSAGE
         | 
| 25 23 |  | 
| 26 | 
            -
            =============================================================================
         | 
| 24 | 
            +
              =============================================================================
         | 
| 27 25 |  | 
| 28 | 
            -
             | 
| 29 | 
            -
             | 
| 30 | 
            -
             | 
| 26 | 
            +
                You've installed the binary version of #{gemspec.name}.
         | 
| 27 | 
            +
                It was built using Sqlite3 version #{BINARY_VERSION}.
         | 
| 28 | 
            +
                It's recommended to use the exact same version to avoid potential issues.
         | 
| 31 29 |  | 
| 32 | 
            -
             | 
| 33 | 
            -
             | 
| 30 | 
            +
                At the time of building this gem, the necessary DLL files where available
         | 
| 31 | 
            +
                in the following download:
         | 
| 34 32 |  | 
| 35 | 
            -
             | 
| 33 | 
            +
                http://www.sqlite.org/sqlitedll-#{BINARY_VERSION}.zip
         | 
| 36 34 |  | 
| 37 | 
            -
             | 
| 38 | 
            -
             | 
| 35 | 
            +
                You can put the sqlite3.dll available in this package in your Ruby bin
         | 
| 36 | 
            +
                directory, for example C:\\Ruby\\bin
         | 
| 39 37 |  | 
| 40 | 
            -
            =============================================================================
         | 
| 38 | 
            +
              =============================================================================
         | 
| 41 39 |  | 
| 42 | 
            -
             | 
| 43 | 
            -
             | 
| 40 | 
            +
                    POST_INSTALL_MESSAGE
         | 
| 41 | 
            +
                  end
         | 
| 44 42 |  | 
| 45 | 
            -
             | 
| 46 | 
            -
             | 
| 47 | 
            -
             | 
| 48 | 
            -
             | 
| 43 | 
            +
                  # automatically add build options to avoid need of manual input
         | 
| 44 | 
            +
                  if RUBY_PLATFORM =~ /mswin|mingw/ then
         | 
| 45 | 
            +
                    ext.config_options << "--with-sqlite3-dir=#{sqlite3_lib}"
         | 
| 46 | 
            +
                  end
         | 
| 49 47 |  | 
| 48 | 
            +
                end
         | 
| 50 49 | 
             
              end
         | 
| 51 50 |  | 
| 52 51 | 
             
              Rake::JavaExtensionTask.new('do_sqlite3', gemspec) do |ext|
         | 
| @@ -56,7 +55,7 @@ begin | |
| 56 55 | 
             
                ext.classpath = '../do_jdbc/lib/do_jdbc_internal.jar'
         | 
| 57 56 | 
             
                ext.java_compiling do |gem|
         | 
| 58 57 | 
             
                  gem.add_dependency 'jdbc-sqlite3', '>=3.5.8'
         | 
| 59 | 
            -
                  gem.add_dependency 'do_jdbc',      '0.10. | 
| 58 | 
            +
                  gem.add_dependency 'do_jdbc',      '0.10.4.rc1'
         | 
| 60 59 | 
             
                end
         | 
| 61 60 | 
             
              end
         | 
| 62 61 | 
             
            rescue LoadError
         | 
    
        data/tasks/spec.rake
    CHANGED
    
    | @@ -1,23 +1,12 @@ | |
| 1 | 
            -
            require ' | 
| 1 | 
            +
            require 'rspec/core/rake_task'
         | 
| 2 2 |  | 
| 3 | 
            -
             | 
| 4 | 
            -
              spec. | 
| 5 | 
            -
              spec. | 
| 6 | 
            -
              spec.verbose = true
         | 
| 3 | 
            +
            RSpec::Core::RakeTask.new(:spec => [:clean, :compile]) do |spec|
         | 
| 4 | 
            +
              spec.pattern      = './spec/**/*_spec.rb'
         | 
| 5 | 
            +
              spec.skip_bundler = true
         | 
| 7 6 | 
             
            end
         | 
| 8 7 |  | 
| 9 | 
            -
             | 
| 10 | 
            -
             | 
| 11 | 
            -
             | 
| 12 | 
            -
             | 
| 13 | 
            -
              require 'rcov/rcovtask'
         | 
| 14 | 
            -
              Rcov::RcovTask.new do |spec|
         | 
| 15 | 
            -
                spec.libs   << 'spec'
         | 
| 16 | 
            -
                spec.pattern = 'spec/**/*_spec.rb'
         | 
| 17 | 
            -
                spec.verbose = true
         | 
| 18 | 
            -
              end
         | 
| 19 | 
            -
            rescue LoadError
         | 
| 20 | 
            -
              task :rcov do
         | 
| 21 | 
            -
                abort 'RCov is not available. In order to run rcov, you must: gem install rcov'
         | 
| 22 | 
            -
              end
         | 
| 8 | 
            +
            RSpec::Core::RakeTask.new(:rcov => [:clean, :compile]) do |rcov|
         | 
| 9 | 
            +
              rcov.pattern    = "./spec/**/*_spec.rb"
         | 
| 10 | 
            +
              rcov.rcov       = true
         | 
| 11 | 
            +
              rcov.rcov_opts  = File.read('spec/rcov.opts').split(/\s+/)
         | 
| 23 12 | 
             
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,13 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: do_sqlite3
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              hash:  | 
| 5 | 
            -
              prerelease:  | 
| 4 | 
            +
              hash: 977940494
         | 
| 5 | 
            +
              prerelease: true
         | 
| 6 6 | 
             
              segments: 
         | 
| 7 7 | 
             
              - 0
         | 
| 8 8 | 
             
              - 10
         | 
| 9 | 
            -
              -  | 
| 10 | 
            -
               | 
| 9 | 
            +
              - 4
         | 
| 10 | 
            +
              - rc1
         | 
| 11 | 
            +
              version: 0.10.4.rc1
         | 
| 11 12 | 
             
            platform: x86-mswin32-60
         | 
| 12 13 | 
             
            authors: 
         | 
| 13 14 | 
             
            - Dirkjan Bussink
         | 
| @@ -15,55 +16,55 @@ autorequire: | |
| 15 16 | 
             
            bindir: bin
         | 
| 16 17 | 
             
            cert_chain: []
         | 
| 17 18 |  | 
| 18 | 
            -
            date: 2011- | 
| 19 | 
            +
            date: 2011-03-29 00:00:00 +02:00
         | 
| 19 20 | 
             
            default_executable: 
         | 
| 20 21 | 
             
            dependencies: 
         | 
| 21 22 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 22 | 
            -
              name: data_objects
         | 
| 23 | 
            -
              prerelease: false
         | 
| 24 23 | 
             
              requirement: &id001 !ruby/object:Gem::Requirement 
         | 
| 25 24 | 
             
                none: false
         | 
| 26 25 | 
             
                requirements: 
         | 
| 27 26 | 
             
                - - "="
         | 
| 28 27 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 29 | 
            -
                    hash:  | 
| 28 | 
            +
                    hash: 977940494
         | 
| 30 29 | 
             
                    segments: 
         | 
| 31 30 | 
             
                    - 0
         | 
| 32 31 | 
             
                    - 10
         | 
| 33 | 
            -
                    -  | 
| 34 | 
            -
                     | 
| 32 | 
            +
                    - 4
         | 
| 33 | 
            +
                    - rc1
         | 
| 34 | 
            +
                    version: 0.10.4.rc1
         | 
| 35 35 | 
             
              type: :runtime
         | 
| 36 | 
            +
              name: data_objects
         | 
| 37 | 
            +
              prerelease: false
         | 
| 36 38 | 
             
              version_requirements: *id001
         | 
| 37 39 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 38 | 
            -
              name: bacon
         | 
| 39 | 
            -
              prerelease: false
         | 
| 40 40 | 
             
              requirement: &id002 !ruby/object:Gem::Requirement 
         | 
| 41 41 | 
             
                none: false
         | 
| 42 42 | 
             
                requirements: 
         | 
| 43 43 | 
             
                - - ~>
         | 
| 44 44 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 45 | 
            -
                    hash:  | 
| 45 | 
            +
                    hash: 9
         | 
| 46 46 | 
             
                    segments: 
         | 
| 47 | 
            -
                    -  | 
| 48 | 
            -
                    -  | 
| 49 | 
            -
                    version: " | 
| 47 | 
            +
                    - 2
         | 
| 48 | 
            +
                    - 5
         | 
| 49 | 
            +
                    version: "2.5"
         | 
| 50 50 | 
             
              type: :development
         | 
| 51 | 
            +
              name: rspec
         | 
| 52 | 
            +
              prerelease: false
         | 
| 51 53 | 
             
              version_requirements: *id002
         | 
| 52 54 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| 53 | 
            -
              name: rake-compiler
         | 
| 54 | 
            -
              prerelease: false
         | 
| 55 55 | 
             
              requirement: &id003 !ruby/object:Gem::Requirement 
         | 
| 56 56 | 
             
                none: false
         | 
| 57 57 | 
             
                requirements: 
         | 
| 58 | 
            -
                - -  | 
| 58 | 
            +
                - - ~>
         | 
| 59 59 | 
             
                  - !ruby/object:Gem::Version 
         | 
| 60 | 
            -
                    hash:  | 
| 60 | 
            +
                    hash: 5
         | 
| 61 61 | 
             
                    segments: 
         | 
| 62 62 | 
             
                    - 0
         | 
| 63 63 | 
             
                    - 7
         | 
| 64 | 
            -
                     | 
| 65 | 
            -
                    version: 0.7.0
         | 
| 64 | 
            +
                    version: "0.7"
         | 
| 66 65 | 
             
              type: :development
         | 
| 66 | 
            +
              name: rake-compiler
         | 
| 67 | 
            +
              prerelease: false
         | 
| 67 68 | 
             
              version_requirements: *id003
         | 
| 68 69 | 
             
            description: Implements the DataObjects API for Sqlite3
         | 
| 69 70 | 
             
            email: d.bussink@gmail.com
         | 
| @@ -72,13 +73,25 @@ executables: [] | |
| 72 73 | 
             
            extensions: []
         | 
| 73 74 |  | 
| 74 75 | 
             
            extra_rdoc_files: 
         | 
| 75 | 
            -
            - README.markdown
         | 
| 76 76 | 
             
            - ChangeLog.markdown
         | 
| 77 77 | 
             
            - LICENSE
         | 
| 78 | 
            +
            - README.markdown
         | 
| 78 79 | 
             
            files: 
         | 
| 80 | 
            +
            - ChangeLog.markdown
         | 
| 81 | 
            +
            - LICENSE
         | 
| 82 | 
            +
            - README.markdown
         | 
| 83 | 
            +
            - Rakefile
         | 
| 84 | 
            +
            - ext/do_sqlite3/compat.h
         | 
| 85 | 
            +
            - ext/do_sqlite3/do_common.c
         | 
| 86 | 
            +
            - ext/do_sqlite3/do_common.h
         | 
| 87 | 
            +
            - ext/do_sqlite3/do_sqlite3.c
         | 
| 88 | 
            +
            - ext/do_sqlite3/do_sqlite3.h
         | 
| 89 | 
            +
            - ext/do_sqlite3/do_sqlite3_extension.c
         | 
| 90 | 
            +
            - ext/do_sqlite3/error.h
         | 
| 91 | 
            +
            - ext/do_sqlite3/extconf.rb
         | 
| 92 | 
            +
            - lib/do_sqlite3.rb
         | 
| 79 93 | 
             
            - lib/do_sqlite3/transaction.rb
         | 
| 80 94 | 
             
            - lib/do_sqlite3/version.rb
         | 
| 81 | 
            -
            - lib/do_sqlite3.rb
         | 
| 82 95 | 
             
            - spec/command_spec.rb
         | 
| 83 96 | 
             
            - spec/connection_spec.rb
         | 
| 84 97 | 
             
            - spec/encoding_spec.rb
         | 
| @@ -104,42 +117,32 @@ files: | |
| 104 117 | 
             
            - tasks/release.rake
         | 
| 105 118 | 
             
            - tasks/retrieve.rake
         | 
| 106 119 | 
             
            - tasks/spec.rake
         | 
| 107 | 
            -
            - ext/do_sqlite3/extconf.rb
         | 
| 108 | 
            -
            - ext/do_sqlite3/do_sqlite3.c
         | 
| 109 | 
            -
            - ext/do_sqlite3/do_sqlite3_extension.c
         | 
| 110 | 
            -
            - ext/do_sqlite3/compat.h
         | 
| 111 | 
            -
            - ext/do_sqlite3/do_sqlite3.h
         | 
| 112 | 
            -
            - ext/do_sqlite3/error.h
         | 
| 113 | 
            -
            - LICENSE
         | 
| 114 | 
            -
            - Rakefile
         | 
| 115 | 
            -
            - ChangeLog.markdown
         | 
| 116 | 
            -
            - README.markdown
         | 
| 117 120 | 
             
            - lib/do_sqlite3/1.8/do_sqlite3.so
         | 
| 118 121 | 
             
            - lib/do_sqlite3/1.9/do_sqlite3.so
         | 
| 119 | 
            -
            has_rdoc:  | 
| 122 | 
            +
            has_rdoc: true
         | 
| 120 123 | 
             
            homepage: 
         | 
| 121 124 | 
             
            licenses: []
         | 
| 122 125 |  | 
| 123 126 | 
             
            post_install_message: |+
         | 
| 124 127 |  | 
| 125 | 
            -
             | 
| 128 | 
            +
                =============================================================================
         | 
| 126 129 |  | 
| 127 | 
            -
             | 
| 128 | 
            -
             | 
| 129 | 
            -
             | 
| 130 | 
            +
                  You've installed the binary version of do_sqlite3.
         | 
| 131 | 
            +
                  It was built using Sqlite3 version 3070600.
         | 
| 132 | 
            +
                  It's recommended to use the exact same version to avoid potential issues.
         | 
| 130 133 |  | 
| 131 | 
            -
             | 
| 132 | 
            -
             | 
| 134 | 
            +
                  At the time of building this gem, the necessary DLL files where available
         | 
| 135 | 
            +
                  in the following download:
         | 
| 133 136 |  | 
| 134 | 
            -
             | 
| 137 | 
            +
                  http://www.sqlite.org/sqlitedll-3070600.zip
         | 
| 135 138 |  | 
| 136 | 
            -
             | 
| 137 | 
            -
             | 
| 139 | 
            +
                  You can put the sqlite3.dll available in this package in your Ruby bin
         | 
| 140 | 
            +
                  directory, for example C:\Ruby\bin
         | 
| 138 141 |  | 
| 139 | 
            -
             | 
| 142 | 
            +
                =============================================================================
         | 
| 140 143 |  | 
| 141 | 
            -
            rdoc_options: 
         | 
| 142 | 
            -
             | 
| 144 | 
            +
            rdoc_options: []
         | 
| 145 | 
            +
             | 
| 143 146 | 
             
            require_paths: 
         | 
| 144 147 | 
             
            - lib
         | 
| 145 148 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement 
         |