towsta 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/towsta/kinds/multiple.rb +1 -1
- data/lib/towsta/kinds/vertical.rb +4 -4
- data/lib/towsta/version.rb +1 -1
- metadata +8 -8
@@ -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
|
-
|
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
|
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
|
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
|
31
|
+
return @content.id.to_s if Towsta::Core.subclasses.include? self.get.class
|
32
32
|
@content.to_s
|
33
33
|
end
|
34
34
|
|
data/lib/towsta/version.rb
CHANGED
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.
|
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-
|
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: &
|
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: *
|
24
|
+
version_requirements: *27515640
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: cameraman
|
27
|
-
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: *
|
35
|
+
version_requirements: *27515280
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
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: *
|
46
|
+
version_requirements: *27514788
|
47
47
|
description: Simply integrates the Towsta api
|
48
48
|
email:
|
49
49
|
- mortaro@towsta.com
|