gibbler 0.8.10 → 0.10.0.pre.RC1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/main.yml +27 -0
- data/.github/workflows/ruby-rake.yaml +38 -0
- data/.gitignore +16 -0
- data/.pre-commit-config.yaml +60 -0
- data/.rubocop.yml +27 -0
- data/{CHANGES.txt → CHANGELOG.md} +75 -81
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +16 -0
- data/LICENSE.txt +4 -2
- data/README.md +250 -0
- data/VERSION.yml +2 -2
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/img/whoababy.gif +0 -0
- data/lib/gibbler/aliases.rb +2 -2
- data/lib/gibbler/history.rb +40 -42
- data/lib/gibbler/mixins.rb +31 -7
- data/lib/gibbler/version.rb +17 -0
- data/lib/gibbler.rb +272 -299
- data/sig/gibbler.rbs +4 -0
- data/try/{01_mixins_try.rb → 01_core_ext_try.rb} +1 -1
- data/try/02_compat_try.rb +1 -1
- data/try/05_gibbler_digest_try.rb +1 -1
- data/try/10_standalone_try.rb +49 -0
- data/try/{10_basic_try.rb → 11_basic_try.rb} +13 -14
- data/try/{11_basic_sha256_try.rb → 12_basic_sha256_try.rb} +1 -1
- data/try/14_extended_try.rb +1 -1
- data/try/15_file_try.rb +1 -1
- data/try/16_uri_try.rb +1 -1
- data/try/17_complex_object_try.rb +5 -2
- data/try/18_proc_try.rb +1 -1
- data/try/20_time_try.rb +1 -1
- data/try/30_secret_try.rb +1 -1
- data/try/50_history_try.rb +1 -1
- data/try/51_hash_history_try.rb +1 -1
- data/try/52_array_history_try.rb +1 -1
- data/try/53_string_history_try.rb +1 -1
- data/try/57_arbitrary_history_try.rb +1 -1
- data/try/59_history_exceptions_try.rb +1 -1
- metadata +88 -57
- data/README.rdoc +0 -228
- data/Rakefile +0 -64
- data/gibbler.gemspec +0 -69
data/Rakefile
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
require "rubygems"
|
2
|
-
require "rake"
|
3
|
-
require "rake/clean"
|
4
|
-
require 'yaml'
|
5
|
-
|
6
|
-
begin
|
7
|
-
require 'hanna/rdoctask'
|
8
|
-
rescue LoadError
|
9
|
-
require 'rake/rdoctask'
|
10
|
-
end
|
11
|
-
|
12
|
-
config = YAML.load_file("VERSION.yml")
|
13
|
-
task :default => ["build"]
|
14
|
-
CLEAN.include [ 'pkg', 'doc' ]
|
15
|
-
name = "gibbler"
|
16
|
-
|
17
|
-
begin
|
18
|
-
require "jeweler"
|
19
|
-
Jeweler::Tasks.new do |gem|
|
20
|
-
gem.version = "#{config[:MAJOR]}.#{config[:MINOR]}.#{config[:PATCH]}"
|
21
|
-
gem.name = name
|
22
|
-
gem.rubyforge_project = gem.name
|
23
|
-
gem.summary = "Gibbler: Git-like hashes for Ruby objects"
|
24
|
-
gem.description = gem.summary
|
25
|
-
gem.email = "delano@solutious.com"
|
26
|
-
gem.homepage = "http://github.com/delano/gibbler"
|
27
|
-
gem.authors = ["Delano Mandelbaum"]
|
28
|
-
gem.add_dependency("attic", ">= 0.4.0")
|
29
|
-
end
|
30
|
-
Jeweler::GemcutterTasks.new
|
31
|
-
rescue LoadError
|
32
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
33
|
-
end
|
34
|
-
|
35
|
-
|
36
|
-
Rake::RDocTask.new do |rdoc|
|
37
|
-
version = "#{config[:MAJOR]}.#{config[:MINOR]}.#{config[:PATCH]}"
|
38
|
-
rdoc.rdoc_dir = "doc"
|
39
|
-
rdoc.title = "#{name} #{version}"
|
40
|
-
rdoc.rdoc_files.include("README*")
|
41
|
-
rdoc.rdoc_files.include("LICENSE.txt")
|
42
|
-
rdoc.rdoc_files.include("bin/*.rb")
|
43
|
-
rdoc.rdoc_files.include("lib/**/*.rb")
|
44
|
-
end
|
45
|
-
|
46
|
-
|
47
|
-
# Rubyforge Release / Publish Tasks ==================================
|
48
|
-
|
49
|
-
#about 'Publish website to rubyforge'
|
50
|
-
task 'publish:rdoc' => 'doc/index.html' do
|
51
|
-
#sh "scp -rp doc/* rubyforge.org:/var/www/gforge-projects/#{name}/"
|
52
|
-
end
|
53
|
-
|
54
|
-
#about 'Public release to rubyforge'
|
55
|
-
task 'publish:gem' => [:package] do |t|
|
56
|
-
sh <<-end
|
57
|
-
rubyforge add_release -o Any -a CHANGES.txt -f -n README.md #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.gem &&
|
58
|
-
rubyforge add_file -o Any -a CHANGES.txt -f -n README.md #{name} #{name} #{@spec.version} pkg/#{name}-#{@spec.version}.tgz
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
data/gibbler.gemspec
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = "gibbler"
|
8
|
-
s.version = "0.8.10"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Delano Mandelbaum"]
|
12
|
-
s.date = "2011-10-23"
|
13
|
-
s.description = "Gibbler: Git-like hashes for Ruby objects"
|
14
|
-
s.email = "delano@solutious.com"
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.rdoc"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
"CHANGES.txt",
|
21
|
-
"LICENSE.txt",
|
22
|
-
"README.rdoc",
|
23
|
-
"Rakefile",
|
24
|
-
"VERSION.yml",
|
25
|
-
"gibbler.gemspec",
|
26
|
-
"lib/gibbler.rb",
|
27
|
-
"lib/gibbler/aliases.rb",
|
28
|
-
"lib/gibbler/history.rb",
|
29
|
-
"lib/gibbler/mixins.rb",
|
30
|
-
"try/01_mixins_try.rb",
|
31
|
-
"try/02_compat_try.rb",
|
32
|
-
"try/05_gibbler_digest_try.rb",
|
33
|
-
"try/10_basic_try.rb",
|
34
|
-
"try/11_basic_sha256_try.rb",
|
35
|
-
"try/14_extended_try.rb",
|
36
|
-
"try/15_file_try.rb",
|
37
|
-
"try/16_uri_try.rb",
|
38
|
-
"try/17_complex_object_try.rb",
|
39
|
-
"try/18_proc_try.rb",
|
40
|
-
"try/20_time_try.rb",
|
41
|
-
"try/30_secret_try.rb",
|
42
|
-
"try/50_history_try.rb",
|
43
|
-
"try/51_hash_history_try.rb",
|
44
|
-
"try/52_array_history_try.rb",
|
45
|
-
"try/53_string_history_try.rb",
|
46
|
-
"try/57_arbitrary_history_try.rb",
|
47
|
-
"try/59_history_exceptions_try.rb",
|
48
|
-
"try/80_performance_try.rb",
|
49
|
-
"try/90_alias_try.rb"
|
50
|
-
]
|
51
|
-
s.homepage = "http://github.com/delano/gibbler"
|
52
|
-
s.require_paths = ["lib"]
|
53
|
-
s.rubyforge_project = "gibbler"
|
54
|
-
s.rubygems_version = "1.8.10"
|
55
|
-
s.summary = "Gibbler: Git-like hashes for Ruby objects"
|
56
|
-
|
57
|
-
if s.respond_to? :specification_version then
|
58
|
-
s.specification_version = 3
|
59
|
-
|
60
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
61
|
-
s.add_runtime_dependency(%q<attic>, [">= 0.4.0"])
|
62
|
-
else
|
63
|
-
s.add_dependency(%q<attic>, [">= 0.4.0"])
|
64
|
-
end
|
65
|
-
else
|
66
|
-
s.add_dependency(%q<attic>, [">= 0.4.0"])
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|