This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In response to all the responses to: | |
http://twitter.com/rtomayko/status/1155906157 | |
You should never do this in a source file included with your library, | |
app, or tests: | |
require 'rubygems' | |
The system I use to manage my $LOAD_PATH is not your library/app/tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'pathname' | |
require 'zlib' | |
# files and extensions to process | |
FILES = %w[ capfile CHANGELOG LICENSE Manifest MIT-LICENSE README QUICKLINKS README_FOR_APP RUNNING_UNIT_TESTS Rakefile SPECS TODO USAGE .autotest .gitignore .htaccess ].freeze | |
EXTENSIONS = %w[ builder cgi conf css deploy erb example fcgi feature gemspec haml htc htm html java js jsp key markdown opts php rake ratom rb rcsv rdf rhtml rjs rpdf ru rxml sake sass sh sql thor txt vcf xml yml ].freeze | |
Pathname.glob(ARGV).each do |path_in| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/do_jdbc/src/java/data_objects/Command.java b/do_jdbc/src/java/data_objects/Command.java | |
index f0ccc00..922db88 100644 | |
--- a/do_jdbc/src/java/data_objects/Command.java | |
+++ b/do_jdbc/src/java/data_objects/Command.java | |
@@ -89,6 +89,9 @@ public class Command extends RubyObject { | |
RubyClass resultClass = Result.createResultClass(runtime, moduleName, errorName, driver); | |
java.sql.Connection conn = (java.sql.Connection) wrapped_jdbc_connection.dataGetStruct(); | |
+ // affectedCount = 1 means 1 updated row | |
+ // or 1 row in result set that represents returned key (insert...returning), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/do_jdbc/src/java/data_objects/Command.java b/do_jdbc/src/java/data_objects/Command.java | |
index f0ccc00..922db88 100644 | |
--- a/do_jdbc/src/java/data_objects/Command.java | |
+++ b/do_jdbc/src/java/data_objects/Command.java | |
@@ -89,6 +89,9 @@ public class Command extends RubyObject { | |
RubyClass resultClass = Result.createResultClass(runtime, moduleName, errorName, driver); | |
java.sql.Connection conn = (java.sql.Connection) wrapped_jdbc_connection.dataGetStruct(); | |
+ // affectedCount = 1 means 1 updated row | |
+ // or 1 row in result set that represents returned key (insert...returning), |
NewerOlder