ruby_motion_query 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTAyZjRlZmI2ZGMzZTViZDRhZGQwM2FmZTQzNzc2YjJhOGQxOTZkMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjIyZTYyZWUzZjFiMzk2NDI4ZjNmMGU2ZTBlZjdiMjM3YWE5MzEwZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTIxYmRkNzcyMWNkYzEzNGIwZDMxYzYxMjZlYWUzYjFkODBjNDE0YWNmN2Uw
|
10
|
+
ZGZjMTM1YTdkM2M4MTMwYWE2NjJkMjljNTVmMDM4OTc5N2ZjODE5MTU3NWFj
|
11
|
+
MzFkZjgxNmRjNmRlODg1YTFmYjY1YzQxYWE2NGNlZjNmNGNkZjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODU3NTAyODJmYzhkNDdjZmM2ZmFkZGQ0MmVmYTNjNTRkODNlZWI4NTQ2NjVi
|
14
|
+
MDI3NzdmOTFmN2I0OGQ1OWI4YzBiODNkZjlkZTI1MzgwNjFmMGY3NzkwMDNk
|
15
|
+
Yjc4NDg2OWQ4MDdjNmE3ZmQ0NWQ3ZjkzYjZiMzE4ZDZiMzEzOGI=
|
data/README.md
CHANGED
@@ -1168,6 +1168,7 @@ Random future features that I plan on adding
|
|
1168
1168
|
- add block to wrap useful for a variety of things, but here is solid example: rmq.append(UIButton).tag(:foo).wrap{|view| view.titleLabel}.tag(:foo_title)
|
1169
1169
|
- add def rmq_build_with_properties(props = {}). Perhaps remove rmq_created and rmq_appended, not sure if those are useful or not
|
1170
1170
|
- add easy way to do alerts and actionsheets
|
1171
|
+
- add rmq.help with basic help for when you're in repl
|
1171
1172
|
|
1172
1173
|
|
1173
1174
|
## Contact
|
data/bin/rmq
CHANGED
@@ -39,6 +39,7 @@ class RmqCommandLine
|
|
39
39
|
puts "RMQ - Invalid command, do something like this: rmq create controller my_controller\n"
|
40
40
|
end
|
41
41
|
else
|
42
|
+
ensure_template_dir
|
42
43
|
create_app(template_or_app_name)
|
43
44
|
end
|
44
45
|
end
|
@@ -46,7 +47,7 @@ class RmqCommandLine
|
|
46
47
|
def create_app(app_name)
|
47
48
|
puts ' Creating app'
|
48
49
|
|
49
|
-
|
50
|
+
system "motion create --template=rmq-template #{app_name}"
|
50
51
|
|
51
52
|
puts %{
|
52
53
|
Complete. Things you should do:
|
@@ -64,6 +65,15 @@ class RmqCommandLine
|
|
64
65
|
|
65
66
|
end
|
66
67
|
|
68
|
+
def template_dir
|
69
|
+
"#{Dir.home}/Library/RubyMotion/template/rmq-template"
|
70
|
+
end
|
71
|
+
|
72
|
+
def ensure_template_dir
|
73
|
+
return if Dir.exists?(template_dir)
|
74
|
+
system "git clone git@github.com:infinitered/rmq-template.git #{template_dir}"
|
75
|
+
end
|
76
|
+
|
67
77
|
def template_path(template_name)
|
68
78
|
sub_path = "templates/#{template_name}/"
|
69
79
|
|
@@ -35,6 +35,15 @@ module RubyMotionQuery
|
|
35
35
|
end
|
36
36
|
alias :size_to_fit :resize_to_fit_text
|
37
37
|
|
38
|
+
def adjusts_font_size=(value)
|
39
|
+
# Adhere to Apple documentation recommendations:
|
40
|
+
number_of_lines = 1 if value == true
|
41
|
+
|
42
|
+
@view.adjustsFontSizeToFitWidth = value
|
43
|
+
end
|
44
|
+
def adjusts_font_size
|
45
|
+
@view.adjustsFontSizeToFitWidth
|
46
|
+
end
|
38
47
|
|
39
48
|
TEXT_ALIGNMENTS = {
|
40
49
|
left: NSTextAlignmentLeft,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_motion_query
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Todd Werth
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-02-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bacon
|