motion-prime 0.5.3 → 0.5.4
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/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/files/Gemfile +2 -2
- data/files/Gemfile.lock +4 -2
- data/motion-prime/api_client.rb +10 -10
- data/motion-prime/config/base.rb +1 -0
- data/motion-prime/sections/table.rb +3 -1
- data/motion-prime/support/mp_cell_with_section.rb +2 -0
- data/motion-prime/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
|
+
MDEyOWU0OGJhMGZmOGE2MTgyZjA0ZGYyNzlkYzA0MWJkZWE4NjI5YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjI0YjU0MTAzM2I3OGRiODM2NTI2ZmVlOTdjZDdlMmU1ZjdlYjM4NQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmRmNDU1YThiN2QwZDM5YmVhZjhhZTNhZmVjNDYwZmVjYmE1ZDhmYWJiNWJk
|
10
|
+
YmVhNWMwMGIzNzYwM2JmMzRmNmUwOWE3YmYwYzgzNmY3MmVmYjdmYjAxNjA5
|
11
|
+
MmZhMGFiZWRiZWM4YmE2NDhhYmZjNmFkMjkwZDI5ODBmNzFkYjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjFmOWYwNzg4ZDA5MzVlNjcyOTg2YWIyODlkM2ZhMmE5ZDcyNDJhZTRiMWEz
|
14
|
+
YzAxYWM0ZTQ5N2QwNmJlOTgxY2M3ZDJmOWNiYzMzZTc2N2Y4YTBhZjA3ZGFh
|
15
|
+
MjYzZTM0MjY1MTUyOTBkZmY2ODQ0NThlMDhlYTAwYTAzZjc5ZWU=
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/files/Gemfile
CHANGED
@@ -5,10 +5,10 @@ gem 'motion-support', '~> 0.2.4'
|
|
5
5
|
gem 'sugarcube', '~> 1.3.7', require: 'sugarcube-classic'
|
6
6
|
gem 'bubble-wrap', '~> 1.4.0'
|
7
7
|
|
8
|
-
gem 'motion-prime', '~> 0.5.
|
8
|
+
gem 'motion-prime', '~> 0.5.3'
|
9
9
|
|
10
10
|
# add reside menu for sidebar support
|
11
11
|
gem 'prime_reside_menu', '~> 0.1.3'
|
12
12
|
|
13
13
|
# or add sliding menu for sidebar support
|
14
|
-
# gem 'prime_sliding_menu', '~> 0.1.
|
14
|
+
# gem 'prime_sliding_menu', '~> 0.1.1'
|
data/files/Gemfile.lock
CHANGED
@@ -34,13 +34,14 @@ GEM
|
|
34
34
|
bundler
|
35
35
|
motion-cocoapods (1.4.0)
|
36
36
|
cocoapods (>= 0.26.2)
|
37
|
-
motion-prime (0.5.
|
37
|
+
motion-prime (0.5.3)
|
38
38
|
bubble-wrap
|
39
39
|
cocoapods
|
40
40
|
methadone
|
41
41
|
motion-cocoapods
|
42
42
|
motion-require
|
43
43
|
motion-support
|
44
|
+
rm-digest
|
44
45
|
sugarcube
|
45
46
|
motion-require (0.0.7)
|
46
47
|
motion-support (0.2.6)
|
@@ -53,6 +54,7 @@ GEM
|
|
53
54
|
motion-cocoapods
|
54
55
|
motion-require
|
55
56
|
rake (10.1.1)
|
57
|
+
rm-digest (0.0.2)
|
56
58
|
sugarcube (1.3.11)
|
57
59
|
xcodeproj (0.14.1)
|
58
60
|
activesupport (~> 3.0)
|
@@ -65,7 +67,7 @@ PLATFORMS
|
|
65
67
|
DEPENDENCIES
|
66
68
|
bubble-wrap (~> 1.4.0)
|
67
69
|
motion-cocoapods (~> 1.4.0)
|
68
|
-
motion-prime (~> 0.5.
|
70
|
+
motion-prime (~> 0.5.3)
|
69
71
|
motion-support (~> 0.2.4)
|
70
72
|
prime_reside_menu (~> 0.1.3)
|
71
73
|
sugarcube (~> 1.3.7)
|
data/motion-prime/api_client.rb
CHANGED
@@ -38,14 +38,13 @@ class ApiClient
|
|
38
38
|
}
|
39
39
|
use_callback = block_given?
|
40
40
|
BW::HTTP.post("#{config.base}#{config.auth_path}", request_params(data)) do |response|
|
41
|
-
|
42
|
-
|
43
|
-
json[:access_token]
|
41
|
+
auth_data = if response.ok?
|
42
|
+
parse_json(response.body)
|
44
43
|
else
|
45
44
|
false
|
46
45
|
end
|
47
|
-
self.access_token = access_token
|
48
|
-
block.call(
|
46
|
+
self.access_token = auth_data[:access_token] if auth_data
|
47
|
+
block.call(auth_data, response.status_code) if use_callback
|
49
48
|
end
|
50
49
|
true
|
51
50
|
end
|
@@ -112,8 +111,9 @@ class ApiClient
|
|
112
111
|
end
|
113
112
|
|
114
113
|
private
|
115
|
-
|
116
|
-
|
114
|
+
|
115
|
+
def config
|
116
|
+
MotionPrime::Config.api_client
|
117
117
|
end
|
118
118
|
|
119
119
|
def parse_json(text)
|
@@ -122,8 +122,8 @@ class ApiClient
|
|
122
122
|
NSLog("Can't parse json: #{text}")
|
123
123
|
false
|
124
124
|
end
|
125
|
-
|
126
|
-
def
|
127
|
-
|
125
|
+
|
126
|
+
def user_defaults
|
127
|
+
@user_defaults ||= NSUserDefaults.standardUserDefaults
|
128
128
|
end
|
129
129
|
end
|
data/motion-prime/config/base.rb
CHANGED
@@ -284,7 +284,9 @@ module MotionPrime
|
|
284
284
|
if cell.is_a?(Array)
|
285
285
|
cell.each { |c| prepare_table_cells(c) }
|
286
286
|
else
|
287
|
-
|
287
|
+
Prime::Config.prime.cell_section.mixins.each do |mixin|
|
288
|
+
cell.class.send(:include, mixin)
|
289
|
+
end
|
288
290
|
cell.screen ||= screen
|
289
291
|
cell.table ||= WeakRef.new(self) if cell.respond_to?(:table=)
|
290
292
|
end
|
@@ -4,6 +4,7 @@ class MPCellWithSection < UITableViewCell
|
|
4
4
|
|
5
5
|
def setNeedsDisplay
|
6
6
|
content_view.try(:setNeedsDisplay)
|
7
|
+
|
7
8
|
super
|
8
9
|
end
|
9
10
|
|
@@ -20,6 +21,7 @@ class MPCellWithSection < UITableViewCell
|
|
20
21
|
self.content_view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight
|
21
22
|
self.content_view.top = 0
|
22
23
|
self.content_view.left = 0
|
24
|
+
|
23
25
|
self.scroll_view.addSubview(content_view)
|
24
26
|
end
|
25
27
|
end
|
data/motion-prime/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-prime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iskander Haziev
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-01-
|
12
|
+
date: 2014-01-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|