redpotion 0.4.2 → 0.4.3

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd0e461a2ce76f04e1b7034a8400b35bdd96b870
4
- data.tar.gz: af9e7270ff4cb610d94a1c1a13bd9305d9eed8d3
3
+ metadata.gz: 73d8326b26ae6284ae9c6c58476f80507e244896
4
+ data.tar.gz: 74d67d9d664a05e3757b0f16a95f746b76c0962b
5
5
  SHA512:
6
- metadata.gz: a4a5913d0a7a2485c85b4a4396c716ed8c0637c7f8cd27eec29688205b5fd6f8206a046af51b5fe0083f2431106d5f86c896b81093e8e7b52c892a38327ef1b4
7
- data.tar.gz: 6aea0c18be56964dbf9dfea89679ad299118374ec7675a67c765808607e3c99e30abfaa52b16d869499fc2b1ebfe70557ed61338ff2525ac0bcbe6fc576fce28
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
- @screen_base = template_name.split('_').collect(&:capitalize).join
125
- template_name = 'screen'
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)
@@ -1,3 +1,3 @@
1
1
  module RedPotion
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -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
- # # Then in willAnimateRotationToInterfaceOrientation
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
- # Add your view stylesheets here. You can then override styles if needed,
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/views/<%= @name %>_stylesheet.rb
9
+ # rm app/stylesheets/<%= @name %>_stylesheet.rb
10
10
 
11
11
  module <%= @name_camel_case %>Stylesheet
12
12
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redpotion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfiniteRed