redpotion 1.1.5 → 1.2.0

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: ff7abd6877573407515184fcdb6ffcf36cf90388
4
- data.tar.gz: d101e5ebf156d35b36afe14fd78db4b5a6b92e89
3
+ metadata.gz: d415539623793501c7096c6ab89fe0c138f5f7f7
4
+ data.tar.gz: ea5dcb50cc68ad77920ab081885fd60b5350fce0
5
5
  SHA512:
6
- metadata.gz: 61fbfacda0ad7feccf6bb5ed10532a30575967910e36cf0f502bf9f6a43e9401f029822b575f121188ebc1609e787441112b5ce6c31cbbe001b74ad6a55bb9c1
7
- data.tar.gz: 7884757b4dc337a5c46795aa4a7d81a23a977329af364662f9e508786d0e715f5bcfdf3fd7e016fa12c48a656aa9431658482094795114bf3ff2a7a338156c3e
6
+ metadata.gz: cd1fc0c4e231339eba5a5ff8cb98a4ba1d74f08721e7fe27fb480e27d419ef4eef9badf56ae0638251c19624cca920a84c38ada60047524842320076b21c9368
7
+ data.tar.gz: 25c10fd5b0ed7813eec75fe2e59d49a5f2ec19840e23c1d770667c17561fe510dffc2591647ea4c3481e81fdc681bf2b04c53a8987d730d77ed7118c462a4f86
data/README.md CHANGED
@@ -1,10 +1,13 @@
1
- ![image](http://ir_wp.s3.amazonaws.com/wp-content/uploads/sites/19/2015/04/RedPotion_logo_transparent.png)
1
+ <p align="center"><img src="http://s3.amazonaws.com/ir_public/projects/redpotion/RedPotion_logo_500w.png" alt="logo" width="250px"></p>
2
2
 
3
- # RedPotion
4
- [![Dependency Status](https://gemnasium.com/infinitered/redpotion.png)](https://gemnasium.com/infinitered/redpotion)
5
- [![Build Status](https://travis-ci.org/infinitered/redpotion.svg?branch=master)](https://travis-ci.org/infinitered/redpotion)
3
+ <br />
4
+
5
+ [![Dependency Status](https://gemnasium.com/infinitered/redpotion.svg)](https://gemnasium.com/infinitered/redpotion)
6
+ [![Build Status](https://travis-ci.org/infinitered/redpotion.svg)](https://travis-ci.org/infinitered/redpotion)
6
7
  [![Gem Version](https://badge.fury.io/rb/redpotion.png)](http://badge.fury.io/rb/redpotion)
7
8
 
9
+ # RedPotion
10
+
8
11
  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**
9
12
 
10
13
  RedPotion combines [RMQ](http://rubymotionquery.com/), [ProMotion](https://github.com/clearsightstudio/ProMotion), [CDQ](https://github.com/infinitered/cdq), [AFMotion](https://github.com/clayallsopp/afmotion), [MotionPrint](https://github.com/OTGApps/motion_print) and [MORE!](#full-listing-of-gems-and-pods-for-redpotion). It also adds new features to better integrate RMQ with ProMotion. The goal is simply to choose standard libraries and promote best practices, allowing you to develop iOS apps in record time.
data/bin/potion CHANGED
@@ -103,11 +103,14 @@ class PotionCommandLine
103
103
 
104
104
  `motion create --template=git@github.com:infinitered/redpotion-template.git #{app_name}`
105
105
 
106
+ ["bundle", "rake pod:install"].each do |command|
107
+ puts "Running #{command}..."
108
+
109
+ system("cd #{app_name}; #{command}")
110
+ end
111
+
106
112
  puts %{
107
- Complete. Things you should do:
108
- > cd #{app_name}
109
- > bundle
110
- > rake pod:install
113
+ Complete. Things you can do:
111
114
  > rake spec
112
115
  > rake
113
116
  (main)> exit
@@ -0,0 +1,26 @@
1
+ # FXFormViewController is a top level class
2
+ class FXFormViewController < UIViewController
3
+ end
4
+
5
+ # Defines which ProMotion classes handle delegates
6
+ module ProMotion
7
+ class ViewController < UIViewController
8
+ def class_handles_delegates?
9
+ true
10
+ end
11
+ end
12
+
13
+ class TableViewController < UITableViewController
14
+ def class_handles_delegates?
15
+ true
16
+ end
17
+ end
18
+
19
+ # Include the entire class declaration chain for people that may not have
20
+ # the ProMotion-form gem installed.
21
+ class FormViewController < FXFormViewController
22
+ def class_handles_delegates?
23
+ true
24
+ end
25
+ end
26
+ end
@@ -1,54 +1,54 @@
1
1
  class UIViewController
2
2
  def append(view_or_constant, style=nil, opts = {})
3
- view.append(view_or_constant, style, opts)
3
+ self.rmq.append(view_or_constant, style, opts)
4
4
  end
5
5
  def append!(view_or_constant, style=nil, opts = {})
6
- view.append!(view_or_constant, style, opts)
6
+ self.rmq.append!(view_or_constant, style, opts)
7
7
  end
8
8
 
9
9
  def prepend(view_or_constant, style=nil, opts = {})
10
- view.prepend(view_or_constant, style, opts)
10
+ self.rmq.prepend(view_or_constant, style, opts)
11
11
  end
12
12
  def prepend!(view_or_constant, style=nil, opts = {})
13
- view.prepend!(view_or_constant, style, opts)
13
+ self.rmq.prepend!(view_or_constant, style, opts)
14
14
  end
15
15
 
16
16
  def create(view_or_constant, style=nil, opts = {})
17
- view.create(view_or_constant, style, opts)
17
+ self.rmq.create(view_or_constant, style, opts)
18
18
  end
19
19
  def create!(view_or_constant, style=nil, opts = {})
20
- view.create!(view_or_constant, style, opts)
20
+ self.rmq.create!(view_or_constant, style, opts)
21
21
  end
22
22
 
23
23
  def build(view_or_constant, style = nil, opts = {})
24
- view.build(view_or_constant, style, opts)
24
+ self.rmq.build(view_or_constant, style, opts)
25
25
  end
26
26
  def build!(view_or_constant, style = nil, opts = {})
27
- view.build!(view_or_constant, style, opts)
27
+ self.rmq.build!(view_or_constant, style, opts)
28
28
  end
29
29
 
30
30
  def reapply_styles
31
- rmq.all.reapply_styles
31
+ self.rmq.all.reapply_styles
32
32
  end
33
33
 
34
34
  def color
35
- rmq.color
35
+ self.rmq.color
36
36
  end
37
37
 
38
38
  def font
39
- rmq.font
39
+ self.rmq.font
40
40
  end
41
41
 
42
42
  def image
43
- rmq.image
43
+ self.rmq.image
44
44
  end
45
45
 
46
46
  def stylesheet
47
- rmq.stylesheet
47
+ self.rmq.stylesheet
48
48
  end
49
49
 
50
50
  def stylesheet=(value)
51
- rmq.stylesheet = value
51
+ self.rmq.stylesheet = value
52
52
  end
53
53
 
54
54
  def self.stylesheet(style_sheet_class)
@@ -157,6 +157,6 @@ class UIViewController
157
157
  private
158
158
 
159
159
  def pm_handles_delegates?
160
- self.is_a?(ProMotion::ViewController) || self.is_a?(ProMotion::TableViewController)
160
+ self.respond_to?(:class_handles_delegates?) && self.class_handles_delegates?
161
161
  end
162
162
  end
@@ -1,7 +1,8 @@
1
1
  module ProMotion
2
2
  class TableScreen < TableViewController
3
- # For some reason, this empty class definition is required
4
- # or we get a NoMethodError with the `searchable`
5
- # class method call. O_o
3
+ # Don't call super -- would result in two on_load calls to the cell.
4
+ def on_cell_created(cell, data)
5
+ self.rmq.build(cell)
6
+ end
6
7
  end
7
8
  end
@@ -1,3 +1,3 @@
1
1
  module RedPotion
2
- VERSION = "1.1.5"
2
+ VERSION = "1.2.0"
3
3
  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.5
4
+ version: 1.2.0
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-29 00:00:00.000000000 Z
12
+ date: 2015-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby_motion_query
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 1.3.5
20
+ version: 1.4.0
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.5
27
+ version: 1.4.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: ProMotion
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '2.3'
34
+ version: 2.3.1
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '2.3'
41
+ version: 2.3.1
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: motion_print
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -122,6 +122,7 @@ files:
122
122
  - bin/potion
123
123
  - lib/project/ext/kernel.rb
124
124
  - lib/project/ext/object.rb
125
+ - lib/project/ext/pm_delegate.rb
125
126
  - lib/project/ext/ui_color.rb
126
127
  - lib/project/ext/ui_image_view.rb
127
128
  - lib/project/ext/ui_view.rb
@@ -180,3 +181,4 @@ specification_version: 4
180
181
  summary: RedPotion combines RMQ, ProMotion, CDQ, AFMotion, and more for the perfect
181
182
  mix to develop in RubyMotion fast
182
183
  test_files: []
184
+ has_rdoc: