repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Chungking.rb | lib/tzinfo/data/definitions/Asia/Chungking.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Chungking
include TimezoneDefinition
linked_timezone 'Asia/Chungking', 'Asia/Shan... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Baghdad.rb | lib/tzinfo/data/definitions/Asia/Baghdad.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Baghdad
include TimezoneDefinition
timezone 'Asia/Baghdad' do |tz|
tz... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Thimbu.rb | lib/tzinfo/data/definitions/Asia/Thimbu.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Thimbu
include TimezoneDefinition
linked_timezone 'Asia/Thimbu', 'Asia/Thimphu'
... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Chita.rb | lib/tzinfo/data/definitions/Asia/Chita.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Chita
include TimezoneDefinition
timezone 'Asia/Chita' do |tz|
tz.off... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Barnaul.rb | lib/tzinfo/data/definitions/Asia/Barnaul.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Barnaul
include TimezoneDefinition
timezone 'Asia/Barnaul' do |tz|
tz... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Baku.rb | lib/tzinfo/data/definitions/Asia/Baku.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Baku
include TimezoneDefinition
timezone 'Asia/Baku' do |tz|
tz.offse... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Hovd.rb | lib/tzinfo/data/definitions/Asia/Hovd.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Hovd
include TimezoneDefinition
timezone 'Asia/Hovd' do |tz|
tz.offse... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Krasnoyarsk.rb | lib/tzinfo/data/definitions/Asia/Krasnoyarsk.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Krasnoyarsk
include TimezoneDefinition
timezone 'Asia/Krasnoyarsk' do |tz|
... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Dhaka.rb | lib/tzinfo/data/definitions/Asia/Dhaka.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Dhaka
include TimezoneDefinition
timezone 'Asia/Dhaka' do |tz|
tz.off... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Dubai.rb | lib/tzinfo/data/definitions/Asia/Dubai.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Dubai
include TimezoneDefinition
timezone 'Asia/Dubai' do |tz|
tz.off... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Ulaanbaatar.rb | lib/tzinfo/data/definitions/Asia/Ulaanbaatar.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Ulaanbaatar
include TimezoneDefinition
timezone 'Asia/Ulaanbaatar' do |tz|
... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Seoul.rb | lib/tzinfo/data/definitions/Asia/Seoul.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Seoul
include TimezoneDefinition
timezone 'Asia/Seoul' do |tz|
tz.off... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Yekaterinburg.rb | lib/tzinfo/data/definitions/Asia/Yekaterinburg.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Yekaterinburg
include TimezoneDefinition
timezone 'Asia/Yekaterinburg' do |tz|
... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Istanbul.rb | lib/tzinfo/data/definitions/Asia/Istanbul.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Istanbul
include TimezoneDefinition
linked_timezone 'Asia/Istanbul', 'Europe/Ista... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Qyzylorda.rb | lib/tzinfo/data/definitions/Asia/Qyzylorda.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Qyzylorda
include TimezoneDefinition
timezone 'Asia/Qyzylorda' do |tz|
... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Tashkent.rb | lib/tzinfo/data/definitions/Asia/Tashkent.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Tashkent
include TimezoneDefinition
timezone 'Asia/Tashkent' do |tz|
... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Riyadh.rb | lib/tzinfo/data/definitions/Asia/Riyadh.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Riyadh
include TimezoneDefinition
timezone 'Asia/Riyadh' do |tz|
tz.o... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Ujung_Pandang.rb | lib/tzinfo/data/definitions/Asia/Ujung_Pandang.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Ujung_Pandang
include TimezoneDefinition
linked_timezone 'Asia/Ujung_Pandang', 'A... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Ho_Chi_Minh.rb | lib/tzinfo/data/definitions/Asia/Ho_Chi_Minh.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Ho_Chi_Minh
include TimezoneDefinition
timezone 'Asia/Ho_Chi_Minh' do |tz|
... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Katmandu.rb | lib/tzinfo/data/definitions/Asia/Katmandu.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Katmandu
include TimezoneDefinition
linked_timezone 'Asia/Katmandu', 'Asia/Kathma... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Almaty.rb | lib/tzinfo/data/definitions/Asia/Almaty.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Almaty
include TimezoneDefinition
timezone 'Asia/Almaty' do |tz|
tz.o... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Yerevan.rb | lib/tzinfo/data/definitions/Asia/Yerevan.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Yerevan
include TimezoneDefinition
timezone 'Asia/Yerevan' do |tz|
tz... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Bahrain.rb | lib/tzinfo/data/definitions/Asia/Bahrain.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Bahrain
include TimezoneDefinition
linked_timezone 'Asia/Bahrain', 'Asia/Qatar'
... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Beirut.rb | lib/tzinfo/data/definitions/Asia/Beirut.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Beirut
include TimezoneDefinition
timezone 'Asia/Beirut' do |tz|
tz.o... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Kuwait.rb | lib/tzinfo/data/definitions/Asia/Kuwait.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Kuwait
include TimezoneDefinition
linked_timezone 'Asia/Kuwait', 'Asia/Riyadh'
... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Calcutta.rb | lib/tzinfo/data/definitions/Asia/Calcutta.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Calcutta
include TimezoneDefinition
linked_timezone 'Asia/Calcutta', 'Asia/Kolkat... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Kashgar.rb | lib/tzinfo/data/definitions/Asia/Kashgar.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Kashgar
include TimezoneDefinition
linked_timezone 'Asia/Kashgar', 'Asia/Urumqi'
... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Chongqing.rb | lib/tzinfo/data/definitions/Asia/Chongqing.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Chongqing
include TimezoneDefinition
linked_timezone 'Asia/Chongqing', 'Asia/Shan... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Hong_Kong.rb | lib/tzinfo/data/definitions/Asia/Hong_Kong.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Hong_Kong
include TimezoneDefinition
timezone 'Asia/Hong_Kong' do |tz|
... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Dushanbe.rb | lib/tzinfo/data/definitions/Asia/Dushanbe.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Dushanbe
include TimezoneDefinition
timezone 'Asia/Dushanbe' do |tz|
... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Muscat.rb | lib/tzinfo/data/definitions/Asia/Muscat.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Muscat
include TimezoneDefinition
linked_timezone 'Asia/Muscat', 'Asia/Dubai'
... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Asia/Saigon.rb | lib/tzinfo/data/definitions/Asia/Saigon.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Asia
module Saigon
include TimezoneDefinition
linked_timezone 'Asia/Saigon', 'Asia/Ho_Chi_Min... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/definitions/Arctic/Longyearbyen.rb | lib/tzinfo/data/definitions/Arctic/Longyearbyen.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Definitions
module Arctic
module Longyearbyen
include TimezoneDefinition
linked_timezone 'Arctic/Longyearbyen', ... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/indexes/timezones.rb | lib/tzinfo/data/indexes/timezones.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Indexes
module Timezones
include TimezoneIndexDefinition
timezone 'Africa/Abidjan'
linked_timezone 'Africa/Accra'
link... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | false |
tzinfo/tzinfo-data | https://github.com/tzinfo/tzinfo-data/blob/f73295c364520a6d99dc0d8135a3751e03a4c079/lib/tzinfo/data/indexes/countries.rb | lib/tzinfo/data/indexes/countries.rb | # encoding: UTF-8
# This file contains data derived from the IANA Time Zone Database
# (https://www.iana.org/time-zones).
module TZInfo
module Data
module Indexes
module Countries
include CountryIndexDefinition
country 'AD', 'Andorra' do |c|
c.timezone 'Europe/Andorra', 85, 2, 9... | ruby | MIT | f73295c364520a6d99dc0d8135a3751e03a4c079 | 2026-01-04T17:51:12.680542Z | true |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/spec/api_spec.rb | spec/api_spec.rb | require 'spec_helper'
| ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/spec/parser_spec.rb | spec/parser_spec.rb | require "spec_helper"
describe Tumblargh::Parser do
subject { Tumblargh::Parser.new }
describe "given invalid input" do
it "should throw an error if there is an unclosed block" do
subject.html = <<-eos
{block:Text}
{block:Title}<h1>{Title}</h1>{block:Title}
<p>{Body}</p>
{/b... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/spec/tumblargh_spec.rb | spec/tumblargh_spec.rb | require 'spec_helper'
describe Tumblargh do
describe "specifying the source blog/data" do
it "should work with local blog data from a file" do
json_path = File.join(FIXTURE_PATH, "data", "staff.tumblr.com-2012-05-06", "posts.json")
blog = Tumblargh.send(:create_blog, json_path)
blog.should ... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/spec/resource_spec.rb | spec/resource_spec.rb | require 'spec_helper'
describe Tumblargh::Resource do
describe "using local data" do
before do
json_path = File.join(FIXTURE_PATH, "data", "staff.tumblr.com-2012-05-06", "posts.json")
@json = ActiveSupport::JSON.decode(open(json_path).read)["response"]
end
it "should not have to fall back ... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/spec/spec_helper.rb | spec/spec_helper.rb | require 'rspec'
require 'open-uri'
# if something??!
# require 'simplecov'
# SimpleCov.start
# end
$: << File.dirname(__FILE__) + '/../lib'
require 'tumblargh'
FIXTURE_PATH = File.join(File.dirname(__FILE__), 'fixtures')
TUMBLR_API_KEY = '8QoLnQy4lP0rn6QHNYSDxmhZo0L6xelNmNosAVj703FNfLBhZQ'
# Requires supportin... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/spec/renderer/blocks_spec.rb | spec/renderer/blocks_spec.rb | require 'spec_helper'
describe Tumblargh::Renderer::Blocks do
def capture_stdout(&block)
original_stdout = $stdout
$stdout = fake = StringIO.new
begin
yield
ensure
$stdout = original_stdout
end
fake.string
end
let(:parser) { Tumblargh::Parser.new }
describe "{block:Perma... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/spec/renderer/document_spec.rb | spec/renderer/document_spec.rb | require 'spec_helper'
describe Tumblargh::Renderer::Document do
describe "permalink pages" do
before do
@parser = Tumblargh::Parser.new
@parser.html = ""
@document = Tumblargh::Renderer::Document.new(@parser.tree, nil, :permalink => true)
end
it "the document should know this is a ... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/spec/renderer/blocks/posts_spec.rb | spec/renderer/blocks/posts_spec.rb | require 'spec_helper'
describe Tumblargh::Renderer::Blocks::Posts do
before do
json_path = File.join(FIXTURE_PATH, "data", "staff.tumblr.com-2012-05-06", "posts.json")
@json = ActiveSupport::JSON.decode(open(json_path).read)["response"].with_indifferent_access
end
it "should render the correct amount o... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/spec/resource/post_spec.rb | spec/resource/post_spec.rb | require 'spec_helper'
describe Tumblargh::Resource::Post do
before do
json_path = File.join(FIXTURE_PATH, "data", "staff.tumblr.com-2012-05-06", "posts.json")
@json = ActiveSupport::JSON.decode(open(json_path).read)["response"]
@blog = Tumblargh::Resource::Blog.new("staff.tumblr.com", @json)
@posts ... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/examples/middleman_config.rb | examples/middleman_config.rb | require 'tumblargh'
activate :tumblargh,
api_key: 'API KEY',
blog: 'staff.tumblr.com'
| ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh.rb | lib/tumblargh.rb | require 'active_support'
require 'active_support/core_ext/hash/indifferent_access'
require 'active_support/core_ext/string/conversions'
require 'active_support/core_ext/time/conversions'
require 'active_support/inflector'
require 'tumblargh/version'
module Tumblargh
autoload :API, 'tumblargh/api'
autoload :... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/rack/tumblargh.rb | lib/rack/tumblargh.rb | module Rack
class Tumblargh
def initialize(app, options={})
@app = app
@options = options
@options[:blog] = 'staff.tumblr.com' if @options[:blog].nil?
end
attr_reader :options
def call(env)
request = Rack::Request.new(env)
['/tweets.js', %r{/api.*}].each do |route|
... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/middleman/extensions/tumblargh.rb | lib/middleman/extensions/tumblargh.rb | require 'rack/tumblargh'
module Middleman
module Extensions
module Tumblargh
class << self
def registered(app, options={})
::Tumblargh::API::set_api_key(options[:api_key])
app.after_configuration do
unless build?
use ::Rack::Tumblargh, options
... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/resource.rb | lib/tumblargh/resource.rb | module Tumblargh
module Resource
autoload :Base, 'tumblargh/resource/base'
autoload :Blog, 'tumblargh/resource/blog'
autoload :Dialogue, 'tumblargh/resource/dialogue'
autoload :Note, 'tumblargh/resource/note'
autoload :Photo, 'tumblargh/resource/photo'
autoload :Post, ... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/version.rb | lib/tumblargh/version.rb | module Tumblargh
VERSION = '0.2.2'.freeze
end
| ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/grammar.rb | lib/tumblargh/grammar.rb | # Autogenerated from a Treetop grammar. Edits may be lost.
module Tumblr
include Treetop::Runtime
def root
@root ||= :root
end
def _nt_root
start_index = index
if node_cache[:root].has_key?(index)
cached = node_cache[:root][index]
if cached
cached = SyntaxNode.new(input, inde... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/node.rb | lib/tumblargh/node.rb | module Tumblargh
module Node
autoload :Base, 'tumblargh/node/base'
autoload :Block, 'tumblargh/node/block'
autoload :BlockEnd, 'tumblargh/node/block_end'
autoload :BlockStart, 'tumblargh/node/block_start'
autoload :HtmlStyleTag, 'tumblargh/node/html_style_tag'
autoload :L... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/parser.rb | lib/tumblargh/parser.rb | require 'treetop'
require 'open-uri'
require 'nokogiri'
module Tumblargh
class ParserError < StandardError
end
class Parser
grammar_file = File.join(File.dirname(__FILE__), 'grammar')
if File.exists?("#{grammar_file}.rb")
require "#{grammar_file}.rb"
else
Treetop.load("#{grammar_file}.t... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/api.rb | lib/tumblargh/api.rb | require 'active_support'
require 'active_support/core_ext/hash/indifferent_access'
require 'active_support/core_ext/object/to_query'
require 'active_support/json'
require 'api_cache'
require 'open-uri'
module Tumblargh
module API
API_ROOT = 'http://api.tumblr.com/v2/blog/'
@enabled = true
class << se... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer.rb | lib/tumblargh/renderer.rb | require 'cgi'
require 'tumblargh/renderer/base'
require 'tumblargh/renderer/blocks'
require 'tumblargh/renderer/document'
require 'tumblargh/renderer/literal'
require 'tumblargh/renderer/tag'
module Tumblargh
module Renderer
def self.factory(node, context, options = {})
args = []
base = node.first.... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/tag.rb | lib/tumblargh/renderer/tag.rb | module Tumblargh
module Renderer
class Tag < Base
def render
# {PhotoURL-500} becomes photo_url(500)
tag, *args = node[1].split('-')
context.send tag.underscore, *args
end
end
class CustomTag < Tag
def method_name
self.class.name.demodulize.sub('Tag', '')... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/blocks.rb | lib/tumblargh/renderer/blocks.rb | module Tumblargh
module Renderer
module Blocks
require 'tumblargh/renderer/blocks/base'
class Description < Base
def should_render?
!description.blank?
end
end
class NumberedPost < Base
attr_reader :num
def initialize(node, context, *args)
... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/literal.rb | lib/tumblargh/renderer/literal.rb | module Tumblargh
module Renderer
class Literal < Base
def render
node[1]
end
end
end
end
| ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/base.rb | lib/tumblargh/renderer/base.rb | module Tumblargh
module Renderer
class Base
class << self
# Define a simple tag on the block.
# Name being tag name, and optionally the attibute/method to call
# on the context. If the second argument is left off, it'll just use the tag name.
def contextual_tag(name, attri... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/document.rb | lib/tumblargh/renderer/document.rb | module Tumblargh
module Renderer
class Document < Base
# Are we rendering a permalink page?
def permalink?
options[:permalink] == true
end
# TAGS ----------
contextual_tag :title
contextual_tag :description
def meta_description
strip_html(description)
... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/blocks/notes.rb | lib/tumblargh/renderer/blocks/notes.rb | module Tumblargh
module Renderer
module Blocks
# Rendered on permalink pages if this post has notes.
class PostNotes < Base
def should_render?
context.permalink? && note_count > 0
end
def note_count
context_post.note_count || 0
end
def pos... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/blocks/answer.rb | lib/tumblargh/renderer/blocks/answer.rb | module Tumblargh
module Renderer
module Blocks
class Answer < Post
contextual_tag :question
contextual_tag :answer
def asker
if asking_name == 'anonymous'
'Anonymous'
else
"<a href='#{asking_url}'>#{asking_name}</a>"
end
... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/blocks/reblogs.rb | lib/tumblargh/renderer/blocks/reblogs.rb | module Tumblargh
module Renderer
module Blocks
# TODO: Impl.
# Rendered if a post was reblogged from another post.
class RebloggedFrom < Base
def should_render?
false
end
def reblog_parent_name
end
def reblog_parent_title
end
... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/blocks/posts.rb | lib/tumblargh/renderer/blocks/posts.rb | module Tumblargh
module Renderer
module Blocks
# Posts Loop
#
# {block:Posts} is executed once for each post. Some post related tags can
# exist outside of a `type` block, such as {Title} or {Permalink}, so
# they should be defined here
class Posts < Base
contextual_ta... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/blocks/photoset.rb | lib/tumblargh/renderer/blocks/photoset.rb | module Tumblargh
module Renderer
module Blocks
class Photoset < Photo
def should_render?
context_post.type == 'photoset' && context_post.photos.size > 1
end
end
# Rendered for each of the Photoset photos
class Photos < Base
def render
if contex... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/blocks/chat.rb | lib/tumblargh/renderer/blocks/chat.rb | module Tumblargh
module Renderer
module Blocks
class Lines < Base
contextual_tag :label
contextual_tag :name
contextual_tag :line, :phrase
# "odd" or "even" for each line of this post.
# TODO Implementation
def alt
end
# A unique identifyi... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/blocks/base.rb | lib/tumblargh/renderer/blocks/base.rb | module Tumblargh
module Renderer
module Blocks
class Base < Renderer::Base
class << self
attr_accessor :should_render_if
alias_method :should_render_unless_blank, :should_render_if=
alias_method :should_render_unless_empty, :should_render_if=
end
def s... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/blocks/navigation.rb | lib/tumblargh/renderer/blocks/navigation.rb | module Tumblargh
module Renderer
module Blocks
# TODO: Impl.
# Rendered if there is a "previous" page (newer posts) to navigate to.
class PreviousPage < Base
def previous_page
end
end
# Rendered if there is a "next" page (older posts) to navigate to.
class Next... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/blocks/dates.rb | lib/tumblargh/renderer/blocks/dates.rb | # require 'action_view/helpers/date_helper'
module Tumblargh
module Renderer
module Blocks
# Rendered for all posts.
# Always wrap dates in this block so they will be properly hidden on non-post pages.
class Date < Base
MAP = {
# Tumblr tag => strftime symbol
... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/blocks/audio.rb | lib/tumblargh/renderer/blocks/audio.rb | module Tumblargh
module Renderer
module Blocks
class Audio < Post
def audio_player(color=:default)
html = context.player
return html if color == :default
map = { :white => 'FFFFFF', :grey => 'CCCCCC', :black => '000000' }
color = map[color] unless map[color... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/renderer/blocks/tags.rb | lib/tumblargh/renderer/blocks/tags.rb | module Tumblargh
module Renderer
module Blocks
# Rendered for each of a post's tags.
class Tags < Base
def tag
context.name
end
def url_safe_tag
escape_url(tag)
end
def tag_url
"/tagged/#{url_safe}"
end
def... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/resource/tag.rb | lib/tumblargh/resource/tag.rb | module Tumblargh
module Resource
class Tag < Base
end
end
end
| ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/resource/base.rb | lib/tumblargh/resource/base.rb | module Tumblargh
module Resource
class Base
# Needed by renderer for context propagation
attr_accessor :context
def initialize(attrs={})
self.attributes = attrs
end
attr_reader :attributes
def attributes=(attrs)
@attributes = attrs.with_indifferent_ac... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/resource/note.rb | lib/tumblargh/resource/note.rb | module Tumblargh
module Resource
class Note < Base
end
end
end
| ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/resource/post.rb | lib/tumblargh/resource/post.rb | module Tumblargh
module Resource
class Post < Base
def initialize(attrs, blog)
@blog = blog
super(attrs)
end
def type
if @attributes[:type] == 'photo'
photos.size > 1 ? 'photoset' : 'photo'
else
@attributes[:type]
end
end
... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/resource/dialogue.rb | lib/tumblargh/resource/dialogue.rb | module Tumblargh
module Resource
class Dialogue < Base
end
end
end
| ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/resource/blog.rb | lib/tumblargh/resource/blog.rb | module Tumblargh
module Resource
class Blog < Base
attr_accessor :domain
def initialize(domain, attrs=nil)
@domain = domain
self.attributes = attrs.nil? ? fetch : attrs
end
def attributes=(attrs)
attrs = attrs.with_indifferent_access
# We passed i... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/resource/photo.rb | lib/tumblargh/resource/photo.rb | module Tumblargh
module Resource
class Photo < Base
def photo_url(size=500)
size = size.to_i
res = alt_sizes.select do |p|
p[:width] == size
end
res.empty? ? original_size[:url] : res.first[:url]
end
end
end
end
| ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/resource/user.rb | lib/tumblargh/resource/user.rb | module Tumblargh
module Resource
class User < Base
end
end
end
| ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/node/tag.rb | lib/tumblargh/node/tag.rb | module Tumblargh
module Node
class Tag < Base
def type
return @type if defined?(@type)
n = name.split(':')
if n.size == 2
@type = "#{n.first.camelize.to_sym}Tag"
if @type == 'BlockTag'
raise ParserError, "There's an unclosed block somewhere near `#{... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/node/block_end.rb | lib/tumblargh/node/block_end.rb | module Tumblargh
module Node
class BlockEnd < Base
end
end
end
| ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/node/block_start.rb | lib/tumblargh/node/block_start.rb | module Tumblargh
module Node
class BlockStart < Base
def name
str = elements[1].text_value
"#{str[0].upcase}#{str[1..str.size]}"
end
def options
arguments = elements[3]
return {} if arguments.nil? || arguments.elements.nil?
arguments.elements.inject({})... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/node/literal.rb | lib/tumblargh/node/literal.rb | module Tumblargh
module Node
class Literal < Base
end
end
end
| ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/node/base.rb | lib/tumblargh/node/base.rb | module Tumblargh
module Node
class Base < Treetop::Runtime::SyntaxNode
def type
@type ||= self.class.name.split('::').last.to_sym
end
def to_tree
[type, text_value]
end
def to_s
text_value
end
end
end
end
| ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/node/root.rb | lib/tumblargh/node/root.rb | module Tumblargh
module Node
class Root < Base
def to_tree
elements.map(&:to_tree)
end
def to_s
elements.map(&:to_s).join ''
end
end
end
end
| ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
jasonwebster/tumblargh | https://github.com/jasonwebster/tumblargh/blob/1fedef2f9c3f8393a39a8f366a9ad297029ed198/lib/tumblargh/node/block.rb | lib/tumblargh/node/block.rb | module Tumblargh
module Node
class Block < Root
def name
# First node is BlockStart
elements.first.name
end
def options
elements.first.options
end
def to_tree
ary = [type, name, options]
# Second node is a Treetop SyntaxNode which holds
... | ruby | MIT | 1fedef2f9c3f8393a39a8f366a9ad297029ed198 | 2026-01-04T17:51:25.077970Z | false |
janlelis/unibits | https://github.com/janlelis/unibits/blob/3acb115c05c3ae6db2594d6a432168fcfabb13a7/spec/unibits_spec.rb | spec/unibits_spec.rb | require_relative "../lib/unibits/kernel_method"
require "minitest/autorun"
describe Unibits do
it "will not work for unsupported encodings" do
proc{
Unibits.of("string".encode("UTF-32"))
}.must_raise ArgumentError
end
describe 'Encodings' do
let(:string){ "🌫 Idiosyncrätic ℜսᖯʏ" }
it "wo... | ruby | MIT | 3acb115c05c3ae6db2594d6a432168fcfabb13a7 | 2026-01-04T17:51:19.558495Z | false |
janlelis/unibits | https://github.com/janlelis/unibits/blob/3acb115c05c3ae6db2594d6a432168fcfabb13a7/lib/unibits.rb | lib/unibits.rb | require_relative "unibits/version"
require "io/console"
require "paint"
require "unicode/display_width"
require "characteristics"
require "symbolify"
module Unibits
SUPPORTED_ENCODINGS = Encoding.name_list.grep(
Regexp.union(
/^UTF-8$/,
/^UTF8-/,
/^UTF-...E$/,
/^ASCII-8BIT$/,
/^US-... | ruby | MIT | 3acb115c05c3ae6db2594d6a432168fcfabb13a7 | 2026-01-04T17:51:19.558495Z | false |
janlelis/unibits | https://github.com/janlelis/unibits/blob/3acb115c05c3ae6db2594d6a432168fcfabb13a7/lib/unibits/version.rb | lib/unibits/version.rb | # frozen_string_literal: true
module Unibits
VERSION = "2.14.0"
UNICODE_VERSION = "17.0.0"
end
| ruby | MIT | 3acb115c05c3ae6db2594d6a432168fcfabb13a7 | 2026-01-04T17:51:19.558495Z | false |
janlelis/unibits | https://github.com/janlelis/unibits/blob/3acb115c05c3ae6db2594d6a432168fcfabb13a7/lib/unibits/kernel_method.rb | lib/unibits/kernel_method.rb | require_relative '../unibits'
module Kernel
private
def unibits(string, **kwargs)
Unibits.of(string, **kwargs)
end
end
| ruby | MIT | 3acb115c05c3ae6db2594d6a432168fcfabb13a7 | 2026-01-04T17:51:19.558495Z | false |
chrishunt/rubiks-cube | https://github.com/chrishunt/rubiks-cube/blob/3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0/spec/spec_helper.rb | spec/spec_helper.rb | require 'rubiks_cube'
| ruby | MIT | 3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0 | 2026-01-04T17:51:24.361634Z | false |
chrishunt/rubiks-cube | https://github.com/chrishunt/rubiks-cube/blob/3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0/spec/rubiks_cube/solution_spec.rb | spec/rubiks_cube/solution_spec.rb | require 'spec_helper'
describe RubiksCube::Solution do
class TestSolution < RubiksCube::Solution
def initialize(cube, solution)
@solution = solution
super cube
end
def solution; @solution; end
end
subject { TestSolution.new(double('Cube', state: 'nope'), solution) }
describe '#length... | ruby | MIT | 3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0 | 2026-01-04T17:51:24.361634Z | false |
chrishunt/rubiks-cube | https://github.com/chrishunt/rubiks-cube/blob/3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0/spec/rubiks_cube/two_cycle_solution_spec.rb | spec/rubiks_cube/two_cycle_solution_spec.rb | require 'spec_helper'
describe RubiksCube::TwoCycleSolution do
subject { described_class.new cube }
let(:cube) { RubiksCube::Cube.new state }
let(:state) { nil }
describe '#solution' do
shared_examples_for 'a cube that can be solved' do
it 'solves the cube' do
subject.solution
expe... | ruby | MIT | 3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0 | 2026-01-04T17:51:24.361634Z | false |
chrishunt/rubiks-cube | https://github.com/chrishunt/rubiks-cube/blob/3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0/spec/rubiks_cube/bicycle_solution_spec.rb | spec/rubiks_cube/bicycle_solution_spec.rb | require 'spec_helper'
module RubiksCube
describe BicycleSolution do
it 'is an alias for TwoCycleSolution' do
cube = double('RubiksCube::Cube')
allow(TwoCycleSolution).to receive(:new)
BicycleSolution.new(cube)
expect(TwoCycleSolution).to have_received(:new).with(cube)
end
end
end
| ruby | MIT | 3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0 | 2026-01-04T17:51:24.361634Z | false |
chrishunt/rubiks-cube | https://github.com/chrishunt/rubiks-cube/blob/3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0/spec/rubiks_cube/sticker_state_transform_spec.rb | spec/rubiks_cube/sticker_state_transform_spec.rb | require 'spec_helper'
describe RubiksCube::StickerStateTransform do
subject { described_class.new state }
let(:state) { nil }
describe '#to_cube' do
context 'when initialized with sticker state' do
let(:state) {[
"g b b b w b o g b \
o w b o o g r r w r y y o y r r g o r w o y r w",... | ruby | MIT | 3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0 | 2026-01-04T17:51:24.361634Z | false |
chrishunt/rubiks-cube | https://github.com/chrishunt/rubiks-cube/blob/3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0/spec/rubiks_cube/cubie_spec.rb | spec/rubiks_cube/cubie_spec.rb | require 'spec_helper'
describe RubiksCube::Cubie do
subject { described_class.new state }
let(:state) { 'UF' }
it 'is initialized with a state' do
expect(subject.state).to eq state
end
describe '==' do
context 'when the state equals the state of the other' do
it 'returns true' do
exp... | ruby | MIT | 3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0 | 2026-01-04T17:51:24.361634Z | false |
chrishunt/rubiks-cube | https://github.com/chrishunt/rubiks-cube/blob/3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0/spec/rubiks_cube/algorithms_spec.rb | spec/rubiks_cube/algorithms_spec.rb | require 'spec_helper'
describe RubiksCube::Algorithms do
subject { described_class }
describe '.reverse' do
it 'reverses the algorithm' do
expect(subject.reverse "F' B L2 U' R").to eq "R' U L2 B' F"
end
end
end
| ruby | MIT | 3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0 | 2026-01-04T17:51:24.361634Z | false |
chrishunt/rubiks-cube | https://github.com/chrishunt/rubiks-cube/blob/3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0/spec/rubiks_cube/cube_spec.rb | spec/rubiks_cube/cube_spec.rb | require 'spec_helper'
describe RubiksCube::Cube do
subject { described_class.new state }
let(:state) { nil }
describe '#initialize' do
context 'when a state is provided' do
let(:state) { 'some state' }
it 'is initialized with the state' do
expect(subject.state).to eq state
end
... | ruby | MIT | 3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0 | 2026-01-04T17:51:24.361634Z | false |
chrishunt/rubiks-cube | https://github.com/chrishunt/rubiks-cube/blob/3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0/lib/rubiks_cube.rb | lib/rubiks_cube.rb | require 'rubiks_cube/version'
require 'rubiks_cube/sticker_state_transform'
require 'rubiks_cube/cube'
require 'rubiks_cube/cubie'
require 'rubiks_cube/algorithms'
require 'rubiks_cube/solution'
require 'rubiks_cube/two_cycle_solution'
require 'rubiks_cube/bicycle_solution'
| ruby | MIT | 3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0 | 2026-01-04T17:51:24.361634Z | false |
chrishunt/rubiks-cube | https://github.com/chrishunt/rubiks-cube/blob/3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0/lib/rubiks_cube/version.rb | lib/rubiks_cube/version.rb | module RubiksCube
VERSION = '1.3.0'
end
| ruby | MIT | 3b276ac7dbc8c2afd02d351316d4eb6b1e0d14e0 | 2026-01-04T17:51:24.361634Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.