-
Notifications
You must be signed in to change notification settings - Fork 251
Upgrade to Ubuntu 22.04 and Ruby3 #6672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2ab37db
Upgrade docker ubuntu to 22.04 and ruby to ruby 3
pretendWhale 47f6674
Merge branch 'master' into ruby3
pretendWhale 0194d82
add x86_64 support to lockfile
pretendWhale 1f0229c
update migrations for ruby 3
pretendWhale 1dbe74c
update i18n in annotation view
pretendWhale 52a2d3d
Merge branch 'master' into ruby3
fd9a1e9
updates based on pr feedback
fd495b0
style fixes
ddbcddd
Regenerate Gemfile.lock
19ab104
remove hash from migration
2b353a3
Update Gemfile.lock
david-yz-liu 3bf7ad3
update exam template pdf parsing
pretendWhale File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4
db/migrate/20090219150618_fix_annotation_label_null_category_ok.rb
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
class FixAnnotationLabelNullCategoryOk < ActiveRecord::Migration[4.2] | ||
def self.up | ||
change_column :annotation_labels, :annotation_category_id, :integer, {:null => true} | ||
change_column :annotation_labels, :annotation_category_id, :integer, null: true | ||
end | ||
|
||
def self.down | ||
change_column :annotation_labels, :annotation_category_id, :integer, {:null => false} | ||
change_column :annotation_labels, :annotation_category_id, :integer, null: true | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
db/migrate/20090219151533_annotation_categories_assigned_to_assignments.rb
This file contains hidden or 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
This file contains hidden or 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
2 changes: 1 addition & 1 deletion
2
db/migrate/20091116141905_make_criterion_weight_not_null_again.rb
This file contains hidden or 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
4 changes: 2 additions & 2 deletions
4
db/migrate/20091116195456_fix_precision_of_flexible_criterion_max.rb
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
class FixPrecisionOfFlexibleCriterionMax < ActiveRecord::Migration[4.2] | ||
def self.up | ||
change_column :flexible_criteria, :max, :decimal, {:precision => 10, :scale => 1, :null => false} | ||
change_column :flexible_criteria, :max, :decimal, precision: 10, scale: 1, null: false | ||
end | ||
|
||
def self.down | ||
change_column :flexible_criteria, :max, :decimal, {:precision => 10, :scale => 0, :null => false} | ||
change_column :flexible_criteria, :max, :decimal, precision: 10, scale: 1, null: false | ||
end | ||
end |
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class IncreaseGroupNameLength < ActiveRecord::Migration[7.0] | ||
def change | ||
change_column :groups, :group_name, :string, {:limit => nil} | ||
change_column :groups, :group_name, :string, limit: nil | ||
end | ||
end |
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import sys | ||
import cv2 | ||
import zxingcpp | ||
|
||
|
||
if __name__ == '__main__': | ||
input_filename = sys.argv[1] | ||
img = cv2.imread(input_filename) | ||
results = zxingcpp.read_barcodes(img) | ||
if len(results) == 0: | ||
print("Could not find any barcode.") | ||
sys.exit(1) | ||
else: | ||
result = results[0] | ||
print(result.text) |
This file contains hidden or 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
Binary file not shown.
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
zxing-cpp==2.0.0 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.