ruby_motion_query 0.5.1 → 0.5.2

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDQxZDk3Y2FlZTc1ZTkzNWQwZmRhNDc2YTgzMjU2YWIwNWU2ZWRhOQ==
4
+ MTAyZjRlZmI2ZGMzZTViZDRhZGQwM2FmZTQzNzc2YjJhOGQxOTZkMg==
5
5
  data.tar.gz: !binary |-
6
- ZWM4MmVjZjU5MmM3NjNlZGQyZmM5YTBlODcwNGQyZGYxYzRkZTgwNg==
6
+ NjIyZTYyZWUzZjFiMzk2NDI4ZjNmMGU2ZTBlZjdiMjM3YWE5MzEwZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MDZhYzYxZTY2ZTZjMjBjODEyMDA0OTIyZWYyY2IyYTczNDM0NmYyZDkzNDJl
10
- NWE0ODkxNzdhODgxMDg0MWM2NjM4OGE1MTc1ZjllOWFjZWU4NzJiMTE2MmU0
11
- MTZmODc5MjIyODcwMzk3ZTYyM2FkZjE2ODkyZmIwMTQ0MjhhYzg=
9
+ NTIxYmRkNzcyMWNkYzEzNGIwZDMxYzYxMjZlYWUzYjFkODBjNDE0YWNmN2Uw
10
+ ZGZjMTM1YTdkM2M4MTMwYWE2NjJkMjljNTVmMDM4OTc5N2ZjODE5MTU3NWFj
11
+ MzFkZjgxNmRjNmRlODg1YTFmYjY1YzQxYWE2NGNlZjNmNGNkZjg=
12
12
  data.tar.gz: !binary |-
13
- NDRlOTNmMzUwYWY1YTBmZmFhNzhiMjc3YWZjOTM5NDEzZDE2MDdkN2VkY2Nj
14
- NDlhYTJjMDdkN2VmZmNhMGY2NTIyOWJjZjJmNDUxNTNiYWY0MmQ5NDc4YTdm
15
- ZjNjMGRmMWNhYzBlODgyYTNjYmU2ZjI0MmMyYzFmMzM3NzM3YjA=
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
- `motion create --template=git@github.com:infinitered/rmq-template.git #{app_name}`
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,
@@ -266,6 +266,10 @@ module RubyMotionQuery
266
266
  @view.clipsToBounds
267
267
  end
268
268
 
269
+ def layer
270
+ @view.layer
271
+ end
272
+
269
273
  end
270
274
  end
271
275
  end
@@ -1,5 +1,5 @@
1
1
  module RubyMotionQuery
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
 
4
4
  class RMQ
5
5
  def version
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.1
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-01-22 00:00:00.000000000 Z
12
+ date: 2014-02-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bacon