activesupport 2.2.3 → 2.3.2

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.

Potentially problematic release.


This version of activesupport might be problematic. Click here for more details.

Files changed (94) hide show
  1. data/CHANGELOG +128 -89
  2. data/lib/active_support.rb +31 -33
  3. data/lib/active_support/backtrace_cleaner.rb +72 -0
  4. data/lib/active_support/buffered_logger.rb +9 -7
  5. data/lib/active_support/cache.rb +13 -8
  6. data/lib/active_support/cache/drb_store.rb +2 -3
  7. data/lib/active_support/cache/mem_cache_store.rb +6 -1
  8. data/lib/active_support/cache/strategy/local_cache.rb +104 -0
  9. data/lib/active_support/callbacks.rb +20 -21
  10. data/lib/active_support/core_ext.rb +1 -1
  11. data/lib/active_support/core_ext/array.rb +2 -0
  12. data/lib/active_support/core_ext/array/conversions.rb +26 -13
  13. data/lib/active_support/core_ext/array/wrapper.rb +24 -0
  14. data/lib/active_support/core_ext/benchmark.rb +13 -6
  15. data/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +14 -5
  16. data/lib/active_support/core_ext/class/attribute_accessors.rb +24 -24
  17. data/lib/active_support/core_ext/class/delegating_attributes.rb +20 -19
  18. data/lib/active_support/core_ext/class/inheritable_attributes.rb +34 -34
  19. data/lib/active_support/core_ext/date/conversions.rb +3 -3
  20. data/lib/active_support/core_ext/date_time/conversions.rb +1 -1
  21. data/lib/active_support/core_ext/enumerable.rb +9 -0
  22. data/lib/active_support/core_ext/exception.rb +12 -8
  23. data/lib/active_support/core_ext/file/atomic.rb +2 -2
  24. data/lib/active_support/core_ext/hash/conversions.rb +32 -54
  25. data/lib/active_support/core_ext/hash/indifferent_access.rb +6 -0
  26. data/lib/active_support/core_ext/hash/keys.rb +1 -1
  27. data/lib/active_support/core_ext/hash/slice.rb +8 -1
  28. data/lib/active_support/core_ext/logger.rb +8 -6
  29. data/lib/active_support/core_ext/module/aliasing.rb +3 -3
  30. data/lib/active_support/core_ext/module/attr_accessor_with_default.rb +4 -4
  31. data/lib/active_support/core_ext/module/attribute_accessors.rb +24 -24
  32. data/lib/active_support/core_ext/module/delegation.rb +29 -3
  33. data/lib/active_support/core_ext/module/synchronization.rb +5 -5
  34. data/lib/active_support/core_ext/object/conversions.rb +2 -1
  35. data/lib/active_support/core_ext/object/misc.rb +16 -0
  36. data/lib/active_support/core_ext/range/conversions.rb +1 -1
  37. data/lib/active_support/core_ext/rexml.rb +29 -24
  38. data/lib/active_support/core_ext/string/inflections.rb +3 -3
  39. data/lib/active_support/core_ext/time/calculations.rb +1 -2
  40. data/lib/active_support/core_ext/time/conversions.rb +1 -1
  41. data/lib/active_support/core_ext/try.rb +36 -0
  42. data/lib/active_support/dependencies.rb +18 -14
  43. data/lib/active_support/deprecation.rb +10 -57
  44. data/lib/active_support/duration.rb +3 -1
  45. data/lib/active_support/inflections.rb +1 -0
  46. data/lib/active_support/inflector.rb +16 -7
  47. data/lib/active_support/json/decoding.rb +21 -3
  48. data/lib/active_support/json/encoders/date.rb +1 -1
  49. data/lib/active_support/json/encoders/date_time.rb +1 -1
  50. data/lib/active_support/json/encoders/hash.rb +10 -11
  51. data/lib/active_support/json/encoders/time.rb +1 -1
  52. data/lib/active_support/json/encoding.rb +23 -29
  53. data/lib/active_support/locale/en.yml +3 -2
  54. data/lib/active_support/memoizable.rb +61 -43
  55. data/lib/active_support/message_encryptor.rb +70 -0
  56. data/lib/active_support/message_verifier.rb +46 -0
  57. data/lib/active_support/multibyte.rb +6 -30
  58. data/lib/active_support/multibyte/chars.rb +30 -9
  59. data/lib/active_support/multibyte/unicode_database.rb +4 -4
  60. data/lib/active_support/option_merger.rb +7 -1
  61. data/lib/active_support/ordered_hash.rb +75 -27
  62. data/lib/active_support/secure_random.rb +8 -6
  63. data/lib/active_support/test_case.rb +32 -17
  64. data/lib/active_support/testing/{core_ext/test/unit/assertions.rb → assertions.rb} +13 -20
  65. data/lib/active_support/testing/declarative.rb +21 -0
  66. data/lib/active_support/testing/deprecation.rb +55 -0
  67. data/lib/active_support/testing/performance.rb +1 -1
  68. data/lib/active_support/testing/setup_and_teardown.rb +57 -86
  69. data/lib/active_support/time_with_zone.rb +8 -6
  70. data/lib/active_support/values/time_zone.rb +1 -0
  71. data/lib/active_support/vendor.rb +6 -11
  72. data/lib/active_support/vendor/i18n-0.1.3/MIT-LICENSE +20 -0
  73. data/lib/active_support/vendor/i18n-0.1.3/README.textile +20 -0
  74. data/lib/active_support/vendor/i18n-0.1.3/Rakefile +5 -0
  75. data/lib/active_support/vendor/i18n-0.1.3/i18n.gemspec +27 -0
  76. data/lib/active_support/vendor/{i18n-0.0.1 → i18n-0.1.3/lib}/i18n.rb +42 -37
  77. data/lib/active_support/vendor/{i18n-0.0.1 → i18n-0.1.3/lib}/i18n/backend/simple.rb +37 -39
  78. data/lib/active_support/vendor/{i18n-0.0.1 → i18n-0.1.3/lib}/i18n/exceptions.rb +3 -3
  79. data/lib/active_support/vendor/i18n-0.1.3/test/all.rb +5 -0
  80. data/lib/active_support/vendor/i18n-0.1.3/test/i18n_exceptions_test.rb +100 -0
  81. data/lib/active_support/vendor/i18n-0.1.3/test/i18n_test.rb +125 -0
  82. data/lib/active_support/vendor/i18n-0.1.3/test/locale/en.rb +1 -0
  83. data/lib/active_support/vendor/i18n-0.1.3/test/locale/en.yml +3 -0
  84. data/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb +568 -0
  85. data/lib/active_support/vendor/{memcache-client-1.5.1 → memcache-client-1.6.5}/memcache.rb +381 -295
  86. data/lib/active_support/version.rb +2 -2
  87. data/lib/active_support/xml_mini.rb +31 -0
  88. data/lib/active_support/xml_mini/libxml.rb +133 -0
  89. data/lib/active_support/xml_mini/nokogiri.rb +77 -0
  90. data/lib/active_support/xml_mini/rexml.rb +108 -0
  91. metadata +85 -14
  92. data/lib/active_support/multibyte/utils.rb +0 -61
  93. data/lib/active_support/testing/core_ext/test.rb +0 -6
  94. data/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb +0 -1021
@@ -1,8 +1,8 @@
1
1
  module ActiveSupport
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 2
4
- MINOR = 2
5
- TINY = 3
4
+ MINOR = 3
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -0,0 +1,31 @@
1
+ module ActiveSupport
2
+ # = XmlMini
3
+ #
4
+ # To use the much faster libxml parser:
5
+ # gem 'libxml-ruby', '=0.9.7'
6
+ # XmlMini.backend = 'LibXML'
7
+ module XmlMini
8
+ extend self
9
+
10
+ attr_reader :backend
11
+ delegate :parse, :to => :backend
12
+
13
+ def backend=(name)
14
+ if name.is_a?(Module)
15
+ @backend = name
16
+ else
17
+ require "active_support/xml_mini/#{name.to_s.downcase}.rb"
18
+ @backend = ActiveSupport.const_get("XmlMini_#{name}")
19
+ end
20
+ end
21
+
22
+ def with_backend(name)
23
+ old_backend, self.backend = backend, name
24
+ yield
25
+ ensure
26
+ self.backend = old_backend
27
+ end
28
+ end
29
+
30
+ XmlMini.backend = 'REXML'
31
+ end
@@ -0,0 +1,133 @@
1
+ require 'libxml'
2
+
3
+ # = XmlMini LibXML implementation
4
+ module ActiveSupport
5
+ module XmlMini_LibXML #:nodoc:
6
+ extend self
7
+
8
+ # Parse an XML Document string into a simple hash using libxml.
9
+ # string::
10
+ # XML Document string to parse
11
+ def parse(string)
12
+ LibXML::XML.default_keep_blanks = false
13
+
14
+ if string.blank?
15
+ {}
16
+ else
17
+ LibXML::XML::Parser.string(string.strip).parse.to_hash
18
+ end
19
+ end
20
+
21
+ end
22
+ end
23
+
24
+ module LibXML
25
+ module Conversions
26
+ module Document
27
+ def to_hash
28
+ root.to_hash
29
+ end
30
+ end
31
+
32
+ module Node
33
+ CONTENT_ROOT = '__content__'
34
+ LIB_XML_LIMIT = 30000000 # Hardcoded LibXML limit
35
+
36
+ # Convert XML document to hash
37
+ #
38
+ # hash::
39
+ # Hash to merge the converted element into.
40
+ def to_hash(hash={})
41
+ if text?
42
+ raise LibXML::XML::Error if content.length >= LIB_XML_LIMIT
43
+ hash[CONTENT_ROOT] = content
44
+ else
45
+ sub_hash = insert_name_into_hash(hash, name)
46
+ attributes_to_hash(sub_hash)
47
+ if array?
48
+ children_array_to_hash(sub_hash)
49
+ elsif yaml?
50
+ children_yaml_to_hash(sub_hash)
51
+ else
52
+ children_to_hash(sub_hash)
53
+ end
54
+ end
55
+ hash
56
+ end
57
+
58
+ protected
59
+
60
+ # Insert name into hash
61
+ #
62
+ # hash::
63
+ # Hash to merge the converted element into.
64
+ # name::
65
+ # name to to merge into hash
66
+ def insert_name_into_hash(hash, name)
67
+ sub_hash = {}
68
+ if hash[name]
69
+ if !hash[name].kind_of? Array
70
+ hash[name] = [hash[name]]
71
+ end
72
+ hash[name] << sub_hash
73
+ else
74
+ hash[name] = sub_hash
75
+ end
76
+ sub_hash
77
+ end
78
+
79
+ # Insert children into hash
80
+ #
81
+ # hash::
82
+ # Hash to merge the children into.
83
+ def children_to_hash(hash={})
84
+ each { |child| child.to_hash(hash) }
85
+ attributes_to_hash(hash)
86
+ hash
87
+ end
88
+
89
+ # Convert xml attributes to hash
90
+ #
91
+ # hash::
92
+ # Hash to merge the attributes into
93
+ def attributes_to_hash(hash={})
94
+ each_attr { |attr| hash[attr.name] = attr.value }
95
+ hash
96
+ end
97
+
98
+ # Convert array into hash
99
+ #
100
+ # hash::
101
+ # Hash to merge the array into
102
+ def children_array_to_hash(hash={})
103
+ hash[child.name] = map do |child|
104
+ returning({}) { |sub_hash| child.children_to_hash(sub_hash) }
105
+ end
106
+ hash
107
+ end
108
+
109
+ # Convert yaml into hash
110
+ #
111
+ # hash::
112
+ # Hash to merge the yaml into
113
+ def children_yaml_to_hash(hash = {})
114
+ hash[CONTENT_ROOT] = content unless content.blank?
115
+ hash
116
+ end
117
+
118
+ # Check if child is of type array
119
+ def array?
120
+ child? && child.next? && child.name == child.next.name
121
+ end
122
+
123
+ # Check if child is of type yaml
124
+ def yaml?
125
+ attributes.collect{|x| x.value}.include?('yaml')
126
+ end
127
+
128
+ end
129
+ end
130
+ end
131
+
132
+ LibXML::XML::Document.send(:include, LibXML::Conversions::Document)
133
+ LibXML::XML::Node.send(:include, LibXML::Conversions::Node)
@@ -0,0 +1,77 @@
1
+ require 'nokogiri'
2
+
3
+ # = XmlMini Nokogiri implementation
4
+ module ActiveSupport
5
+ module XmlMini_Nokogiri #:nodoc:
6
+ extend self
7
+
8
+ # Parse an XML Document string into a simple hash using libxml / nokogiri.
9
+ # string::
10
+ # XML Document string to parse
11
+ def parse(string)
12
+ if string.blank?
13
+ {}
14
+ else
15
+ doc = Nokogiri::XML(string)
16
+ raise doc.errors.first if doc.errors.length > 0
17
+ doc.to_hash
18
+ end
19
+ end
20
+
21
+ module Conversions
22
+ module Document
23
+ def to_hash
24
+ root.to_hash
25
+ end
26
+ end
27
+
28
+ module Node
29
+ CONTENT_ROOT = '__content__'
30
+
31
+ # Convert XML document to hash
32
+ #
33
+ # hash::
34
+ # Hash to merge the converted element into.
35
+ def to_hash(hash = {})
36
+ hash[name] ||= attributes_as_hash
37
+
38
+ walker = lambda { |memo, parent, child, callback|
39
+ next if child.blank? && 'file' != parent['type']
40
+
41
+ if child.text?
42
+ (memo[CONTENT_ROOT] ||= '') << child.content
43
+ next
44
+ end
45
+
46
+ name = child.name
47
+
48
+ child_hash = child.attributes_as_hash
49
+ if memo[name]
50
+ memo[name] = [memo[name]].flatten
51
+ memo[name] << child_hash
52
+ else
53
+ memo[name] = child_hash
54
+ end
55
+
56
+ # Recusively walk children
57
+ child.children.each { |c|
58
+ callback.call(child_hash, child, c, callback)
59
+ }
60
+ }
61
+
62
+ children.each { |c| walker.call(hash[name], self, c, walker) }
63
+ hash
64
+ end
65
+
66
+ def attributes_as_hash
67
+ Hash[*(attribute_nodes.map { |node|
68
+ [node.node_name, node.value]
69
+ }.flatten)]
70
+ end
71
+ end
72
+ end
73
+
74
+ Nokogiri::XML::Document.send(:include, Conversions::Document)
75
+ Nokogiri::XML::Node.send(:include, Conversions::Node)
76
+ end
77
+ end
@@ -0,0 +1,108 @@
1
+ # = XmlMini ReXML implementation
2
+ module ActiveSupport
3
+ module XmlMini_REXML #:nodoc:
4
+ extend self
5
+
6
+ CONTENT_KEY = '__content__'.freeze
7
+
8
+ # Parse an XML Document string into a simple hash
9
+ #
10
+ # Same as XmlSimple::xml_in but doesn't shoot itself in the foot,
11
+ # and uses the defaults from ActiveSupport
12
+ #
13
+ # string::
14
+ # XML Document string to parse
15
+ def parse(string)
16
+ require 'rexml/document' unless defined?(REXML::Document)
17
+ doc = REXML::Document.new(string)
18
+ merge_element!({}, doc.root)
19
+ end
20
+
21
+ private
22
+ # Convert an XML element and merge into the hash
23
+ #
24
+ # hash::
25
+ # Hash to merge the converted element into.
26
+ # element::
27
+ # XML element to merge into hash
28
+ def merge_element!(hash, element)
29
+ merge!(hash, element.name, collapse(element))
30
+ end
31
+
32
+ # Actually converts an XML document element into a data structure.
33
+ #
34
+ # element::
35
+ # The document element to be collapsed.
36
+ def collapse(element)
37
+ hash = get_attributes(element)
38
+
39
+ if element.has_elements?
40
+ element.each_element {|child| merge_element!(hash, child) }
41
+ merge_texts!(hash, element) unless empty_content?(element)
42
+ hash
43
+ else
44
+ merge_texts!(hash, element)
45
+ end
46
+ end
47
+
48
+ # Merge all the texts of an element into the hash
49
+ #
50
+ # hash::
51
+ # Hash to add the converted emement to.
52
+ # element::
53
+ # XML element whose texts are to me merged into the hash
54
+ def merge_texts!(hash, element)
55
+ unless element.has_text?
56
+ hash
57
+ else
58
+ # must use value to prevent double-escaping
59
+ merge!(hash, CONTENT_KEY, element.texts.sum(&:value))
60
+ end
61
+ end
62
+
63
+ # Adds a new key/value pair to an existing Hash. If the key to be added
64
+ # already exists and the existing value associated with key is not
65
+ # an Array, it will be wrapped in an Array. Then the new value is
66
+ # appended to that Array.
67
+ #
68
+ # hash::
69
+ # Hash to add key/value pair to.
70
+ # key::
71
+ # Key to be added.
72
+ # value::
73
+ # Value to be associated with key.
74
+ def merge!(hash, key, value)
75
+ if hash.has_key?(key)
76
+ if hash[key].instance_of?(Array)
77
+ hash[key] << value
78
+ else
79
+ hash[key] = [hash[key], value]
80
+ end
81
+ elsif value.instance_of?(Array)
82
+ hash[key] = [value]
83
+ else
84
+ hash[key] = value
85
+ end
86
+ hash
87
+ end
88
+
89
+ # Converts the attributes array of an XML element into a hash.
90
+ # Returns an empty Hash if node has no attributes.
91
+ #
92
+ # element::
93
+ # XML element to extract attributes from.
94
+ def get_attributes(element)
95
+ attributes = {}
96
+ element.attributes.each { |n,v| attributes[n] = v }
97
+ attributes
98
+ end
99
+
100
+ # Determines if a document element has text content
101
+ #
102
+ # element::
103
+ # XML element to be checked.
104
+ def empty_content?(element)
105
+ element.texts.join.blank?
106
+ end
107
+ end
108
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activesupport
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-28 00:00:00 +13:00
12
+ date: 2009-03-15 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -24,51 +24,68 @@ extra_rdoc_files: []
24
24
  files:
25
25
  - CHANGELOG
26
26
  - README
27
+ - lib/active_support
28
+ - lib/active_support/backtrace_cleaner.rb
27
29
  - lib/active_support/base64.rb
28
30
  - lib/active_support/basic_object.rb
29
31
  - lib/active_support/buffered_logger.rb
32
+ - lib/active_support/cache
30
33
  - lib/active_support/cache/compressed_mem_cache_store.rb
31
34
  - lib/active_support/cache/drb_store.rb
32
35
  - lib/active_support/cache/file_store.rb
33
36
  - lib/active_support/cache/mem_cache_store.rb
34
37
  - lib/active_support/cache/memory_store.rb
38
+ - lib/active_support/cache/strategy
39
+ - lib/active_support/cache/strategy/local_cache.rb
35
40
  - lib/active_support/cache/synchronized_memory_store.rb
36
41
  - lib/active_support/cache.rb
37
42
  - lib/active_support/callbacks.rb
43
+ - lib/active_support/core_ext
44
+ - lib/active_support/core_ext/array
38
45
  - lib/active_support/core_ext/array/access.rb
39
46
  - lib/active_support/core_ext/array/conversions.rb
40
47
  - lib/active_support/core_ext/array/extract_options.rb
41
48
  - lib/active_support/core_ext/array/grouping.rb
42
49
  - lib/active_support/core_ext/array/random_access.rb
50
+ - lib/active_support/core_ext/array/wrapper.rb
43
51
  - lib/active_support/core_ext/array.rb
52
+ - lib/active_support/core_ext/base64
44
53
  - lib/active_support/core_ext/base64/encoding.rb
45
54
  - lib/active_support/core_ext/base64.rb
46
55
  - lib/active_support/core_ext/benchmark.rb
56
+ - lib/active_support/core_ext/bigdecimal
47
57
  - lib/active_support/core_ext/bigdecimal/conversions.rb
48
58
  - lib/active_support/core_ext/bigdecimal.rb
49
59
  - lib/active_support/core_ext/blank.rb
60
+ - lib/active_support/core_ext/cgi
50
61
  - lib/active_support/core_ext/cgi/escape_skipping_slashes.rb
51
62
  - lib/active_support/core_ext/cgi.rb
63
+ - lib/active_support/core_ext/class
52
64
  - lib/active_support/core_ext/class/attribute_accessors.rb
53
65
  - lib/active_support/core_ext/class/delegating_attributes.rb
54
66
  - lib/active_support/core_ext/class/inheritable_attributes.rb
55
67
  - lib/active_support/core_ext/class/removal.rb
56
68
  - lib/active_support/core_ext/class.rb
69
+ - lib/active_support/core_ext/date
57
70
  - lib/active_support/core_ext/date/behavior.rb
58
71
  - lib/active_support/core_ext/date/calculations.rb
59
72
  - lib/active_support/core_ext/date/conversions.rb
60
73
  - lib/active_support/core_ext/date.rb
74
+ - lib/active_support/core_ext/date_time
61
75
  - lib/active_support/core_ext/date_time/calculations.rb
62
76
  - lib/active_support/core_ext/date_time/conversions.rb
63
77
  - lib/active_support/core_ext/date_time.rb
64
78
  - lib/active_support/core_ext/duplicable.rb
65
79
  - lib/active_support/core_ext/enumerable.rb
66
80
  - lib/active_support/core_ext/exception.rb
81
+ - lib/active_support/core_ext/file
67
82
  - lib/active_support/core_ext/file/atomic.rb
68
83
  - lib/active_support/core_ext/file.rb
84
+ - lib/active_support/core_ext/float
69
85
  - lib/active_support/core_ext/float/rounding.rb
70
86
  - lib/active_support/core_ext/float/time.rb
71
87
  - lib/active_support/core_ext/float.rb
88
+ - lib/active_support/core_ext/hash
72
89
  - lib/active_support/core_ext/hash/conversions.rb
73
90
  - lib/active_support/core_ext/hash/deep_merge.rb
74
91
  - lib/active_support/core_ext/hash/diff.rb
@@ -78,10 +95,12 @@ files:
78
95
  - lib/active_support/core_ext/hash/reverse_merge.rb
79
96
  - lib/active_support/core_ext/hash/slice.rb
80
97
  - lib/active_support/core_ext/hash.rb
98
+ - lib/active_support/core_ext/integer
81
99
  - lib/active_support/core_ext/integer/even_odd.rb
82
100
  - lib/active_support/core_ext/integer/inflections.rb
83
101
  - lib/active_support/core_ext/integer/time.rb
84
102
  - lib/active_support/core_ext/integer.rb
103
+ - lib/active_support/core_ext/kernel
85
104
  - lib/active_support/core_ext/kernel/agnostics.rb
86
105
  - lib/active_support/core_ext/kernel/daemonizing.rb
87
106
  - lib/active_support/core_ext/kernel/debugger.rb
@@ -90,6 +109,7 @@ files:
90
109
  - lib/active_support/core_ext/kernel.rb
91
110
  - lib/active_support/core_ext/load_error.rb
92
111
  - lib/active_support/core_ext/logger.rb
112
+ - lib/active_support/core_ext/module
93
113
  - lib/active_support/core_ext/module/aliasing.rb
94
114
  - lib/active_support/core_ext/module/attr_accessor_with_default.rb
95
115
  - lib/active_support/core_ext/module/attr_internal.rb
@@ -102,27 +122,33 @@ files:
102
122
  - lib/active_support/core_ext/module/synchronization.rb
103
123
  - lib/active_support/core_ext/module.rb
104
124
  - lib/active_support/core_ext/name_error.rb
125
+ - lib/active_support/core_ext/numeric
105
126
  - lib/active_support/core_ext/numeric/bytes.rb
106
127
  - lib/active_support/core_ext/numeric/conversions.rb
107
128
  - lib/active_support/core_ext/numeric/time.rb
108
129
  - lib/active_support/core_ext/numeric.rb
130
+ - lib/active_support/core_ext/object
109
131
  - lib/active_support/core_ext/object/conversions.rb
110
132
  - lib/active_support/core_ext/object/extending.rb
111
133
  - lib/active_support/core_ext/object/instance_variables.rb
112
134
  - lib/active_support/core_ext/object/metaclass.rb
113
135
  - lib/active_support/core_ext/object/misc.rb
114
136
  - lib/active_support/core_ext/object.rb
137
+ - lib/active_support/core_ext/pathname
115
138
  - lib/active_support/core_ext/pathname/clean_within.rb
116
139
  - lib/active_support/core_ext/pathname.rb
117
140
  - lib/active_support/core_ext/proc.rb
141
+ - lib/active_support/core_ext/process
118
142
  - lib/active_support/core_ext/process/daemon.rb
119
143
  - lib/active_support/core_ext/process.rb
144
+ - lib/active_support/core_ext/range
120
145
  - lib/active_support/core_ext/range/blockless_step.rb
121
146
  - lib/active_support/core_ext/range/conversions.rb
122
147
  - lib/active_support/core_ext/range/include_range.rb
123
148
  - lib/active_support/core_ext/range/overlaps.rb
124
149
  - lib/active_support/core_ext/range.rb
125
150
  - lib/active_support/core_ext/rexml.rb
151
+ - lib/active_support/core_ext/string
126
152
  - lib/active_support/core_ext/string/access.rb
127
153
  - lib/active_support/core_ext/string/behavior.rb
128
154
  - lib/active_support/core_ext/string/conversions.rb
@@ -134,11 +160,13 @@ files:
134
160
  - lib/active_support/core_ext/string/xchar.rb
135
161
  - lib/active_support/core_ext/string.rb
136
162
  - lib/active_support/core_ext/symbol.rb
163
+ - lib/active_support/core_ext/time
137
164
  - lib/active_support/core_ext/time/behavior.rb
138
165
  - lib/active_support/core_ext/time/calculations.rb
139
166
  - lib/active_support/core_ext/time/conversions.rb
140
167
  - lib/active_support/core_ext/time/zones.rb
141
168
  - lib/active_support/core_ext/time.rb
169
+ - lib/active_support/core_ext/try.rb
142
170
  - lib/active_support/core_ext/uri.rb
143
171
  - lib/active_support/core_ext.rb
144
172
  - lib/active_support/dependencies.rb
@@ -147,7 +175,9 @@ files:
147
175
  - lib/active_support/gzip.rb
148
176
  - lib/active_support/inflections.rb
149
177
  - lib/active_support/inflector.rb
178
+ - lib/active_support/json
150
179
  - lib/active_support/json/decoding.rb
180
+ - lib/active_support/json/encoders
151
181
  - lib/active_support/json/encoders/date.rb
152
182
  - lib/active_support/json/encoders/date_time.rb
153
183
  - lib/active_support/json/encoders/enumerable.rb
@@ -164,12 +194,15 @@ files:
164
194
  - lib/active_support/json/encoding.rb
165
195
  - lib/active_support/json/variable.rb
166
196
  - lib/active_support/json.rb
197
+ - lib/active_support/locale
167
198
  - lib/active_support/locale/en.yml
168
199
  - lib/active_support/memoizable.rb
200
+ - lib/active_support/message_encryptor.rb
201
+ - lib/active_support/message_verifier.rb
202
+ - lib/active_support/multibyte
169
203
  - lib/active_support/multibyte/chars.rb
170
204
  - lib/active_support/multibyte/exceptions.rb
171
205
  - lib/active_support/multibyte/unicode_database.rb
172
- - lib/active_support/multibyte/utils.rb
173
206
  - lib/active_support/multibyte.rb
174
207
  - lib/active_support/option_merger.rb
175
208
  - lib/active_support/ordered_hash.rb
@@ -178,15 +211,21 @@ files:
178
211
  - lib/active_support/secure_random.rb
179
212
  - lib/active_support/string_inquirer.rb
180
213
  - lib/active_support/test_case.rb
181
- - lib/active_support/testing/core_ext/test/unit/assertions.rb
182
- - lib/active_support/testing/core_ext/test.rb
214
+ - lib/active_support/testing
215
+ - lib/active_support/testing/assertions.rb
216
+ - lib/active_support/testing/declarative.rb
183
217
  - lib/active_support/testing/default.rb
218
+ - lib/active_support/testing/deprecation.rb
184
219
  - lib/active_support/testing/performance.rb
185
220
  - lib/active_support/testing/setup_and_teardown.rb
186
221
  - lib/active_support/time_with_zone.rb
222
+ - lib/active_support/values
187
223
  - lib/active_support/values/time_zone.rb
188
224
  - lib/active_support/values/unicode_tables.dat
225
+ - lib/active_support/vendor
226
+ - lib/active_support/vendor/builder-2.1.2
189
227
  - lib/active_support/vendor/builder-2.1.2/blankslate.rb
228
+ - lib/active_support/vendor/builder-2.1.2/builder
190
229
  - lib/active_support/vendor/builder-2.1.2/builder/blankslate.rb
191
230
  - lib/active_support/vendor/builder-2.1.2/builder/css.rb
192
231
  - lib/active_support/vendor/builder-2.1.2/builder/xchar.rb
@@ -194,12 +233,33 @@ files:
194
233
  - lib/active_support/vendor/builder-2.1.2/builder/xmlevents.rb
195
234
  - lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb
196
235
  - lib/active_support/vendor/builder-2.1.2/builder.rb
197
- - lib/active_support/vendor/i18n-0.0.1/i18n/backend/simple.rb
198
- - lib/active_support/vendor/i18n-0.0.1/i18n/exceptions.rb
199
- - lib/active_support/vendor/i18n-0.0.1/i18n.rb
200
- - lib/active_support/vendor/memcache-client-1.5.1/memcache.rb
236
+ - lib/active_support/vendor/i18n-0.1.3
237
+ - lib/active_support/vendor/i18n-0.1.3/i18n.gemspec
238
+ - lib/active_support/vendor/i18n-0.1.3/lib
239
+ - lib/active_support/vendor/i18n-0.1.3/lib/i18n
240
+ - lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend
241
+ - lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb
242
+ - lib/active_support/vendor/i18n-0.1.3/lib/i18n/exceptions.rb
243
+ - lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb
244
+ - lib/active_support/vendor/i18n-0.1.3/MIT-LICENSE
245
+ - lib/active_support/vendor/i18n-0.1.3/Rakefile
246
+ - lib/active_support/vendor/i18n-0.1.3/README.textile
247
+ - lib/active_support/vendor/i18n-0.1.3/test
248
+ - lib/active_support/vendor/i18n-0.1.3/test/all.rb
249
+ - lib/active_support/vendor/i18n-0.1.3/test/i18n_exceptions_test.rb
250
+ - lib/active_support/vendor/i18n-0.1.3/test/i18n_test.rb
251
+ - lib/active_support/vendor/i18n-0.1.3/test/locale
252
+ - lib/active_support/vendor/i18n-0.1.3/test/locale/en.rb
253
+ - lib/active_support/vendor/i18n-0.1.3/test/locale/en.yml
254
+ - lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb
255
+ - lib/active_support/vendor/memcache-client-1.6.5
256
+ - lib/active_support/vendor/memcache-client-1.6.5/memcache.rb
257
+ - lib/active_support/vendor/tzinfo-0.3.12
258
+ - lib/active_support/vendor/tzinfo-0.3.12/tzinfo
201
259
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone.rb
202
260
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/data_timezone_info.rb
261
+ - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions
262
+ - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa
203
263
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Algiers.rb
204
264
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Cairo.rb
205
265
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Casablanca.rb
@@ -207,6 +267,8 @@ files:
207
267
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Johannesburg.rb
208
268
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Monrovia.rb
209
269
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Africa/Nairobi.rb
270
+ - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America
271
+ - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina
210
272
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina/Buenos_Aires.rb
211
273
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Argentina/San_Juan.rb
212
274
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Bogota.rb
@@ -217,6 +279,7 @@ files:
217
279
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Godthab.rb
218
280
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Guatemala.rb
219
281
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Halifax.rb
282
+ - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Indiana
220
283
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Indiana/Indianapolis.rb
221
284
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Juneau.rb
222
285
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/La_Paz.rb
@@ -232,6 +295,7 @@ files:
232
295
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Sao_Paulo.rb
233
296
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/St_Johns.rb
234
297
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/America/Tijuana.rb
298
+ - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia
235
299
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Almaty.rb
236
300
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Baghdad.rb
237
301
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Baku.rb
@@ -270,9 +334,11 @@ files:
270
334
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yakutsk.rb
271
335
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yekaterinburg.rb
272
336
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Asia/Yerevan.rb
337
+ - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic
273
338
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/Azores.rb
274
339
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/Cape_Verde.rb
275
340
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Atlantic/South_Georgia.rb
341
+ - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia
276
342
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Adelaide.rb
277
343
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Brisbane.rb
278
344
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Darwin.rb
@@ -280,7 +346,9 @@ files:
280
346
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Melbourne.rb
281
347
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Perth.rb
282
348
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Australia/Sydney.rb
349
+ - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Etc
283
350
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Etc/UTC.rb
351
+ - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe
284
352
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Amsterdam.rb
285
353
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Athens.rb
286
354
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Belgrade.rb
@@ -313,6 +381,7 @@ files:
313
381
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Vilnius.rb
314
382
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Warsaw.rb
315
383
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Europe/Zagreb.rb
384
+ - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific
316
385
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Auckland.rb
317
386
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Fiji.rb
318
387
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/definitions/Pacific/Guam.rb
@@ -336,16 +405,18 @@ files:
336
405
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_period.rb
337
406
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_transition_info.rb
338
407
  - lib/active_support/vendor/tzinfo-0.3.12/tzinfo.rb
339
- - lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb
340
408
  - lib/active_support/vendor.rb
341
409
  - lib/active_support/version.rb
342
410
  - lib/active_support/whiny_nil.rb
411
+ - lib/active_support/xml_mini
412
+ - lib/active_support/xml_mini/libxml.rb
413
+ - lib/active_support/xml_mini/nokogiri.rb
414
+ - lib/active_support/xml_mini/rexml.rb
415
+ - lib/active_support/xml_mini.rb
343
416
  - lib/active_support.rb
344
417
  - lib/activesupport.rb
345
418
  has_rdoc: true
346
419
  homepage: http://www.rubyonrails.org
347
- licenses: []
348
-
349
420
  post_install_message:
350
421
  rdoc_options: []
351
422
 
@@ -366,9 +437,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
366
437
  requirements: []
367
438
 
368
439
  rubyforge_project: activesupport
369
- rubygems_version: 1.3.2
440
+ rubygems_version: 1.3.1
370
441
  signing_key:
371
- specification_version: 3
442
+ specification_version: 2
372
443
  summary: Support and utility classes used by the Rails framework.
373
444
  test_files: []
374
445