nr 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +47 -7
  3. data/lib/nr/version.rb +2 -2
  4. data/nr.gemspec +3 -3
  5. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
- metadata.gz: 29f3b5815171dfd6e87829a17b726a1af0a1a7b7
4
- data.tar.gz: 034727f6deecff98c96b3405b3eb1f942870bf6f
3
+ metadata.gz: 9f4e424d8da404f679a59755eb48424a3974fabe
4
+ data.tar.gz: 304b7cfd2691891fdbafd7475b1a9935976481ef
5
5
  !binary "U0hBNTEy":
6
- metadata.gz: f7b34a40b37d0b317c7d0ad2317658058577d17cdd6b700d5bce0e3f65730af2485e5f78237ebd314b66703da55812dfe43a5a73e8b2fc8abc50ec06be7d7ec4
7
- data.tar.gz: e1070ca1aec27d5cd4477babbcb45bb3b1988915a4ef11c2a216e0547509c4b7e8df972e79a114cf407434e6a196e0828cf1d9f822bdf3d8b5b6ff48fb54d115
6
+ metadata.gz: 7b56f21f1406ceecf7608dca9adc424a2f9aac2be1ebf5551badc64f693ef9cd8016e2f4b061d2d31236bc9aa6dabd26bc090f2dbbbdaa17bb33e6f69762f64d
7
+ data.tar.gz: 0125ca903520a5dc5444868d09bff1fe86b0ca80b3a9d7a2929e1802fa6bc15bb76aea5d7dd6d1709d5992eeca6b957ba518bba47d4c55db8f169b482145cab3
data/README.md CHANGED
@@ -10,15 +10,13 @@ by Lin Jen-Shin ([godfat](http://godfat.org))
10
10
 
11
11
  ## DESCRIPTION:
12
12
 
13
- nr -- net received -- The other side of nc
13
+ nr --net received-- The other side of nc.
14
14
 
15
- Play with `nr localhost 1234` and `nc localhost 1234`
15
+ Run the server with `nr` and client with `echo 'test' | nc localhost 12344`.
16
16
 
17
17
  ## REQUIREMENTS:
18
18
 
19
- * [cool.io][]
20
-
21
- [cool.io]: https://github.com/tarcieri/cool.io
19
+ * [celluloid-io](https://github.com/celluloid/celluloid-io)
22
20
 
23
21
  ## INSTALLATION:
24
22
 
@@ -26,13 +24,55 @@ Play with `nr localhost 1234` and `nc localhost 1234`
26
24
 
27
25
  ## SYNOPSIS:
28
26
 
29
- Run the server with `nr localhost 1234` and play with `nc localhost 1234`
27
+ > nr -h
28
+ Usage: nr HOST PORT
29
+ -o, --host HOST HOST it is listening to (default: 0.0.0.0)
30
+ -p, --port PORT PORT it is bound to (default: 12344)
31
+ -h, --help Print this message
32
+ -v, --version Print the version
33
+
34
+ Run the server with `nr` and client with `echo 'test' | nc localhost 12344`.
35
+
36
+ * Step 1:
37
+
38
+ > nr
39
+ Listening on 0.0.0.0:12344
40
+
41
+ * Step 2:
42
+
43
+ > echo 'test' | nc localhost 12344
44
+
45
+ * Step 3: You'll see `test` printed from `nr`.
46
+
47
+ Or with different port:
48
+
49
+ > nr 9090
50
+ Listening on 0.0.0.0:9090
51
+
52
+ ## How Is This useful?
53
+
54
+ I often need to edit my source on my Mac with GUI editor and then apply
55
+ it on my Linux in order to run it. I'll do this on my Linux:
56
+
57
+ nr | git apply
58
+
59
+ And do this on my Mac:
60
+
61
+ git diff | nc my-linux 12344
62
+
63
+ This is much more pleasant than doing this:
64
+
65
+ git diff | pbcopy
66
+
67
+ and then manually paste to my Linux since my terminal might not do the
68
+ right job sometimes with large portion of codes. Using pure network with
69
+ `nr` and `nc` is much more reliable.
30
70
 
31
71
  ## LICENSE:
32
72
 
33
73
  Apache License 2.0
34
74
 
35
- Copyright (c) 2011, Lin Jen-Shin (godfat)
75
+ Copyright (c) 2011-2013, Lin Jen-Shin (godfat)
36
76
 
37
77
  Licensed under the Apache License, Version 2.0 (the "License");
38
78
  you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
1
 
2
- module Nr
3
- VERSION = '0.9.0'
2
+ class Nr
3
+ VERSION = '0.9.1'
4
4
  end
data/nr.gemspec CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "nr"
5
- s.version = "0.9.0"
5
+ s.version = "0.9.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Lin Jen-Shin (godfat)"]
9
9
  s.date = "2013-04-16"
10
- s.description = "nr -- net received -- The other side of nc\n\nPlay with `nr localhost 1234` and `nc localhost 1234`"
10
+ s.description = "nr --net received-- The other side of nc.\n\nRun the server with `nr` and client with `echo 'test' | nc localhost 12344`."
11
11
  s.email = ["godfat (XD) godfat.org"]
12
12
  s.executables = ["nr"]
13
13
  s.files = [
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.homepage = "https://github.com/godfat/nr"
26
26
  s.require_paths = ["lib"]
27
27
  s.rubygems_version = "2.0.0"
28
- s.summary = "nr -- net received -- The other side of nc"
28
+ s.summary = "nr --net received-- The other side of nc."
29
29
 
30
30
  if s.respond_to? :specification_version then
31
31
  s.specification_version = 4
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lin Jen-Shin (godfat)
@@ -24,10 +24,10 @@ dependencies:
24
24
  - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- description: ! 'nr -- net received -- The other side of nc
27
+ description: ! 'nr --net received-- The other side of nc.
28
28
 
29
29
 
30
- Play with `nr localhost 1234` and `nc localhost 1234`'
30
+ Run the server with `nr` and client with `echo ''test'' | nc localhost 12344`.'
31
31
  email:
32
32
  - godfat (XD) godfat.org
33
33
  executables:
@@ -68,5 +68,5 @@ rubyforge_project:
68
68
  rubygems_version: 2.0.0
69
69
  signing_key:
70
70
  specification_version: 4
71
- summary: nr -- net received -- The other side of nc
71
+ summary: nr --net received-- The other side of nc.
72
72
  test_files: []