redpotion 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73d8326b26ae6284ae9c6c58476f80507e244896
|
4
|
+
data.tar.gz: 74d67d9d664a05e3757b0f16a95f746b76c0962b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0818aae920f87967947b14df4b4031f53ac90c11afd998200f25eb8bbf916c345341b23673168f6773466bddcbbfbdda92321d8b417e84bce47cf45a59e8362e
|
7
|
+
data.tar.gz: e4d3e57273d8743d9127de66fb9e9e8e0bffa0ccbecdab8c28b0c74f6a72882a0ade42807236183b969788f9c77155395012dab47e0c4b54098d539f8077fad2
|
data/bin/potion
CHANGED
@@ -121,8 +121,10 @@ class PotionCommandLine
|
|
121
121
|
puts `rmq create #{template_name} #{name}`
|
122
122
|
return
|
123
123
|
else
|
124
|
-
|
125
|
-
|
124
|
+
if template_name =~ /.*screen/
|
125
|
+
@screen_base = template_name.split('_').collect(&:capitalize).join
|
126
|
+
template_name = 'screen'
|
127
|
+
end
|
126
128
|
end
|
127
129
|
|
128
130
|
#if [:lib, :collection_view_controller, :shared, :controller].include?(template_name)
|
data/lib/project/version.rb
CHANGED
@@ -10,7 +10,6 @@ class <%= @name_camel_case %>Screen < PM::<%= @screen_base %>
|
|
10
10
|
[]
|
11
11
|
end
|
12
12
|
<% end %>
|
13
|
-
|
14
13
|
# You don't have to reapply styles to all UIViews, if you want to optimize,
|
15
14
|
# another way to do it is tag the views you need to restyle in your stylesheet,
|
16
15
|
# then only reapply the tagged views, like so:
|
@@ -21,7 +20,7 @@ class <%= @name_camel_case %>Screen < PM::<%= @screen_base %>
|
|
21
20
|
# st.tag(:reapply_style)
|
22
21
|
# end
|
23
22
|
#
|
24
|
-
#
|
23
|
+
# Then in willAnimateRotationToInterfaceOrientation
|
25
24
|
# find(:reapply_style).reapply_styles
|
26
25
|
def willAnimateRotationToInterfaceOrientation(orientation, duration: duration)
|
27
26
|
find.all.reapply_styles
|
@@ -1,7 +1,6 @@
|
|
1
1
|
class <%= @name_camel_case %>ScreenStylesheet < ApplicationStylesheet
|
2
|
-
|
3
|
-
# example:
|
4
|
-
# # include FooStylesheet
|
2
|
+
# Add your view stylesheets here. You can then override styles if needed,
|
3
|
+
# example: include FooStylesheet
|
5
4
|
|
6
5
|
def setup
|
7
6
|
# Add sytlesheet specific setup stuff here.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
# Another option is to use your controller's stylesheet to style this view. This
|
7
7
|
# works well if only one controller uses it. If you do that, delete the
|
8
8
|
# view's stylesheet with:
|
9
|
-
# rm app/stylesheets
|
9
|
+
# rm app/stylesheets/<%= @name %>_stylesheet.rb
|
10
10
|
|
11
11
|
module <%= @name_camel_case %>Stylesheet
|
12
12
|
|