swift 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.0
1
+ 0.6.1
data/ext/result.cc CHANGED
@@ -212,7 +212,7 @@ VALUE result_fields(VALUE self) {
212
212
  std::vector<string> result_fields = result->fields();
213
213
  VALUE fields = rb_ary_new();
214
214
  for (int i = 0; i < result_fields.size(); i++)
215
- rb_ary_push(fields, rb_str_new2(result_fields[i].c_str()));
215
+ rb_ary_push(fields, ID2SYM(rb_intern(result_fields[i].c_str())));
216
216
  return fields;
217
217
  }
218
218
  CATCH_DBI_EXCEPTIONS();
data/swift.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{swift}
8
- s.version = "0.6.0"
8
+ s.version = "0.6.1"
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"]
data/test/test_adapter.rb CHANGED
@@ -92,6 +92,10 @@ describe 'Adapter' do
92
92
  @db.execute('select * from users')
93
93
  assert_kind_of Swift::Result, @db.results
94
94
  end
95
+
96
+ it 'returns fields' do
97
+ assert_equal [ :id, :name, :created_at ], @sth.fields
98
+ end
95
99
  end
96
100
 
97
101
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 0
9
- version: 0.6.0
8
+ - 1
9
+ version: 0.6.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Shane Hanna