objects_extensions 0.3.2 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.4.0
@@ -1,4 +1,5 @@
1
1
  Hash.class_eval do
2
+
2
3
  def without_id
3
4
  self.delete_if {|key,val| key == "id" or key == :id}
4
5
  end
@@ -7,4 +8,11 @@ Hash.class_eval do
7
8
  args.each { |arg| self.delete_if {|k,v| k == arg.to_sym or k == arg.to_s} }
8
9
  self
9
10
  end
11
+
12
+ def to_ordered_hash
13
+ oh = ActiveSupport::OrderedHash.new
14
+ each {|k,v| oh[k]=v }
15
+ oh
16
+ end
17
+
10
18
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{objects_extensions}
8
- s.version = "0.3.2"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jduarte"]
12
- s.date = %q{2010-07-22}
12
+ s.date = %q{2010-08-11}
13
13
  s.description = %q{Convenience Methods}
14
14
  s.email = %q{jose.fduarte@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: objects_extensions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 3
9
- - 2
10
- version: 0.3.2
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - jduarte
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-22 00:00:00 +01:00
18
+ date: 2010-08-11 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency