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
honza/django-chef
https://github.com/honza/django-chef
cookbooks/apt/test/kitchen/cookbooks/apt_test/files/default/tests/minitest/lwrps_test.rb
Ruby
bsd-2-clause
85
master
1,695
# # 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...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/apt/test/kitchen/cookbooks/apt_test/files/default/tests/minitest/cacher-ng_test.rb
Ruby
bsd-2-clause
85
master
838
# # 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/files/default/tests/minitest/default_test.rb
Ruby
bsd-2-clause
85
master
858
# # 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/files/default/tests/minitest/support/helpers.rb
Ruby
bsd-2-clause
85
master
856
# # 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/recipes/default.rb
Ruby
bsd-2-clause
85
master
1,973
# # Cookbook Name:: apt # Recipe:: default # # Copyright 2008-2011, Opscode, Inc. # Copyright 2009, Bryan McLellan <btm@loftninjas.org> # # 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/apt/recipes/cacher-client.rb
Ruby
bsd-2-clause
85
master
1,899
# # Cookbook Name:: apt # Recipe:: cacher-client # # Copyright 2011, 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 # # ...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/apt/recipes/cacher-ng.rb
Ruby
bsd-2-clause
85
master
1,126
# # Cookbook Name:: apt # Recipe:: cacher-ng # # 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/LICENSE-2.0 # # Unle...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/apt/resources/preference.rb
Ruby
bsd-2-clause
85
master
895
# # Cookbook Name:: apt # Resource:: 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/resources/repository.rb
Ruby
bsd-2-clause
85
master
1,495
# # Cookbook Name:: apt # Resource:: 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/postgresql/metadata.rb
Ruby
bsd-2-clause
85
master
1,039
name "postgresql" maintainer "Opscode, Inc." maintainer_email "cookbooks@opscode.com" license "Apache 2.0" description "Installs and configures postgresql for clients or servers" long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) version "2.2.2" reci...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/test/kitchen/cookbooks/postgresql_test/recipes/server.rb
Ruby
bsd-2-clause
85
master
708
# # Cookbook Name:: postgresql_test # Recipe:: server # # 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 # # ...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/test/kitchen/cookbooks/postgresql_test/recipes/ppa_pitti_postgresql.rb
Ruby
bsd-2-clause
85
master
864
# # Cookbook Name:: postgresql_test # Recipe:: ppa_pitti_postgresql # # 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/LI...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/test/kitchen/cookbooks/postgresql_test/recipes/contrib.rb
Ruby
bsd-2-clause
85
master
675
# # Cookbook Name:: postgresql_test # Recipe:: contrib # # 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 # #...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/test/kitchen/cookbooks/postgresql_test/recipes/yum_pgdg_postgresql.rb
Ruby
bsd-2-clause
85
master
843
# # Cookbook Name:: postgresql_test # Recipe:: yum_pgdg_postgresql # # 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/LIC...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/recipes/server.rb
Ruby
bsd-2-clause
85
master
3,228
# # Cookbook Name:: postgresql # Recipe:: server # # Author:: Joshua Timberman (<joshua@opscode.com>) # Author:: Lamont Granquist (<lamont@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 Lice...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/recipes/client.rb
Ruby
bsd-2-clause
85
master
1,019
# # Cookbook Name:: postgresql # Recipe:: client # # Author:: Joshua Timberman (<joshua@opscode.com>) # Author:: Lamont Granquist (<lamont@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 Licen...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/recipes/config_initdb.rb
Ruby
bsd-2-clause
85
master
5,047
# # Cookbook Name:: postgresql # Recipe:: config_initdb # Author:: David Crane (<davidc@donorschoose.org>) # # 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/licens...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/recipes/contrib.rb
Ruby
bsd-2-clause
85
master
720
# # Cookbook Name:: postgresql # Recipe:: contrib # # 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 required by applicable law or a...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/recipes/config_pgtune.rb
Ruby
bsd-2-clause
85
master
9,898
# # Cookbook Name:: postgresql # Recipe:: config_pgtune # Author:: David Crane (<davidc@donorschoose.org>) # # 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/licens...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/recipes/server_redhat.rb
Ruby
bsd-2-clause
85
master
1,494
# # Cookbook Name:: postgresql # Recipe:: server # # Author:: Joshua Timberman (<joshua@opscode.com>) # Author:: Lamont Granquist (<lamont@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 Lice...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/recipes/ppa_pitti_postgresql.rb
Ruby
bsd-2-clause
85
master
251
include_recipe 'apt' apt_repository 'pitti-postgresql-ppa' do uri 'http://ppa.launchpad.net/pitti/postgresql/ubuntu' distribution node['lsb']['codename'] components %w(main) keyserver 'keyserver.ubuntu.com' key '8683D8A2' action :add end
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/recipes/yum_pgdg_postgresql.rb
Ruby
bsd-2-clause
85
master
2,570
# # Cookbook Name:: postgresql # Recipe::yum_pgdg_postgresql # # Copyright 2013, DonorsChoose.org # # 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/postgresql/files/default/tests/minitest/server_test.rb
Ruby
bsd-2-clause
85
master
1,392
# # 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 required by applicable law or agreed to in writ...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/files/default/tests/minitest/ppa_pitti_postgresql_test.rb
Ruby
bsd-2-clause
85
master
1,157
# # 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 required by applicable law or agreed to in writ...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/files/default/tests/minitest/ruby_test.rb
Ruby
bsd-2-clause
85
master
878
# # Cookbook Name:: postgresql_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 # #...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/files/default/tests/minitest/default_test.rb
Ruby
bsd-2-clause
85
master
870
# # 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 required by applicable law or agreed to in writ...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/files/default/tests/minitest/support/helpers.rb
Ruby
bsd-2-clause
85
master
866
# # Cookbook Name:: postgresql_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 # #...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/libraries/default.rb
Ruby
bsd-2-clause
85
master
10,463
# # Cookbook Name:: postgresql # Library:: default # Author:: David Crane (<davidc@donorschoose.org>) # # 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/LI...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/postgresql/attributes/default.rb
Ruby
bsd-2-clause
85
master
18,977
# # Cookbook Name:: postgresql # Attributes:: postgresql # # 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-...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/python/metadata.rb
Ruby
bsd-2-clause
85
master
774
name "python" maintainer "Opscode, Inc." maintainer_email "cookbooks@opscode.com" license "Apache 2.0" description "Installs Python, pip and virtualenv. Includes LWRPs for managing Python packages with `pip` and `virtualenv` isolated Python environments." version "1.2.2" ...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/python/resources/virtualenv.rb
Ruby
bsd-2-clause
85
master
996
# # Author:: Seth Chisamore <schisamo@opscode.com> # Cookbook Name:: python # Resource:: virtualenv # # 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...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/python/resources/pip.rb
Ruby
bsd-2-clause
85
master
1,256
# # Author:: Seth Chisamore <schisamo@opscode.com> # Cookbook Name:: python # Resource:: pip # # 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 Licens...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/python/attributes/default.rb
Ruby
bsd-2-clause
85
master
1,344
# # Author:: Seth Chisamore (<schisamo@opscode.com>) # Cookbook Name:: python # Attribute:: 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 # # h...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/python/recipes/pip.rb
Ruby
bsd-2-clause
85
master
1,620
# # Author:: Seth Chisamore <schisamo@opscode.com> # Cookbook Name:: python # Recipe:: pip # # 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...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/python/recipes/virtualenv.rb
Ruby
bsd-2-clause
85
master
760
# # Author:: Seth Chisamore <schisamo@opscode.com> # Cookbook Name:: python # Recipe:: virtualenv # # 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 # # htt...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/python/recipes/source.rb
Ruby
bsd-2-clause
85
master
1,825
# # Author:: Seth Chisamore <schisamo@opscode.com> # Cookbook Name:: python # Recipe:: source # # 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://...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/python/recipes/package.rb
Ruby
bsd-2-clause
85
master
1,408
# # Author:: Seth Chisamore <schisamo@opscode.com> # Cookbook Name:: python # Recipe:: package # # 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:/...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/python/recipes/default.rb
Ruby
bsd-2-clause
85
master
803
# # Author:: Seth Chisamore <schisamo@opscode.com> # Cookbook Name:: python # 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:/...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/python/providers/pip.rb
Ruby
bsd-2-clause
85
master
5,646
# # Author:: Seth Chisamore <schisamo@opscode.com> # Cookbook Name:: python # Provider:: pip # # 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 Licens...
github
honza/django-chef
https://github.com/honza/django-chef
cookbooks/python/providers/virtualenv.rb
Ruby
bsd-2-clause
85
master
2,213
# # Author:: Seth Chisamore <schisamo@opscode.com> # Cookbook Name:: python # Provider:: virtualenv # # 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...
github
rprt/rspec-page-regression
https://github.com/rprt/rspec-page-regression
rspec-page-regression.gemspec
Ruby
mit
85
master
1,826
# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'rspec/page-regression/version' Gem::Specification.new do |spec| spec.name = "rspec-page-regression" spec.version = RSpec::PageRegression::VERSION spec.authors = ["ronen...
github
rprt/rspec-page-regression
https://github.com/rprt/rspec-page-regression
Rakefile
Ruby
mit
85
master
270
require "bundler/gem_tasks" task :default => :spec require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec.rspec_opts = '-Ispec' end require 'coveralls/rake/task' Coveralls::RakeTask.new task :spec_with_coveralls => [:spec, 'coveralls:push']
github
rprt/rspec-page-regression
https://github.com/rprt/rspec-page-regression
spec/match_expectation_spec.rb
Ruby
mit
85
master
7,524
require 'spec_helper.rb' require 'fileutils' describe "match_expectation" do Given { @opts = { :full => true } @driver = mock("Driver") @driver.stubs :resize @driver.stubs :save_screenshot @page = mock("Page") @page.stubs(:driver).returns @driver @match_argument = nil } context "hel...
github
rprt/rspec-page-regression
https://github.com/rprt/rspec-page-regression
spec/spec_helper.rb
Ruby
mit
85
master
578
require 'pathname' require 'simplecov' require 'simplecov-gem-adapter' SimpleCov.start "gem" $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rspec' require 'rspec/given' require 'rspec/page-regression' require 'bourne' SpecDir = Pathname.new(__FILE__).dirname RootDir = SpecDir.dirname Tes...
github
rprt/rspec-page-regression
https://github.com/rprt/rspec-page-regression
spec/support/helpers.rb
Ruby
mit
85
master
638
module Helpers def test_path getpath(TestDir, "test") end def expected_path getpath(SpecDir, "expected") end def difference_path getpath(TestDir, "difference") end def getpath(root, base) (root + "expectation" + example_path(RSpec.current_example) + "#{base}.png").relative_path_from Pa...
github
rprt/rspec-page-regression
https://github.com/rprt/rspec-page-regression
spec/support/matchers.rb
Ruby
mit
85
master
365
module RSpec module Matchers def fail raise_error(RSpec::Expectations::ExpectationNotMetError) end def fail_with(message) raise_error(RSpec::Expectations::ExpectationNotMetError, message) end def fail_matching(message) raise_error(RSpec::Expectations::ExpectationNotMetError, /#...
github
rprt/rspec-page-regression
https://github.com/rprt/rspec-page-regression
lib/rspec/page-regression.rb
Ruby
mit
85
master
539
require "rspec/page-regression/file_paths" require "rspec/page-regression/image_comparison" require "rspec/page-regression/matcher" require "rspec/page-regression/renderer" require "rspec/page-regression/version" module RSpec::PageRegression def self.configure yield self end def self.page_size= (page_size) ...
github
rprt/rspec-page-regression
https://github.com/rprt/rspec-page-regression
lib/rspec/page-regression/image_comparison.rb
Ruby
mit
85
master
2,387
if RUBY_PLATFORM == 'java' require "chunky_png" else require 'oily_png' end module RSpec::PageRegression class ImageComparison include ChunkyPNG::Color attr_reader :result def initialize(filepaths) @filepaths = filepaths @result = compare end def expected_size [@iexpecte...
github
rprt/rspec-page-regression
https://github.com/rprt/rspec-page-regression
lib/rspec/page-regression/renderer.rb
Ruby
mit
85
master
511
module RSpec::PageRegression module Renderer def self.render(page, test_image_path) test_image_path.dirname.mkpath unless test_image_path.dirname.exist? # Capybara doesn't implement resize in API unless page.driver.respond_to? :resize page.driver.browser.manage.window.resize_to *RSpec:...
github
rprt/rspec-page-regression
https://github.com/rprt/rspec-page-regression
lib/rspec/page-regression/matcher.rb
Ruby
mit
85
master
1,408
require 'which_works' module RSpec::PageRegression RSpec::Matchers.define :match_expectation do |expectation_path| match do |page| @filepaths = FilePaths.new(RSpec.current_example, expectation_path) Renderer.render(page, @filepaths.test_image) @comparison = ImageComparison.new(@filepaths) ...
github
rprt/rspec-page-regression
https://github.com/rprt/rspec-page-regression
lib/rspec/page-regression/file_paths.rb
Ruby
mit
85
master
1,651
require 'active_support/core_ext/string/inflections' module RSpec::PageRegression class FilePaths attr_reader :expected_image attr_reader :test_image attr_reader :difference_image def initialize(example, expected_path = nil) expected_path = Pathname.new(expected_path) if expected_path d...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
Rakefile
Ruby
mit
85
master
8,060
# encoding: UTF-8 # -*- ruby -*- require 'rubygems' require 'erb' require 'rake/testtask' require 'rubygems/package_task' require 'rake/clean' require 'yard' # Load the gemspec file for this project. GEMSPEC = Dir['*.gemspec'].first SPEC = eval(File.read(GEMSPEC), nil, GEMSPEC) # A dynamically generated list of fil...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
archive-zip.gemspec
Ruby
mit
85
master
2,296
# encoding: UTF-8 Gem::Specification.new do |s| s.name = 'archive-zip' s.version = '0.13.1' s.licenses = ['MIT'] s.platform = Gem::Platform::RUBY s.authors = [ 'Jeremy Bopp', 'Akira Matsuda', 'Tatsuya Sato', 'Kouhei Sutou' ] s.email = [ 'jeremy@bopp.net', ...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/archive_spec.rb
Ruby
mit
85
master
1,456
# encoding: UTF-8 require 'minitest/autorun' require 'tmpdir' require 'archive/zip' describe 'Archive::Zip#archive' do it 'adds file entries' do file_name = 'file' Dir.mktmpdir('archive_zip#archive') do |dir| file_path = File.join(dir, file_name) File.open(file_path, 'wb') { |f| f.write('data')...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/dos_time/cmp_spec.rb
Ruby
mit
85
master
1,091
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/dos_time' describe 'Archive::Zip::DOSTime#cmp' do it 'raises an exception if other is not a Zip::DOSTime' do dos_time = Archive::Zip::DOSTime.new other = nil _(->{ dos_time.cmp(other) }).must_raise ArgumentError end it 'returns 1 wh...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/dos_time/new_spec.rb
Ruby
mit
85
master
2,415
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/dos_time' describe 'Archive::Zip::DOSTime.new' do let(:epoc) { 0b0000000_0001_00001_00000_000000_00000 } let(:end_times) { 0b1110111_1100_11111_10111_111011_11101 } it 'uses the current time when no structure is given' do now = Time.now.loc...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/dos_time/to_time_spec.rb
Ruby
mit
85
master
492
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/dos_time' describe 'Archive::Zip::DOSTime#to_time' do let(:epoc) { 0b0000000_0001_00001_00000_000000_00000 } let(:end_times) { 0b1110111_1100_11111_10111_111011_11101 } it 'returns an equivalent instance of Time' do _(Archive::Zip::DOSTime....
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/dos_time/to_i_spec.rb
Ruby
mit
85
master
439
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/dos_time' describe 'Archive::Zip::DOSTime#to_i' do let(:epoc) { 0b0000000_0001_00001_00000_000000_00000 } let(:end_times) { 0b1110111_1100_11111_10111_111011_11101 } it 'returns the time structure encoded as an integer' do _(Archive::Zip::D...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/traditional_encryption/writer/write_spec.rb
Ruby
mit
85
master
3,750
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/traditional_encryption' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::TraditionalEncryption::Writer#write' do it 'writes encrypted data to the delegate' do test_data = TraditionalEncryptionSpecs.test_data Tradi...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/traditional_encryption/writer/new_spec.rb
Ruby
mit
85
master
1,287
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/traditional_encryption' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::TraditionalEncryption::Writer.new' do it 'returns a new instance' do TraditionalEncryptionSpecs.string_io do |sio| e = Archive::Zip::Codec...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/traditional_encryption/writer/seek_spec.rb
Ruby
mit
85
master
4,283
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/traditional_encryption' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::TraditionalEncryption::Writer#seek' do it 'can seek to the beginning of the stream when the delegate can do so' do TraditionalEncryptionSpecs.st...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/traditional_encryption/reader/read_spec.rb
Ruby
mit
85
master
3,014
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/traditional_encryption' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::TraditionalEncryption::Reader#read' do it 'decrypts data read from the delegate' do TraditionalEncryptionSpecs.encrypted_data do |ed| Arch...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/traditional_encryption/reader/new_spec.rb
Ruby
mit
85
master
1,294
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/traditional_encryption' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::TraditionalEncryption::Reader.new' do it 'returns a new instance' do TraditionalEncryptionSpecs.encrypted_data do |ed| d = Archive::Zip::C...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/traditional_encryption/reader/seek_spec.rb
Ruby
mit
85
master
4,281
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/traditional_encryption' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::TraditionalEncryption::Reader#seek' do it 'can seek to the beginning of the stream when the delegate can do so' do TraditionalEncryptionSpecs.en...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/reader/seek_spec.rb
Ruby
mit
85
master
3,267
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate/reader' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Reader#seek' do it 'can seek to the beginning of the stream when the delegate can do so' do DeflateSpecs.compressed_data do |cd| Archive:...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/reader/compressed_size_spec.rb
Ruby
mit
85
master
599
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate/reader' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Reader#compressed_size' do it 'returns the number of bytes of compressed data' do size = DeflateSpecs.compressed_data.bytesize closed_zr = ...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/reader/data_descriptor_spec.rb
Ruby
mit
85
master
2,165
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Reader#data_descriptor' do it 'is an instance of Archive::Zip::DataDescriptor' do DeflateSpecs.compressed_data do |cd| closed_reader = Archive::...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/reader/new_spec.rb
Ruby
mit
85
master
1,254
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Reader.new' do it 'returns a new instance' do DeflateSpecs.string_io do |sio| d = Archive::Zip::Codec::Deflate::Reader.new(sio) _(d).must_...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/reader/close_spec.rb
Ruby
mit
85
master
1,228
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate/reader' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Reader.close' do it 'closes the stream' do DeflateSpecs.compressed_data do |cd| zr = Archive::Zip::Codec::Deflate::Reader.new(cd) z...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/reader/read_spec.rb
Ruby
mit
85
master
3,900
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate/reader' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Reader#read' do it 'decompresses compressed data' do test_data = DeflateSpecs.test_data DeflateSpecs.compressed_data do |cd| Archive:...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/reader/crc32_spec.rb
Ruby
mit
85
master
532
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate' require_relative '../fixtures/classes' describe 'Archive::Zip::Deflate::Reader#crc32' do it 'computes a CRC32 checksum' do crc32 = Zlib.crc32(DeflateSpecs.test_data) closed_reader = DeflateSpecs.compressed_data do |cd| ...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/reader/uncompressed_size_spec.rb
Ruby
mit
85
master
627
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate/reader' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Reader#uncompressed_size' do it 'returns the number of bytes of uncompressed data' do test_data = DeflateSpecs.test_data size = test_data.b...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/writer/new_spec.rb
Ruby
mit
85
master
2,561
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Writer.new' do it 'returns a new instance' do DeflateSpecs.string_io do |sio| c = Archive::Zip::Codec::Deflate::Writer.new(sio) _(c).must_...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/writer/uncompressed_size_spec.rb
Ruby
mit
85
master
605
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate/writer' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Writer#uncompressed_size' do it 'returns the number of bytes of uncompressed data' do test_data = DeflateSpecs.test_data size = test_data.b...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/writer/crc32_spec.rb
Ruby
mit
85
master
673
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Writer#crc32' do it 'computes the CRC32 checksum' do test_data = DeflateSpecs.test_data crc32 = Zlib.crc32(test_data) DeflateSpecs.string_io d...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/writer/compressed_size_spec.rb
Ruby
mit
85
master
643
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate/writer' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Writer#compressed_size' do it 'returns the number of bytes of compressed data' do size = DeflateSpecs.compressed_data.bytesize DeflateSpecs...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/writer/data_descriptor_spec.rb
Ruby
mit
85
master
2,492
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Writer#data_descriptor' do it 'is an instance of Archive::Zip::DataDescriptor' do test_data = DeflateSpecs.test_data DeflateSpecs.string_io do |si...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/writer/write_spec.rb
Ruby
mit
85
master
3,628
# encoding: UTF-8 require 'minitest/autorun' require 'securerandom' require 'archive/zip/codec/deflate' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Writer#write' do it 'writes compressed data to the delegate' do test_data = DeflateSpecs.test_data DeflateSpecs.string_io d...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/writer/seek_spec.rb
Ruby
mit
85
master
3,319
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/deflate/writer' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Writer#seek' do it 'can seek to the beginning of the stream when the delegate can do so' do DeflateSpecs.string_io do |sio| Archive::Zip:...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/deflate/writer/close_spec.rb
Ruby
mit
85
master
1,497
# encoding: UTF-8 require 'minitest/autorun' require 'securerandom' require 'archive/zip/codec/deflate/writer' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Deflate::Writer.close' do it 'closes the stream' do zw = Archive::Zip::Codec::Deflate::Writer.new(DeflateSpecs.string_io) zw....
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/store/writer/new_spec.rb
Ruby
mit
85
master
825
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/store' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Store::Writer.new' do it 'returns a new instance' do StoreSpecs.string_io do |sio| c = Archive::Zip::Codec::Store::Writer.new(sio) _(c).must_be_insta...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/store/writer/data_descriptor_spec.rb
Ruby
mit
85
master
2,240
# encoding: UTF-8 require 'minitest/autorun' require 'zlib' require 'archive/zip/codec/store' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Store::Writer#data_descriptor' do it 'is an instance of Archive::Zip::DataDescriptor' do test_data = StoreSpecs.test_data StoreSpecs.string_io...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/store/writer/write_spec.rb
Ruby
mit
85
master
3,348
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/store' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Store::Writer#write' do it 'passes data through unmodified' do StoreSpecs.string_io do |sio| Archive::Zip::Codec::Store::Writer.open(sio, autoclose: false)...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/store/writer/seek_spec.rb
Ruby
mit
85
master
3,170
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/store' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Store::Writer#seek' do it 'can seek to the beginning of the stream when the delegate can do so' do StoreSpecs.string_io do |sio| Archive::Zip::Codec::Store...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/store/reader/seek_spec.rb
Ruby
mit
85
master
3,197
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/store' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Store::Reader#seek' do it 'can seek to the beginning of the stream when the delegate can do so' do StoreSpecs.compressed_data do |cd| Archive::Zip::Codec::...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/store/reader/data_descriptor_spec.rb
Ruby
mit
85
master
2,165
# encoding: UTF-8 require 'minitest/autorun' require 'zlib' require 'archive/zip/codec/store' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Store::Reader#data_descriptor' do it 'is an instance of Archive::Zip::DataDescriptor' do StoreSpecs.compressed_data do |cd| closed_decompres...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/store/reader/new_spec.rb
Ruby
mit
85
master
825
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/store' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Store::Reader.new' do it 'returns a new instance' do StoreSpecs.string_io do |sio| d = Archive::Zip::Codec::Store::Reader.new(sio) _(d).must_be_insta...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/archive/zip/codec/store/reader/read_spec.rb
Ruby
mit
85
master
2,576
# encoding: UTF-8 require 'minitest/autorun' require 'archive/zip/codec/store' require_relative '../fixtures/classes' describe 'Archive::Zip::Codec::Store::Reader#read' do it 'passes data through unmodified' do StoreSpecs.compressed_data do |cd| Archive::Zip::Codec::Store::Reader.open(cd) do |d| ...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
spec/ioextensions/read_exactly_spec.rb
Ruby
mit
85
master
718
# encoding: UTF-8 require 'minitest/autorun' require 'stringio' require 'archive/support/ioextensions.rb' describe 'IOExtensions.read_exactly' do it 'reads and returns length bytes from a given IO object' do io = StringIO.new('This is test data') _(IOExtensions.read_exactly(io, 4)).must_equal 'This' _(...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
lib/archive/zip.rb
Ruby
mit
85
master
28,107
# encoding: UTF-8 require 'fileutils' require 'set' require 'tempfile' require 'archive/support/ioextensions' require 'archive/support/iowindow' require 'archive/support/zlib' require 'archive/zip/codec' require 'archive/zip/entry' require 'archive/zip/error' module Archive # :nodoc: # Archive::Zip represents a ZI...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
lib/archive/support/stringio.rb
Ruby
mit
85
master
490
# encoding: UTF-8 require 'stringio' ## # This extends StringIO to include additional methods required by the io-like # library to wrap IO objects. class StringIO unless public_method_defined?(:sysseek) def sysseek(offset, whence = IO::SEEK_SET) seek(offset, whence) pos end end unless publi...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
lib/archive/support/iowindow.rb
Ruby
mit
85
master
2,062
# encoding: UTF-8 require 'io/like_helpers/delegated_io' # IOWindow represents an IO object which wraps another one allowing read access # to a subset of the data within the stream. class IOWindow < IO::LikeHelpers::DelegatedIO # Creates a new instance of this class using _delegate_ as the data source and # where...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
lib/archive/support/ioextensions.rb
Ruby
mit
85
master
457
# encoding: UTF-8 # IOExtensions provides convenience wrappers for certain IO functionality. module IOExtensions # Reads and returns exactly _length_ bytes from _io_ using the read method on # _io_. If there is insufficient data available, an EOFError is raised. def self.read_exactly(io, length) result = io...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
lib/archive/support/zlib.rb
Ruby
mit
85
master
788
# encoding: UTF-8 require 'zlib' module Zlib # :nodoc: # The maximum size of the zlib history buffer. Note that zlib allows larger # values to enable different inflate modes. See Zlib::Inflate.new for details. # Provided here only for Ruby versions that do not provide it. MAX_WBITS = Deflate::MAX_WBITS unle...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
lib/archive/zip/codec.rb
Ruby
mit
85
master
2,332
# encoding: UTF-8 module Archive; class Zip # Archive::Zip::Codec is a factory class for generating codec object instances # based on the compression method and general purpose flag fields of ZIP # entries. When adding a new codec, add a mapping in the _CODECS_ constant # from the compression method field val...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
lib/archive/zip/data_descriptor.rb
Ruby
mit
85
master
2,227
# encoding: UTF-8 module Archive; class Zip # Archive::Zip::DataDescriptor is a convenience class which bundles important # information concerning the compressed data in a ZIP archive entry and allows # easy comparisons between instances of itself. class DataDescriptor # Create a new instance of this class...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
lib/archive/zip/entry.rb
Ruby
mit
85
master
44,255
# encoding: UTF-8 require 'io/like_helpers/io_wrapper' require 'archive/support/ioextensions' require 'archive/support/stringio' require 'archive/zip/codec/deflate' require 'archive/zip/codec/null_encryption' require 'archive/zip/codec/store' require 'archive/zip/codec/traditional_encryption' require 'archive/zip/dat...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
lib/archive/zip/dos_time.rb
Ruby
mit
85
master
3,256
# encoding: UTF-8 module Archive; class Zip # A representation of the DOS time structure which can be converted into # instances of Time. class DOSTime include Comparable # Creates a new instance of DOSTime. _dos_time_ is a 4 byte String or # unsigned number (Integer) representing an MS-DOS time structure wher...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
lib/archive/zip/extra_field.rb
Ruby
mit
85
master
1,406
# encoding: UTF-8 module Archive; class Zip module ExtraField # A Hash used to map extra field header identifiers to extra field classes. EXTRA_FIELDS = {} # Returns an instance of an extra field class by selecting the class using # _header_id_ and passing _data_ to the class' _parse_central_ method...
github
javanthropus/archive-zip
https://github.com/javanthropus/archive-zip
lib/archive/zip/error.rb
Ruby
mit
85
master
904
# encoding: UTF-8 module Archive; class Zip; # Archive::Zip::Error is the base class of all archive-related errors raised # by the Archive::Zip library. class Error < StandardError; end # Archive::Zip::EntryError is raised when there is an error while processing # ZIP archive entries. class EntryError < E...