appraisal 2.1.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +0,0 @@
1
- module Appraisal
2
- # An ordered hash implementation for Ruby 1.8.7 compatibility. This is not
3
- # a complete implementation, but it covers Appraisal's specific needs.
4
- class OrderedHash < ::Hash
5
- # Hashes are ordered in Ruby 1.9.
6
- if RUBY_VERSION < '1.9'
7
- def initialize(*args, &block)
8
- super
9
- @keys = []
10
- end
11
-
12
- def []=(key, value)
13
- @keys << key unless has_key?(key)
14
- super
15
- end
16
-
17
- def values
18
- @keys.collect { |key| self[key] }
19
- end
20
- end
21
- end
22
- end