source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_quickpay_test.rb
Ruby
mit
4,597
master
7,181
require 'test_helper' class RemoteQuickpayTest < Test::Unit::TestCase # These tests assumes that you have added your development IP # in the Quickpay Manager def setup @gateway = QuickpayGateway.new(fixtures(:quickpay)) @amount = 100 @options = { order_id: generate_unique_id[0...10], bil...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_hi_pay_test.rb
Ruby
mit
4,597
master
10,114
require 'test_helper' class RemoteHiPayTest < Test::Unit::TestCase def setup @gateway = HiPayGateway.new(fixtures(:hi_pay)) @bad_gateway = HiPayGateway.new(username: 'bad', password: 'password') @amount = 500 @credit_card = credit_card('4111111111111111', verification_value: '514', first_name: 'John...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_litle_certification_test.rb
Ruby
mit
4,597
master
39,776
require 'test_helper' class RemoteLitleCertification < Test::Unit::TestCase def setup Base.mode = :test @gateway = LitleGateway.new(fixtures(:litle)) @gateway.test_url = 'https://payments.vantivprelive.com/vap/communicator/online' end def test1 credit_card = CreditCard.new( number: '445701...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_paypal_express_test.rb
Ruby
mit
4,597
master
1,648
require 'test_helper' class PaypalExpressTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = PaypalExpressGateway.new(fixtures(:paypal_certificate)) @options = { order_id: '230000', email: 'buyer@jadedpallet.com', billing_address: { name: 'Fred Brooks', ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_pay_conex_test.rb
Ruby
mit
4,597
master
6,488
require 'test_helper' class RemotePayConexTest < Test::Unit::TestCase def setup @gateway = PayConexGateway.new(fixtures(:pay_conex)) @credit_card = credit_card('4000100011112224') @check = check @amount = 100 @failed_amount = 101 @options = { order_id: '1', billing_address: addr...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_xpay_test.rb
Ruby
mit
4,597
master
1,246
require 'test_helper' class RemoteXpayTest < Test::Unit::TestCase def setup @gateway = XpayGateway.new(fixtures(:xpay)) @amount = 100 @credit_card = credit_card( '5186151650005008', month: 12, year: 2026, verification_value: '123', brand: 'master' ) @options = { ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_tns_test.rb
Ruby
mit
4,597
master
4,538
require 'test_helper' class RemoteTnsTest < Test::Unit::TestCase def setup TnsGateway.ssl_strict = false # Sandbox has an improperly installed cert @gateway = TnsGateway.new(fixtures(:tns)) @amount = 100 @credit_card = credit_card('5123456789012346', month: 05, year: 2024) @ap_credit_card = cred...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_monei_test.rb
Ruby
mit
4,597
master
9,219
require 'test_helper' class RemoteMoneiTest < Test::Unit::TestCase def setup @gateway = MoneiGateway.new( fixtures(:monei) ) @amount = 100 @credit_card = credit_card('4548812049400004', month: 12, year: 2034, verification_value: '123') @declined_card = credit_card('5453010000059675', month...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_modern_payments_test.rb
Ruby
mit
4,597
master
1,262
require 'test_helper' class RemoteModernPaymentTest < Test::Unit::TestCase def setup @gateway = ModernPaymentsGateway.new(fixtures(:modern_payments)) @amount = 100 @credit_card = credit_card('4111111111111111') @declined_card = credit_card('4000000000000000') @options = { order_id: '1', ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_credorax_test.rb
Ruby
mit
4,597
master
40,859
require 'test_helper' class RemoteCredoraxTest < Test::Unit::TestCase def setup @gateway = CredoraxGateway.new(fixtures(:credorax)) @amount = 100 @adviser_amount = 1000001 @credit_card = credit_card('4018810000100036', verification_value: '123', month: '12', year: 2034) @fully_auth_card = credit...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_payscout_test.rb
Ruby
mit
4,597
master
4,987
require 'test_helper' class RemotePayscoutTest < Test::Unit::TestCase def setup @gateway = PayscoutGateway.new(fixtures(:payscout)) @amount = 100 @credit_card = credit_card('4111111111111111', verification_value: 999) @declined_card = credit_card('34343') @options = { order_id: '1', ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_quickpay_v7_test.rb
Ruby
mit
4,597
master
8,416
require 'test_helper' class RemoteQuickpayV7Test < Test::Unit::TestCase # These test assumes that you have not added your development IP in # the Quickpay Manager. def setup @gateway = QuickpayGateway.new(fixtures(:quickpay_with_api_key)) @amount = 100 @options = { order_id: generate_unique_id...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_modern_payments_cim_test.rb
Ruby
mit
4,597
master
1,647
require 'test_helper' class RemoteModernPaymentsCimTest < Test::Unit::TestCase def setup @gateway = ModernPaymentsCimGateway.new(fixtures(:modern_payments)) @amount = 100 @credit_card = credit_card('4111111111111111') @declined_card = credit_card('4000000000000000') @options = { billing_a...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_multi_pay_test.rb
Ruby
mit
4,597
master
2,069
require 'test_helper' class RemoteMultiPayTest < Test::Unit::TestCase def setup @gateway = MultiPayGateway.new(fixtures(:multi_pay)) @amount = 100 @credit_card = credit_card('5413330089020516', month: 1, year: 2030, verification_value: '111') @declined_card = credit_card('4000000000000002') @opt...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_stripe_test.rb
Ruby
mit
4,597
master
33,849
require 'test_helper' class RemoteStripeTest < Test::Unit::TestCase def setup @gateway = StripeGateway.new(fixtures(:stripe)) @amount = 100 @credit_card = credit_card('4242424242424242') @declined_card = credit_card('4000000000000002') @new_credit_card = credit_card('5105105105105100') @debi...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_borgun_test.rb
Ruby
mit
4,597
master
6,676
require 'test_helper' class RemoteBorgunTest < Test::Unit::TestCase def setup # Borgun's test server has an improperly installed cert BorgunGateway.ssl_strict = false @gateway = BorgunGateway.new(fixtures(:borgun)) @amount = 100 @credit_card = credit_card('5587402000012011', year: 2027, month: ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_card_connect_test.rb
Ruby
mit
4,597
master
9,867
require 'test_helper' class RemoteCardConnectTest < Test::Unit::TestCase def setup @gateway = CardConnectGateway.new(fixtures(:card_connect)) @amount = 100 @credit_card = credit_card('4788250000121443') @declined_card = credit_card('4387751111111053') @options = { billing_address: address,...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_kushki_test.rb
Ruby
mit
4,597
master
11,296
require 'test_helper' class RemoteKushkiTest < Test::Unit::TestCase def setup @gateway = KushkiGateway.new(fixtures(:kushki)) @gateway_partial_refund = KushkiGateway.new(fixtures(:kushki_partial)) @amount = 100 @credit_card = credit_card('4000100011112224', verification_value: '777') @declined_ca...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_eway_test.rb
Ruby
mit
4,597
master
2,663
require 'test_helper' class EwayTest < Test::Unit::TestCase def setup @gateway = EwayGateway.new(fixtures(:eway)) @credit_card_success = credit_card('4444333322221111') @credit_card_fail = credit_card('1234567812345678', month: Time.now.month, year: Time.now.year - 1) @params = { order_id: '12...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_webpay_test.rb
Ruby
mit
4,597
master
5,055
# coding: utf-8 require 'test_helper' class RemoteWebpayTest < Test::Unit::TestCase def setup @gateway = WebpayGateway.new(fixtures(:webpay)) @amount = 10000 @refund_amount = 2000 @credit_card = credit_card('4242424242424242') @declined_card = credit_card('4000') @new_credit_card = credit_c...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_merchant_e_solutions_test.rb
Ruby
mit
4,597
master
7,780
require 'test_helper' class RemoteMerchantESolutionTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = MerchantESolutionsGateway.new(fixtures(:merchant_esolutions)) @amount = 100 @credit_card = credit_card('4111111111111111') @declined_card = credit_card('4111111111111112') ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_secure_pay_tech_test.rb
Ruby
mit
4,597
master
1,683
require 'test_helper' class RemoteSecurePayTechTest < Test::Unit::TestCase $verbose = true def setup @gateway = SecurePayTechGateway.new(fixtures(:secure_pay_tech)) @accepted_amount = 10000 @declined_amount = 10075 @credit_card = credit_card('4987654321098769', month: '5', year: '2013') @opt...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_sage_pay_test.rb
Ruby
mit
4,597
master
19,339
require 'test_helper' # Some of the standard tests have been removed at SagePay test # server is pants and accepts anything and says Status=OK. (shift) # The tests for American Express will only pass if your account is # American express enabled. class RemoteSagePayTest < Test::Unit::TestCase # set to true to run th...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_metrics_global_test.rb
Ruby
mit
4,597
master
3,008
require 'test_helper' class MetricsGlobalTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = MetricsGlobalGateway.new(fixtures(:metrics_global)) @amount = 100 @credit_card = credit_card('4111111111111111', verification_value: '999') @options = { order_id: generate_unique_id,...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_psigate_test.rb
Ruby
mit
4,597
master
2,166
require 'test_helper' class PsigateRemoteTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = PsigateGateway.new(fixtures(:psigate)) PsigateGateway.ssl_strict = false @amount = 2400 @creditcard = credit_card('4111111111111111') @options = { order_id: generate_unique_id, ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_pay_junction_v2_test.rb
Ruby
mit
4,597
master
5,876
require 'test_helper' class RemotePayJunctionV2Test < Test::Unit::TestCase def setup @gateway = PayJunctionV2Gateway.new(fixtures(:pay_junction_v2)) @amount = 99 @credit_card = credit_card('4444333322221111', month: 01, year: 2021, verification_value: 999) @options = { order_id: generate_uniqu...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_conekta_test.rb
Ruby
mit
4,597
master
6,138
require 'test_helper' class RemoteConektaTest < Test::Unit::TestCase def setup @gateway = ConektaGateway.new(fixtures(:conekta)) @amount = 300 @credit_card = ActiveMerchant::Billing::CreditCard.new( number: '4242424242424242', verification_value: '183', month: ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_exact_test.rb
Ruby
mit
4,597
master
1,806
require 'test_helper' class RemoteExactTest < Test::Unit::TestCase def setup @gateway = ExactGateway.new(fixtures(:exact)) @credit_card = credit_card @amount = 100 @options = { order_id: '1', billing_address: address, description: 'Store Purchase' } end def test_successful_...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_axcessms_test.rb
Ruby
mit
4,597
master
6,940
require 'test_helper' class RemoteAxcessmsTest < Test::Unit::TestCase def setup @gateway = AxcessmsGateway.new(fixtures(:axcessms)) @amount = 1500 @credit_card = credit_card('4200000000000000', month: 05, year: 2022) @declined_card = credit_card('4444444444444444', month: 05, year: 2022) @mode =...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_payway_dot_com_test.rb
Ruby
mit
4,597
master
4,382
require 'test_helper' class RemotePaywayDotComTest < Test::Unit::TestCase def setup @gateway = PaywayDotComGateway.new(fixtures(:payway_dot_com)) @amount = 100 @credit_card = credit_card('4000100011112224', verification_value: '737') @declined_card = credit_card('4000300011112220') @invalid_luhn...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_global_transport_test.rb
Ruby
mit
4,597
master
4,209
require 'test_helper' class RemoteGlobalTransportTest < Test::Unit::TestCase def setup @gateway = GlobalTransportGateway.new(fixtures(:global_transport)) @credit_card = credit_card('4003002345678903') @options = { email: 'john@example.com', order_id: '1', billing_address: address ...
github
activemerchant/active_merchant
https://github.com/activemerchant/active_merchant
test/remote/gateways/remote_skipjack_test.rb
Ruby
mit
4,597
master
3,448
require 'test_helper' class RemoteSkipJackTest < Test::Unit::TestCase def setup Base.mode = :test @gateway = SkipJackGateway.new(fixtures(:skip_jack)) @credit_card = credit_card('4445999922225', verification_value: '999') @amount = 100 @options = { order_id: generate_unique_id, em...
github
hahwul/WebHackersWeapons
https://github.com/hahwul/WebHackersWeapons
scripts/erb.rb
Ruby
mit
4,584
main
7,574
require 'erb' require 'yaml' def generate_badge array badge = "" array.each { |t| case t when 'linux' badge = badge + "![linux](/images/linux.png)" when 'windows' badge = badge + "![windows](/images/windows.png)" when 'macos' badge = badge + "...
github
hahwul/WebHackersWeapons
https://github.com/hahwul/WebHackersWeapons
scripts/validate_weapons.rb
Ruby
mit
4,584
main
654
require 'yaml' Dir.entries("./weapons").each do | name | if name.strip != "." || name != ".." begin data = YAML.load(File.open("./weapons/#{name}")) if data['type'] == "" || data['type'] == nil puts "./weapons/#{name} :: none-type" end if data['lang'] == "" || dat...
github
hahwul/WebHackersWeapons
https://github.com/hahwul/WebHackersWeapons
scripts/for_migration/migration.rb
Ruby
mit
4,584
main
2,276
require 'json' require 'yaml' require "uri" def get_os install lst = [] if install['Linux'].length > 1 lst.push 'linux' end if install['MacOS'].length > 1 lst.push 'macos' end if install['Windows'].length > 1 lst.push 'windows' end return lst end d...
github
hahwul/WebHackersWeapons
https://github.com/hahwul/WebHackersWeapons
scripts/for_migration/apply_platform.rb
Ruby
mit
4,584
main
365
require 'yaml' Dir.entries("./weapons").each do | name | if name.strip != "." || name != ".." begin data = YAML.load(File.open("./weapons/#{name}")) data['platform'] = ['linux','macos','windows'] yaml_data = YAML.dump(data) File.write("./weapons/#{name}", yaml_data) res...
github
hahwul/WebHackersWeapons
https://github.com/hahwul/WebHackersWeapons
scripts/for_migration/fetch_lang.rb
Ruby
mit
4,584
main
933
# https://api.github.com/repos/hahwul/dalfox/languages # # require 'yaml' langs = [] Dir.entries("./weapons").each do | name | if name.strip != "." || name != ".." begin data = YAML.load(File.open("./weapons/#{name}")) if data['url'].include? "//github.com" t = data['url'].split(...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
Rakefile
Ruby
mit
4,577
master
1,434
require "bundler/gem_tasks" require "etc" # Override release task to skip gem push (handled by GitHub Actions with attestations) Rake::Task["release"].clear desc "Build gem and create tag (gem push handled by CI)" task release: %w[build release:guard_clean release:source_control_push] FORMAT = "svg".freeze desc "Gene...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
twitter.gemspec
Ruby
mit
4,577
master
1,468
lib = File.expand_path("lib", __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "twitter/version" Gem::Specification.new do |spec| spec.add_dependency "base64", "~> 0.3.0" spec.add_dependency "buftok", "~> 1.0" spec.add_dependency "equalizer", "~> 1.0" spec.add_dependency "http", "~> 6.0...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
Gemfile
Ruby
mit
4,577
master
624
source "https://rubygems.org" gem "benchmark", ">= 0.5" gem "jruby-openssl", ">=0.14.2", platforms: :jruby gem "minitest", ">= 6" gem "minitest-mock", ">= 5.27" gem "minitest-strict", ">= 1" gem "mutant-minitest", ">= 0.14" gem "rake", ">= 13.3.1" gem "rbs", ">= 4" gem "rubocop", ">= 1.82.1" gem "rubocop-minitest", ">...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter.rb
Ruby
mit
4,577
master
1,196
require "uri" # Ruby interface to the Twitter API module Twitter end require "twitter/base" require "twitter/cursor" require "twitter/direct_message" require "twitter/entity" require "twitter/entity/hashtag" require "twitter/entity/symbol" require "twitter/entity/uri" require "twitter/entity/user_mention" require "tw...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/entities.rb
Ruby
mit
4,577
master
4,325
require "memoizable" require "twitter/entity/hashtag" require "twitter/entity/symbol" require "twitter/entity/uri" require "twitter/entity/user_mention" require "twitter/media_factory" module Twitter # Provides methods for accessing entities in tweets module Entities include Memoizable # Returns true if t...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/identity.rb
Ruby
mit
4,577
master
663
require "equalizer" require "twitter/base" module Twitter # Base class for Twitter objects with an identity class Identity < Base include Equalizer.new(:id) # The unique identifier for this object # # @api public # @example # tweet.id # @return [Integer] attr_reader :id # In...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/basic_user.rb
Ruby
mit
4,577
master
372
require "twitter/identity" require "twitter/utils" module Twitter # Represents a basic Twitter user with minimal attributes class BasicUser < Identity # The user's screen name (handle) # # @api public # @example # user.screen_name # => "sferik" # @return [String] attr_reader :screen_n...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/metadata.rb
Ruby
mit
4,577
master
407
require "twitter/base" module Twitter # Represents metadata about a search result class Metadata < Base # The ISO language code # # @api public # @example # metadata.iso_language_code # @return [String] # The result type # # @api public # @example # metadata.result_...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/saved_search.rb
Ruby
mit
4,577
master
587
require "twitter/creatable" require "twitter/identity" module Twitter # Represents a saved search class SavedSearch < Identity include Creatable # The name of the saved search # # @api public # @example # saved_search.name # @return [String] # The position of the saved search ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/error.rb
Ruby
mit
4,577
master
8,560
require "twitter/rate_limit" module Twitter # Custom error class for rescuing from all Twitter errors class Error < StandardError # The error code from Twitter # # @api public # @example # error.code # @return [Integer] attr_reader :code # The rate limit information from the resp...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/headers.rb
Ruby
mit
4,577
master
2,632
require "uri" require "base64" require "simple_oauth" module Twitter # Builds HTTP headers for Twitter API requests class Headers # Initializes a new Headers object # # @api public # @example # Twitter::Headers.new(client, :get, "https://api.twitter.com") # @param client [Twitter::Client]...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/geo_factory.rb
Ruby
mit
4,577
master
623
require "twitter/factory" require "twitter/geo/point" require "twitter/geo/polygon" module Twitter # Factory for creating geo objects based on type class GeoFactory < Twitter::Factory class << self # Constructs a new geo object # # @api public # @example # Twitter::GeoFactory.ne...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/direct_message_event.rb
Ruby
mit
4,577
master
1,973
require "twitter/creatable" require "twitter/entities" require "twitter/identity" module Twitter # Represents a Twitter direct message event class DirectMessageEvent < Identity include Creatable include Entities # The timestamp when the event was created # # @api public # @example # ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/settings.rb
Ruby
mit
4,577
master
1,056
require "twitter/base" module Twitter # Represents Twitter account settings class Settings < Base # The sleep time settings # # @api public # @example # settings.sleep_time # @return [Hash] # The time zone settings # # @api public # @example # settings.time_zone ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/variant.rb
Ruby
mit
4,577
master
502
require "twitter/base" module Twitter # Represents a video variant with a specific bitrate and format class Variant < Base # The bitrate of this variant in bits per second # # @api public # @example # variant.bitrate # @return [Integer] attr_reader :bitrate # The content type (MI...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/relationship.rb
Ruby
mit
4,577
master
560
require "twitter/base" module Twitter # Represents a relationship between two Twitter users class Relationship < Base object_attr_reader :SourceUser, :source object_attr_reader :TargetUser, :target # Initializes a new Relationship object # # @api public # @example # Twitter::Relation...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/size.rb
Ruby
mit
4,577
master
861
require "equalizer" require "twitter/base" module Twitter # Represents a size for media objects class Size < Base include Equalizer.new(:h, :w) # The height in pixels # # @api public # @example # size.h # @return [Integer] # The width in pixels # # @api public # @exa...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/geo_results.rb
Ruby
mit
4,577
master
1,385
require "twitter/enumerable" require "twitter/utils" module Twitter # Represents a collection of geo search results class GeoResults include Enumerable include Utils # The raw attributes hash # # @api public # @example # results.attrs # @return [Hash] attr_reader :attrs ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/rate_limit.rb
Ruby
mit
4,577
master
1,415
require "memoizable" module Twitter # Represents rate limit information from Twitter API responses class RateLimit < Base include Memoizable # Returns the rate limit ceiling for this request # # @api public # @example # rate_limit.limit # @return [Integer] def limit limit =...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/utils.rb
Ruby
mit
4,577
master
699
module Twitter # Utility methods for parallel mapping # # @api private module Utils # Parallel flat_map for enumerables # # @api private # @param enumerable [Enumerable] # @return [Array, Enumerator] def flat_pmap(enumerable, &block) return to_enum(:flat_pmap, enumerable) unless bl...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/cursor.rb
Ruby
mit
4,577
master
2,977
require "twitter/enumerable" require "twitter/rest/request" require "twitter/utils" module Twitter # Represents a cursor for paginating through Twitter API responses class Cursor include Enumerable include Utils # The raw response attributes # # @api public # @example # cursor.attrs ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/client.rb
Ruby
mit
4,577
master
3,258
require "twitter/error" require "twitter/utils" require "twitter/version" module Twitter # Base client class for Twitter API authentication class Client include Twitter::Utils # The OAuth access token # # @api public # @example # client.access_token # => "token" # @return [String] ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/direct_message.rb
Ruby
mit
4,577
master
1,022
require "twitter/creatable" require "twitter/entities" require "twitter/identity" module Twitter # Represents a Twitter direct message class DirectMessage < Identity include Creatable include Entities # The text content of the direct message # # @api public # @example # direct_messag...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/place.rb
Ruby
mit
4,577
master
2,380
require "memoizable" require "twitter/identity" module Twitter # Represents a Twitter place class Place < Identity include Memoizable # The place attributes hash # # @api public # @example # place.attributes # @return [Hash] attr_reader :attributes # The country name # ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/factory.rb
Ruby
mit
4,577
master
751
module Twitter # Factory for creating Twitter objects based on type class Factory class << self # Constructs a new object based on type # # @api public # @example # Twitter::Factory.new(:type, Twitter::Geo, attrs) # @param method [Symbol] The key to look up the type #...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/tweet.rb
Ruby
mit
4,577
master
5,091
require "twitter/creatable" require "twitter/entities" require "twitter/identity" module Twitter # Represents a Twitter tweet class Tweet < Identity include Creatable include Entities # The filter level of the tweet # # @api public # @example # tweet.filter_level # @return [Strin...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/arguments.rb
Ruby
mit
4,577
master
855
module Twitter # An Array subclass that extracts options from arguments class Arguments < Array # The options hash extracted from the arguments # # @api public # @example # args = Twitter::Arguments.new([:user1, :user2, {trim_user: true}]) # args.options # => {trim_user: true} # @ret...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/null_object.rb
Ruby
mit
4,577
master
1,557
require "naught" module Twitter # A null object that absorbs all method calls and returns itself # @see https://github.com/avdi/naught NullObject = Naught.build do |config| # steep:ignore # rubocop:disable Metrics/BlockLength include Comparable config.black_hole config.define_explicit_conversions ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/profile.rb
Ruby
mit
4,577
master
5,159
require "uri" require "cgi" require "memoizable" module Twitter # Provides profile image and banner URL methods module Profile # Regular expression for profile image suffix PROFILE_IMAGE_SUFFIX_REGEX = /_normal(\.gif|\.jpe?g|\.png)$/i include Memoizable # Returns the URL to the user's profile bann...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/profile_banner.rb
Ruby
mit
4,577
master
525
require "memoizable" require "twitter/base" module Twitter # Represents a user's profile banner class ProfileBanner < Base include Memoizable # Returns a hash of banner sizes # # @api public # @example # profile_banner.sizes # @return [Hash{Symbol => Twitter::Size}] def sizes ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/suggestion.rb
Ruby
mit
4,577
master
939
require "equalizer" require "memoizable" require "twitter/base" module Twitter # Represents a Twitter user suggestion category class Suggestion < Base include Equalizer.new(:slug) include Memoizable # The number of users in this category # # @api public # @example # suggestion.size ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/list.rb
Ruby
mit
4,577
master
2,738
require "twitter/creatable" require "twitter/identity" module Twitter # Represents a Twitter list class List < Identity include Creatable # The number of members in this list # # @api public # @example # list.member_count # @return [Integer] # The number of subscribers to this l...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/language.rb
Ruby
mit
4,577
master
485
require "twitter/base" module Twitter # Represents a Twitter supported language class Language < Base # The language code # # @api public # @example # language.code # @return [String] # The language name # # @api public # @example # language.name # @return [Stri...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/enumerable.rb
Ruby
mit
4,577
master
1,122
module Twitter # Provides iteration support for collections module Enumerable include ::Enumerable # Iterates over the collection # # @api public # @example # cursor.each { |item| puts item } # @param start [Integer] The starting index # @yield [Object] Each item in the collection...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/version.rb
Ruby
mit
4,577
master
1,524
module Twitter # Provides version information for the Twitter gem # # @api public module Version class << self # The major version number # # @api private # @example # Twitter::Version.major # => 8 # @return [Integer] def major 8 end # The min...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/media_factory.rb
Ruby
mit
4,577
master
658
require "twitter/factory" require "twitter/media/animated_gif" require "twitter/media/photo" require "twitter/media/video" module Twitter # Factory for creating media objects based on type class MediaFactory < Twitter::Factory class << self # Constructs a new media object # # @api public ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/search_results.rb
Ruby
mit
4,577
master
3,044
require "cgi" require "twitter/enumerable" require "twitter/rest/request" require "twitter/utils" require "uri" module Twitter # Represents search results from Twitter class SearchResults include Enumerable include Utils # The raw attributes hash # # @api public # @example # results....
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/premium_search_results.rb
Ruby
mit
4,577
master
3,193
require "cgi" require "twitter/enumerable" require "twitter/rest/request" require "twitter/utils" require "uri" module Twitter # Represents premium search results from Twitter class PremiumSearchResults include Enumerable include Utils # The raw attributes hash # # @api public # @example ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/entity.rb
Ruby
mit
4,577
master
292
require "twitter/base" module Twitter # Represents a Twitter entity with position information class Entity < Base # The indices of this entity in the text # # @api public # @example # entity.indices # @return [Array<Integer>] attr_reader :indices end end
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/creatable.rb
Ruby
mit
4,577
master
784
require "time" require "memoizable" module Twitter # Provides created_at functionality for Twitter objects module Creatable include Memoizable # Time when the object was created on Twitter # # @api public # @example # tweet.created_at # => 2025-01-15 12:00:00 UTC # @return [Time] ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/source_user.rb
Ruby
mit
4,577
master
283
require "twitter/basic_user" module Twitter # Represents the source user in a relationship class SourceUser < BasicUser predicate_attr_reader :all_replies, :blocking, :can_dm, :followed_by, :marked_spam, :muting, :notifications_enabled, :want_retweets end end
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/trend_results.rb
Ruby
mit
4,577
master
2,132
require "memoizable" require "twitter/creatable" require "twitter/enumerable" require "twitter/null_object" require "twitter/utils" module Twitter # Represents a collection of trending topics class TrendResults include Creatable include Enumerable include Utils include Memoizable # The raw att...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/base.rb
Ruby
mit
4,577
master
5,494
require "uri" require "forwardable" require "memoizable" require "twitter/null_object" require "twitter/utils" module Twitter # Base class for Twitter objects class Base extend Forwardable include Memoizable include Twitter::Utils # The raw attributes hash # # @api public # @example ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/trend.rb
Ruby
mit
4,577
master
771
require "equalizer" require "twitter/base" module Twitter # Represents a Twitter trending topic class Trend < Base include Equalizer.new(:name) # Events associated with this trend # # @api public # @example # trend.events # @return [String] # The name of the trend # # @a...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/geo.rb
Ruby
mit
4,577
master
541
require "equalizer" require "twitter/base" module Twitter # Represents geographic information class Geo < Base include Equalizer.new(:coordinates) # The coordinates of this geographic location # # @api public # @example # geo.coordinates # @return [Array<Float>] attr_reader :coor...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/oembed.rb
Ruby
mit
4,577
master
1,214
require "twitter/base" module Twitter # Represents oEmbed data for a Tweet class OEmbed < Base # The height of the embedded content # # @api public # @example # oembed.height # @return [Integer] # The width of the embedded content # # @api public # @example # oembed...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/user.rb
Ruby
mit
4,577
master
7,926
require "uri" require "twitter/basic_user" require "twitter/creatable" require "twitter/entity/uri" require "twitter/profile" module Twitter # Represents a Twitter user class User < BasicUser include Creatable include Profile # The user's connections # # @api public # @example # user...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/streaming/connection.rb
Ruby
mit
4,577
master
2,840
require "openssl" require "resolv" module Twitter module Streaming # Manages TCP/SSL connections for streaming # # @api public class Connection # Returns the TCP socket class # # @api public # @example # connection.tcp_socket_class # @return [Class] # Retu...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/streaming/stall_warning.rb
Ruby
mit
4,577
master
634
module Twitter module Streaming # Represents a Twitter streaming stall warning # # @api public class StallWarning < Twitter::Base # Returns the warning code # # @api public # @example # stall_warning.code # @return [String] # Returns the warning message ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/streaming/response.rb
Ruby
mit
4,577
master
1,590
require "buftok" require "http" require "json" require "twitter/error" module Twitter module Streaming # Handles streaming response parsing # # @api public class Response # Initializes a new Response object # # @api public # @example # response = Twitter::Streaming::Re...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/streaming/client.rb
Ruby
mit
4,577
master
8,739
require "http/request" require "twitter/arguments" require "twitter/client" require "twitter/headers" require "twitter/streaming/connection" require "twitter/streaming/message_parser" require "twitter/streaming/response" require "twitter/utils" module Twitter # Streaming API modules for Twitter module Streaming ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/streaming/message_parser.rb
Ruby
mit
4,577
master
1,419
require "twitter/direct_message" require "twitter/streaming/deleted_tweet" require "twitter/streaming/event" require "twitter/streaming/friend_list" require "twitter/streaming/stall_warning" require "twitter/tweet" module Twitter module Streaming # Parses streaming messages from the Twitter API # # @api ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/streaming/deleted_tweet.rb
Ruby
mit
4,577
master
363
module Twitter module Streaming # Represents a deleted tweet from the streaming API # # @api public class DeletedTweet < Twitter::Identity # Returns the user ID of the deleted tweet's author # # @api public # @example # deleted_tweet.user_id # @return [Integer] ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/streaming/event.rb
Ruby
mit
4,577
master
2,014
module Twitter module Streaming # Represents a streaming event from the Twitter API # # @api public class Event # Event names for list-related events LIST_EVENTS = %i[ list_created list_destroyed list_updated list_member_added list_member_added list_member_removed list_user...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/media/video.rb
Ruby
mit
4,577
master
1,313
require "memoizable" require "twitter/identity" require "twitter/media/video_info" module Twitter module Media # Represents a Twitter video media object class Video < Twitter::Identity include Memoizable # The indices of this media in the text # # @api public # @example #...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/media/photo.rb
Ruby
mit
4,577
master
1,040
require "memoizable" require "twitter/identity" module Twitter # Namespace for Twitter media types module Media # Represents a Twitter photo media object class Photo < Twitter::Identity include Memoizable # The indices of this media in the text # # @api public # @example ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/media/video_info.rb
Ruby
mit
4,577
master
890
require "memoizable" require "twitter/variant" module Twitter module Media # Contains video metadata information class VideoInfo < Twitter::Base include Memoizable # The aspect ratio of the video # # @api public # @example # video_info.aspect_ratio # @return [Arra...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/geo/point.rb
Ruby
mit
4,577
master
1,125
require "twitter/geo" module Twitter class Geo # Represents a geographic point with latitude and longitude class Point < Twitter::Geo # Returns the latitude of this point # # @api public # @example # point.latitude # @return [Float] def latitude coordinates...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/direct_messages/welcome_message.rb
Ruby
mit
4,577
master
928
require "twitter/creatable" require "twitter/entities" require "twitter/identity" module Twitter # Namespace for direct message related classes module DirectMessages # Represents a Twitter welcome message for direct messages class WelcomeMessage < Twitter::Identity include Twitter::Creatable in...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/direct_messages/welcome_message_rule.rb
Ruby
mit
4,577
master
436
require "twitter/creatable" require "twitter/identity" module Twitter module DirectMessages # Represents a Twitter welcome message rule class WelcomeMessageRule < Twitter::Identity include Twitter::Creatable # The ID of the associated welcome message # # @api public # @example ...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/direct_messages/welcome_message_wrapper.rb
Ruby
mit
4,577
master
2,029
require "twitter/creatable" require "twitter/identity" module Twitter module DirectMessages # Wraps a Twitter welcome message response class WelcomeMessageWrapper < Twitter::Identity # The timestamp when the message was created # # @api public # @example # wrapper.created_time...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/direct_messages/welcome_message_rule_wrapper.rb
Ruby
mit
4,577
master
1,688
require "twitter/creatable" require "twitter/identity" module Twitter module DirectMessages # Wraps a Twitter welcome message rule response class WelcomeMessageRuleWrapper < Twitter::Identity # The timestamp when the rule was created # # @api public # @example # wrapper.create...
github
sferik/twitter-ruby
https://github.com/sferik/twitter-ruby
lib/twitter/entity/user_mention.rb
Ruby
mit
4,577
master
644
require "twitter/entity" module Twitter class Entity # Represents a Twitter user mention entity class UserMention < Entity # The ID of the mentioned user # # @api public # @example # user_mention.id # @return [Integer] attr_reader :id # The display name of t...