towsta 2.0.8 → 2.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,6 +21,10 @@ module Towsta
21
21
  self.get == object
22
22
  end
23
23
 
24
+ def compare_parameterized object
25
+ self.get.to_s.parameterize == object.to_s.parameterize
26
+ end
27
+
24
28
  def export
25
29
  @content.to_s
26
30
  end
@@ -1,3 +1,3 @@
1
1
  module Towsta
2
- VERSION = "2.0.8"
2
+ VERSION = "2.0.9"
3
3
  end
@@ -47,6 +47,11 @@ module Towsta
47
47
  nil
48
48
  end
49
49
 
50
+ def self.find_by_parameterized_#{attr} value
51
+ self.all.each { |horizontal| return horizontal if horizontal.object_of_#{attr}.compare_parameterized value }
52
+ nil
53
+ end
54
+
50
55
  def self.find_all_by_#{attr} value
51
56
  self.all.select { |horizontal| horizontal.object_of_#{attr}.compare value }
52
57
  end
data/towsta.gemspec CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  s.add_development_dependency 'shotgun'
34
34
  s.add_development_dependency 'heroku'
35
35
 
36
- s.add_dependency "therubyracer" if !!s.platform.match("win")
36
+ s.add_dependency "therubyracer" if true#!!s.platform.match("win32")
37
37
 
38
38
  s.files = `git ls-files`.split("\n")
39
39
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 0
8
- - 8
9
- version: 2.0.8
8
+ - 9
9
+ version: 2.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mortaro
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-02-16 00:00:00 -02:00
17
+ date: 2012-03-06 00:00:00 -03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -212,6 +212,19 @@ dependencies:
212
212
  version: "0"
213
213
  type: :development
214
214
  version_requirements: *id015
215
+ - !ruby/object:Gem::Dependency
216
+ name: therubyracer
217
+ prerelease: false
218
+ requirement: &id016 !ruby/object:Gem::Requirement
219
+ none: false
220
+ requirements:
221
+ - - ">="
222
+ - !ruby/object:Gem::Version
223
+ segments:
224
+ - 0
225
+ version: "0"
226
+ type: :runtime
227
+ version_requirements: *id016
215
228
  description: Simply integrates the towsta api
216
229
  email:
217
230
  - mortaro@towsta.com