appraisal 2.1.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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