motion-pixate-observer 0.3 → 0.4

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58a0af04a41e4477684fb74715087c3cec679025
4
- data.tar.gz: ef1f8d072b48fad6282237053bfd54c2fca4a3bc
3
+ metadata.gz: 8a7d46521707f01144b1b7e608462b3489e1ac48
4
+ data.tar.gz: 550b36fd8325b1d0ffbcd99448d9149e17c2cd76
5
5
  SHA512:
6
- metadata.gz: fb21ab409ac865dd5b6db54fb98cdc7fe0e91c468b31a7a1c2e8356dd586bcb75fcab542960378da1ef2352f692c156c6a3426ec62027b6ae3057c0c61606aeb
7
- data.tar.gz: c7a579df2cafa9cc8f44c2ce766b08e9b9924d71a45cd0416b62f567d780c0344e5d80d810b0c5c004bf7fe9fb34e1d9a71f50d568fdfa3c4d3880010e2cec98
6
+ metadata.gz: 9855b64318af7d3966f0298e3f21cca6f169cb8e8169a90e289407fcf7a211eba854b60d7af7163b0634132fc9c943d22a82da133a585e469f4392ab32167e46
7
+ data.tar.gz: 5ebdc377896f5ba82c971f828705d3dd5940946be5091799ea232f18507c49e69d536f4a4693066cf4b38d5f9c5919e86eb0e6860960c1a3ea9a38334ecf5492
data/README.md CHANGED
@@ -13,6 +13,7 @@ CSS ファイルを変更するたびにアプリをビルドし直す必要も
13
13
 
14
14
  - RubyMotion 1.0 or greater (see http://www.rubymotion.com).
15
15
  - Pixate Framework 1.0 or greater (see http://www.pixate.com/).
16
+ - MacRuby 0.12+ (see http://macruby.org/)
16
17
 
17
18
  ## Installation
18
19
 
@@ -48,7 +49,7 @@ class MainViewController < UIViewController
48
49
 
49
50
 
50
51
  ```
51
- $ ./pixate_server css_file_path
52
+ $ pixate_server css_file_path
52
53
  ```
53
54
 
54
55
  After started server, run your RubyMotion application.
Binary file
@@ -7,10 +7,10 @@ unless File.exists?(cssfile)
7
7
  exit
8
8
  end
9
9
 
10
- SERVER_PORT = 8000
10
+ SERVER_PORT = 54321
11
11
  SERVER_NAME = "Pixate CSS Notifier"
12
12
 
13
- netservice = NSNetService.alloc.initWithDomain("", type: "_pixate._tcp", name: SERVER_NAME, port: SERVER_PORT)
13
+ netservice = NSNetService.alloc.initWithDomain("", type: "_pixate-observer._tcp", name: SERVER_NAME, port: SERVER_PORT)
14
14
  netservice.publish
15
15
 
16
16
  serv = TCPServer.open("", SERVER_PORT)
@@ -2,7 +2,7 @@ module Motion; module Pixate; module Observer
2
2
  def startObserving
3
3
  @netServiceBrowser = NSNetServiceBrowser.alloc.init
4
4
  @netServiceBrowser.delegate = self
5
- @netServiceBrowser.searchForServicesOfType("_pixate._tcp", inDomain: "")
5
+ @netServiceBrowser.searchForServicesOfType("_pixate-observer._tcp", inDomain: "")
6
6
  end
7
7
 
8
8
  def netServiceBrowser(netServiceBrowser,
@@ -10,13 +10,13 @@ module Motion; module Pixate; module Observer
10
10
  moreComing: moreComing)
11
11
  @netServiceBrowser.stop
12
12
 
13
- service = NSNetService.alloc.initWithDomain(service.domain, type: service.type, name: service.name)
14
- service.delegate = self
15
- service.resolveWithTimeout(5.0)
13
+ @netService = NSNetService.alloc.initWithDomain(service.domain, type: service.type, name: service.name)
14
+ @netService.delegate = self
15
+ @netService.resolveWithTimeout(0.0)
16
16
  end
17
17
 
18
18
  def netServiceDidResolveAddress(service)
19
- service.stop
19
+ @netService.stop
20
20
 
21
21
  socket = Socket.alloc.initWithHost(service.hostName, Port: service.port)
22
22
  socket.delegate = self
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-pixate-observer
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-02-10 00:00:00.000000000 Z
11
+ date: 2013-06-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem provides a function that you changes css files, apply changes
14
14
  into your application that uses Pixate Framework immediately.
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
46
46
  version: '0'
47
47
  requirements: []
48
48
  rubyforge_project:
49
- rubygems_version: 2.0.0.rc.2
49
+ rubygems_version: 2.0.2
50
50
  signing_key:
51
51
  specification_version: 4
52
52
  summary: This gem provides a function that you changes css files, apply changes into