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 | dvandersluis/compendium | https://github.com/dvandersluis/compendium | lib/compendium/context_wrapper.rb | Ruby | mit | 86 | master | 705 | require 'delegate'
module Compendium
class ContextWrapper
def self.wrap(ctx, parent, params = nil, &block)
delegator = ::SimpleDelegator.new(parent)
delegator.define_singleton_method(:__context__) { ctx }
delegator.instance_eval do
def method_missing(name, *args, &block)
ret... |
github | dvandersluis/compendium | https://github.com/dvandersluis/compendium | lib/compendium/engine/mount.rb | Ruby | mit | 86 | master | 788 | module ActionDispatch
module Routing
class Mapper
class ExportRouter
def matches?(request)
request.params[:export].present?
end
end
def mount_compendium(options = {})
scope options[:at], controller: options.fetch(:controller, 'compendium/reports'), as: 'compend... |
github | dvandersluis/compendium | https://github.com/dvandersluis/compendium | config/initializers/ruby/numeric.rb | Ruby | mit | 86 | master | 381 | # Monkey patch to determine if an object is numeric
# Only Numerics and Strings/Symbols that are representations of numbers are numeric
class Object
def numeric?
false
end
end
class String
def numeric?
!(self =~ /\A-?\d+(\.\d+)?\z|\A-?\.\d+\z/).nil?
end
end
class Symbol
def numeric?
to_s.numeri... |
github | dvandersluis/compendium | https://github.com/dvandersluis/compendium | config/initializers/rails/active_record/connection_adapters/quoting.rb | Ruby | mit | 86 | master | 623 | # ActiveRecord doesn't know how to handle SimpleDelegators when creating SQL
# This means that when passing a SimpleDelegator (ie. Compendium::Param) into ActiveRecord::Base.find, it'll
# crash.
# Override AR::ConnectionAdapters::Quoting to forward a SimpleDelegator's object to be quoted.
module ActiveRecord::Connecti... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli.rb | Ruby | mit | 85 | main | 954 | require 'yaml'
require 'tempfile'
dir = File.dirname(__FILE__)
lib_dir = File.join(dir, "apibuilder-cli")
require_relative 'apibuilder-cli/preconditions'
require_relative 'apibuilder-cli/util'
require_relative 'apibuilder-cli/ask'
require_relative 'apibuilder-cli/args'
require_relative 'apibuilder-cli/config'
require... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/apicollective_apibuilder_api_v0_client.rb | Ruby | mit | 85 | main | 153,850 | # Generated by API Builder - https://www.apibuilder.io
# Service version: 0.16.78
# User agent: apibuilder localhost 9000/apicollective/apibuilder-api/latest/ruby_client
require 'cgi'
require 'net/http'
require 'net/https'
require 'uri'
require 'base64'
require 'date'
require 'rubygems'
require 'json'
require 'bigdec... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/settings.rb | Ruby | mit | 85 | main | 1,338 | # Reads the apibuilder CLI configuration file
module ApibuilderCli
class Settings
DEFAULT_MAX_THREADS = 10 unless defined?(DEFAULT_MAX_THREADS)
DEFAULT_TRACKED_FILES_ENABLED = true unless defined?(DEFAULT_TRACKED_FILES_ENABLED)
attr_reader :max_threads, :tracked_files_enabled
def initialize(args={}... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/app_config.rb | Ruby | mit | 85 | main | 8,764 | # Reads the apibuilder application configuration file (.apibuilder/config filename by convention)
module ApibuilderCli
class AppConfig
DEFAULT_FILENAMES = ["#{ApibuilderCli::Config::APIBUILDER_LOCAL_DIR}/config", ".apibuilder", ".apidoc"] unless defined?(DEFAULT_FILENAMES)
attr_reader :settings, :code, :pr... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/ask.rb | Ruby | mit | 85 | main | 633 | module ApibuilderCli
module Ask
def Ask.for_hidden
settings = `stty -g`.strip
begin
`stty -echo`
input = STDIN.gets
puts ""
ensure
`stty #{settings}`
end
input
end
def Ask.for_boolean(msg)
valid_values = ["y", "n"]
print "%s (%s)? ... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/args.rb | Ruby | mit | 85 | main | 1,089 | module ApibuilderCli
module Args
# Simple command line argument parsers to avoid pulling in external
# dependency. Returns a hash
#
# Example: ["--org", "foo"]
# returns: { :org => "foo" }
#
# Example: Arg.parse(["--app", "foo", "--app", "bar"], :multi => ['app'])
# returns: { :app... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/config.rb | Ruby | mit | 85 | main | 5,663 | # Reads the apibuilder CLI configuration file
module ApibuilderCli
class Config
class ValidConfig
attr_reader :settings, :client
def initialize(settings, client)
@settings = settings
@client = client
end
end
APIBUILDER_LOCAL_DIR = ".apibuilder" unless defined?(APIBUILD... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/git.rb | Ruby | mit | 85 | main | 2,008 | require 'digest'
module ApibuilderCli
module Git
def Git.branch_suffix(branch)
"-b#{Git.small_hash(branch)}-#{branch}"
end
def Git.checkout(branch)
`git checkout #{branch}`
end
def Git.current_branch
`git rev-parse --abbrev-ref HEAD`.strip
end
def Git.num_commits
... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/apicollective_apibuilder_spec_v0_client.rb | Ruby | mit | 85 | main | 74,027 | # Generated by API Builder - https://www.apibuilder.io
# Service version: 0.16.78
# User agent: apibuilder localhost 9000/apicollective/apibuilder-spec/latest/ruby_client
require 'cgi'
require 'net/http'
require 'net/https'
require 'uri'
require 'base64'
require 'date'
require 'rubygems'
require 'json'
require 'bigde... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/util.rb | Ruby | mit | 85 | main | 4,363 | module ApibuilderCli
module Util
def Util.file_join(*args)
args.select!{|s| s.to_s.strip != "" }
File.join(*args)
end
# Writes contents to a temp file, returning the path
def Util.write_to_temp_file(contents)
tmp = Tempfile.new('apibuilder-cli')
Util.write_to_file(tmp.path, ... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/apicollective_apibuilder_generator_v0_client.rb | Ruby | mit | 85 | main | 31,772 | # Generated by API Builder - https://www.apibuilder.io
# Service version: 0.16.78
# User agent: apibuilder localhost 9000/apicollective/apibuilder-generator/latest/ruby_client
require 'cgi'
require 'net/http'
require 'net/https'
require 'uri'
require 'base64'
require 'date'
require 'rubygems'
require 'json'
require '... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/version.rb | Ruby | mit | 85 | main | 769 | module ApibuilderCli
module Version
VERSION = '0.2.4' unless defined?(VERSION) # Automatically updated by util/create-release.rb
# Writes contents to a temp file, returning the path
def Version.current
"#{VERSION}"
end
def Version.latest
url = 'https://api.github.com/repos/apicolle... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/file_tracker.rb | Ruby | mit | 85 | main | 3,931 | module ApibuilderCli
class FileTracker
def FileTracker.default_path(project_dir)
Util.file_join(project_dir, ApibuilderCli::Config::APIBUILDER_LOCAL_DIR, ".tracked_files")
end
# Options:
# :path => Mostly here for injecting test config
# :updating_only => Filter to indicate which orgs... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/preconditions.rb | Ruby | mit | 85 | main | 1,820 | module ApibuilderCli
# Modeled after http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/base/Preconditions.html
class Preconditions
def Preconditions.check_argument(expression, error_message=nil)
if !expression
raise error_message || "check_argument failed"
end
n... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/apicollective_apibuilder_common_v0_client.rb | Ruby | mit | 85 | main | 23,874 | # Generated by API Builder - https://www.apibuilder.io
# Service version: 0.16.78
# User agent: apibuilder localhost 9000/apicollective/apibuilder-common/latest/ruby_client
require 'cgi'
require 'net/http'
require 'net/https'
require 'uri'
require 'base64'
require 'date'
require 'rubygems'
require 'json'
require 'big... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | src/apibuilder-cli/commands/update.rb | Ruby | mit | 85 | main | 5,740 | module ApibuilderCli
module Commands
class ProjectWithGenerator
attr_reader :project, :generator, :target, :changes
def initialize(project, generator, target)
@project = project
@generator = generator
@target = target
@changes = []
end
def add(change)
... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | util/update-library-path.rb | Ruby | mit | 85 | main | 666 | #!/usr/bin/env ruby
path = ARGV.shift.to_s.strip
lib = ARGV.shift.to_s.strip
if path.empty?
puts "ERROR: Specify path to apibuilder executable"
exit(1)
end
if lib.empty?
puts "ERROR: Specify path to apibuilder library"
exit(1)
end
if !File.exist?(path)
puts "ERROR: File '#{path}' does not exist"
exit(1)
... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | util/create-release.rb | Ruby | mit | 85 | main | 2,037 | #!/usr/bin/env ruby
#
# This scripts creates the actual release of apibuilder-cli
# - updates src/apibuilder-cli/version.rb
# - creates git tags
#
# == Usage
# ./util/create-release.rb
#
load File.join(File.dirname(__FILE__), '../src/apibuilder-cli.rb')
dirty_files = `git status --porcelain`.strip
#ApibuilderCli::... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | test/run.rb | Ruby | mit | 85 | main | 899 | #!/usr/bin/env ruby
# Ensure we're in a valid directory before running tests
test_dir = File.dirname(__FILE__)
Dir.chdir(test_dir) unless Dir.pwd == test_dir
require_relative '../src/apibuilder-cli'
def run(command)
puts command
system(command)
end
gem_home = File.join(File.dirname(__FILE__), '../gems').sub(/^\... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | test/spec/lib/file_tracker_spec.rb | Ruby | mit | 85 | main | 7,148 | load File.join(File.dirname(__FILE__), '../../init.rb')
describe ApibuilderCli::FileTracker do
before do
@sample_file = ApibuilderCli::Util.write_to_temp_file("""
apicollective:
apibuilder:
play_2_3_client:
- generated/app/ApibuilderClient.scala
play_2_x_routes:
- api/conf/routes
apibuilder-... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | test/spec/lib/preconditions_spec.rb | Ruby | mit | 85 | main | 2,029 | load File.join(File.dirname(__FILE__), '../../init.rb')
describe ApibuilderCli::Preconditions do
it "ApibuilderCli::Preconditions.check_argument" do
ApibuilderCli::Preconditions.check_argument(true, "Noop")
expect {
ApibuilderCli::Preconditions.check_argument(false, "Should be this")
}.to raise_er... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | test/spec/lib/util_spec.rb | Ruby | mit | 85 | main | 8,964 | load File.join(File.dirname(__FILE__), '../../init.rb')
describe ApibuilderCli::Util do
describe "Util.file_join" do
it "should eliminate nils" do
expect(ApibuilderCli::Util.file_join(nil, "foo", "bar")).to eq("foo/bar")
end
it "should eliminate empty strings" do
expect(ApibuilderCli::Util.... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | test/spec/lib/app_config_attribute_spec.rb | Ruby | mit | 85 | main | 4,754 | load File.join(File.dirname(__FILE__), '../../init.rb')
describe ApibuilderCli::AppConfig do
def generator(project, name)
project.generators.find { |g| g.name == name }
end
describe "basic attributes" do
before do
@sample_file = ApibuilderCli::Util.write_to_temp_file("""
attributes:
generators... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | test/spec/lib/app_config_spec.rb | Ruby | mit | 85 | main | 8,403 | load File.join(File.dirname(__FILE__), '../../init.rb')
describe ApibuilderCli::AppConfig do
describe ApibuilderCli::AppConfig::Generator do
it "constructor for a single file" do
g = ApibuilderCli::AppConfig::Generator.new("ruby_client", "/tmp/client.rb", {})
expect(g.name).to eq("ruby_client")
... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | test/spec/lib/config_spec.rb | Ruby | mit | 85 | main | 1,563 | load File.join(File.dirname(__FILE__), '../../init.rb')
describe ApibuilderCli::Config do
describe "with a valid configuration file" do
before do
@sample_file = ApibuilderCli::Util.write_to_temp_file("""
[default]
token = other
[profile public]
token =
[profile foo]
token = secret-token
""".strip... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | test/spec/lib/git_spec.rb | Ruby | mit | 85 | main | 8,928 | load File.join(File.dirname(__FILE__), '../../init.rb')
describe ApibuilderCli::Git do
describe "#branch_suffix" do
it "should work" do
expect(ApibuilderCli::Git.branch_suffix("my-branch")).to eq "-b663c692-my-branch"
end
end
describe "#checkout" do
it "should work" do
with_repo do |... |
github | apicollective/apibuilder-cli | https://github.com/apicollective/apibuilder-cli | test/spec/lib/args_spec.rb | Ruby | mit | 85 | main | 1,746 | load File.join(File.dirname(__FILE__), '../../init.rb')
describe ApibuilderCli::Args do
it "with empty args" do
args = ApibuilderCli::Args.parse([])
expect(args.empty?).to be true
end
it "with no flags args" do
args = ApibuilderCli::Args.parse(["foo"])
expect(args.empty?).to be true
end
it... |
github | DJMcMayhem/Brain-Flak | https://github.com/DJMcMayhem/Brain-Flak | Flag.rb | Ruby | mit | 85 | master | 392 | class DebugFlag
def initialize(name, data)
@name = name
if /'.'/.match(data) then
@data = data[1].ord
elsif /\d+/.match(data) then
@data = data.to_i
elsif data == "" then
@data = 0
else
raise BrainFlakError.new("Parsing Error (This should not happen)",0)
end
end
def... |
github | DJMcMayhem/Brain-Flak | https://github.com/DJMcMayhem/Brain-Flak | ClassicInterpreter.rb | Ruby | mit | 85 | master | 1,797 | require 'io/console'
require_relative './stack.rb'
require_relative './Flag.rb'
require_relative './BrainFlakError.rb'
require_relative './Interpreter.rb'
class ClassicInterpreter < Interpreter
def initialize(source, left_in, right_in, debug, max_cycles, ascii_mode)
super(source, left_in, right_in, debug, max_c... |
github | DJMcMayhem/Brain-Flak | https://github.com/DJMcMayhem/Brain-Flak | BrainFlakInterpreter.rb | Ruby | mit | 85 | master | 1,576 | require 'io/console'
require_relative './stack.rb'
require_relative './Flag.rb'
require_relative './BrainFlakError.rb'
require_relative './Interpreter.rb'
class BrainFlakInterpreter < Interpreter
# Nilads ~~~~~~~~~~~~~~~~~~~~~
def round_nilad()
@current_value += 1
end
def square_nilad()
@current_v... |
github | DJMcMayhem/Brain-Flak | https://github.com/DJMcMayhem/Brain-Flak | stack.rb | Ruby | mit | 85 | master | 1,509 | require_relative './BrainFlakError.rb'
class Stack
def initialize(name)
@name = name
@data = []
end
attr_reader :data
def pop
if @data.length != 0 then
return @data.pop
else
return 0
end
end
def push(current_value)
@data.push(current_value)
end
def peek
retur... |
github | DJMcMayhem/Brain-Flak | https://github.com/DJMcMayhem/Brain-Flak | Interpreter.rb | Ruby | mit | 85 | master | 9,160 | require 'io/console'
require_relative './stack.rb'
require_relative './Flag.rb'
require_relative './BrainFlakError.rb'
def read_until_matching(s, start)
stack_height = 0
s[start + 1..s.length].each_char.with_index(1) do |c, i|
case c
when '{' then stack_height += 1
when '}' then
stack_height -= 1... |
github | DJMcMayhem/Brain-Flak | https://github.com/DJMcMayhem/Brain-Flak | BraceCheck.rb | Ruby | mit | 85 | master | 860 | require_relative './BrainFlakError.rb'
def braceCheck(source)
matches = ["()","[]","<>","{}"]
stack = []
checking = true
source.split("").each_with_index do |char, i|
if char == "#"
checking = false
elsif char == "\n"
checking = true
end
if not checking
true #Do nothing
e... |
github | DJMcMayhem/Brain-Flak | https://github.com/DJMcMayhem/Brain-Flak | BrainFlueueInterpreter.rb | Ruby | mit | 85 | master | 1,606 | require 'io/console'
require_relative './stack.rb'
require_relative './Flag.rb'
require_relative './BrainFlakError.rb'
require_relative './Interpreter.rb'
class BrainFlueueInterpreter < Interpreter
# Nilads ~~~~~~~~~~~~~~~~~~~~~
def round_nilad()
@current_value += 1
end
def square_nilad()
@current_... |
github | DJMcMayhem/Brain-Flak | https://github.com/DJMcMayhem/Brain-Flak | brain_flak.rb | Ruby | mit | 85 | master | 6,887 | require_relative './stack.rb'
require_relative './BrainFlakInterpreter.rb'
require_relative './BrainFlueueInterpreter.rb'
require_relative './ClassicInterpreter.rb'
require_relative './BraceCheck.rb'
VERSION_STRING = "Brain-Flak Ruby Interpreter v1.5.2"
require 'optparse'
debug = false
do_in = true
do_out = true
as... |
github | unmantained-activeadmin-plugins/activeadmin-wysihtml5 | https://github.com/unmantained-activeadmin-plugins/activeadmin-wysihtml5 | Gemfile | Ruby | mit | 85 | master | 253 | source 'https://rubygems.org'
gemspec
gem 'sass-rails'
gem 'coffee-rails'
gem 'uglifier'
gem 'activeadmin', github: 'gregbell/active_admin', branch: 'master'
gem 'activeadmin-dragonfly', github: 'stefanoverna/activeadmin-dragonfly', branch: 'master' |
github | unmantained-activeadmin-plugins/activeadmin-wysihtml5 | https://github.com/unmantained-activeadmin-plugins/activeadmin-wysihtml5 | activeadmin-wysihtml5.gemspec | Ruby | mit | 85 | master | 675 | $:.push File.expand_path("../lib", __FILE__)
require "active_admin/wysihtml5/version"
Gem::Specification.new do |s|
s.name = "activeadmin-wysihtml5"
s.version = ActiveAdmin::Wysihtml5::VERSION
s.authors = ["Eric Holmes", "Stefano Verna"]
s.email = ["eric@ejholmes.net", "s.verna@cantierecr... |
github | unmantained-activeadmin-plugins/activeadmin-wysihtml5 | https://github.com/unmantained-activeadmin-plugins/activeadmin-wysihtml5 | db/migrate/20130124143200_add_magic_attributes_to_assets.rb | Ruby | mit | 85 | master | 432 | class AddMagicAttributesToAssets < ActiveRecord::Migration
def change
add_column :assets, :storage_width, :integer
add_column :assets, :storage_height, :integer
add_column :assets, :storage_aspect_ratio, :float
add_column :assets, :storage_depth, :integer
add_column :assets, :storage_format, :stri... |
github | unmantained-activeadmin-plugins/activeadmin-wysihtml5 | https://github.com/unmantained-activeadmin-plugins/activeadmin-wysihtml5 | db/migrate/20120816182611_create_active_admin_wysihtml5_assets.rb | Ruby | mit | 85 | master | 206 | class CreateActiveAdminWysihtml5Assets < ActiveRecord::Migration
def change
create_table :assets do |t|
t.string :storage_uid
t.string :storage_name
t.timestamps
end
end
end |
github | unmantained-activeadmin-plugins/activeadmin-wysihtml5 | https://github.com/unmantained-activeadmin-plugins/activeadmin-wysihtml5 | app/models/asset.rb | Ruby | mit | 85 | master | 648 | class Asset < ActiveRecord::Base
image_accessor :storage
def percentage_thumb_url(size)
width = (storage.width * size).ceil
height = (storage.height * size).ceil
storage.thumb("#{width}x#{height}").url
end
def thumb_url
storage.thumb("100x100#").url
end
def as_json(options = {})
{
... |
github | unmantained-activeadmin-plugins/activeadmin-wysihtml5 | https://github.com/unmantained-activeadmin-plugins/activeadmin-wysihtml5 | lib/active_admin/wysihtml5/admin/assets.rb | Ruby | mit | 85 | master | 1,989 | ActiveAdmin.register Asset do
index as: :grid do |asset|
link_to(image_tag(asset.storage.thumb("100x100#").url), admin_asset_path(asset))
end
form do |f|
f.inputs do
f.input :storage, as: :dragonfly, input_html: { components: [:preview, :upload, :url, :remove ] }
end
f.actions
end
sho... |
github | unmantained-activeadmin-plugins/activeadmin-wysihtml5 | https://github.com/unmantained-activeadmin-plugins/activeadmin-wysihtml5 | lib/active_admin/wysihtml5/rails/engine.rb | Ruby | mit | 85 | master | 786 | module ActiveAdmin
module Wysihtml5
module Rails
class Engine < ::Rails::Engine
engine_name "activeadmin_wysihtml5"
initializer "precompile hook", group: :all do |app|
app.config.assets.precompile += [
"activeadmin-wysihtml5/base.js",
"activeadmin-wysihtml5... |
github | unmantained-activeadmin-plugins/activeadmin-wysihtml5 | https://github.com/unmantained-activeadmin-plugins/activeadmin-wysihtml5 | lib/formtastic/inputs/wysihtml5_input.rb | Ruby | mit | 85 | master | 12,678 | module Formtastic
module Inputs
class Wysihtml5Input < Formtastic::Inputs::TextInput
COMMANDS_PRESET = {
barebone: [ :bold, :italic, :link, :source ],
basic: [ :bold, :italic, :ul, :ol, :link, :image, :source ],
all: [ :bold, :italic, :underline, :ul, :ol, :outdent, :indent, :link, ... |
github | robertabcd/lol-ob | https://github.com/robertabcd/lol-ob | decrypt.rb | Ruby | mit | 85 | master | 2,214 | #!/usr/bin/ruby
# encoding: utf-8
# === NOTES ===
# This script decrypts all chunk and keyframe files and save to the
# corresponding `xxx.bin' directory.
#
# The en/decryption method is obtained by reverse engineering the client.
#
# Each chunk and keyframe is gzipped and then encrypted by a 128-bit key
# using Blowf... |
github | robertabcd/lol-ob | https://github.com/robertabcd/lol-ob | lrf.rb | Ruby | mit | 85 | master | 3,446 | # coding: utf-8
require 'json'
require 'stringio'
class LrfFile
def initialize io
@unk0 = 0 # seems to be 68352 (0x10b00) in spectator replays
@meta = nil
@parts = []
load_file io if not io.nil?
end
def load_file f
@unk0, meta_size = f.read(8).unpack('VV')
@meta = JSON.parse(f.read(meta_size), {:symb... |
github | robertabcd/lol-ob | https://github.com/robertabcd/lol-ob | rofl.rb | Ruby | mit | 85 | master | 3,842 | # coding: utf-8
require 'stringio'
module Rofl
class RoflFile
def initialize
@magic = "RIOT\0\0"
@signature = "\0" * 256
@metadata = ''
@payload = Payload.new
end
attr_accessor :magic, :signature, :metadata, :payload
end
class Payload
def initialize
@game_id = 0
@game_length = 0
@chu... |
github | rubocop/rubocop-md | https://github.com/rubocop/rubocop-md | rubocop-md.gemspec | Ruby | mit | 85 | master | 1,635 | # frozen_string_literal: true
require_relative "lib/rubocop/markdown/version"
Gem::Specification.new do |spec|
spec.name = "rubocop-md"
spec.version = RuboCop::Markdown::VERSION
spec.authors = ["Vladimir Dementyev"]
spec.email = ["dementiev.vm@gmail.com"]
spec.summary = %... |
github | rubocop/rubocop-md | https://github.com/rubocop/rubocop-md | Gemfile | Ruby | mit | 85 | master | 365 | source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
# Specify your gem's dependencies in rubocop-md.gemspec
gemspec
gem "debug", platform: :mri unless ENV["CI"] == "true"
local_gemfile = "#{__dir__}/Gemfile.local"
if File.exist?(local_gemfile)
eval(File.read(local_g... |
github | rubocop/rubocop-md | https://github.com/rubocop/rubocop-md | Rakefile | Ruby | mit | 85 | master | 554 | require "bundler/gem_tasks"
require "rake/testtask"
require "rubocop/rake_task"
Rake::TestTask.new("test:default") do |t|
t.libs << "test"
t.libs << "lib"
t.warning = false
t.test_files = FileList["test/**/*_test.rb"]
end
namespace :test do
task :options do
sh <<~COMMAND
MD_LOAD_MODE=options rake ... |
github | rubocop/rubocop-md | https://github.com/rubocop/rubocop-md | lib/rubocop/markdown.rb | Ruby | mit | 85 | master | 492 | # frozen_string_literal: true
require "rubocop/markdown/version"
require "pathname"
module RuboCop
# Plugin to run Rubocop against Markdown files
module Markdown
PROJECT_ROOT = Pathname.new(__dir__).parent.parent.expand_path.freeze
CONFIG_DEFAULT = PROJECT_ROOT.join("config", "default.yml").freeze
... |
github | rubocop/rubocop-md | https://github.com/rubocop/rubocop-md | lib/rubocop/markdown/plugin.rb | Ruby | mit | 85 | master | 838 | # frozen_string_literal: true
require "lint_roller"
module RuboCop
module Markdown
# A plugin that integrates rubocop-md with RuboCop's plugin system.
class Plugin < LintRoller::Plugin
def about
LintRoller::About.new(
name: "rubocop-md",
version: VERSION,
homepage... |
github | rubocop/rubocop-md | https://github.com/rubocop/rubocop-md | lib/rubocop/markdown/rubocop_ext.rb | Ruby | mit | 85 | master | 3,052 | # frozen_string_literal: true
module RuboCop
module Markdown # :nodoc:
# See https://github.com/github-linguist/linguist/blob/8c380f360ce00b95fa08d14ce0ebccd481af1b33/lib/linguist/languages.yml#L4088-L4098
# Keep in sync with config/default.yml
MARKDOWN_EXTENSIONS = %w[
.md
.livemd
.mar... |
github | rubocop/rubocop-md | https://github.com/rubocop/rubocop-md | lib/rubocop/markdown/preprocess.rb | Ruby | mit | 85 | master | 3,622 | # frozen_string_literal: true
require "ripper"
module RuboCop
module Markdown
# Transform source Markdown file into valid Ruby file
# by commenting out all non-code lines
class Preprocess
# This is a regexp to parse code blocks from .md files.
#
# Only recognizes backticks-style code b... |
github | rubocop/rubocop-md | https://github.com/rubocop/rubocop-md | test/rubocop_assertions.rb | Ruby | mit | 85 | master | 5,183 | # frozen_string_literal: true
# Extracted from https://github.com/rubocop/rubocop-minitest/blob/b446022ea09b3f5558df9c0106c9e714c6fc1ec5/lib/rubocop/minitest/assert_offense.rb
# rubocop:disable all
require 'rubocop/rspec/expect_offense'
require 'rubocop/cop/legacy/corrector'
module RuboCop
module Markdown
modu... |
github | rubocop/rubocop-md | https://github.com/rubocop/rubocop-md | test/integration_test.rb | Ruby | mit | 85 | master | 2,415 | # frozen_string_literal: true
require "test_helper"
require "open3"
require "fileutils"
module RuboCopRunner
def run_rubocop(path, options: "", config: nil)
md_config_path = File.expand_path("./fixtures/.rubocop.yml", __dir__)
options = "#{options} --plugin rubocop-md" if ENV["MD_LOAD_MODE"] == "options"
... |
github | rubocop/rubocop-md | https://github.com/rubocop/rubocop-md | test/markdown_assertions.rb | Ruby | mit | 85 | master | 3,355 | # frozen_string_literal: true
require "fileutils"
module RuboCop
module Markdown
# Necessary overwrites over rubocop minitest assertions to run all cops and handle markdown autocorrection
class Test < Minitest::Test
include AssertOffense
TEST_FILE = File.expand_path(File.join(__dir__, "test.md"... |
github | rubocop/rubocop-md | https://github.com/rubocop/rubocop-md | test/offense_test.rb | Ruby | mit | 85 | master | 11,096 | # frozen_string_literal: true
require "test_helper"
class RuboCop::Markdown::OffenseTest < RuboCop::Markdown::Test
def overwrite_config
@old_store = RuboCop::Markdown.config_store
store = RuboCop::ConfigStore.new
store.instance_variable_set(:@options_config, config)
RuboCop::Markdown.config_store = ... |
github | rubocop/rubocop-md | https://github.com/rubocop/rubocop-md | test/preprocess_test.rb | Ruby | mit | 85 | master | 6,242 | # frozen_string_literal: true
require "test_helper"
class RuboCop::Markdown::PreprocessTest < Minitest::Test
def subject(warn_invalid: false)
obj = RuboCop::Markdown::Preprocess.new("test.md")
obj.define_singleton_method(:warn_invalid?) { warn_invalid }
obj
end
def test_no_code_snippets
source ... |
github | rubocop/rubocop-md | https://github.com/rubocop/rubocop-md | test/test_helper.rb | Ruby | mit | 85 | master | 784 | # frozen_string_literal: true
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "debug" unless ENV["CI"] == "true"
if ENV["MD_LOAD_MODE"] == "options"
$stdout.puts "⚙️ Run rubocop with '--plugin rubocop-md' options"
elsif ENV["MD_LOAD_MODE"] == "config"
$stdout.puts "⚙️ Run rubocop with 'plugins: - ... |
github | honza/django-chef | https://github.com/honza/django-chef | Vagrantfile | Ruby | bsd-2-clause | 85 | master | 1,443 | # -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "precise32"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.network :forwarded_port, guest: 80, host: 3456 # nginx
config.vm.hostname = "example"
config.vm.provider :virtualbox do... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/example/recipes/default.rb | Ruby | bsd-2-clause | 85 | master | 3,264 | # example recipe
# ============
execute "clean it" do
command "apt-get clean -y"
end
execute "update package index" do
command "apt-get update"
end
group "deploy" do
gid 123
end
if node[:user] == "vagrant"
user "vagrant" do
group "deploy"
end
template "/home/vagrant/.bashrc" do
... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/nginx/metadata.rb | Ruby | bsd-2-clause | 85 | master | 2,691 | maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs and configures nginx"
version "0.99.0"
recipe "nginx", "Installs nginx package and sets up configuration with Debian apache style with sites-enabled/sites-available"
recipe "... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/nginx/recipes/source.rb | Ruby | bsd-2-clause | 85 | master | 3,607 | #
# Cookbook Name:: nginx
# Recipe:: source
#
# Author:: Adam Jacob (<adam@opscode.com>)
# Author:: Joshua Timberman (<joshua@opscode.com>)
#
# Copyright 2009-2011, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You ... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/nginx/recipes/default.rb | Ruby | bsd-2-clause | 85 | master | 1,352 | #
# Cookbook Name:: nginx
# Recipe:: default
# Author:: AJ Christensen <aj@junglist.gen.nz>
#
# Copyright 2008-2009, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/nginx/definitions/nginx_site.rb | Ruby | bsd-2-clause | 85 | master | 1,269 | #
# Cookbook Name:: nginx
# Definition:: nginx_site
# Author:: AJ Christensen <aj@junglist.gen.nz>
#
# Copyright 2008-2009, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/nginx/attributes/default.rb | Ruby | bsd-2-clause | 85 | master | 994 | default[:nginx][:version] = "0.8.54"
case platform
when "debian","ubuntu"
set[:nginx][:dir] = "/etc/nginx"
set[:nginx][:log_dir] = "/var/log/nginx"
set[:nginx][:user] = "www-data"
set[:nginx][:binary] = "/usr/sbin/nginx"
else
set[:nginx][:dir] = "/etc/nginx"
set[:nginx][:log_dir] = "/var/l... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/redis/metadata.rb | Ruby | bsd-2-clause | 85 | master | 493 | maintainer "Gerhard Lazu"
maintainer_email "gerhard@lazu.co.uk"
license "Apache 2.0"
description "Installs and configures latest stable Redis"
version "2.1.0"
recipe "redis::source", "Installs redis from source"
recipe "redis::master", "Installs redis from source and configures it as ... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/redis/attributes/redis.rb | Ruby | bsd-2-clause | 85 | master | 8,340 | default[:redis][:version] = "2.6.12"
set[:redis][:dir] = "redis-#{redis.version}"
set[:redis][:source] = "http://redis.googlecode.com/files/#{redis.dir}.tar.gz"
default[:redis][:srcdir] = "/usr/local/src"
default[:redis][:init] = "upstart"
default[:redis][:config] = "/etc/redis.conf"
# Note on... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/redis/recipes/source.rb | Ruby | bsd-2-clause | 85 | master | 1,721 | include_recipe "build-essential"
user "redis" do
system true
shell "/bin/sh"
end
directory node[:redis][:datadir] do
owner "redis"
group "redis"
mode "0755"
recursive true
end
include_recipe "redis::init"
service "redis" do
supports :start => true, :stop => true, :restart => true
provider Chef::Prov... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/redis/recipes/init.rb | Ruby | bsd-2-clause | 85 | master | 302 | case node[:redis][:init]
when "init"
template "/etc/init.d/redis" do
cookbook "redis"
source "redis.sysv.erb"
mode 0755
backup false
end
when "upstart"
template "/etc/init/redis.conf" do
cookbook "redis"
source "redis.upstart.erb"
mode 0644
backup false
end
end |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/git/metadata.rb | Ruby | bsd-2-clause | 85 | master | 1,298 | name "git"
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs git and/or sets up a Git server daemon"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "2.3.0"
recipe "gi... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/git/recipes/default.rb | Ruby | bsd-2-clause | 85 | master | 1,324 | #
# Cookbook Name:: git
# Recipe:: default
#
# Copyright 2008-2009, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/git/recipes/server.rb | Ruby | bsd-2-clause | 85 | master | 1,465 | #
# Cookbook Name:: git
# Recipe:: server
#
# Copyright 2009, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/git/test/kitchen/cookbooks/git_test/metadata.rb | Ruby | bsd-2-clause | 85 | master | 249 | name "git"
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "This cookbook is used with test-kitchen to test the parent, git cookbok"
version "1.0.0" |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/git/test/kitchen/cookbooks/git_test/recipes/default.rb | Ruby | bsd-2-clause | 85 | master | 661 | #
# Cookbook Name:: git_test
# Recipe:: default
#
# Copyright 2013, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/git/test/kitchen/cookbooks/git_test/recipes/server.rb | Ruby | bsd-2-clause | 85 | master | 659 | #
# Cookbook Name:: git_test
# Recipe:: server
#
# Copyright 2013, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/git/attributes/default.rb | Ruby | bsd-2-clause | 85 | master | 1,961 | #
# Author:: Jamie Winsor (<jamie@vialstudios.com>)
# Cookbook Name:: git
# Attributes:: default
#
# Copyright 2008-2012, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/build-essential/metadata.rb | Ruby | bsd-2-clause | 85 | master | 528 | name "build-essential"
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs C compiler / build tools"
version "1.3.4"
recipe "build-essential", "Installs packages required for compiling C software from so... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/build-essential/recipes/default.rb | Ruby | bsd-2-clause | 85 | master | 3,191 | #
# Cookbook Name:: build-essential
# Recipe:: default
#
# Copyright 2008-2009, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/build-essential/attributes/default.rb | Ruby | bsd-2-clause | 85 | master | 1,487 | #
# Cookbook Name:: build-essential
# Attributes:: default
#
# Copyright 2008-2012, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENS... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/supervisor/metadata.rb | Ruby | bsd-2-clause | 85 | master | 343 | maintainer "Noah Kantrowitz"
maintainer_email "noah@opscode.com"
license "Apache 2.0"
description "Installs supervisor and provides resources to configure services"
version "0.1"
recipe "supervisor", "Installs and configures supervisord"
depends "python"
%w{ ubuntu debian }.each do ... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/supervisor/providers/service.rb | Ruby | bsd-2-clause | 85 | master | 1,900 | #
# Author:: Noah Kantrowitz <noah@opscode.com>
# Cookbook Name:: supervisor
# Provider:: service
#
# Copyright:: 2011, Opscode, Inc <legal@opscode.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the L... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/supervisor/providers/group.rb | Ruby | bsd-2-clause | 85 | master | 1,799 | #
# Author:: Gilles Devaux <gilles.devaux@gmail.com>
# Cookbook Name:: supervisor
# Provider:: group
#
# Copyright:: 2011, Formspring.me
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/supervisor/providers/fcgi.rb | Ruby | bsd-2-clause | 85 | master | 1,809 | #
# Author:: Gilles Devaux <gilles.devaux@gmail.com>
# Cookbook Name:: supervisor
# Provider:: fcgi
#
# Copyright:: 2011, Formspring.me
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/supervisor/attributes/default.rb | Ruby | bsd-2-clause | 85 | master | 749 | #
# Cookbook Name:: supervisor
# Attribute File:: default
#
# Copyright 2011, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/supervisor/resources/group.rb | Ruby | bsd-2-clause | 85 | master | 975 | #
# Author:: Gilles Devaux <gilles.devaux@gmail.com>
# Cookbook Name:: supervisor
# Resource:: group
#
# Copyright:: 2011, Formspring.me
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/supervisor/resources/fcgi.rb | Ruby | bsd-2-clause | 85 | master | 2,987 | #
# Author:: Gilles Devaux <gilles.devaux@gmail.com>
# Cookbook Name:: supervisor
# Resource:: fcgi
#
# Copyright:: 2011, Formspring.me
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/supervisor/resources/service.rb | Ruby | bsd-2-clause | 85 | master | 2,822 | #
# Author:: Noah Kantrowitz <noah@opscode.com>
# Cookbook Name:: supervisor
# Resource:: service
#
# Copyright:: 2011, Opscode, Inc <legal@opscode.com>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the L... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/supervisor/recipes/default.rb | Ruby | bsd-2-clause | 85 | master | 1,463 | #
# Cookbook Name:: supervisor
# Recipe:: default
#
# Copyright 2011, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/apt/metadata.rb | Ruby | bsd-2-clause | 85 | master | 653 | name "apt"
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Configures apt and apt services and LWRPs for managing apt repositories and preferences"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/apt/providers/preference.rb | Ruby | bsd-2-clause | 85 | master | 1,836 | #
# Cookbook Name:: apt
# Provider:: preference
#
# Copyright 2010-2011, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/apt/providers/repository.rb | Ruby | bsd-2-clause | 85 | master | 4,094 | #
# Cookbook Name:: apt
# Provider:: repository
#
# Copyright 2010-2011, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/apt/test/kitchen/cookbooks/apt_test/metadata.rb | Ruby | bsd-2-clause | 85 | master | 254 | name "apt_test"
maintainer "Opscode, Inc."
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "This cookbook is used with test-kitchen to test the parent, apt cookbok"
version "1.0.0" |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/apt/test/kitchen/cookbooks/apt_test/recipes/cacher-ng.rb | Ruby | bsd-2-clause | 85 | master | 665 | #
# Cookbook Name:: apt_test
# Recipe:: cacher-ng
#
# Copyright 2012, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unle... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/apt/test/kitchen/cookbooks/apt_test/recipes/default.rb | Ruby | bsd-2-clause | 85 | master | 661 | #
# Cookbook Name:: apt_test
# Recipe:: default
#
# Copyright 2012, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... |
github | honza/django-chef | https://github.com/honza/django-chef | cookbooks/apt/test/kitchen/cookbooks/apt_test/recipes/lwrps.rb | Ruby | bsd-2-clause | 85 | master | 1,640 | #
# Cookbook Name:: apt_test
# Recipe:: lwrps
#
# Copyright 2012, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.