redpotion 1.1.3 → 1.1.4

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: abe41c73f1dd1327dd6a008509bd04f1d894fd5d
4
- data.tar.gz: c1c67ea54c78dcd18a435f52bdd136dcfc8fef8d
3
+ metadata.gz: 1b8ed7dc9afb619bcacc7b6f8eed6ebabdb0ab46
4
+ data.tar.gz: 806764dbce2d32f6a7b7da9d0945c91f8892dfd9
5
5
  SHA512:
6
- metadata.gz: c082e46b802e647b554824152393de86896fe71538fad1623c96a0bb755fe073ca27baaaab6bd20400683cc2fe9914cd723a5e7d4e1310333800463892dd996f
7
- data.tar.gz: 1a2432aa8264225e94ccf5828afcff13cce8232670c6b56f8874961da0805eb19e7bbc343db0b6d80120c4b7ba5a80a84fd5c6417dde51fe47cee236ddf94ec2
6
+ metadata.gz: 30bd9d75f3e6d3447050f15f28682aebffa69e57744e6aead33e74fb19f19c5ce46d9e73569a2caa2faef350c6ddd00368b3a53db1397dd85fdebef043d7e417
7
+ data.tar.gz: c88506639fad0ecc0ca4d0e431934cd6807ba5dcca72d88dfd0174795be7cf3fb067a57efd9b7a77a06769d8ec81e4635f89763a47f6a1ae9b8659ff3fa82b8c
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
- ![image](http://ir_public.s3.amazonaws.com/projects/redpotion/RedPotion_logo_transparent.png)
1
+ ![image](http://ir_wp.s3.amazonaws.com/wp-content/uploads/sites/19/2015/04/RedPotion_logo_transparent.png)
2
2
 
3
3
  # RedPotion
4
+ [![Dependency Status](https://gemnasium.com/infinitered/redpotion.png)](https://gemnasium.com/infinitered/redpotion)
4
5
  [![Build Status](https://travis-ci.org/infinitered/redpotion.svg?branch=master)](https://travis-ci.org/infinitered/redpotion)
6
+ [![Gem Version](https://badge.fury.io/rb/redpotion.png)](http://badge.fury.io/rb/redpotion)
5
7
 
6
8
  We believe iPhone development should be clean, scalable, and fast with a language that developers not only enjoy, but actively choose. With the advent of Ruby for iPhone development the RubyMotion community has combined and tested the most active and powerful gems into a single package called **RedPotion**
7
9
 
@@ -14,10 +16,23 @@ The **makers of RMQ** at [InfiniteRed](http://infinitered.com/) and the **creato
14
16
 
15
17
  ProMotion for screens and RMQ for styles, animations, traversing, events, etc.
16
18
 
17
- =========
19
+ <br />
18
20
 
19
- ## Read the [documentation](http://redpotion.readthedocs.org/en/latest) [here](http://redpotion.readthedocs.org/en/latest)
21
+ ----------
20
22
 
23
+ <br />
24
+ <br />
25
+
26
+ [![image](http://ir_wp.s3.amazonaws.com/wp-content/uploads/sites/19/2015/04/rp_docs.png)](http://docs.redpotion.org)
27
+
28
+ **Read the [RedPotion Documentation](http://docs.redpotion.org) here**
29
+
30
+ <br />
31
+ <br />
32
+
33
+ ----------
34
+
35
+ <br />
21
36
 
22
37
  ## Quick start
23
38
 
@@ -53,4 +68,8 @@ add it to your `Gemfile`:
53
68
  5. Create new Pull Request
54
69
 
55
70
 
56
- ## Read the [documentation](http://redpotion.readthedocs.org/en/latest) [here](http://redpotion.readthedocs.org/en/latest)
71
+ <br />
72
+
73
+ ## Read the documentation at [docs.redpotion.org](http://docs.redpotion.org)
74
+
75
+ <br />
data/bin/potion CHANGED
@@ -18,6 +18,7 @@ class PotionCommandLine
18
18
  > potion create model foo
19
19
  > potion create screen foo
20
20
  > potion create table_screen foo
21
+ > potion create table_screen_cell bar_cell
21
22
  > potion create metal_table_screen foo
22
23
  > potion create collection_view_screen
23
24
  > potion create view bar
@@ -47,6 +48,7 @@ class PotionCommandLine
47
48
 
48
49
  VALID_CREATE_TYPES = [
49
50
  :screen, :table_screen,
51
+ :table_screen_cell,
50
52
  :model, :controller,
51
53
  :metal_table_screen,
52
54
  :collection_view_screen,
@@ -155,7 +157,7 @@ class PotionCommandLine
155
157
 
156
158
  def insert_from_template(template_name, name)
157
159
  # TODO refactor this, it's less than wonderful
158
- if %w{metal_table_screen view collection_view_screen}.include? template_name
160
+ if %w{metal_table_screen view collection_view_screen table_screen_cell}.include? template_name
159
161
  # Do nothing
160
162
  elsif template_name =~ /.*screen/
161
163
  @screen_base = template_name.split('_').collect(&:capitalize).join
@@ -0,0 +1,7 @@
1
+ module ProMotion
2
+ class Screen < ViewController
3
+ def app
4
+ RubyMotionQuery::App
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module ProMotion
2
+ module Support
3
+ def app
4
+ RubyMotionQuery::App
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module RedPotion
2
- VERSION = "1.1.3"
2
+ VERSION = "1.1.4"
3
3
  end
@@ -0,0 +1,30 @@
1
+ # To style this view include its stylesheet at the top of each controller's
2
+ # stylesheet that is going to use it:
3
+ # class SomeStylesheet < ApplicationStylesheet
4
+ # include <%= @name_camel_case %>Stylesheet
5
+
6
+ # Another option is to use your controller's stylesheet to style this view. This
7
+ # works well if only one controller uses it. If you do that, delete the
8
+ # view's stylesheet with:
9
+ # rm app/stylesheets/<%= @name %>_stylesheet.rb
10
+
11
+ module <%= @name_camel_case %>Stylesheet
12
+
13
+ def <%= @name %>_height
14
+ 40
15
+ end
16
+
17
+ def <%= @name %>(st)
18
+ st.frame = {l: 5, t: 100, w: 80, h: <%= @name %>_height}
19
+ st.background_color = color.light_gray
20
+
21
+ # Style overall view here
22
+ end
23
+
24
+ def <%= @name %>_title(st)
25
+ st.frame = {l: 10, fr: 0, centered: :vertical, h: 20}
26
+ st.font = font.medium
27
+ st.color = color.black
28
+ end
29
+
30
+ end
@@ -0,0 +1,54 @@
1
+ class <%= @name_camel_case %> < PM::TableViewCell
2
+ def on_load
3
+ apply_style :<%= @name %>
4
+
5
+ content = find(self.contentView)
6
+ @title = content.append! UILabel, :<%= @name %>_title
7
+
8
+ # Add subviews here, like so:
9
+ # content.append UILabel, :label_style_here
10
+ # -or-
11
+ # @submit_button = content.append(UIButton, :submit).get
12
+ # -or-
13
+ # @submit_button = content.append! UIButton, :submit
14
+ end
15
+
16
+ def title=(value)
17
+ @title.text = value
18
+ end
19
+ def title
20
+ @title
21
+ end
22
+
23
+ end
24
+
25
+
26
+
27
+ __END__
28
+
29
+ You can use this like so in your table_screen:
30
+
31
+ def table_data
32
+ [
33
+ {
34
+ title: "Section",
35
+ cells: [
36
+ { cell_class: BarCell, height: stylesheet.bar_cell_height, title: "Foo"},
37
+ { cell_class: BarCell, height: stylesheet.bar_cell_height, title: "Bar"}
38
+ ]
39
+ }
40
+ ]
41
+ end
42
+
43
+
44
+ To style this view include its stylesheet at the top of each controller's
45
+ stylesheet that is going to use it:
46
+
47
+ class SomeStylesheet < ApplicationStylesheet
48
+ include <%= @name_camel_case %>Stylesheet
49
+
50
+ Another option is to use your controller's stylesheet to style this view. This
51
+ works well if only one controller uses it. If you do that, delete the
52
+ view's stylesheet with:
53
+
54
+ rm app/stylesheets/<%= @name %>_stylesheet.rb
@@ -0,0 +1,9 @@
1
+ describe '<%= @name_camel_case %>' do
2
+
3
+ before do
4
+ end
5
+
6
+ after do
7
+ end
8
+
9
+ end
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: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - InfiniteRed
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-22 00:00:00.000000000 Z
12
+ date: 2015-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby_motion_query
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 1.3.4
20
+ version: 1.3.5
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 1.3.4
27
+ version: 1.3.5
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: ProMotion
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -127,6 +127,8 @@ files:
127
127
  - lib/project/ext/ui_view.rb
128
128
  - lib/project/ext/ui_view_controller.rb
129
129
  - lib/project/pro_motion/data_table_screen.rb
130
+ - lib/project/pro_motion/screen.rb
131
+ - lib/project/pro_motion/support.rb
130
132
  - lib/project/pro_motion/table.rb
131
133
  - lib/project/ruby_motion_query/app.rb
132
134
  - lib/project/ruby_motion_query/stylers/ui_image_view.rb
@@ -146,6 +148,9 @@ files:
146
148
  - templates/screen/app/screens/name_screen.rb
147
149
  - templates/screen/app/stylesheets/name_screen_stylesheet.rb
148
150
  - templates/screen/spec/screens/name_screen_spec.rb
151
+ - templates/table_screen_cell/app/stylesheets/name_stylesheet.rb
152
+ - templates/table_screen_cell/app/views/name.rb
153
+ - templates/table_screen_cell/spec/views/name.rb
149
154
  - templates/view/app/stylesheets/name_stylesheet.rb
150
155
  - templates/view/app/views/name.rb
151
156
  - templates/view/spec/views/name.rb
@@ -175,4 +180,3 @@ specification_version: 4
175
180
  summary: RedPotion combines RMQ, ProMotion, CDQ, AFMotion, and more for the perfect
176
181
  mix to develop in RubyMotion fast
177
182
  test_files: []
178
- has_rdoc: