tojour 0.1.0 → 0.1.1

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: c160c80eded75c02c4244a52105371b859788377
4
- data.tar.gz: 87136a5b12e33f1e0ffd766b5073edad4d449e32
3
+ metadata.gz: 774bd58a13f3cf3ec086383098f77b5207929e9d
4
+ data.tar.gz: bb585edc783eba0206f56d141eef6ba7835be1af
5
5
  SHA512:
6
- metadata.gz: 31b0db7f147a705e01fa108e8ea056d0458f54fd6afdf24f8b5fe01ebb0cb430b7e4b5129cdf6aa877c47b7bec08a222e60f9e83b7525ca3048c69756a07a025
7
- data.tar.gz: 0e010491320fbc3a6a16ad8f93dd25793fd6cddc5fe7a706d39ef5e43e94010da11cc9bdcc1b6175de28b31363ae2f39ac307e328fd6eb143a1083c193436ca3
6
+ metadata.gz: 3d9540716a5e8920a3418cd3ebbeb3aefb4094d6a6bec7c4bb012d4ebb9c521cd40e6e750b9dae24e5aadb5bf64e98dc459508e27edc0c9b7428aadb697a122f
7
+ data.tar.gz: b41c3b9c7ed08e8ac5af279c2e5911a9d0e7bbfd3e0ca813dceb00630d5e1bd3a5238ab94345637459a993b4f7d82d933ddf5df9a11215272bdbba250f100363
data/README.md CHANGED
@@ -31,7 +31,7 @@ tojour -s some_file.txt jbiebz
31
31
 
32
32
  ### Let Someone Pipe you a Log
33
33
 
34
- Your friend wants to send you pipe you some data. On your machine, make your
34
+ Your friend wants to pipe you some data. On your machine, make your
35
35
  machine available over Bonjour.
36
36
 
37
37
  ```bash
@@ -62,8 +62,8 @@ tojour -l
62
62
 
63
63
  ## Development
64
64
 
65
- After checking out the repo, run `bin/setup` to install dependencies. Then, run
66
- `bin/console` for an interactive prompt that will allow you to experiment.
65
+ After checking out the repo, run `bundle` to install dependencies. Then, run
66
+ `bin/tojour`.
67
67
 
68
68
  To install this gem onto your local machine, run `bundle exec rake install`. To
69
69
  release a new version, update the version number in `version.rb`, and then run
data/lib/tojour/sock.rb CHANGED
@@ -21,7 +21,7 @@ module Tojour
21
21
  end
22
22
 
23
23
  def client(host, port, &block)
24
- block.call(ssl_client)
24
+ block.call(ssl_client(host, port))
25
25
  end
26
26
 
27
27
  def ssl_server
@@ -32,7 +32,7 @@ module Tojour
32
32
  OpenSSL::SSL::SSLServer.new(server, ssl_context)
33
33
  end
34
34
 
35
- def ssl_client
35
+ def ssl_client(host, port)
36
36
  socket = TCPSocket.new(host, port)
37
37
  expected_cert = OpenSSL::X509::Certificate.new(File.open(@crt_path))
38
38
  ssl_client = OpenSSL::SSL::SSLSocket.new(socket)
@@ -42,6 +42,7 @@ module Tojour
42
42
  $stderr.puts 'Unexpected certificate.'
43
43
  exit(1)
44
44
  end
45
+ ssl_client
45
46
  end
46
47
  end
47
48
  end
@@ -1,3 +1,3 @@
1
1
  module Tojour
2
- VERSION = "0.1.0"
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tojour
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Jungemann