gibbler 0.8.9 → 0.8.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGES.txt +4 -0
  2. data/VERSION.yml +1 -1
  3. data/gibbler.gemspec +40 -41
  4. data/lib/gibbler.rb +9 -1
  5. metadata +5 -7
data/CHANGES.txt CHANGED
@@ -1,5 +1,9 @@
1
1
  GIBBLER, CHANGES
2
2
 
3
+ #### 0.8.10 (2011-10-23) ###############################
4
+
5
+ * CHANGE: Gibbler::Hash and Gibbler::Array now skip values that have no __gibbler method
6
+
3
7
  #### 0.8.9 (2011-02-11) ###############################
4
8
 
5
9
  * FIXED: Remove debug output.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :MAJOR: 0
3
3
  :MINOR: 8
4
- :PATCH: 9
4
+ :PATCH: 10
data/gibbler.gemspec CHANGED
@@ -1,59 +1,58 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{gibbler}
8
- s.version = "0.8.9"
7
+ s.name = "gibbler"
8
+ s.version = "0.8.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Delano Mandelbaum"]
12
- s.date = %q{2011-02-11}
13
- s.description = %q{Gibbler: Git-like hashes for Ruby objects}
14
- s.email = %q{delano@solutious.com}
12
+ s.date = "2011-10-23"
13
+ s.description = "Gibbler: Git-like hashes for Ruby objects"
14
+ s.email = "delano@solutious.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
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"
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
50
  ]
51
- s.homepage = %q{http://github.com/delano/gibbler}
52
- s.rdoc_options = ["--charset=UTF-8"]
51
+ s.homepage = "http://github.com/delano/gibbler"
53
52
  s.require_paths = ["lib"]
54
- s.rubyforge_project = %q{gibbler}
55
- s.rubygems_version = %q{1.5.2}
56
- s.summary = %q{Gibbler: Git-like hashes for Ruby objects}
53
+ s.rubyforge_project = "gibbler"
54
+ s.rubygems_version = "1.8.10"
55
+ s.summary = "Gibbler: Git-like hashes for Ruby objects"
57
56
 
58
57
  if s.respond_to? :specification_version then
59
58
  s.specification_version = 3
data/lib/gibbler.rb CHANGED
@@ -411,6 +411,10 @@ module Gibbler
411
411
  d = self.keys.sort { |a,b| a.inspect <=> b.inspect }
412
412
  d.collect! do |name|
413
413
  value = self[name]
414
+ unless value.respond_to? :__gibbler
415
+ gibbler_debug klass, :skipping, name
416
+ next
417
+ end
414
418
  '%s:%s:%s' % [value.class, name, value.__gibbler(digest_type)]
415
419
  end
416
420
  d = d.join(':').__gibbler(digest_type)
@@ -449,7 +453,11 @@ module Gibbler
449
453
  def __gibbler(digest_type=nil)
450
454
  klass = self.class
451
455
  d, index = [], 0
452
- self.each do |value|
456
+ self.each_with_index do |value,idx|
457
+ unless value.respond_to? :__gibbler
458
+ gibbler_debug klass, :skipping, idx
459
+ next
460
+ end
453
461
  d << '%s:%s:%s' % [value.class, index, value.__gibbler(digest_type)]
454
462
  index += 1
455
463
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gibbler
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.9
5
+ version: 0.8.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - Delano Mandelbaum
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-11 00:00:00 -05:00
14
- default_executable:
13
+ date: 2011-10-23 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: attic
@@ -64,13 +63,12 @@ files:
64
63
  - try/59_history_exceptions_try.rb
65
64
  - try/80_performance_try.rb
66
65
  - try/90_alias_try.rb
67
- has_rdoc: true
68
66
  homepage: http://github.com/delano/gibbler
69
67
  licenses: []
70
68
 
71
69
  post_install_message:
72
- rdoc_options:
73
- - --charset=UTF-8
70
+ rdoc_options: []
71
+
74
72
  require_paths:
75
73
  - lib
76
74
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -88,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
86
  requirements: []
89
87
 
90
88
  rubyforge_project: gibbler
91
- rubygems_version: 1.5.2
89
+ rubygems_version: 1.8.10
92
90
  signing_key:
93
91
  specification_version: 3
94
92
  summary: "Gibbler: Git-like hashes for Ruby objects"