tgios 0.0.5 → 0.0.6
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.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/lib/tgios/extended_ui_view_controller.rb +7 -0
- data/lib/tgios/image_loader.rb +4 -0
- data/lib/tgios/ui_table_view_model_binding.rb +10 -6
- 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
|
+
NGY2YzEzZWQ5YmM3YTQ0OWE4ZjJiODRkYjFlNDQ5Yjc3MmJlZDUyMQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
OWY3ZTc0ZDEzZTU2MmJkNmUwNDRlMGNmM2QxMDU5YTBmM2IyNGYyZQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZjcyNGIxNzNhMDQzMDU4NWRmNWE0ZmY4NzJmYTE1MzExZjY1ZDYxNzMxNWVk
|
|
10
|
+
MWU1NWUyYTUxNDhhMGZlNmU4NzQ5Y2U3N2VkMmFkNTcyZjE2M2RhNDNjYWNk
|
|
11
|
+
ZGU0ZmZjZmFjODlmN2ZlYjllYzAzM2EyNWQxNTBhMjRmYjQzNGM=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NTNkMTcwYzMwNWMzNzQ4NWFjODFiZDBlN2NmYmZmZWYyY2YyZGY3YzcxNTU2
|
|
14
|
+
Y2MwMTc4MDYwMmEzNzBiMTU1NDgwODU3ODA2ZDM5ZWMwOGI1ZmFhMjhkN2Qw
|
|
15
|
+
NmJiZjk1M2JmZmZkNzhiMjQwNDY3YjIzODAyZjY5OGQwYzJlZWY=
|
data/Gemfile.lock
CHANGED
|
@@ -34,6 +34,13 @@ module Tgios
|
|
|
34
34
|
super
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
+
def dismissViewControllerAnimated(flag, completion:completion)
|
|
38
|
+
super(flag, ->{
|
|
39
|
+
self.prepareForRelease()
|
|
40
|
+
completion.call unless completion.nil?
|
|
41
|
+
})
|
|
42
|
+
end
|
|
43
|
+
|
|
37
44
|
def dealloc
|
|
38
45
|
ap "#{self.class.name} dealloc"
|
|
39
46
|
super
|
data/lib/tgios/image_loader.rb
CHANGED
|
@@ -51,6 +51,10 @@ module Tgios
|
|
|
51
51
|
fm.contentsOfDirectoryAtPath(self.base_path, error:nil).each do |filename|
|
|
52
52
|
fm.removeItemAtPath("#{self.base_path}#{filename}", error: nil)
|
|
53
53
|
end
|
|
54
|
+
cache_path = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, true).last
|
|
55
|
+
fm.contentsOfDirectoryAtPath(cache_path, error: nil).each do |filename|
|
|
56
|
+
fm.removeItemAtPath("#{cache_path}/#{filename}", error: nil)
|
|
57
|
+
end
|
|
54
58
|
end
|
|
55
59
|
|
|
56
60
|
def onPrepareForRelease
|
|
@@ -84,14 +84,18 @@ module Tgios
|
|
|
84
84
|
if type == :checkbox
|
|
85
85
|
cell = UITableViewCell.default(cell_identifier)
|
|
86
86
|
cell.textLabel.numberOfLines = 0
|
|
87
|
-
elsif type == :dynamic_label || type == :big_label
|
|
88
|
-
cell = UITableViewCell.value2(cell_identifier)
|
|
89
|
-
cell.detailTextLabel.numberOfLines = 0
|
|
90
|
-
cell.detailTextLabel.backgroundColor = :clear.uicolor
|
|
91
|
-
cell.textLabel.numberOfLines = 0
|
|
92
87
|
else
|
|
93
88
|
cell = UITableViewCell.value2(cell_identifier)
|
|
94
|
-
|
|
89
|
+
|
|
90
|
+
if type == :dynamic_label || type == :big_label
|
|
91
|
+
cell.detailTextLabel.numberOfLines = 0
|
|
92
|
+
cell.detailTextLabel.backgroundColor = :clear.uicolor
|
|
93
|
+
cell.textLabel.numberOfLines = 0
|
|
94
|
+
elsif type == :label_only
|
|
95
|
+
cell.detailTextLabel.textColor = UIColor.colorWithRed(0, green: 122.0/255.0, blue: 1.0, alpha: 1.0)
|
|
96
|
+
else
|
|
97
|
+
cell.textLabel.numberOfLines = 2
|
|
98
|
+
end
|
|
95
99
|
end
|
|
96
100
|
cell
|
|
97
101
|
end
|
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.6
|
|
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-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: sugarcube
|