mycroft 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,6 @@ module Mycroft
9
9
  MYCROFT_PORT = 1847
10
10
 
11
11
  def start(app, host='localhost', port=MYCROFT_PORT)
12
- app.new(host, port)
12
+ app.new(host || 'localhost' , port || MYCROFT_PORT)
13
13
  end
14
14
  end
@@ -8,7 +8,7 @@ module Mycroft
8
8
 
9
9
  # connects to mycroft aka starts tls if necessary
10
10
  def connect_to_mycroft
11
- if ARGV.length == 1 and ARGV[0] == '--no-tls'
11
+ if ARGV.include?("--no-tls")
12
12
  @client = TCPSocket.open(@host, @port)
13
13
  else
14
14
  socket = TCPSocket.new(@host, @port)
@@ -1,3 +1,3 @@
1
1
  module Mycroft
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mycroft
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-04-22 00:00:00.000000000 Z
12
+ date: 2014-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler