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
# frozen_string_literal: true | |
require "prism" | |
module RubyGems | |
module GemList | |
class Parser | |
def initialize(list, rubygems_client: RubyGems::Client.new) | |
@list = list | |
@rubygems_client = rubygems_client |
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
module Mastodon | |
ApiResponse = Data.define(:body, :headers, :code, :links) | |
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
require 'csv' | |
require 'time' | |
require 'set' | |
class Diff | |
MissingData = Data.define(:rows, :headers) | |
def initialize(source_file:, second_file:) | |
@source_file = source_file | |
@second_file = second_file |
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
require 'benchmark' | |
require 'benchmark/ips' | |
class TestClass | |
def initialize | |
@value = "test value" | |
end | |
def direct_access | |
@value |
OlderNewer