motion-prime 0.8.3 → 0.8.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 +1 -1
- data/Gemfile.lock +1 -1
- data/files/Gemfile +1 -1
- data/motion-prime/screens/extensions/_navigation_bar_mixin.rb +3 -4
- data/motion-prime/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmViYTYyYjYzMjkwMGEzMzVkZWQ4ZGVmOGM3NjBmYzQ0YWViZTJmNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDJlN2YxOGJhMWIwZTU2MjVmNmQ1NzM4YjQ5MWY0ZDFmYzZhZWE1Nw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjljMjBmZDg2MDI1NTYxYTliMzgxZGE4MDQyNDViMmE4OTMxYThlMjJiM2Jk
|
10
|
+
YWNkYmQwODA5MzVmODk4OWE5YjVkNTUwYTEyNGJiMThhODgwYjMyNzUzZmRl
|
11
|
+
NzA0MDUzNzhiZTYwOTkwYjI1NDMyNGJlNTZmMjVmZTkwNzkyZDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTEwNWUzNWZjMWNlMzQwN2JjZTdlYWViODBlZWU5MWMwNzY4ZDFhNThhODkw
|
14
|
+
NjRlZGViMTJmMWIyMmE4ODA2MTg5MmFhYmY2ZjlkYmM1NGJiMjcwZjA4OWY0
|
15
|
+
MGRmMjg5MjE4YTZiZDc2YzNhZjQ1MjU4ODhmYTFmNzIyOGE0ZmI=
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/files/Gemfile
CHANGED
@@ -13,7 +13,6 @@ module MotionPrime
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def set_navigation_right_button(title, args = {})
|
16
|
-
puts title.inspect
|
17
16
|
navigationItem.rightBarButtonItem = create_navigation_button(title, args)
|
18
17
|
end
|
19
18
|
|
@@ -52,7 +51,7 @@ module MotionPrime
|
|
52
51
|
title.sizeToFit
|
53
52
|
UIBarButtonItem.alloc.initWithCustomView(title)
|
54
53
|
elsif args[:image]
|
55
|
-
|
54
|
+
create_navigation_button_with_image(title, args)
|
56
55
|
elsif args[:icon]
|
57
56
|
create_navigation_button_with_icon(title, args)
|
58
57
|
else
|
@@ -61,7 +60,7 @@ module MotionPrime
|
|
61
60
|
end
|
62
61
|
end
|
63
62
|
|
64
|
-
def
|
63
|
+
def create_navigation_button_with_icon(title, args)
|
65
64
|
image = args[:icon].uiimage
|
66
65
|
face = UIButton.buttonWithType UIButtonTypeCustom
|
67
66
|
face.setImage(image, forState: UIControlStateNormal)
|
@@ -74,7 +73,7 @@ module MotionPrime
|
|
74
73
|
UIBarButtonItem.alloc.initWithCustomView(face)
|
75
74
|
end
|
76
75
|
|
77
|
-
def
|
76
|
+
def create_navigation_button_with_image(title, args)
|
78
77
|
image = args[:image].uiimage
|
79
78
|
face = UIButton.buttonWithType UIButtonTypeCustom
|
80
79
|
face.bounds = CGRectMake(0, 0, image.size.width, image.size.height)
|
data/motion-prime/version.rb
CHANGED