nuodb 1.0.0.rc.2 → 1.0.0

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/README.rdoc CHANGED
@@ -13,11 +13,11 @@ To compile and test run this command:
13
13
 
14
14
  == INSTALLING THE GEM
15
15
 
16
- NUODB_ROOT=/Users/rbuck/tmp/nuodb gem install nuodb-1.0.0.rc.2.gem
16
+ NUODB_ROOT=/Users/rbuck/tmp/nuodb gem install nuodb-1.0.0.gem
17
17
 
18
18
  Or from the source tree:
19
19
 
20
- NUODB_ROOT=/Users/rbuck/tmp/nuodb gem install pkg/nuodb-1.0.0.rc.2.gem
20
+ NUODB_ROOT=/Users/rbuck/tmp/nuodb gem install pkg/nuodb-1.0.0.gem
21
21
 
22
22
  == TESTING THE GEM
23
23
 
@@ -43,25 +43,25 @@ Run the tests:
43
43
 
44
44
  Tag the product using tags per the SemVer specification; our tags have a v-prefix:
45
45
 
46
- git tag -a v1.0.0-rc.2 -m "SemVer Version: v1.0.0-rc.2"
46
+ git tag -a v1.0.0 -m "SemVer Version: v1.0.0"
47
47
 
48
48
  If you make a mistake, take it back quickly:
49
49
 
50
- git tag -d v1.0.0-rc.2
51
- git push origin :refs/tags/v1.0.0-rc.2
50
+ git tag -d v1.0.0
51
+ git push origin :refs/tags/v1.0.0
52
52
 
53
53
  ===PUBLISHING
54
54
 
55
55
  Here are the commands used to publish:
56
56
 
57
- gem push pkg/nuodb-1.0.0.rc.2.gem
57
+ gem push pkg/nuodb-1.0.0.gem
58
58
 
59
59
  == INSPECTING THE GEM
60
60
 
61
61
  It is often useful to inspect the contents of a Gem before distribution.
62
62
  To do this you dump the contents of a gem thus:
63
63
 
64
- gem unpack pkg/nuodb-1.0.0.rc.2.gem
64
+ gem unpack pkg/nuodb-1.0.0.gem
65
65
 
66
66
  == INSPECTING THE EXPORTED SYMBOLS
67
67
 
data/ext/nuodb/nuodb.cpp CHANGED
@@ -1220,7 +1220,7 @@ VALUE nuodb_statement_execute(VALUE self, VALUE sql)
1220
1220
  {
1221
1221
  try
1222
1222
  {
1223
- return AS_QBOOL(handle->pointer->execute(StringValuePtr(sql),
1223
+ return AS_QBOOL(handle->pointer->execute(StringValueCStr(sql),
1224
1224
  NuoDB::RETURN_GENERATED_KEYS));
1225
1225
  }
1226
1226
  catch (SQLException & e)
@@ -1476,7 +1476,7 @@ VALUE nuodb_prepared_statement_initialize(VALUE parent, VALUE sql)
1476
1476
  NuoDB::PreparedStatement * statement = NULL;
1477
1477
  try
1478
1478
  {
1479
- statement = parent_handle->pointer->prepareStatement(StringValuePtr(sql),
1479
+ statement = parent_handle->pointer->prepareStatement(StringValueCStr(sql),
1480
1480
  NuoDB::RETURN_GENERATED_KEYS);
1481
1481
  }
1482
1482
  catch (SQLException & e)
@@ -1983,22 +1983,22 @@ static void internal_connection_connect_or_raise(nuodb_connection_handle * handl
1983
1983
  {
1984
1984
  handle->pointer = Connection::create();
1985
1985
  Properties * props = handle->pointer->allocProperties();
1986
- props->putValue("user", StringValuePtr(handle->username));
1987
- props->putValue("password", StringValuePtr(handle->password));
1988
- props->putValue("schema", StringValuePtr(handle->schema));
1986
+ props->putValue("user", StringValueCStr(handle->username));
1987
+ props->putValue("password", StringValueCStr(handle->password));
1988
+ props->putValue("schema", StringValueCStr(handle->schema));
1989
1989
  if (!NIL_P(handle->timezone))
1990
1990
  {
1991
- props->putValue("TimeZone", StringValuePtr(handle->timezone));
1991
+ props->putValue("TimeZone", StringValueCStr(handle->timezone));
1992
1992
  }
1993
- handle->pointer->openDatabase(StringValuePtr(handle->database), props);
1993
+ handle->pointer->openDatabase(StringValueCStr(handle->database), props);
1994
1994
  }
1995
1995
  catch (SQLException & e)
1996
1996
  {
1997
1997
  rb_raise_nuodb_error(e.getSqlcode(),
1998
1998
  "Failed to create database connection (\"%s\", \"%s\", ********, \"%s\"): %s",
1999
- StringValuePtr(handle->database),
2000
- StringValuePtr(handle->username),
2001
- StringValuePtr(handle->schema),
1999
+ StringValueCStr(handle->database),
2000
+ StringValueCStr(handle->username),
2001
+ StringValueCStr(handle->schema),
2002
2002
  e.getText());
2003
2003
  }
2004
2004
  }
@@ -2008,20 +2008,20 @@ static void internal_connection_connect_or_raise(nuodb_connection_handle * handl
2008
2008
  {
2009
2009
  handle->pointer = Connection::create();
2010
2010
  Properties * props = handle->pointer->allocProperties();
2011
- props->putValue("user", StringValuePtr(handle->username));
2012
- props->putValue("password", StringValuePtr(handle->password));
2011
+ props->putValue("user", StringValueCStr(handle->username));
2012
+ props->putValue("password", StringValueCStr(handle->password));
2013
2013
  if (!NIL_P(handle->timezone))
2014
2014
  {
2015
- props->putValue("TimeZone", StringValuePtr(handle->timezone));
2015
+ props->putValue("TimeZone", StringValueCStr(handle->timezone));
2016
2016
  }
2017
- handle->pointer->openDatabase(StringValuePtr(handle->database), props);
2017
+ handle->pointer->openDatabase(StringValueCStr(handle->database), props);
2018
2018
  }
2019
2019
  catch (SQLException & e)
2020
2020
  {
2021
2021
  rb_raise_nuodb_error(e.getSqlcode(),
2022
2022
  "Failed to create database connection (\"%s\", \"%s\", ********): %s",
2023
- StringValuePtr(handle->database),
2024
- StringValuePtr(handle->username),
2023
+ StringValueCStr(handle->database),
2024
+ StringValueCStr(handle->username),
2025
2025
  e.getText());
2026
2026
  }
2027
2027
  }
data/lib/nuodb/version.rb CHANGED
@@ -27,5 +27,5 @@
27
27
  #
28
28
 
29
29
  module NuoDB
30
- VERSION = '1.0.0.rc.2'
30
+ VERSION = '1.0.0'
31
31
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nuodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc.2
5
- prerelease: 6
4
+ version: 1.0.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Robert Buck
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-14 00:00:00.000000000 Z
12
+ date: 2013-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erubis
@@ -317,9 +317,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
317
317
  required_rubygems_version: !ruby/object:Gem::Requirement
318
318
  none: false
319
319
  requirements:
320
- - - ! '>'
320
+ - - ! '>='
321
321
  - !ruby/object:Gem::Version
322
- version: 1.3.1
322
+ version: '0'
323
323
  requirements: []
324
324
  rubyforge_project:
325
325
  rubygems_version: 1.8.23