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
function reportError(error, message) { | |
message = message || ''; | |
console.error( | |
'ERROR: ' + message + ' [' + error.toString() + ']\n' + | |
'\nName:\t\t' + (error.name || '-') + | |
'\nMessage:\t' + (error.message || '-') + | |
'\nFile:\t\t\t' + (error.fileName || '-') + | |
'\nSource:\t\t' + ((error.toSource && error.toSource()) || '-') + | |
'\nLine #:\t\t' + (error.lineNumber || '-') + | |
'\nColumn #:\t' + (error.columnNumber || '-') + |
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
def search | |
@pagy, @bookmarks = if params[:search].present? | |
pagy(@bookmarks.search(params[:search]), params: ->(params) { params.merge!({search: params[:search]}) }) | |
else | |
pagy(@bookmarks) | |
end | |
end |
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
class BaseClient | |
class APINotFound < StandardError; end | |
attr_reader :auth_strategy | |
def initialize(auth_strategy: :headers, headers: {}) | |
@auth_strategy = auth_strategy | |
@headers = headers | |
end |
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
--- ext/bigdecimal/bigdecimal.c.orig 2024-09-25 16:24:50 | |
+++ ext/bigdecimal/bigdecimal.c 2024-09-25 16:25:15 | |
@@ -65,7 +65,7 @@ | |
static ID id_half; | |
/* MACRO's to guard objects from GC by keeping them in stack */ | |
-#define ENTER(n) volatile VALUE RB_UNUSED_VAR(vStack[n]);int iStack=0 | |
+#define ENTER(n) volatile VALUE vStack[n];int iStack=0 | |
#define PUSH(x) (vStack[iStack++] = (VALUE)(x)) | |
#define SAVE(p) PUSH((p)->obj) |