tgios 0.0.18 → 0.0.19
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
|
-
|
4
|
+
YjM2YjE4NDViYThhNGM3NmE1MTNhZDYyNzEwY2QyZDU1NjFmZTgxNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjIxOWQxYjNkM2E0M2M2MTUxYzcyNTNiNWEzNDU4NmJhZDg1YTJlMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODczYmMyN2VhZmYzYjI4YTg3YzQ5MzMyNDk0YjZmN2Q2YzhjNTQyMTAxZTA2
|
10
|
+
ODYzNjczYWZkZWM1MDdlMjkzZjA5MTcxNDUyNWMxZTkxOGM4MTcyYTY4Yjhi
|
11
|
+
MmEyOWNhODllOGI0YmJkNzJlODAzYzIzZDFhMDg3ZWI0NmU1NWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NTIzYjVkNDAyNDJlZTdiZjFlNGU4NWQ1OTEzZjc4YzViYzM1M2UwNDUwY2M4
|
14
|
+
NjAzZDcwOWU4M2RjMzdlZmU1YjUyMzk5YmY4NjliMWY0ZGY3YWE5MjU3MmJm
|
15
|
+
Y2I5NDI3MTQ1ZTIzZWJhMmRlNGRmOGY3NDg5ZTgyYjk1ZmM0ODI=
|
data/Gemfile.lock
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
include PlasticCup
|
2
2
|
module Tgios
|
3
3
|
class LoadingView < UIView
|
4
|
+
attr_accessor :load_count
|
5
|
+
|
4
6
|
def initWithFrame(frame)
|
5
7
|
if super
|
8
|
+
@load_count = 0
|
6
9
|
self.hidden = true
|
7
10
|
base_view = Base.style(UIView.new, backgroundColor: :black.uicolor, alpha: 0.5)
|
8
11
|
|
@@ -33,15 +36,21 @@ module Tgios
|
|
33
36
|
loading_view
|
34
37
|
end
|
35
38
|
|
36
|
-
def start_loading(text='')
|
39
|
+
def start_loading(text='', force=false)
|
37
40
|
@label.text = text
|
38
|
-
|
39
|
-
|
41
|
+
if @load_count <= 0 || force
|
42
|
+
self.hidden = false
|
43
|
+
@indicator.startAnimating
|
44
|
+
end
|
45
|
+
@load_count += 1
|
40
46
|
end
|
41
47
|
|
42
|
-
def stop_loading
|
43
|
-
|
44
|
-
@
|
48
|
+
def stop_loading(force=false)
|
49
|
+
@load_count -=1
|
50
|
+
if @load_count <= 0 || force
|
51
|
+
self.hidden = true
|
52
|
+
@indicator.stopAnimating
|
53
|
+
end
|
45
54
|
end
|
46
55
|
end
|
47
56
|
|
@@ -50,13 +59,13 @@ module Tgios
|
|
50
59
|
@loading_view = LoadingView.add_loading_view_to(view)
|
51
60
|
end
|
52
61
|
|
53
|
-
def start_loading(text='')
|
62
|
+
def start_loading(text='', force=false)
|
54
63
|
self.view.endEditing(true)
|
55
|
-
@loading_view.start_loading(text)
|
64
|
+
@loading_view.start_loading(text, force)
|
56
65
|
end
|
57
66
|
|
58
|
-
def stop_loading
|
59
|
-
@loading_view.stop_loading
|
67
|
+
def stop_loading(force=false)
|
68
|
+
@loading_view.stop_loading(force)
|
60
69
|
end
|
61
70
|
end
|
62
71
|
end
|
@@ -7,6 +7,7 @@ module Tgios
|
|
7
7
|
@events[:build_cell]=->(cell_identifier) {
|
8
8
|
cell = UITableViewCell.value1(cell_identifier)
|
9
9
|
cell.detailTextLabel.adjustsFontSizeToFitWidth = true
|
10
|
+
cell.clipsToBounds = true
|
10
11
|
cell
|
11
12
|
}
|
12
13
|
@events[:update_cell]=->(field_set, cell, index_path) { update_field(field_set, cell, index_path)}
|
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.19
|
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-03-
|
12
|
+
date: 2014-03-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sugarcube
|