tgios 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/lib/tgios/image_loader.rb +11 -0
- data/lib/tgios/ui_table_view_model_binding.rb +1 -1
- data/lib/tgios/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2JiNDk5ZThjZDgxYTA4MzdjY2VhYzFkYmM3NjBkZDQ5YjRhNzlhMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZjZhM2ExZTRhYWVmMjkyZTFjNTg3MTg3NGYyMTM1NDBjYmZiNzdkOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTM1YWU4MjM4MmVjZDNjMDQ5NDA0N2RlMDNlZmRkMTkzODY1ZGMxNmQ4ZmU3
|
10
|
+
NDllM2Y3MTQxNDk2M2Y2ODk3YjMxNWEwNDExMjgzMDk2Y2ZlMTkyYWRmYjdl
|
11
|
+
MjJlMGM2ODkyMTk2MTExZTc1MjVhZmNkYWVmOTRkYTIxMmUwNTg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTkzMjBiNWU3Y2UzNzMyNGQyZGZlMjliNjQ2NmNjZmFlMDIxY2JlNjExYmE3
|
14
|
+
Njk3MTVhZGZhYWMwM2E4ODYzODRiNzdiY2M2MmYzNjI3ODIyZGEyNzJiMGZj
|
15
|
+
YjBkMGI4MDZhOGIxMmM5NDUyMWQ3NTZlODA2NmI2MmM2ZDU5MzA=
|
data/Gemfile.lock
CHANGED
data/lib/tgios/image_loader.rb
CHANGED
@@ -57,6 +57,17 @@ module Tgios
|
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
+
def self.load_url(url, &block)
|
61
|
+
unless url.nil?
|
62
|
+
image_loader = ImageLoader.new(url)
|
63
|
+
image_loader.on(:image_loaded) do |image, success|
|
64
|
+
block.call(image, success)
|
65
|
+
image_loader.prepareForRelease
|
66
|
+
end
|
67
|
+
image_loader.load
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
60
71
|
def onPrepareForRelease
|
61
72
|
@events = nil
|
62
73
|
end
|
@@ -229,11 +229,11 @@ module Tgios
|
|
229
229
|
|
230
230
|
def tableView(tableView, heightForRowAtIndexPath: index_path)
|
231
231
|
field_set = field_set_at_index_path(index_path)
|
232
|
-
field_set = field_set[:child_field] unless field_set[:child_index].nil?
|
233
232
|
@events[:update_cell_height].call(field_set, index_path)
|
234
233
|
end
|
235
234
|
|
236
235
|
def update_cell_height(field_set, index_path)
|
236
|
+
field_set = field_set[:child_field] unless field_set[:child_index].nil?
|
237
237
|
if field_set[:type] == :big_label || field_set[:type] == :checkbox
|
238
238
|
26 + 19 * (field_set[:lines] || 2)
|
239
239
|
elsif field_set[:type] == :text_view
|
data/lib/tgios/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tgios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- April Tsang
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sugarcube
|