source
stringclasses
1 value
repo
stringlengths
5
63
repo_url
stringlengths
24
82
path
stringlengths
5
167
language
stringclasses
1 value
license
stringclasses
5 values
stars
int64
10
51.4k
ref
stringclasses
23 values
size_bytes
int64
200
258k
text
stringlengths
137
258k
github
rails-engine/flow_core
https://github.com/rails-engine/flow_core
test/dummy/mruby/lib/io.rb
Ruby
mit
186
master
309
class << self attr_accessor :stdout_buffer end SCRIPT__TOP = self SCRIPT__TOP.stdout_buffer = "" module Kernel def puts(*args) if args.any? args.each do |arg| SCRIPT__TOP.stdout_buffer << "#{arg}\n" end else SCRIPT__TOP.stdout_buffer << "\n" end nil end end
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
badger.gemspec
Ruby
mit
186
master
1,574
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'badger/version' Gem::Specification.new do |spec| spec.name = 'badgerbadgerbadger' spec.version = Badger::VERSION spec.authors = ['pikesley'] spec.email = ['sa...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
Guardfile
Ruby
mit
186
master
1,410
# A sample Guardfile # More info at https://github.com/guard/guard#readme guard :cucumber do #, :cli => '--format pretty' do watch(%r{^features/.+\.feature$}) watch(%r{^features/support/.+$}) { 'features' } watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'fe...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
Rakefile
Ruby
mit
186
master
249
require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'cucumber/rake/task' require 'coveralls/rake/task' Coveralls::RakeTask.new RSpec::Core::RakeTask.new Cucumber::Rake::Task.new task :default => [:spec, :cucumber, 'coveralls:push']
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
features/support/env.rb
Ruby
mit
186
master
229
require 'aruba/cucumber' require 'git' require 'fileutils' require 'coveralls' require 'badger/badger' $temp_repo = '/tmp/wow_repo' $licenses_dir = File.join(File.dirname(__FILE__), 'fixtures/licenses') Coveralls.wear_merged!
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
features/support/hooks/services.rb
Ruby
mit
186
master
326
Before '@travis' do FileUtils.touch "#{$temp_repo}/.travis.yml" end Before '@gemnasium' do FileUtils.touch "#{$temp_repo}/Gemfile" end Before '@coveralls' do f = File.open "#{$temp_repo}/Gemfile", 'w' f.write 'gem "coveralls"' f.close end Before '@codeclimate' do FileUtils.touch "#{$temp_repo}/.travis.ym...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
features/support/hooks/licenses.rb
Ruby
mit
186
master
486
Before '@mit' do FileUtils.cp "#{$licenses_dir}/mit.md", "#{$temp_repo}/LICENSE.md" end Before '@apache' do FileUtils.cp "#{$licenses_dir}/apache.txt", "#{$temp_repo}/LICENSE.txt" end Before '@gpl2' do FileUtils.cp "#{$licenses_dir}/gpl-2.0.txt", "#{$temp_repo}/LICENSE.txt" end Before '@gpl3' do FileUtils.cp...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
features/support/hooks/rubygems.rb
Ruby
mit
186
master
1,454
Before '@gemspec' do fakespec = <<EOF # coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) Gem::Specification.new do |spec| spec.name = 'suchgem' spec.license = 'MIT' end EOF f = File.open "#{$temp_repo}/suchgem.gemspec...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
features/support/hooks/hooks.rb
Ruby
mit
186
master
243
Before do FileUtils.mkpath $temp_repo end After do FileUtils.remove_dir $temp_repo, :force => true end Before '@no-remote' do Git.init '/tmp/not_wow' end After '@no-remote' do FileUtils.remove_dir '/tmp/not_wow', :force => true end
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
features/step_definitions/badger_steps.rb
Ruby
mit
186
master
236
Given(/^git remote is "(.*?)"$/) do |url| d = $temp_repo g = Git.init d g.add_remote 'origin', url end Given(/^git remote "(.*?)" points to "(.*?)"$/) do |name, url| d = $temp_repo g = Git.init d g.add_remote name, url end
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
lib/badger.rb
Ruby
mit
186
master
314
require 'git' require 'thor' require 'yaml' require 'singleton' require 'badger/version' require 'badger/config' require 'badger/badger' require 'badger/service' require 'badger/license' require 'badger/rubygem' require 'badger/helpers' require 'badger/badge' require 'badger/bonus' require 'badger/dependencyci'
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
lib/badger/config.rb
Ruby
mit
186
master
759
module Badger class Config include Singleton def initialize reset! end def reset! @config = fetch_yaml 'config' @services = fetch_yaml 'services' @licenses = fetch_yaml 'licenses' end def services @services end def licenses @licenses end ...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
lib/badger/badge.rb
Ruby
mit
186
master
449
module Badger def Badger.badge text, badge_url, target_url badge_url = "%s.%s" % [ badge_url, Config.instance.config['badge_type'] ] unless ['Repo Size', 'Dependency CI'].include? text badge_style = Config.instance.config['badge_style'] badge_url = "%s?style=%s" % [ badge_url, ...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
lib/badger/cli.rb
Ruby
mit
186
master
2,076
require 'badger' module Badger class CLI < Thor desc 'version', 'Print badger version' def version puts "badger version %s" % [ VERSION ] end map %w(-v --version) => :version desc 'badge', 'Generate badge markdown' long_desc File.read File.join File.dirname( __FILE__), ...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
lib/badger/service.rb
Ruby
mit
186
master
1,023
module Badger class Service def self.badge name, github_slug return nil unless params = Config.instance.services[name] params = Config.instance.services[name] scheme = params['scheme'] ||= 'http' if params['service_root'] base_url = 'http://%s' % [ params['service_root'...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
lib/badger/rubygem.rb
Ruby
mit
186
master
323
module Badger class Rubygem def self.badge name badge_url = 'http://%s/gem/v/%s' % [ Config.instance.config['badge_service'], name ] target_url = 'https://rubygems.org/gems/%s' % [ name ] Badger.badge 'Gem Version', badge_url, target_url end end ...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
lib/badger/helpers.rb
Ruby
mit
186
master
2,101
module Badger def Badger.is_repo? dir begin Git.open(dir) rescue ArgumentError puts 'Run this from inside a git repo' exit 1 end end def Badger.git_remote dir begin remote = nil is_repo?(dir).remotes.each do |r| if r.url.match /github.com/ remote = ...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
lib/badger/license.rb
Ruby
mit
186
master
582
module Badger class License def self.badge type, owner type = type.downcase return nil unless params = Config.instance.licenses[type] target_url = params['url'] if target_url =~ /%s/ target_url = target_url % owner end badge_text = type unless badge_text = params['bad...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
lib/badger/bonus.rb
Ruby
mit
186
master
436
module Badger class Bonus def self.badge badger badge_url = 'http://%s/:badges-%d/%d-%s' % [ Config.instance.config['badge_service'], badger.length + 1, badger.length + 1, Config.instance.config['bonus_badge_colour'] ] target_url = '%s' % [ Conf...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
lib/badger/badger.rb
Ruby
mit
186
master
1,122
module Badger class Badger < Array attr_reader :github_slug, :owner def initialize url @url = url end def github_slug @github_slug ||= Badger.slug_extract @url end def owner @owner ||= github_slug.split('/')[0] end def add service self << Service.badge(servi...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
lib/badger/dependencyci.rb
Ruby
mit
186
master
316
module Badger class DependencyCI def self.badge name badge_url = 'http://%s/github/%s/badge' % [ 'dependencyci.com', name ] target_url = 'http://dependencyci.com/github/%s' % [ name ] Badger.badge 'Dependency CI', badge_url, target_url end end end
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
spec/spec_helper.rb
Ruby
mit
186
master
778
require 'badger' require 'coveralls' Coveralls.wear_merged! # 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:...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
spec/user_and_repo_spec.rb
Ruby
mit
186
master
826
require 'spec_helper' module Badger describe Badger do before :each do @badger = Badger.new "https://github.com/doge/wow" end after :each do Config.instance.reset! end context 'get the user and repo' do it 'extracts from an https url' do expect(@badger.github_slug).to ...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
spec/size_spec.rb
Ruby
mit
186
master
438
require 'spec_helper' module Badger describe Badger do before :each do @badger = Badger.new "https://github.com/doge/wow" end after :each do Config.instance.reset! end context 'size badge' do it 'has a size badge' do @badger.add 'size' expect(@badger[0]).to eq ...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
spec/badge_types_spec.rb
Ruby
mit
186
master
791
require 'spec_helper' module Badger describe Badger do before :each do @badger = Badger.new "https://github.com/doge/wow" end after :each do Config.instance.reset! end context 'alternative badge types' do it 'appends a style parameter' do @badger.style 'flat-square' ...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
spec/licenses_spec.rb
Ruby
mit
186
master
1,421
require 'spec_helper' module Badger describe Badger do before :each do @badger = Badger.new "https://github.com/doge/wow" end after :each do Config.instance.reset! end context 'licenses' do it 'generates an MIT badge' do @badger.license 'mit' expect(@badger[0])...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
spec/services_spec.rb
Ruby
mit
186
master
1,278
require 'spec_helper' module Badger describe Badger do before :each do @badger = Badger.new "https://github.com/doge/wow" end after :each do Config.instance.reset! end context 'service badges' do it 'has a travis badge' do @badger.add 'travis' expect(@badger[0]...
github
badges/badgerbadgerbadger
https://github.com/badges/badgerbadgerbadger
spec/badger_spec.rb
Ruby
mit
186
master
2,006
require 'spec_helper' module Badger describe Badger do before :each do @badger = Badger.new "https://github.com/doge/wow" end after :each do Config.instance.reset! end context 'initialisation' do it 'has no badges by default' do expect(@badger.length).to eq 0 end...
github
devxoul/Carte
https://github.com/devxoul/Carte
Rakefile
Ruby
mit
186
master
333
require 'rake/testtask' def run(command) puts command `#{command}` end Rake::TestTask.new do |t| t.pattern = 'Tests/CarteTests/**/test_*.rb' t.warning = false end desc "Run tests" task :default => :test desc "Install dependencies with bundler" task :bundle do run "bundle install --standalone --path Source...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/carte.rb
Ruby
mit
186
master
3,913
# encoding: utf-8 require_relative "./bundler/setup" require "base64" require "xcodeproj" include Xcodeproj::Project::Object class ProjectIntegrator attr_accessor :project def initialize(project) self.project = project end def integrate self.project.targets.each do |target| next unless target...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/bundler/setup.rb
Ruby
mit
186
master
704
require 'rbconfig' # ruby 1.8.7 doesn't define RUBY_ENGINE ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby' ruby_version = RbConfig::CONFIG["ruby_version"] path = File.expand_path('..', __FILE__) $:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/CFPropertyList-3.0.0/lib" $:.unshift "#{path}/../#{ruby...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/specifications/atomos-0.1.3.gemspec
Ruby
mit
186
master
1,624
# -*- encoding: utf-8 -*- # stub: atomos 0.1.3 ruby lib Gem::Specification.new do |s| s.name = "atomos".freeze s.version = "0.1.3" s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Samuel Giddins".fre...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/specifications/CFPropertyList-3.0.0.gemspec
Ruby
mit
186
master
1,284
# -*- encoding: utf-8 -*- # stub: CFPropertyList 3.0.0 ruby lib Gem::Specification.new do |s| s.name = "CFPropertyList".freeze s.version = "3.0.0" s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Chr...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/specifications/claide-1.0.2.gemspec
Ruby
mit
186
master
721
# -*- encoding: utf-8 -*- # stub: claide 1.0.2 ruby lib Gem::Specification.new do |s| s.name = "claide".freeze s.version = "1.0.2" s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Eloy Duran".freeze,...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/specifications/nanaimo-0.2.6.gemspec
Ruby
mit
186
master
1,458
# -*- encoding: utf-8 -*- # stub: nanaimo 0.2.6 ruby lib Gem::Specification.new do |s| s.name = "nanaimo".freeze s.version = "0.2.6" s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Danielle Tomlinso...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/specifications/xcodeproj-1.8.2.gemspec
Ruby
mit
186
master
2,202
# -*- encoding: utf-8 -*- # stub: xcodeproj 1.8.2 ruby lib Gem::Specification.new do |s| s.name = "xcodeproj".freeze s.version = "1.8.2" s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Eloy Duran".f...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/specifications/colored2-3.1.2.gemspec
Ruby
mit
186
master
2,383
# -*- encoding: utf-8 -*- # stub: colored2 3.1.2 ruby lib Gem::Specification.new do |s| s.name = "colored2".freeze s.version = "3.1.2" s.required_rubygems_version = Gem::Requirement.new(">= 1.3.6".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Chris Wanst...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/CFPropertyList-3.0.0/lib/cfpropertylist/rbCFPropertyList.rb
Ruby
mit
186
master
13,672
# -*- coding: utf-8 -*- require 'kconv' require 'date' require 'time' # # CFPropertyList implementation # # class to read, manipulate and write both XML and binary property list # files (plist(5)) as defined by Apple. Have a look at CFPropertyList::List # for more documentation. # # == Example # require 'cfproperty...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/CFPropertyList-3.0.0/lib/cfpropertylist/rbLibXMLParser.rb
Ruby
mit
186
master
3,672
# -*- coding: utf-8 -*- require 'libxml' module CFPropertyList # XML parser class LibXMLParser < XMLParserInterface # read a XML file # opts:: # * :file - The filename of the file to load # * :data - The data to parse def load(opts) doc = nil if(opts.has_key?(:file)) then ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/CFPropertyList-3.0.0/lib/cfpropertylist/rbNokogiriParser.rb
Ruby
mit
186
master
3,902
# -*- coding: utf-8 -*- require 'nokogiri' module CFPropertyList # XML parser class NokogiriXMLParser < ParserInterface # read a XML file # opts:: # * :file - The filename of the file to load # * :data - The data to parse def load(opts) doc = nil if(opts.has_key?(:file)) then ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/CFPropertyList-3.0.0/lib/cfpropertylist/rbBinaryCFPropertyList.rb
Ruby
mit
186
master
18,513
# -*- coding: utf-8 -*- require 'stringio' module CFPropertyList # Binary PList parser class class Binary # Read a binary plist file def load(opts) @unique_table = {} @count_objects = 0 @object_refs = 0 @written_object_count = 0 @object_table = [] @object_ref_size = 0 ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/CFPropertyList-3.0.0/lib/cfpropertylist/rbCFTypes.rb
Ruby
mit
186
master
7,988
# -*- coding: utf-8 -*- # # CFTypes, e.g. CFString, CFInteger # needed to create unambiguous plists # # Author:: Christian Kruse (mailto:cjk@wwwtech.de) # Copyright:: Copyright (c) 2009 # License:: MIT License require 'base64' module CFPropertyList ## # Blob is intended to distinguish between a Ruby String i...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/claide-1.0.2/Rakefile
Ruby
mit
186
master
1,392
# encoding: utf-8 #-- Bootstrap --------------------------------------------------------------# desc 'Initializes your working copy to run the specs' task :bootstrap do if system('which bundle') title 'Installing gems' sh 'bundle install' else $stderr.puts "\033[0;31m" \ "[!] Please install the ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/claide-1.0.2/Gemfile
Ruby
mit
186
master
359
source 'https://rubygems.org' gemspec gem 'rake' group :development do gem 'kicker' gem 'colored' # for examples end group :spec do gem 'bacon' gem 'json', '< 2' gem 'mocha-on-bacon' gem 'prettybacon' install_if RUBY_VERSION >= '1.9.3' do gem 'rubocop' gem 'codeclimate-test-reporter', :requir...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/claide-1.0.2/claide.gemspec
Ruby
mit
186
master
795
# -*- encoding: utf-8 -*- $:.unshift File.expand_path('../lib', __FILE__) require 'claide' Gem::Specification.new do |s| s.name = "claide" s.version = CLAide::VERSION s.license = "MIT" s.email = ["eloy.de.enige@gmail.com", "fabiopelosin@gmail.com"] s.homepage = "https://github.com/CocoaPods/CLAide" ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/claide-1.0.2/lib/claide.rb
Ruby
mit
186
master
420
# encoding: utf-8 # The mods of interest are {CLAide::ARGV}, {CLAide::Command}, and # {CLAide::InformativeError} # module CLAide # @return [String] # # CLAide’s version, following [semver](http://semver.org). # VERSION = '1.0.2'.freeze require 'claide/ansi' require 'claide/argument' require 'claide/...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/claide-1.0.2/lib/claide/argv.rb
Ruby
mit
186
master
9,984
# encoding: utf-8 module CLAide # This class is responsible for parsing the parameters specified by the user, # accessing individual parameters, and keep state by removing handled # parameters. # class ARGV # @return [ARGV] Coerces an object to the ARGV class if needed. # # @param [Object] argv ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/claide-1.0.2/lib/claide/command.rb
Ruby
mit
186
master
20,439
# encoding: utf-8 require 'claide/command/banner' require 'claide/command/plugin_manager' require 'claide/command/argument_suggester' module CLAide # This class is used to build a command-line interface # # Each command is represented by a subclass of this class, which may be # nested to create more granular ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/claide-1.0.2/lib/claide/command/plugin_manager.rb
Ruby
mit
186
master
4,313
# encoding: utf-8 module CLAide class Command # Handles plugin related logic logic for the `Command` class. # # Plugins are loaded the first time a command run and are identified by the # prefix specified in the command class. Plugins must adopt the following # conventions: # # - Support ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/atomos-0.1.3/Rakefile
Ruby
mit
186
master
200
# frozen_string_literal: true require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'rubocop/rake_task' RSpec::Core::RakeTask.new RuboCop::RakeTask.new task default: %i[rubocop spec]
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/atomos-0.1.3/atomos.gemspec
Ruby
mit
186
master
917
# frozen_string_literal: true Gem::Specification.new do |spec| spec.name = 'atomos' spec.version = File.read(File.expand_path('../VERSION', __FILE__)) spec.authors = ['Samuel Giddins'] spec.email = ['segiddins@segiddins.me'] spec.summary = 'A simple gem to atomically write...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/atomos-0.1.3/lib/atomos.rb
Ruby
mit
186
master
1,069
# frozen_string_literal: true require 'atomos/version' module Atomos module_function # rubocop:disable Metrics/MethodLength def atomic_write(dest, contents = nil, tmpdir: nil, &block) unless contents.nil? ^ block.nil? raise ArgumentError, 'must provide either contents or a block' end tmpdir ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/workspace.rb
Ruby
mit
186
master
8,814
require 'fileutils' require 'rexml/document' require 'xcodeproj/workspace/file_reference' require 'xcodeproj/workspace/group_reference' module Xcodeproj # Provides support for generating, reading and serializing Xcode Workspace # documents. # class Workspace # @return [REXML::Document] the parsed XML model...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/command.rb
Ruby
mit
186
master
1,854
module Xcodeproj require 'colored2' require 'claide' class Command < CLAide::Command require 'xcodeproj/command/config_dump' require 'xcodeproj/command/target_diff' require 'xcodeproj/command/project_diff' require 'xcodeproj/command/show' require 'xcodeproj/command/sort' self.abstract_co...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/differ.rb
Ruby
mit
186
master
6,432
module Xcodeproj # Computes the recursive diff of Hashes, Array and other objects. # # Useful to compare two projects. Inspired from # 'active_support/core_ext/hash/diff'. # # @example # h1 = { :common => 'value', :changed => 'v1' } # h2 = { :common => 'value', :changed => 'v2', :addition => 'new_va...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/config.rb
Ruby
mit
186
master
11,274
require 'shellwords' require 'xcodeproj/config/other_linker_flags_parser' module Xcodeproj # This class holds the data for a Xcode build settings file (xcconfig) and # provides support for serialization. # class Config require 'set' KEY_VALUE_PATTERN = / ( [^=\[]+ # Any char, but not...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/xcodebuild_helper.rb
Ruby
mit
186
master
3,077
module Xcodeproj # Helper class which returns information from xcodebuild. # class XcodebuildHelper def initialize @needs_to_parse_sdks = true end # @return [String] The version of the last iOS sdk. # def last_ios_sdk parse_sdks_if_needed versions_by_sdk[:ios].sort.last ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/scheme.rb
Ruby
mit
186
master
12,269
require 'rexml/document' require 'xcodeproj/scheme/build_action' require 'xcodeproj/scheme/test_action' require 'xcodeproj/scheme/launch_action' require 'xcodeproj/scheme/profile_action' require 'xcodeproj/scheme/analyze_action' require 'xcodeproj/scheme/archive_action' require 'xcodeproj/scheme/buildable_product_run...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/constants.rb
Ruby
mit
186
master
17,186
module Xcodeproj # This modules groups all the constants known to Xcodeproj. # module Constants # @return [String] The last known iOS SDK (stable). # LAST_KNOWN_IOS_SDK = '12.0' # @return [String] The last known OS X SDK (stable). # LAST_KNOWN_OSX_SDK = '10.14' # @return [String] The...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project.rb
Ruby
mit
186
master
30,174
require 'atomos' require 'fileutils' require 'securerandom' require 'xcodeproj/project/object' require 'xcodeproj/project/project_helper' require 'xcodeproj/project/uuid_generator' require 'xcodeproj/plist' module Xcodeproj # This class represents a Xcode project document. # # It can be used to manipulate exist...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/config/other_linker_flags_parser.rb
Ruby
mit
186
master
1,677
require 'shellwords' module Xcodeproj class Config # Parses other linker flags values. # module OtherLinkerFlagsParser # @return [Hash{Symbol, Array[String]}] Splits the given # other linker flags value by type. # # @param [String, Array] flags # The other l...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/command/sort.rb
Ruby
mit
186
master
686
module Xcodeproj class Command class Sort < Command self.description = <<-eos Sorts the given project. If no `PROJECT' is specified then the current work directory is searched for one. eos self.summary = 'Sorts the given project.' self.arguments = [ CLAide::Argum...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/command/config_dump.rb
Ruby
mit
186
master
2,887
module Xcodeproj class Command class ConfigDump < Command self.description = <<-eos Dumps the build settings of all project targets for all configurations in directories named by the target in given output directory. It extracts common build settings in a per target base.xcconfig fi...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/workspace/file_reference.rb
Ruby
mit
186
master
2,282
require 'xcodeproj/workspace/reference' module Xcodeproj class Workspace # Describes a file reference of a Workspace. # class FileReference < Reference # @return [String] the path to the project # attr_reader :path # @param [#to_s] path @see path # @param [#to_s] type @see ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object_attributes.rb
Ruby
mit
186
master
18,453
module Xcodeproj class Project module Object # This class represents an attribute of {AbstractObject} subclasses. # Attributes are created by the {AbstractObject} DSL methods and allow to # mirror the underlying attributes of the xcodeproj document model. # # Attributes provide suppo...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/uuid_generator.rb
Ruby
mit
186
master
4,226
module Xcodeproj class Project class UUIDGenerator require 'digest' def initialize(projects) @projects = Array(projects) @paths_by_object = {} end def generate! generate_all_paths_by_objects(@projects) new_objects_by_project = Hash[@projects.map do |proje...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/project_helper.rb
Ruby
mit
186
master
12,989
module Xcodeproj class Project module ProjectHelper include Object # @!group Targets #-----------------------------------------------------------------------# # Creates a new target and adds it to the project. # # The target is configured for the given platform and its file ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object.rb
Ruby
mit
186
master
18,054
module Xcodeproj class Project # This is the namespace in which all the classes that wrap the objects in # a Xcode project reside. # # The base class from which all classes inherit is AbstractObject. # # If you need to deal with these classes directly, it's possible to include # this names...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object/build_configuration.rb
Ruby
mit
186
master
8,264
module Xcodeproj class Project module Object # Encapsulates the information a specific build configuration referenced # by a {XCConfigurationList} which in turn might be referenced by a # {PBXProject} or a {PBXNativeTarget}. # class XCBuildConfiguration < AbstractObject # @!g...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object/group.rb
Ruby
mit
186
master
15,334
require 'xcodeproj/project/object/helpers/groupable_helper' require 'xcodeproj/project/object/helpers/file_references_factory' module Xcodeproj class Project module Object # This class represents a group. A group can contain other groups # (PBXGroup) and file references (PBXFileReference). # ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object/build_phase.rb
Ruby
mit
186
master
9,943
module Xcodeproj class Project module Object # @abstract # # This class is abstract and it doesn't appear in the project document. # class AbstractBuildPhase < AbstractObject # @!group Attributes # @return [ObjectList<PBXBuildFile>] the files processed by this build ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object/target_dependency.rb
Ruby
mit
186
master
2,594
module Xcodeproj class Project module Object # Represents a dependency of a target on another one. # class PBXTargetDependency < AbstractObject # @!group Attributes # @return [PBXNativeTarget] the target that needs to be built to # satisfy the dependency. ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object/build_file.rb
Ruby
mit
186
master
1,956
module Xcodeproj class Project module Object # Contains the information about the build settings of a file used by an # {AbstractBuildPhase}. # class PBXBuildFile < AbstractObject # @!group Attributes # @return [Hash] the list of build settings for this file. # ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object/root_object.rb
Ruby
mit
186
master
2,752
module Xcodeproj class Project module Object # This class represents the root object of a project document. # class PBXProject < AbstractObject # @!group Attributes # @return [ObjectList<AbstractTarget>] a list of all the targets in # the project. # ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object/native_target.rb
Ruby
mit
186
master
24,949
module Xcodeproj class Project module Object class AbstractTarget < AbstractObject # @!group Attributes # @return [String] The name of the Target. # attribute :name, String # @return [String] the name of the build product. # attribute :product_name, ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object/reference_proxy.rb
Ruby
mit
186
master
1,770
module Xcodeproj class Project module Object # Apparently a proxy for a reference object which might belong another # project contained in the same workspace of the project document. # # This class is used for referencing the products of another project. # class PBXReferencePro...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object/file_reference.rb
Ruby
mit
186
master
10,726
require 'xcodeproj/project/object/helpers/groupable_helper' module Xcodeproj class Project module Object # This class represents a reference to a file in the file system. # class PBXFileReference < AbstractObject # @!group Attributes # @return [String] the name of the reference...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object/build_rule.rb
Ruby
mit
186
master
2,602
module Xcodeproj class Project module Object # This class represents a custom build rule of a Target. # class PBXBuildRule < AbstractObject # @!group Attributes # @return [String] the name of the rule. # attribute :name, String # @return [String] a strin...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object/helpers/groupable_helper.rb
Ruby
mit
186
master
9,162
module Xcodeproj class Project module Object class GroupableHelper class << self # @param [PBXGroup, PBXFileReference] object # The object to analyze. # # @return [PBXGroup, PBXProject] The parent of the object. # def parent(object...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/project/object/helpers/file_references_factory.rb
Ruby
mit
186
master
9,606
require 'xcodeproj/project/object/helpers/groupable_helper' module Xcodeproj class Project module Object class FileReferencesFactory class << self # Creates a new reference with the given path and adds it to the # given group. The reference is configured according to the extensi...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/scheme/test_action.rb
Ruby
mit
186
master
12,098
require 'xcodeproj/scheme/abstract_scheme_action' module Xcodeproj class XCScheme # This class wraps the TestAction node of a .xcscheme XML file # class TestAction < AbstractSchemeAction # @param [REXML::Element] node # The 'TestAction' XML node that this object will wrap. # ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/scheme/profile_action.rb
Ruby
mit
186
master
2,282
require 'xcodeproj/scheme/abstract_scheme_action' module Xcodeproj class XCScheme # This class wraps the ProfileAction node of a .xcscheme XML file # class ProfileAction < AbstractSchemeAction # @param [REXML::Element] node # The 'ProfileAction' XML node that this object will wrap. ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/scheme/build_action.rb
Ruby
mit
186
master
7,250
require 'xcodeproj/scheme/xml_element_wrapper' module Xcodeproj class XCScheme # This class wraps the BuildAction node of a .xcscheme XML file # # Note: It's not a AbstractSchemeAction like the others because it is # a special case of action (with no build_configuration, etc) # class BuildAct...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/scheme/abstract_scheme_action.rb
Ruby
mit
186
master
921
require 'xcodeproj/scheme/xml_element_wrapper' require 'xcodeproj/scheme/environment_variables' require 'xcodeproj/scheme/command_line_arguments' module Xcodeproj class XCScheme # This abstract class aims to be the base class for every XxxAction class # that have a #build_configuration attribute # cl...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/xcodeproj-1.8.2/lib/xcodeproj/scheme/launch_action.rb
Ruby
mit
186
master
5,920
require 'xcodeproj/scheme/abstract_scheme_action' module Xcodeproj class XCScheme # This class wraps the LaunchAction node of a .xcscheme XML file # class LaunchAction < AbstractSchemeAction # @param [REXML::Element] node # The 'LaunchAction' XML node that this object will wrap. ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/nanaimo-0.2.6/Rakefile
Ruby
mit
186
master
1,891
# frozen_string_literal: true require 'bundler/gem_tasks' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) task default: [:spec] if RUBY_VERSION >= '2.1' require 'rubocop/rake_task' RuboCop::RakeTask.new task default: :rubocop end task :generate_nextstep_mappings do require 'net/http' url ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/nanaimo-0.2.6/nanaimo.gemspec
Ruby
mit
186
master
984
# coding: utf-8 # frozen_string_literal: true lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'nanaimo/version' Gem::Specification.new do |spec| spec.name = 'nanaimo' spec.version = Nanaimo::VERSION spec.authors = ['Danielle Tomlins...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/nanaimo-0.2.6/Gemfile
Ruby
mit
186
master
201
# frozen_string_literal: true source 'https://rubygems.org' # Specify your gem's dependencies in nanaimo.gemspec gemspec group :development do gem 'rubocop', install_if: RUBY_VERSION >= '2.1' end
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/nanaimo-0.2.6/lib/nanaimo.rb
Ruby
mit
186
master
449
# frozen_string_literal: true require 'nanaimo/version' # A native Ruby implementation of ASCII plist parsing and serialization. # module Nanaimo class Error < StandardError; end DEBUG = !ENV['NANAIMO_DEBUG'].nil? private_constant :DEBUG def self.debug return unless DEBUG warn yield end require ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/nanaimo-0.2.6/lib/nanaimo/object.rb
Ruby
mit
186
master
1,954
# frozen_string_literal: true module Nanaimo # An object that belongs to a plist. # class Object # @return The underlying native Ruby value # attr_accessor :value # @return [String] The annotation comment # attr_accessor :annotation def initialize(value, annotation) self.value...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/nanaimo-0.2.6/lib/nanaimo/unicode.rb
Ruby
mit
186
master
3,288
# frozen-string-literal: true require 'nanaimo/unicode/next_step_mapping' require 'nanaimo/unicode/quote_maps' module Nanaimo # @!visibility private # module Unicode class UnsupportedEscapeSequenceError < Error; end class InvalidEscapeSequenceError < Error; end module_function def quotify_strin...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/nanaimo-0.2.6/lib/nanaimo/plist.rb
Ruby
mit
186
master
716
# frozen_string_literal: true module Nanaimo # A Plist. # class Plist # @return [Nanaimo::Object] The root level object in the plist. # attr_accessor :root_object # @return [String] The encoding of the plist. # attr_accessor :file_type def initialize(root_object = nil, file_type = n...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/nanaimo-0.2.6/lib/nanaimo/reader.rb
Ruby
mit
186
master
7,881
# frozen-string-literal: true module Nanaimo # Transforms plist strings into Plist objects. # class Reader autoload :StringScanner, 'strscan' # Raised when attempting to read a plist with an unsupported file format. # class UnsupportedPlistFormatError < Error # @return [Symbol] The unsuppo...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/nanaimo-0.2.6/lib/nanaimo/writer.rb
Ruby
mit
186
master
4,857
# frozen_string_literal: true module Nanaimo # Transforms native ruby objects or Plist objects into their ASCII Plist # string representation. # class Writer autoload :PBXProjWriter, 'nanaimo/writer/pbxproj' autoload :XMLWriter, 'nanaimo/writer/xml' # Raised when attempting to write a plist contai...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/nanaimo-0.2.6/lib/nanaimo/unicode/quote_maps.rb
Ruby
mit
186
master
1,389
# frozen-string-literal: true module Nanaimo module Unicode QUOTE_MAP = { "\a" => "\\a", "\b" => "\\b", "\f" => "\\f", "\r" => "\\r", "\t" => "\\t", "\v" => "\\v", "\n" => "\\n", "\"" => "\\\"", "\\" => "\\\\", "\x00" => "\\U0000", "\x01" => "\\U00...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/nanaimo-0.2.6/lib/nanaimo/unicode/next_step_mapping.rb
Ruby
mit
186
master
6,667
# frozen-string-literal: true module Nanaimo module Unicode # Taken from http://ftp.unicode.org/Public/MAPPINGS/VENDORS/NEXT/NEXTSTEP.TXT NEXT_STEP_MAPPING = { 0x80 => 0x00a0, # NO-BREAK SPACE 0x81 => 0x00c0, # LATIN CAPITAL LETTER A WITH GRAVE 0x82 => 0x00c1, # LATIN CAPITAL LETTER A WITH A...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/nanaimo-0.2.6/lib/nanaimo/writer/xml.rb
Ruby
mit
186
master
3,188
# frozen_string_literal: true module Nanaimo class Writer # Transforms native ruby objects or Plist objects into their XML Plist # string representation. # class XMLWriter < Writer autoload :Base64, 'base64' autoload :Date, 'date' autoload :DateTime, 'date' def write ...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/nanaimo-0.2.6/lib/nanaimo/writer/pbxproj.rb
Ruby
mit
186
master
2,279
# frozen_string_literal: true module Nanaimo class Writer # Transforms native ruby objects or Plist objects into their ASCII Plist # string representation, formatted as Xcode writes Xcode projects. # class PBXProjWriter < Writer ISA = String.new('isa', '') private_constant :ISA def...
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/colored2-3.1.2/Rakefile
Ruby
mit
186
master
227
require 'bundler' require 'bundler/gem_tasks' require 'rake/clean' CLEAN.include %w(pkg coverage *.gem) begin require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) rescue LoadError end task :default => [:spec]
github
devxoul/Carte
https://github.com/devxoul/Carte
Sources/Carte/ruby/2.6.0/gems/colored2-3.1.2/spec/colored2_spec.rb
Ruby
mit
186
master
462
require 'spec_helper' require 'colored2/strings' RSpec.describe Colored2 do describe 'global enable and disable' do before do Colored2.disable! end after do Colored2.enable! end let(:sample) { 'sample string' } describe 'colors' do subject { sample.red.on.blue } it { ...