towsta 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,7 @@ module Towsta
10
10
  return [] if !!(@content =~ /[^0-9 ]/)
11
11
  aux = []
12
12
  @content.to_s.split(' ').each do |i|
13
- Vertical.all.each do |v|
13
+ Towsta::Core.subclasses.each do |v|
14
14
  horizontal = v.find_by_id i.to_i
15
15
  aux << horizontal if horizontal
16
16
  end
@@ -6,7 +6,7 @@ module Towsta
6
6
  def get
7
7
  return nil unless @content
8
8
  return @content if @content.class != Fixnum
9
- Vertical.all.each do |v|
9
+ Towsta::Core.subclasses.each do |v|
10
10
  horizontal = v.find_by_id @content
11
11
  if horizontal
12
12
  @content = horizontal
@@ -18,17 +18,17 @@ module Towsta
18
18
 
19
19
  def set content
20
20
  return @content = nil if !!(content =~ /[^0-9]/)
21
- return @content = content if Vertical.all.include? content.class
21
+ return @content = content if Towsta::Core.subclasses.include? content.class
22
22
  @content = content.to_i
23
23
  end
24
24
 
25
25
  def compare object
26
- self.get.id.to_i == object.id.to_i if Vertical.all.include? object.class
26
+ self.get.id.to_i == object.id.to_i if Towsta::Core.subclasses.include? object.class
27
27
  self.get == object
28
28
  end
29
29
 
30
30
  def export
31
- return @content.id.to_s if Vertical.all.include? self.get.class
31
+ return @content.id.to_s if Towsta::Core.subclasses.include? self.get.class
32
32
  @content.to_s
33
33
  end
34
34
 
@@ -1,3 +1,3 @@
1
1
  module Towsta
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: towsta
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-27 00:00:00.000000000 Z
12
+ date: 2012-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bresson
16
- requirement: &26972220 !ruby/object:Gem::Requirement
16
+ requirement: &27515640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *26972220
24
+ version_requirements: *27515640
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: cameraman
27
- requirement: &26971752 !ruby/object:Gem::Requirement
27
+ requirement: &27515280 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *26971752
35
+ version_requirements: *27515280
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &26971236 !ruby/object:Gem::Requirement
38
+ requirement: &27514788 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *26971236
46
+ version_requirements: *27514788
47
47
  description: Simply integrates the Towsta api
48
48
  email:
49
49
  - mortaro@towsta.com