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
jmmastey/bundler-stats
https://github.com/jmmastey/bundler-stats/blob/3e45b08db3ee779b125bb562eb366bb84ceab71e/lib/bundler/stats/version.rb
lib/bundler/stats/version.rb
module Bundler module Stats VERSION = '2.3.0' end end
ruby
MIT
3e45b08db3ee779b125bb562eb366bb84ceab71e
2026-01-04T17:38:05.426838Z
false
jmmastey/bundler-stats
https://github.com/jmmastey/bundler-stats/blob/3e45b08db3ee779b125bb562eb366bb84ceab71e/lib/bundler/stats/tree.rb
lib/bundler/stats/tree.rb
class Bundler::Stats::Tree attr_accessor :tree, :skiplist ERR_MESSAGE = "The dependency `%s` wasn't found. It may not be present in " \ "your Gemfile.lock. This often happens when a dependency isn't " \ "installed on your platform." def initialize(parser, skiplist: '') raise ...
ruby
MIT
3e45b08db3ee779b125bb562eb366bb84ceab71e
2026-01-04T17:38:05.426838Z
false
jmmastey/bundler-stats
https://github.com/jmmastey/bundler-stats/blob/3e45b08db3ee779b125bb562eb366bb84ceab71e/lib/bundler/stats/skiplist.rb
lib/bundler/stats/skiplist.rb
class Bundler::Stats::Skiplist attr_reader :regex_list def initialize(list = '') @regex_list = if list.respond_to?(:regex_list) list.regex_list elsif list.respond_to?(:split) list .gsub(/\s+/, '') .split(",") .map { |str| glob_to_regex(str) } else (list || [])....
ruby
MIT
3e45b08db3ee779b125bb562eb366bb84ceab71e
2026-01-04T17:38:05.426838Z
false
jmmastey/bundler-stats
https://github.com/jmmastey/bundler-stats/blob/3e45b08db3ee779b125bb562eb366bb84ceab71e/lib/bundler/stats/cli.rb
lib/bundler/stats/cli.rb
require 'json' require 'thor' require 'bundler' require 'bundler/stats' module Bundler module Stats class CLI < ::Thor default_task :stats map '--version' => :version, "-v" => :version desc 'stats', 'Displays basic stats about the gems in your Gemfile' method_option :format, aliases: "-...
ruby
MIT
3e45b08db3ee779b125bb562eb366bb84ceab71e
2026-01-04T17:38:05.426838Z
false
jmmastey/bundler-stats
https://github.com/jmmastey/bundler-stats/blob/3e45b08db3ee779b125bb562eb366bb84ceab71e/lib/bundler/stats/printer.rb
lib/bundler/stats/printer.rb
# this is somewhat duplicative of the table_print gem, but tbh I like that we # don't have many dependencies yet, so I'd rather keep it this way. class Bundler::Stats::Printer attr_accessor :headers, :data, :borders MIN_COL_SIZE = 10 BORDERS = { on: { corner: "+", horizontal: "-", vertical: "|" }, off: ...
ruby
MIT
3e45b08db3ee779b125bb562eb366bb84ceab71e
2026-01-04T17:38:05.426838Z
false
jmmastey/bundler-stats
https://github.com/jmmastey/bundler-stats/blob/3e45b08db3ee779b125bb562eb366bb84ceab71e/lib/bundler/stats/calculator.rb
lib/bundler/stats/calculator.rb
require 'bundler' module Bundler module Stats class Calculator attr_reader :parser, :tree, :gemfile, :remover def initialize(gemfile_path, lockfile_path, skiplist = nil) raise ArgumentError unless File.readable?(lockfile_path) raise ArgumentError unless File.readable?(gemfile_path) ...
ruby
MIT
3e45b08db3ee779b125bb562eb366bb84ceab71e
2026-01-04T17:38:05.426838Z
false
jmmastey/bundler-stats
https://github.com/jmmastey/bundler-stats/blob/3e45b08db3ee779b125bb562eb366bb84ceab71e/lib/bundler/stats/remover.rb
lib/bundler/stats/remover.rb
class Bundler::Stats::Remover ERR_MESSAGE = "Trying to check whether dep can be removed, but was unable " \ "to resolve whether it is used by `%s`. It may not be in your Gemfile.lock. " \ "This often happens when a dependency isn't installed on your platform." def initialize(tree, top_level) @tree ...
ruby
MIT
3e45b08db3ee779b125bb562eb366bb84ceab71e
2026-01-04T17:38:05.426838Z
false
jmmastey/bundler-stats
https://github.com/jmmastey/bundler-stats/blob/3e45b08db3ee779b125bb562eb366bb84ceab71e/lib/bundler/stats/file_path_resolver.rb
lib/bundler/stats/file_path_resolver.rb
module Bundler module Stats class FilePathResolver FILES_MAP = { "gems.rb" => "gems.locked", "Gemfile" => "Gemfile.lock" } def initialize(specific_gemfile_path = nil) @specific_gemfile_path = specific_gemfile_path end def gemfile_path resolve_file_pa...
ruby
MIT
3e45b08db3ee779b125bb562eb366bb84ceab71e
2026-01-04T17:38:05.426838Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/example.rb
example.rb
require 'rubygems' require 'evernote' user_store_url = "https://sandbox.evernote.com/edam/user" config = { :username => 'username', :password => 'password', :consumer_key => 'consumer_key', :consumer_secret => 'consumer_secret' } user_store = Evernote::UserStore.new(user_store_url, config) auth_result = use...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/vendor/gen-rb/evernote.rb
vendor/gen-rb/evernote.rb
require 'set' require 'errors_types' require 'limits_constants' require 'limits_types' require 'note_store' require 'note_store_constants' require 'note_store_types' require 'types_constants' require 'types_types' require 'user_store' require 'user_store_constants' require 'user_store_types'
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/vendor/gen-rb/evernote/edam/types_constants.rb
vendor/gen-rb/evernote/edam/types_constants.rb
# # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'types_types' module Evernote module EDAM module Type EDAM_NOTE_SOURCE_WEB_CLIP = %q"web.clip" EDAM_NOTE_SOURCE_MAIL_CLIP = %q"mail.clip" ...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/vendor/gen-rb/evernote/edam/types_types.rb
vendor/gen-rb/evernote/edam/types_types.rb
# # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'limits_types' module Evernote module EDAM module Type module PrivilegeLevel NORMAL = 1 PREMIUM = 3 MANAGER = 7 SUPPORT...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
true
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/vendor/gen-rb/evernote/edam/limits_types.rb
vendor/gen-rb/evernote/edam/limits_types.rb
# # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # module Evernote module EDAM module Limits end end end
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/vendor/gen-rb/evernote/edam/limits_constants.rb
vendor/gen-rb/evernote/edam/limits_constants.rb
# # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'limits_types' module Evernote module EDAM module Limits EDAM_ATTRIBUTE_LEN_MIN = 1 EDAM_ATTRIBUTE_LEN_MAX = 4096 EDAM_ATTRIBUTE_REG...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/vendor/gen-rb/evernote/edam/note_store_constants.rb
vendor/gen-rb/evernote/edam/note_store_constants.rb
# # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'note_store_types' module Evernote module EDAM module NoteStore end end end
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/vendor/gen-rb/evernote/edam/errors_constants.rb
vendor/gen-rb/evernote/edam/errors_constants.rb
# # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'errors_types' module Evernote module EDAM module Error end end end
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/vendor/gen-rb/evernote/edam/note_store_types.rb
vendor/gen-rb/evernote/edam/note_store_types.rb
# # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'user_store_types' require 'types_types' require 'errors_types' require 'limits_types' module Evernote module EDAM module NoteStore # This structure encapsulates the informat...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
true
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/vendor/gen-rb/evernote/edam/user_store_types.rb
vendor/gen-rb/evernote/edam/user_store_types.rb
# # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'types_types' require 'errors_types' module Evernote module EDAM module UserStore module SponsoredGroupRole GROUP_MEMBER = 1 GROUP_ADMIN = 2 ...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/vendor/gen-rb/evernote/edam/errors_types.rb
vendor/gen-rb/evernote/edam/errors_types.rb
# # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # module Evernote module EDAM module Error module EDAMErrorCode UNKNOWN = 1 BAD_DATA_FORMAT = 2 PERMISSION_DENIED = 3 INTERNAL_ERR...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/vendor/gen-rb/evernote/edam/user_store.rb
vendor/gen-rb/evernote/edam/user_store.rb
# # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'thrift' require 'user_store_types' module Evernote module EDAM module UserStore module UserStore class Client ...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/vendor/gen-rb/evernote/edam/user_store_constants.rb
vendor/gen-rb/evernote/edam/user_store_constants.rb
# # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'user_store_types' module Evernote module EDAM module UserStore EDAM_VERSION_MAJOR = 1 EDAM_VERSION_MINOR = 21 end end end
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/vendor/gen-rb/evernote/edam/note_store.rb
vendor/gen-rb/evernote/edam/note_store.rb
# # Autogenerated by Thrift Compiler (0.8.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # require 'thrift' require 'note_store_types' module Evernote module EDAM module NoteStore module NoteStore class Client ...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
true
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/spec/spec_helper.rb
spec/spec_helper.rb
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'evernote' require 'rspec' require 'yaml' RSpec.configure do |config| end
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/spec/evernote/client_spec.rb
spec/evernote/client_spec.rb
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "Evernote::Client" do it "initializes a ThriftClient instance that uses HTTP transport" do klass = mock("SomeInternalEvernoteClass") opts = { :transport => Thrift::HTTPClientTransport } ThriftClient.should_receive(:new).with(kl...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/spec/evernote/user_store_spec.rb
spec/evernote/user_store_spec.rb
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "Evernote::UserStore" do before(:each) do @user_store_url = "https://sandbox.evernote.com/edam/user" @config = { :username => 'cgs', :password => 'password', :consumer_key => '12345', :consumer_secret => 'A...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/spec/evernote/note_store_spec.rb
spec/evernote/note_store_spec.rb
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe "Evernote::NoteStore" do it "should proxy methods" do note_store = Evernote::NoteStore.new("http://sandbox.evernote.com/edam/note/") note_store.instance_variable_get(:@client).should_receive(:foobar).and_return(nil) note_s...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/lib/evernote.rb
lib/evernote.rb
require 'rubygems' require 'thrift_client' gen_rb_path = File.expand_path(File.dirname(__FILE__) + "/../vendor/gen-rb") $LOAD_PATH.unshift gen_rb_path $LOAD_PATH.unshift "#{gen_rb_path}/evernote/edam" require "#{gen_rb_path}/evernote" require "evernote/client" require "evernote/user_store" require "evernote/note_store...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/lib/evernote/version.rb
lib/evernote/version.rb
module Evernote VERSION = "1.2.1" end
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/lib/evernote/client.rb
lib/evernote/client.rb
module Evernote class Client THRIFT_DEFAULTS = { :transport => Thrift::HTTPClientTransport }.freeze def initialize(klass, url, thrift_client_options = {}) thrift_opts = THRIFT_DEFAULTS.merge(thrift_client_options) @client = ThriftClient.new(klass, url, thrift_opts) end d...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/lib/evernote/user_store.rb
lib/evernote/user_store.rb
module Evernote VersionOutOfDate = Class.new(StandardError) class UserStore AuthenticationFailure = Class.new(StandardError) def initialize(uri, credentials, thrift_client_options = {}) raise ArgumentError, "credentials must be passed in as a hash" unless credentials.is_a? Hash ...
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
cgs/evernote
https://github.com/cgs/evernote/blob/e414ab96aef3902d32c4e3fcb172b032969b7da4/lib/evernote/note_store.rb
lib/evernote/note_store.rb
module Evernote class NoteStore def initialize(uri, thrift_client_options = {}) @client = Evernote::Client.new(Evernote::EDAM::NoteStore::NoteStore::Client, uri, thrift_client_options) end def method_missing(name, *args, &block) @client.send(name, *args, &block) end end end
ruby
MIT
e414ab96aef3902d32c4e3fcb172b032969b7da4
2026-01-04T17:38:07.441811Z
false
arkanis/minidyndns
https://github.com/arkanis/minidyndns/blob/769a517fd22dab20790a92b8a63a640ed96fd31b/dns.rb
dns.rb
=begin MiniDynDNS v1.4.0 by Stephan Soller <stephan.soller@helionweb.de> # About the source code To keep the source code hackable and easier to understand it's organized in sections rather than classes. I've tried several class layouts but rejected them all because they added to much boiler plate and self organizati...
ruby
MIT
769a517fd22dab20790a92b8a63a640ed96fd31b
2026-01-04T17:38:08.320277Z
false
arkanis/minidyndns
https://github.com/arkanis/minidyndns/blob/769a517fd22dab20790a92b8a63a640ed96fd31b/tests/test.rb
tests/test.rb
=begin This test script starts the DNS server on unpriviliged ports and reproduces some manual tests done during development. It uses the `dig` command line utility to do the DNS queries and just checks if the output contains the expected lines. So make sure you have `dig` installed if you want to test the server. T...
ruby
MIT
769a517fd22dab20790a92b8a63a640ed96fd31b
2026-01-04T17:38:08.320277Z
false
arkanis/minidyndns
https://github.com/arkanis/minidyndns/blob/769a517fd22dab20790a92b8a63a640ed96fd31b/prototypes/02-dirty-server.rb
prototypes/02-dirty-server.rb
=begin Small and simple DNS server Based on RFC 1035 (http://tools.ietf.org/html/rfc1035) =end require "socket" require "ipaddr" require "etc" require "cgi" require "base64" require "yaml" # Possible values for the RCODE field in the DNS header (response code, see RFC 1035, 4.1.1. Header section format) RCODE_NO_E...
ruby
MIT
769a517fd22dab20790a92b8a63a640ed96fd31b
2026-01-04T17:38:08.320277Z
false
arkanis/minidyndns
https://github.com/arkanis/minidyndns/blob/769a517fd22dab20790a92b8a63a640ed96fd31b/prototypes/01-question-answer.rb
prototypes/01-question-answer.rb
=begin Small and simple DNS server Based on RFC 1035 (http://tools.ietf.org/html/rfc1035) =end require "socket" require "ipaddr" class ByteStream attr_reader :pos def initialize(data) @data = data @pos = 0 end def byte(number_of_bytes = 1) values = [] number_of_bytes.times do values << @data.byte...
ruby
MIT
769a517fd22dab20790a92b8a63a640ed96fd31b
2026-01-04T17:38:08.320277Z
false
arkanis/minidyndns
https://github.com/arkanis/minidyndns/blob/769a517fd22dab20790a92b8a63a640ed96fd31b/prototypes/03-minidyndns-with-edns.rb
prototypes/03-minidyndns-with-edns.rb
=begin MiniDynDNS v1.1.3 by Stephan Soller <stephan.soller@helionweb.de> # About the source code To keep the source code hackable and easier to understand it's organized in sections rather than classes. I've tried several class layouts but rejected them all because they added to much boiler plate and self organizati...
ruby
MIT
769a517fd22dab20790a92b8a63a640ed96fd31b
2026-01-04T17:38:08.320277Z
false
averyvery/hieroglyph
https://github.com/averyvery/hieroglyph/blob/9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce/spec/spec_helper.rb
spec/spec_helper.rb
require 'bundler' Bundler.setup(:test) require 'rspec' # require 'mocha' # require 'bourne' require File.expand_path('../../lib/hieroglyph.rb', __FILE__) require File.expand_path('../../lib/hieroglyph', __FILE__) Dir["./spec/support/**/*.rb"].each {|f| require f}
ruby
MIT
9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce
2026-01-04T17:38:11.540054Z
false
averyvery/hieroglyph
https://github.com/averyvery/hieroglyph/blob/9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce/spec/lib/hieroglyph/character_sheet_spec.rb
spec/lib/hieroglyph/character_sheet_spec.rb
require 'spec_helper' describe Hieroglyph::CharacterSheet do context 'A CharacterSheet' do before :each do module Hieroglyph def self.log(*) end end File.delete('/tmp/sheet_characters.png') if File.exists?('/tmp/sheet_characters.png') @character_sheet = Hieroglyph::Charac...
ruby
MIT
9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce
2026-01-04T17:38:11.540054Z
false
averyvery/hieroglyph
https://github.com/averyvery/hieroglyph/blob/9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce/spec/lib/hieroglyph/font_spec.rb
spec/lib/hieroglyph/font_spec.rb
require 'spec_helper' describe Hieroglyph::Font do context 'A Font' do before :each do module Hieroglyph def self.log(*) end end system('rm -rf /tmp/glyphs/') system('mkdir /tmp/glyphs/') path_to_test = File.expand_path('../../../support/test.svg', __FILE__) ...
ruby
MIT
9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce
2026-01-04T17:38:11.540054Z
false
averyvery/hieroglyph
https://github.com/averyvery/hieroglyph/blob/9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce/spec/lib/hieroglyph/noop_sheet_spec.rb
spec/lib/hieroglyph/noop_sheet_spec.rb
require 'spec_helper' describe Hieroglyph::NoopSheet do context 'A NoopSheet' do before :each do module Hieroglyph def log(*) end end @character_sheet = Hieroglyph::NoopSheet.new({:output_folder => '/tmp', :name => 'sheet'}) end it 'should execute add' do @charac...
ruby
MIT
9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce
2026-01-04T17:38:11.540054Z
false
averyvery/hieroglyph
https://github.com/averyvery/hieroglyph/blob/9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce/spec/lib/hieroglyph/glyph_spec.rb
spec/lib/hieroglyph/glyph_spec.rb
require 'spec_helper' describe Hieroglyph::Glyph do context 'A Glyph' do before :each do module Hieroglyph def self.log(*) end end system('rm -rf /tmp/glyphs/') system('mkdir /tmp/glyphs/') path_to_test = File.expand_path('../../../support/test.svg', __FILE__) ...
ruby
MIT
9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce
2026-01-04T17:38:11.540054Z
false
averyvery/hieroglyph
https://github.com/averyvery/hieroglyph/blob/9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce/lib/hieroglyph.rb
lib/hieroglyph.rb
IMAGEMAGICK_INSTALLED = !!`command convert &>/dev/null && echo "t" || echo "f"`.match(/t/) module Hieroglyph def self.log(str="", pad=2) puts str.rjust(str.length + pad) end def self.colorize(str, color_code, pad) Hieroglyph.log("\e[#{color_code}m#{str}\e[0m", pad) end def self.header(str) Hie...
ruby
MIT
9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce
2026-01-04T17:38:11.540054Z
false
averyvery/hieroglyph
https://github.com/averyvery/hieroglyph/blob/9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce/lib/hieroglyph/version.rb
lib/hieroglyph/version.rb
module Hieroglyph VERSION = '0.1.5' end
ruby
MIT
9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce
2026-01-04T17:38:11.540054Z
false
averyvery/hieroglyph
https://github.com/averyvery/hieroglyph/blob/9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce/lib/hieroglyph/noop_sheet.rb
lib/hieroglyph/noop_sheet.rb
module Hieroglyph class NoopSheet def initialize(*) Hieroglyph.error "ImageMagick not detected - skipping character sheet" end def add(file) end def save end end end
ruby
MIT
9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce
2026-01-04T17:38:11.540054Z
false
averyvery/hieroglyph
https://github.com/averyvery/hieroglyph/blob/9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce/lib/hieroglyph/character_sheet.rb
lib/hieroglyph/character_sheet.rb
require 'escape' module Hieroglyph class CharacterSheet attr_accessor :files, :output_path @@montage_args = { '-background' => '#ffffff', '-fill' => '#000000', '-mattecolor' => '#ffffff', '-geometry' => '150x150+25+25', '-label' => '%t' } def initialize(options) ...
ruby
MIT
9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce
2026-01-04T17:38:11.540054Z
false
averyvery/hieroglyph
https://github.com/averyvery/hieroglyph/blob/9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce/lib/hieroglyph/glyph.rb
lib/hieroglyph/glyph.rb
require 'nokogiri' require 'savage' module Hieroglyph class Glyph attr_accessor :name, :path, :contents SHAPE_HANDLERS = { 'circle' => 'report_invalid', 'ellipse' => 'report_invalid', 'line' => 'report_invalid', 'polyline' => 'report_invalid', 'rect' => 'report_invalid', ...
ruby
MIT
9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce
2026-01-04T17:38:11.540054Z
false
averyvery/hieroglyph
https://github.com/averyvery/hieroglyph/blob/9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce/lib/hieroglyph/font.rb
lib/hieroglyph/font.rb
module Hieroglyph class Font attr_accessor :output_path, :options, :characters, :unicode_values, :contents, :character_sheet def initialize(options) @characters = [] @unicode_values = [] @contents = "" @options = options @output_path = File.join(@options[:output_folder], @opti...
ruby
MIT
9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce
2026-01-04T17:38:11.540054Z
false
averyvery/hieroglyph
https://github.com/averyvery/hieroglyph/blob/9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce/lib/hieroglyph/command_line.rb
lib/hieroglyph/command_line.rb
require "optparse" require File.expand_path(File.dirname(__FILE__) + '/../hieroglyph') module Hieroglyph class CommandLine BANNER = <<-EOS Usage: hieroglyph OPTIONS Run hieroglyph to generate an SVG font from a folder of SVG glyphs. Report any problems here: http://github.com/averyvery/hieroglyph/issues Op...
ruby
MIT
9dbe17a5f2bc640e1eac17f3d10c2d4a43d7ecce
2026-01-04T17:38:11.540054Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/spec/spec_helper.rb
spec/spec_helper.rb
# This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # The generated `.rspec` file contains `--require spec_helper` which will cause # this file to always be loaded, without a need to explicitly require it in any # file...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/spec/lib/trmnlp/context_spec.rb
spec/lib/trmnlp/context_spec.rb
require 'spec_helper' RSpec.describe TRMNLP::Context do let(:root_dir) { File.join(__dir__, '../../fixtures') } subject(:context) { described_class.new(root_dir) } TEST_RESPONSES = [ { header: 'application/json; charset=utf-8', response_body: '{"key": "value", "number": 42}', parsed: { 'ke...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/spec/lib/trmnlp/config/project_spec.rb
spec/lib/trmnlp/config/project_spec.rb
require 'spec_helper' RSpec.describe TRMNLP::Config::Project do let(:root_dir) { File.join(__dir__, '../../../fixtures') } let(:paths) { TRMNLP::Paths.new(root_dir) } subject { TRMNLP::Config::Project.new(paths) } describe '#custom_fields' do context 'when there is a .trmnlp yaml file in the path' do ...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp.rb
lib/trmnlp.rb
# frozen_string_literal: true module TRMNLP; end require 'oj' Oj.mimic_JSON() require_relative "trmnlp/config" require_relative "trmnlp/context" require_relative "trmnlp/version" module TRMNLP VIEWS = %w{full half_horizontal half_vertical quadrant} class Error < StandardError; end end
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/version.rb
lib/trmnlp/version.rb
# frozen_string_literal: true module TRMNLP VERSION = "0.5.10".freeze end
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/paths.rb
lib/trmnlp/paths.rb
require 'xdg' module TRMNLP class Paths attr_reader :root_dir def initialize(root_dir) @root_dir = Pathname.new(root_dir) @xdg = XDG.new end # --- trmnlp library --- def gem_dir = Pathname.new(__dir__).join('..', '..').expand_path def templates_dir = gem_dir.join('...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/app.rb
lib/trmnlp/app.rb
require 'faye/websocket' require 'sinatra' require 'sinatra/base' require_relative 'context' require_relative 'screen_generator' module TRMNLP class App < Sinatra::Base # Sinatra settings set :views, File.join(File.dirname(__FILE__), '..', '..', 'web', 'views') set :public_folder, File.join(File.dirnam...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/cli.rb
lib/trmnlp/cli.rb
require 'thor' require_relative '../trmnlp' require_relative '../trmnlp/commands' module TRMNLP class CLI < Thor package_name 'trmnlp' class_option :dir, type: :string, default: Dir.pwd, aliases: '-d', desc: 'Plugin project directory' class_option :quiet, type: :boolean, default: fal...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/commands.rb
lib/trmnlp/commands.rb
Dir[File.join(__dir__, 'commands', '*.rb')].each { |file| require file }
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/config.rb
lib/trmnlp/config.rb
require_relative 'config/app' require_relative 'config/plugin' require_relative 'config/project' module TRMNLP class Config attr_reader :app, :project, :plugin def initialize(path) @app = App.new(path) @project = Project.new(path) @plugin = Plugin.new(path, @project) end end end
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/context.rb
lib/trmnlp/context.rb
require 'active_support/time' require 'active_support/core_ext/hash/conversions' require 'erb' require 'faraday' require 'filewatcher' require 'json' require 'trmnl/liquid' require_relative 'config' require_relative 'paths' module TRMNLP class Context attr_reader :config, :paths def initialize(root_dir...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/api_client.rb
lib/trmnlp/api_client.rb
require 'faraday' require 'faraday/multipart' require_relative 'config' module TRMNLP class APIClient def initialize(config) @config = config end def get_plugin_setting_archive(id) response = conn.get("plugin_settings/#{id}/archive") if response.status == 200 temp_file = Temp...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/screen_generator.rb
lib/trmnlp/screen_generator.rb
require 'mini_magick' require 'puppeteer-ruby' require 'base64' require 'thread' module TRMNLP class ScreenGenerator # Browser pool management for efficient resource usage class BrowserPool def initialize(max_size: 2) @browsers = [] @available = Queue.new @mutex = Mutex.new ...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/commands/serve.rb
lib/trmnlp/commands/serve.rb
require 'zip' require_relative 'base' require_relative '../api_client' module TRMNLP module Commands class Serve < Base def call context.validate! # Must come AFTER parsing options require_relative '../app' # Now we can configure things App.set(:context, c...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/commands/build.rb
lib/trmnlp/commands/build.rb
require_relative 'base' module TRMNLP module Commands class Build < Base def call context.validate! context.poll_data context.paths.create_build_dir VIEWS.each do |view| output_path = context.paths.build_dir.join("#{view}.html") output "Writing #{output_...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/commands/login.rb
lib/trmnlp/commands/login.rb
require_relative 'base' module TRMNLP module Commands class Login < Base def call if config.app.logged_in? anonymous_key = config.app.api_key[0..10] + '*' * (config.app.api_key.length - 11) output "Currently authenticated as: #{anonymous_key}" confirm = prompt("You are...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/commands/base.rb
lib/trmnlp/commands/base.rb
require 'thor/core_ext/hash_with_indifferent_access' require_relative '../context' module TRMNLP module Commands class Base include Thor::CoreExt def initialize(options = HashWithIndifferentAccess.new) @options = HashWithIndifferentAccess.new(options) @context = Context.new(@options...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/commands/clone.rb
lib/trmnlp/commands/clone.rb
require_relative 'base' require_relative 'pull' module TRMNLP module Commands class Clone < Base def call(directory_name, id) authenticate! destination_path = Pathname.new(options.dir).join(directory_name) raise Error, "directory #{destination_path} already exists, aborting" if des...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/commands/push.rb
lib/trmnlp/commands/push.rb
require 'zip' require_relative 'base' require_relative '../api_client' module TRMNLP module Commands class Push < Base def call context.validate! authenticate! is_new = false zip_path = 'upload.zip' api = APIClient.new(config) plugin_settings_id = options...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/commands/init.rb
lib/trmnlp/commands/init.rb
require 'fileutils' require_relative 'base' module TRMNLP module Commands class Init < Base def call(name) destination_dir = Pathname.new(options.dir).join(name) unless destination_dir.exist? output "Creating #{destination_dir}" destination_dir.mkpath end ...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/commands/pull.rb
lib/trmnlp/commands/pull.rb
require 'zip' require_relative 'base' require_relative '../api_client' module TRMNLP module Commands class Pull < Base def call context.validate! authenticate! plugin_settings_id = options.id || config.plugin.id raise Error, 'plugin ID must be specified' if plugin_settings...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/config/project.rb
lib/trmnlp/config/project.rb
require 'trmnl/liquid' require 'yaml' module TRMNLP class Config class Project attr_reader :paths def initialize(paths) @paths = paths reload! end def reload! if paths.trmnlp_config.exist? @config = YAML.load_file(paths.trmnlp_config) else ...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/config/plugin.rb
lib/trmnlp/config/plugin.rb
require 'yaml' module TRMNLP class Config class Plugin def initialize(paths, project_config) @paths = paths @project_config = project_config reload! end def reload! if paths.plugin_config.exist? @config = YAML.load_file(paths.plugin_config) els...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
usetrmnl/trmnlp
https://github.com/usetrmnl/trmnlp/blob/8fd5d2bfe12e5787dd654da72dc639d2d3a50c42/lib/trmnlp/config/app.rb
lib/trmnlp/config/app.rb
require 'yaml' module TRMNLP class Config # Stores trmnlp-wide configuration (irrespective of the current plugin) class App def initialize(paths) @paths = paths @config = read_config end def save paths.app_config_dir.mkpath paths.app_config.write(YAML.dump(@...
ruby
MIT
8fd5d2bfe12e5787dd654da72dc639d2d3a50c42
2026-01-04T17:38:15.759532Z
false
yourabi/twitter-typeahead-rails
https://github.com/yourabi/twitter-typeahead-rails/blob/fc343ac2f026589117bad0b7234c8bc69ef8bd6a/lib/twitter-typeahead-rails.rb
lib/twitter-typeahead-rails.rb
require "twitter-typeahead-rails/version" module Twitter module Typeahead module Rails class Engine < ::Rails::Engine end end end end
ruby
MIT
fc343ac2f026589117bad0b7234c8bc69ef8bd6a
2026-01-04T17:38:26.392941Z
false
yourabi/twitter-typeahead-rails
https://github.com/yourabi/twitter-typeahead-rails/blob/fc343ac2f026589117bad0b7234c8bc69ef8bd6a/lib/twitter-typeahead-rails/version.rb
lib/twitter-typeahead-rails/version.rb
module Twitter module Typeahead module Rails VERSION = "0.11.1-corejavascript" end end end
ruby
MIT
fc343ac2f026589117bad0b7234c8bc69ef8bd6a
2026-01-04T17:38:26.392941Z
false
ankane/barkick
https://github.com/ankane/barkick/blob/7491303aeadedb09c6b7f3958e537ac4c73b0962/test/barkick_test.rb
test/barkick_test.rb
require_relative "test_helper" class BarkickTest < Minitest::Test def test_gtin gtin = Barkick::GTIN.new("016000275263") assert_equal true, gtin.valid? assert_equal "00016000275263", gtin.gtin14 assert_equal "0016000275263", gtin.gtin13 assert_equal "016000275263", gtin.gtin12 assert_equal "0...
ruby
MIT
7491303aeadedb09c6b7f3958e537ac4c73b0962
2026-01-04T17:38:30.182752Z
false
ankane/barkick
https://github.com/ankane/barkick/blob/7491303aeadedb09c6b7f3958e537ac4c73b0962/test/test_helper.rb
test/test_helper.rb
require "bundler/setup" Bundler.require(:default) require "minitest/autorun"
ruby
MIT
7491303aeadedb09c6b7f3958e537ac4c73b0962
2026-01-04T17:38:30.182752Z
false
ankane/barkick
https://github.com/ankane/barkick/blob/7491303aeadedb09c6b7f3958e537ac4c73b0962/lib/barkick.rb
lib/barkick.rb
require_relative "barkick/gtin" require_relative "barkick/version"
ruby
MIT
7491303aeadedb09c6b7f3958e537ac4c73b0962
2026-01-04T17:38:30.182752Z
false
ankane/barkick
https://github.com/ankane/barkick/blob/7491303aeadedb09c6b7f3958e537ac4c73b0962/lib/barkick/version.rb
lib/barkick/version.rb
module Barkick VERSION = "0.3.1" end
ruby
MIT
7491303aeadedb09c6b7f3958e537ac4c73b0962
2026-01-04T17:38:30.182752Z
false
ankane/barkick
https://github.com/ankane/barkick/blob/7491303aeadedb09c6b7f3958e537ac4c73b0962/lib/barkick/gtin.rb
lib/barkick/gtin.rb
module Barkick class GTIN def initialize(number, type: nil) @number = number.to_s if @number.length == 8 raise ArgumentError, "Must specify type for 8-digit codes" unless type if type == :upc_e upc_a = case @number[-2] when "0" "#{@numb...
ruby
MIT
7491303aeadedb09c6b7f3958e537ac4c73b0962
2026-01-04T17:38:30.182752Z
false
beplus/fastlane-plugin-versioning_android
https://github.com/beplus/fastlane-plugin-versioning_android/blob/dbce27efb6565a34b3c0f9d4fd1350ccf37a99df/spec/android_set_version_name_action_spec.rb
spec/android_set_version_name_action_spec.rb
require 'spec_helper' describe Fastlane::Actions::AndroidSetVersionNameAction do describe "Set Version Name" do before do copy_project_files_fixture end it "should set Version Name to specific value" do result = Fastlane::FastFile.new.parse('lane :test do android_set_version_name(ver...
ruby
MIT
dbce27efb6565a34b3c0f9d4fd1350ccf37a99df
2026-01-04T17:38:30.382302Z
false
beplus/fastlane-plugin-versioning_android
https://github.com/beplus/fastlane-plugin-versioning_android/blob/dbce27efb6565a34b3c0f9d4fd1350ccf37a99df/spec/android_set_version_code_action_spec.rb
spec/android_set_version_code_action_spec.rb
require 'spec_helper' describe Fastlane::Actions::AndroidSetVersionCodeAction do describe "Set Version Code" do before do copy_project_files_fixture end it "should increment Version Code and return its new value" do result = Fastlane::FastFile.new.parse('lane :test do android_set_ver...
ruby
MIT
dbce27efb6565a34b3c0f9d4fd1350ccf37a99df
2026-01-04T17:38:30.382302Z
false
beplus/fastlane-plugin-versioning_android
https://github.com/beplus/fastlane-plugin-versioning_android/blob/dbce27efb6565a34b3c0f9d4fd1350ccf37a99df/spec/android_get_version_code_action_spec.rb
spec/android_get_version_code_action_spec.rb
require 'spec_helper' describe Fastlane::Actions::AndroidGetVersionCodeAction do describe "Get Version Code" do before do copy_project_files_fixture end it "should return Version Code from app build.gradle file" do result = Fastlane::FastFile.new.parse('lane :test do android_get_vers...
ruby
MIT
dbce27efb6565a34b3c0f9d4fd1350ccf37a99df
2026-01-04T17:38:30.382302Z
false
beplus/fastlane-plugin-versioning_android
https://github.com/beplus/fastlane-plugin-versioning_android/blob/dbce27efb6565a34b3c0f9d4fd1350ccf37a99df/spec/android_get_version_name_action_spec.rb
spec/android_get_version_name_action_spec.rb
require 'spec_helper' describe Fastlane::Actions::AndroidGetVersionNameAction do describe "Get Version Name" do before do copy_project_files_fixture end it "should return Version Name from app build.gradle file" do result = Fastlane::FastFile.new.parse('lane :test do android_get_vers...
ruby
MIT
dbce27efb6565a34b3c0f9d4fd1350ccf37a99df
2026-01-04T17:38:30.382302Z
false
beplus/fastlane-plugin-versioning_android
https://github.com/beplus/fastlane-plugin-versioning_android/blob/dbce27efb6565a34b3c0f9d4fd1350ccf37a99df/spec/versioning_android_helper_spec.rb
spec/versioning_android_helper_spec.rb
require 'spec_helper' describe Fastlane::Helper::VersioningAndroidHelper do describe "Versioning Android Helper" do it "should return path to build.gradle" do result = Fastlane::Helper::VersioningAndroidHelper.get_gradle_file(nil) expect(result).to eq(Fastlane::Helper::VersioningAndroidHelper::GRADLE...
ruby
MIT
dbce27efb6565a34b3c0f9d4fd1350ccf37a99df
2026-01-04T17:38:30.382302Z
false
beplus/fastlane-plugin-versioning_android
https://github.com/beplus/fastlane-plugin-versioning_android/blob/dbce27efb6565a34b3c0f9d4fd1350ccf37a99df/spec/spec_helper.rb
spec/spec_helper.rb
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'simplecov' # SimpleCov.minimum_coverage 95 SimpleCov.start # This module is only used to check the environment is currently a testing env module SpecHelper end require 'fastlane' # to import the Action super class require 'fastlane/plugin/versionin...
ruby
MIT
dbce27efb6565a34b3c0f9d4fd1350ccf37a99df
2026-01-04T17:38:30.382302Z
false
beplus/fastlane-plugin-versioning_android
https://github.com/beplus/fastlane-plugin-versioning_android/blob/dbce27efb6565a34b3c0f9d4fd1350ccf37a99df/lib/fastlane/plugin/versioning_android.rb
lib/fastlane/plugin/versioning_android.rb
require 'fastlane/plugin/versioning_android/version' module Fastlane module VersioningAndroid # Return all .rb files inside the "actions" and "helper" directory def self.all_classes Dir[File.expand_path('**/{actions,helper}/*.rb', File.dirname(__FILE__))] end end end # By default we want to impo...
ruby
MIT
dbce27efb6565a34b3c0f9d4fd1350ccf37a99df
2026-01-04T17:38:30.382302Z
false
beplus/fastlane-plugin-versioning_android
https://github.com/beplus/fastlane-plugin-versioning_android/blob/dbce27efb6565a34b3c0f9d4fd1350ccf37a99df/lib/fastlane/plugin/versioning_android/version.rb
lib/fastlane/plugin/versioning_android/version.rb
module Fastlane module VersioningAndroid VERSION = "0.1.1" end end
ruby
MIT
dbce27efb6565a34b3c0f9d4fd1350ccf37a99df
2026-01-04T17:38:30.382302Z
false
beplus/fastlane-plugin-versioning_android
https://github.com/beplus/fastlane-plugin-versioning_android/blob/dbce27efb6565a34b3c0f9d4fd1350ccf37a99df/lib/fastlane/plugin/versioning_android/actions/android_set_version_code.rb
lib/fastlane/plugin/versioning_android/actions/android_set_version_code.rb
module Fastlane module Actions module SharedValues ANDROID_NEW_VERSION_CODE = :ANDROID_NEW_VERSION_CODE end class AndroidSetVersionCodeAction < Action def self.run(params) gradle_file_path = Helper::VersioningAndroidHelper.get_gradle_file_path(params[:gradle_file]) new_version...
ruby
MIT
dbce27efb6565a34b3c0f9d4fd1350ccf37a99df
2026-01-04T17:38:30.382302Z
false
beplus/fastlane-plugin-versioning_android
https://github.com/beplus/fastlane-plugin-versioning_android/blob/dbce27efb6565a34b3c0f9d4fd1350ccf37a99df/lib/fastlane/plugin/versioning_android/actions/android_get_version_code.rb
lib/fastlane/plugin/versioning_android/actions/android_get_version_code.rb
module Fastlane module Actions module SharedValues ANDROID_VERSION_CODE = :ANDROID_VERSION_CODE end class AndroidGetVersionCodeAction < Action def self.run(params) gradle_file_path = Helper::VersioningAndroidHelper.get_gradle_file_path(params[:gradle_file]) version_code = Help...
ruby
MIT
dbce27efb6565a34b3c0f9d4fd1350ccf37a99df
2026-01-04T17:38:30.382302Z
false
beplus/fastlane-plugin-versioning_android
https://github.com/beplus/fastlane-plugin-versioning_android/blob/dbce27efb6565a34b3c0f9d4fd1350ccf37a99df/lib/fastlane/plugin/versioning_android/actions/android_set_version_name.rb
lib/fastlane/plugin/versioning_android/actions/android_set_version_name.rb
module Fastlane module Actions module SharedValues ANDROID_NEW_VERSION_NAME = :ANDROID_NEW_VERSION_NAME end class AndroidSetVersionNameAction < Action def self.run(params) gradle_file_path = Helper::VersioningAndroidHelper.get_gradle_file_path(params[:gradle_file]) new_version...
ruby
MIT
dbce27efb6565a34b3c0f9d4fd1350ccf37a99df
2026-01-04T17:38:30.382302Z
false
beplus/fastlane-plugin-versioning_android
https://github.com/beplus/fastlane-plugin-versioning_android/blob/dbce27efb6565a34b3c0f9d4fd1350ccf37a99df/lib/fastlane/plugin/versioning_android/actions/android_get_version_name.rb
lib/fastlane/plugin/versioning_android/actions/android_get_version_name.rb
module Fastlane module Actions module SharedValues ANDROID_VERSION_NAME = :ANDROID_VERSION_NAME end class AndroidGetVersionNameAction < Action def self.run(params) gradle_file_path = Helper::VersioningAndroidHelper.get_gradle_file_path(params[:gradle_file]) version_name = Help...
ruby
MIT
dbce27efb6565a34b3c0f9d4fd1350ccf37a99df
2026-01-04T17:38:30.382302Z
false
beplus/fastlane-plugin-versioning_android
https://github.com/beplus/fastlane-plugin-versioning_android/blob/dbce27efb6565a34b3c0f9d4fd1350ccf37a99df/lib/fastlane/plugin/versioning_android/helper/versioning_android_helper.rb
lib/fastlane/plugin/versioning_android/helper/versioning_android_helper.rb
module Fastlane module Helper class VersioningAndroidHelper require "shellwords" require "tempfile" require "fileutils" GRADLE_FILE_TEST = "/tmp/fastlane/tests/versioning/app/build.gradle" def self.get_gradle_file(gradle_file) return Helper.test? ? GRADLE_FILE_TEST : gradle...
ruby
MIT
dbce27efb6565a34b3c0f9d4fd1350ccf37a99df
2026-01-04T17:38:30.382302Z
false
jlindsey/semantic
https://github.com/jlindsey/semantic/blob/54de37b2ccd5e948b15f2fcfbd884eaac5f45967/spec/version_spec.rb
spec/version_spec.rb
require 'spec_helper' # rubocop:disable Metrics/BlockLength, Style/VariableNumber describe Semantic::Version do before(:each) do @test_versions = [ '1.0.0', '12.45.182', '0.0.1-pre.1', '1.0.1-pre.5+build.123.5', '1.1.1+123', '0.0.0+hello', '1.2.3-1' ] @bad_versio...
ruby
MIT
54de37b2ccd5e948b15f2fcfbd884eaac5f45967
2026-01-04T17:38:33.702089Z
false
jlindsey/semantic
https://github.com/jlindsey/semantic/blob/54de37b2ccd5e948b15f2fcfbd884eaac5f45967/spec/core_ext_spec.rb
spec/core_ext_spec.rb
require 'spec_helper' require 'semantic/core_ext' # rubocop:disable Metrics/BlockLength describe 'Core Extensions' do context 'String#to_version' do before(:each) do @test_versions = [ '1.0.0', '12.45.182', '0.0.1-pre.1', '1.0.1-pre.5+build.123.5', '1.1.1+123', ...
ruby
MIT
54de37b2ccd5e948b15f2fcfbd884eaac5f45967
2026-01-04T17:38:33.702089Z
false
jlindsey/semantic
https://github.com/jlindsey/semantic/blob/54de37b2ccd5e948b15f2fcfbd884eaac5f45967/spec/spec_helper.rb
spec/spec_helper.rb
# This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # Require this file using `require "spec_helper"` to ensure that it is only # loaded once. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec....
ruby
MIT
54de37b2ccd5e948b15f2fcfbd884eaac5f45967
2026-01-04T17:38:33.702089Z
false
jlindsey/semantic
https://github.com/jlindsey/semantic/blob/54de37b2ccd5e948b15f2fcfbd884eaac5f45967/lib/semantic.rb
lib/semantic.rb
module Semantic GEM_VERSION = '1.6.1' autoload :Version, 'semantic/version' end
ruby
MIT
54de37b2ccd5e948b15f2fcfbd884eaac5f45967
2026-01-04T17:38:33.702089Z
false
jlindsey/semantic
https://github.com/jlindsey/semantic/blob/54de37b2ccd5e948b15f2fcfbd884eaac5f45967/lib/semantic/version.rb
lib/semantic/version.rb
# See: http://semver.org module Semantic class Version include Comparable SemVerRegexp = /\A(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][a-zA-Z0-9-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][a-zA-Z0-9-]*))*))?(?:\+([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?\Z/ attr_accessor :major, :minor, ...
ruby
MIT
54de37b2ccd5e948b15f2fcfbd884eaac5f45967
2026-01-04T17:38:33.702089Z
false
jlindsey/semantic
https://github.com/jlindsey/semantic/blob/54de37b2ccd5e948b15f2fcfbd884eaac5f45967/lib/semantic/core_ext.rb
lib/semantic/core_ext.rb
class String def to_version Semantic::Version.new self end def is_version? (match Semantic::Version::SemVerRegexp) ? true : false end end
ruby
MIT
54de37b2ccd5e948b15f2fcfbd884eaac5f45967
2026-01-04T17:38:33.702089Z
false
djoos-cookbooks/newrelic
https://github.com/djoos-cookbooks/newrelic/blob/ebfc1a95ff740022050dd91037e2a76d5ac6edf2/metadata.rb
metadata.rb
name 'newrelic' maintainer 'David Joos' maintainer_email 'development@davidjoos.com' license 'MIT' description 'Installs/Configures New Relic' version '2.45.6' chef_version '>= 0.10.0' %w(debian ubuntu redhat centos fedora scientific amazon windows smartos oracle).each do |os| supports os end source_url 'https://gi...
ruby
MIT
ebfc1a95ff740022050dd91037e2a76d5ac6edf2
2026-01-04T17:38:43.987988Z
false
djoos-cookbooks/newrelic
https://github.com/djoos-cookbooks/newrelic/blob/ebfc1a95ff740022050dd91037e2a76d5ac6edf2/test/integration/python-agent/serverspec/default_spec.rb
test/integration/python-agent/serverspec/default_spec.rb
require 'spec_helper' describe yumrepo('newrelic'), if: os[:family] == 'redhat' do it { is_expected.to exist } it { is_expected.to be_enabled } end describe file('/etc/apt/sources.list.d/newrelic.list'), if: %w(debian ubuntu).include?(os[:family]) do it { is_expected.to be_file } end describe command('pip show ...
ruby
MIT
ebfc1a95ff740022050dd91037e2a76d5ac6edf2
2026-01-04T17:38:43.987988Z
false