bluesky 0.1.6 → 0.1.7

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: 8372f2e7c84adb93cdab3b35a8dd7d6355b466fe
4
- data.tar.gz: 9eef4f54869d09bcfa4b0977a23631abe11d67e6
3
+ metadata.gz: c4a4aa830625fb1ef1f15a47f9cae5f4cbd792e0
4
+ data.tar.gz: ae8f499cfc30493df6dfb5bfd73b3bd450f69bef
5
5
  SHA512:
6
- metadata.gz: 0d9523f839ba17fcd1edd46e82ade875d499a8d321c0aebf3666b5fc9548078f5819e603e7ce97f35c0c95856d0b307e8666efef5b312f14b7d0fdaff1793d11
7
- data.tar.gz: 505700473139d5c1ec33dee7b1cdc2db8398fe39128c5363038348b40ac99590fe942cfcfca64257ded12cdef695a01dacbd8f373f986cda45f9a0aacafb0d0a
6
+ metadata.gz: 15b6909a3c34c6b4fdc17cfd0580004c08dfa232966c4e5c9ed123fa13c35f1f7f4350c107a59e67704ad5f3c721de31f44dcd6a4850124519d9138817ef21da
7
+ data.tar.gz: 8402cf995c8ee114822fc4a7436cf4a2f6c041aab0319012fb42871aa37451ebed5fac2a4bf13464069be4df0d1f71acf18f0ae871018a108d8e8aa4f9f69f7f
@@ -60,7 +60,14 @@ module Bluesky
60
60
  # payload: (Array) Additional arguments to pass along
61
61
  def notify(source, event, *payload)
62
62
  try(@delegate, source, event, *payload)
63
- puts "#{event} #{payload}" if debug?
63
+ if debug?
64
+ message = "#{event} #{payload}"
65
+ if RUBY_ENGINE == 'opal'
66
+ `console.log(message)`
67
+ else
68
+ puts message
69
+ end
70
+ end
64
71
  end
65
72
 
66
73
  # Refreshes (runs render) on the root_view_controller and invokes the block
@@ -8,7 +8,7 @@ module Bluesky
8
8
  def initialize(root_view_controller)
9
9
  raise 'NavigationController requires a root_view_controller' unless root_view_controller
10
10
  super
11
- @children = [root_view_controller]
11
+ add_child_view_controller(root_view_controller)
12
12
  end
13
13
 
14
14
  def view
@@ -171,12 +171,10 @@ module Bluesky
171
171
  end
172
172
 
173
173
  def mount
174
- puts 'mount'
175
174
  @mounted = true
176
175
  end
177
176
 
178
177
  def unmount
179
- puts 'unmount'
180
178
  @mounted = false
181
179
  end
182
180
 
@@ -1,3 +1,3 @@
1
1
  module Bluesky
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bluesky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Susi