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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTQ2MjYyNzNjZWI0ZDM1Nzk0NzY1ODQ5YTRiMTk4ZDA2MzBmYzY1Ng==
4
+ NGY2YzEzZWQ5YmM3YTQ0OWE4ZjJiODRkYjFlNDQ5Yjc3MmJlZDUyMQ==
5
5
  data.tar.gz: !binary |-
6
- NjhjZDNkZmQ1MGNlOThiZTBiYWNhYjg4MTAzYjM5ZDZmNDgxOTFiMw==
6
+ OWY3ZTc0ZDEzZTU2MmJkNmUwNDRlMGNmM2QxMDU5YTBmM2IyNGYyZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzYxYWJlNTZlZTZhZjQ5YjNkMzhjNjI3ODIxMGVkNGViYjk5YjA3YzUyYTM1
10
- NzRjN2E3ZmZlYTM1MjIzYjMwZmRlMDk3ZTA5YjgzOGY0NTBlOGU3NjU4NDFh
11
- Njc1NWEzYTllMzRkMmQ0NGI4MmNmNDg2YWM1NDY3NTM3MTFjODI=
9
+ ZjcyNGIxNzNhMDQzMDU4NWRmNWE0ZmY4NzJmYTE1MzExZjY1ZDYxNzMxNWVk
10
+ MWU1NWUyYTUxNDhhMGZlNmU4NzQ5Y2U3N2VkMmFkNTcyZjE2M2RhNDNjYWNk
11
+ ZGU0ZmZjZmFjODlmN2ZlYjllYzAzM2EyNWQxNTBhMjRmYjQzNGM=
12
12
  data.tar.gz: !binary |-
13
- M2RlOTVjNGUzYmZmMzdmZTJhNmQ5YzEwOTY5OTdlNTRmNDY1MjhmYTVhNTUx
14
- NzgwYjUzMjkyNzNiYTI4OTM4YzI4MTc0NDUxMTNhOGFkNDZhOWY0MDE1NDAx
15
- MmYzMDAyZTU1NGZhYjg5MTMwOTY3MGFkYWUzMTYxZDJhZmQ5ZDg=
13
+ NTNkMTcwYzMwNWMzNzQ4NWFjODFiZDBlN2NmYmZmZWYyY2YyZGY3YzcxNTU2
14
+ Y2MwMTc4MDYwMmEzNzBiMTU1NDgwODU3ODA2ZDM5ZWMwOGI1ZmFhMjhkN2Qw
15
+ NmJiZjk1M2JmZmZkNzhiMjQwNDY3YjIzODAyZjY5OGQwYzJlZWY=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tgios (0.0.5)
4
+ tgios (0.0.6)
5
5
  awesome_print_motion
6
6
  motion-layout
7
7
  plastic_cup (>= 0.1.1)
@@ -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
@@ -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
- cell.textLabel.numberOfLines = 2
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
@@ -1,3 +1,3 @@
1
1
  module Tgios
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
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.5
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-10 00:00:00.000000000 Z
12
+ date: 2014-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sugarcube