swift 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -8,7 +8,7 @@ module Swift
8
8
  # @abstract
9
9
  class Sql < Adapter
10
10
  extend Forwardable
11
- def_delegators :db, :begin, :commit, :rollback, :close, :closed?, :query, :fileno, :result, :write
11
+ def_delegators :db, :begin, :commit, :rollback, :ping, :close, :closed?, :escape, :query, :fileno, :result, :write
12
12
 
13
13
  def tables
14
14
  raise NotImplementedError
data/swift.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "swift"
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Shane Hanna", "Bharanee 'Barney' Rathna"]
12
- s.date = "2012-08-06"
12
+ s.date = "2012-08-24"
13
13
  s.description = "A rational rudimentary database abstraction."
14
14
  s.email = ["shane.hanna@gmail.com", "deepfryed@gmail.com"]
15
15
  s.extra_rdoc_files = [
data/test/test_adapter.rb CHANGED
@@ -36,6 +36,12 @@ describe 'Adapter' do
36
36
  end
37
37
  end
38
38
 
39
+ describe 'escape' do
40
+ it 'escapes strings' do
41
+ assert_match %r{foo.'bar}, @db.escape("foo'bar")
42
+ end
43
+ end
44
+
39
45
  describe 'prepared statements' do
40
46
  it 'executes via Adapter#prepare' do
41
47
  result = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swift
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-06 00:00:00.000000000 Z
13
+ date: 2012-08-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: minitest
@@ -102,3 +102,4 @@ signing_key:
102
102
  specification_version: 3
103
103
  summary: A rational rudimentary database abstraction.
104
104
  test_files: []
105
+ has_rdoc: