fixjour 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,8 @@
1
- class Object
2
- def tap
3
- yield self
4
- self
1
+ unless respond_to?(:tap)
2
+ class Object
3
+ def tap
4
+ yield self
5
+ self
6
+ end
5
7
  end
6
- end
8
+ end
@@ -7,7 +7,7 @@ module Fixjour
7
7
  end
8
8
 
9
9
  def name
10
- @name ||= (@options[:as] || @klass.name.underscore).to_s
10
+ @name ||= (@options[:as] || @klass.name.underscore).to_s.gsub(/\W+/, '_')
11
11
  end
12
12
 
13
13
  def eql?(other)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixjour
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Nakajima
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  requirements: []
90
90
 
91
91
  rubyforge_project:
92
- rubygems_version: 1.3.3
92
+ rubygems_version: 1.3.5
93
93
  signing_key:
94
94
  specification_version: 2
95
95
  summary: Object creation methods everyone already has