activesupport 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activesupport might be problematic. Click here for more details.
- data/CHANGELOG +14 -0
- data/lib/active_support/core_ext/kernel.rb +17 -0
- metadata +4 -3
data/CHANGELOG
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
*1.0.2*
|
2
|
+
|
3
|
+
* Added Kernel#returning -- a Ruby-ized realization of the K combinator, courtesy of Mikael Brockman.
|
4
|
+
|
5
|
+
def foo
|
6
|
+
returning values = [] do
|
7
|
+
values << 'bar'
|
8
|
+
values << 'baz'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
foo # => ['bar', 'baz']
|
13
|
+
|
14
|
+
|
1
15
|
*1.0.1* (7th March, 2005)
|
2
16
|
|
3
17
|
* Fixed Hash#indifferent_access to also deal with include? and fetch and nested hashes #726 [Nicholas Seckar]
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Kernel
|
2
|
+
# A Ruby-ized realization of the K combinator, courtesy of Mikael Brockman.
|
3
|
+
#
|
4
|
+
# def foo
|
5
|
+
# returning values = [] do
|
6
|
+
# values << 'bar'
|
7
|
+
# values << 'baz'
|
8
|
+
# end
|
9
|
+
# end
|
10
|
+
#
|
11
|
+
# foo # => ['bar', 'baz']
|
12
|
+
#
|
13
|
+
def returning(value) #:nodoc:
|
14
|
+
yield
|
15
|
+
value
|
16
|
+
end
|
17
|
+
end
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.8
|
3
3
|
specification_version: 1
|
4
4
|
name: activesupport
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2005-03-
|
6
|
+
version: 1.0.2
|
7
|
+
date: 2005-03-22
|
8
8
|
summary: Support and utility classes used by the Rails framework.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -46,6 +46,7 @@ files:
|
|
46
46
|
- lib/active_support/core_ext/date.rb
|
47
47
|
- lib/active_support/core_ext/hash
|
48
48
|
- lib/active_support/core_ext/hash.rb
|
49
|
+
- lib/active_support/core_ext/kernel.rb
|
49
50
|
- lib/active_support/core_ext/numeric
|
50
51
|
- lib/active_support/core_ext/numeric.rb
|
51
52
|
- lib/active_support/core_ext/object_and_class.rb
|