motion-pixate-observer 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/Socket/libSocket.a +0 -0
- data/lib/motion-pixate-server.rb +2 -2
- data/lib/project/pixate_style_watch.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a7d46521707f01144b1b7e608462b3489e1ac48
|
4
|
+
data.tar.gz: 550b36fd8325b1d0ffbcd99448d9149e17c2cd76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
$
|
52
|
+
$ pixate_server css_file_path
|
52
53
|
```
|
53
54
|
|
54
55
|
After started server, run your RubyMotion application.
|
data/lib/Socket/libSocket.a
CHANGED
Binary file
|
data/lib/motion-pixate-server.rb
CHANGED
@@ -7,10 +7,10 @@ unless File.exists?(cssfile)
|
|
7
7
|
exit
|
8
8
|
end
|
9
9
|
|
10
|
-
SERVER_PORT =
|
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
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
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.
|
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-
|
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.
|
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
|