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 +4 -4
- data/README.md +7 -4
- data/bin/potion +7 -4
- data/lib/project/ext/pm_delegate.rb +26 -0
- data/lib/project/ext/ui_view_controller.rb +15 -15
- data/lib/project/pro_motion/table.rb +4 -3
- data/lib/project/version.rb +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d415539623793501c7096c6ab89fe0c138f5f7f7
|
4
|
+
data.tar.gz: ea5dcb50cc68ad77920ab081885fd60b5350fce0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd1fc0c4e231339eba5a5ff8cb98a4ba1d74f08721e7fe27fb480e27d419ef4eef9badf56ae0638251c19624cca920a84c38ada60047524842320076b21c9368
|
7
|
+
data.tar.gz: 25c10fd5b0ed7813eec75fe2e59d49a5f2ec19840e23c1d770667c17561fe510dffc2591647ea4c3481e81fdc681bf2b04c53a8987d730d77ed7118c462a4f86
|
data/README.md
CHANGED
@@ -1,10 +1,13 @@
|
|
1
|
-
|
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
|
-
|
4
|
-
|
5
|
-
[![
|
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
|
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
|
-
|
3
|
+
self.rmq.append(view_or_constant, style, opts)
|
4
4
|
end
|
5
5
|
def append!(view_or_constant, style=nil, opts = {})
|
6
|
-
|
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
|
-
|
10
|
+
self.rmq.prepend(view_or_constant, style, opts)
|
11
11
|
end
|
12
12
|
def prepend!(view_or_constant, style=nil, opts = {})
|
13
|
-
|
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
|
-
|
17
|
+
self.rmq.create(view_or_constant, style, opts)
|
18
18
|
end
|
19
19
|
def create!(view_or_constant, style=nil, opts = {})
|
20
|
-
|
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
|
-
|
24
|
+
self.rmq.build(view_or_constant, style, opts)
|
25
25
|
end
|
26
26
|
def build!(view_or_constant, style = nil, opts = {})
|
27
|
-
|
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.
|
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
|
-
#
|
4
|
-
|
5
|
-
|
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
|
data/lib/project/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
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:
|
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:
|
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:
|