lynx 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of lynx might be problematic. Click here for more details.

@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ee98601b391221d3f66f6e299106289e7c7f7b66
4
+ data.tar.gz: 1e7114148981d5bdae8fb6b24043e571d9e07191
5
+ SHA512:
6
+ metadata.gz: d4b85781f67c26527814d90c20a354518fa46c8e328e1b24823d7a3f564f1cdeb84df551d042da8430b0e5b7b671fb8c0771f95cd5a550cbd3eef2c1a2f4a973
7
+ data.tar.gz: 6715eb9bbee48d5412d6948dc86b3f748196bfdd885c343b49d737468092bdc431acc60a0d21434f924a11cedc2bb008240adfd331f979e94d5ceeb6cdc95929
@@ -0,0 +1,3 @@
1
+ # 0.2.1
2
+
3
+ * Added `socket` configuration option. (panthomakos)
@@ -25,6 +25,7 @@ module Lynx
25
25
  @command << "--user=#{config.username}" if config.username
26
26
  @command << "--password=#{config.password}" if config.password
27
27
  @command << "--host=#{config.host}" if config.host
28
+ @command << "--socket=#{config.socket}" if config.socket
28
29
 
29
30
  self
30
31
  end
@@ -9,7 +9,7 @@ module Lynx
9
9
  @config = config
10
10
  end
11
11
 
12
- [:username, :password, :host, :database].each do |method|
12
+ [:username, :password, :host, :database, :socket].each do |method|
13
13
  define_method(method){ self[method] }
14
14
  end
15
15
 
@@ -1,3 +1,3 @@
1
1
  module Lynx
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -32,6 +32,12 @@ describe Lynx::Command::Basic do
32
32
  end
33
33
  end
34
34
 
35
+ def test_authorize_with_socket
36
+ @command.config.stub(:socket, '/foo/bar') do
37
+ assert_equal 'mysql --socket=/foo/bar', @command.mysql.authorize.to_s
38
+ end
39
+ end
40
+
35
41
  def test_authorize_with_password
36
42
  @command.config.stub(:password, 'bar') do
37
43
  assert_equal 'mysql --password=bar', @command.mysql.authorize.to_s
@@ -7,7 +7,8 @@ describe Lynx::Config do
7
7
  database: 'lynx',
8
8
  username: 'name',
9
9
  password: 'pass',
10
- host: 'localhost')
10
+ host: 'localhost',
11
+ socket: '/foo/bar')
11
12
  end
12
13
 
13
14
  it 'knows the mysql command' do
@@ -34,6 +35,10 @@ describe Lynx::Config do
34
35
  assert_equal 'name', config.username
35
36
  end
36
37
 
38
+ it 'knows the socket' do
39
+ assert_equal '/foo/bar', config.socket
40
+ end
41
+
37
42
  it 'knows the password' do
38
43
  assert_equal 'pass', config.password
39
44
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lynx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Pan Thomakos
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-31 00:00:00.000000000 Z
11
+ date: 2015-02-23 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: minitest
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  description: Ruby command line wrapper for MySQL.
@@ -35,6 +32,7 @@ extensions: []
35
32
  extra_rdoc_files: []
36
33
  files:
37
34
  - .gitignore
35
+ - CHANGES.md
38
36
  - Gemfile
39
37
  - LICENSE.txt
40
38
  - README.md
@@ -64,27 +62,26 @@ files:
64
62
  - test/lib/lynx/pipe/write_test.rb
65
63
  homepage: https://www.github.com/panthomakos/lynx
66
64
  licenses: []
65
+ metadata: {}
67
66
  post_install_message:
68
67
  rdoc_options: []
69
68
  require_paths:
70
69
  - lib
71
70
  required_ruby_version: !ruby/object:Gem::Requirement
72
- none: false
73
71
  requirements:
74
- - - ! '>='
72
+ - - '>='
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  required_rubygems_version: !ruby/object:Gem::Requirement
78
- none: false
79
76
  requirements:
80
- - - ! '>='
77
+ - - '>='
81
78
  - !ruby/object:Gem::Version
82
79
  version: '0'
83
80
  requirements: []
84
81
  rubyforge_project:
85
- rubygems_version: 1.8.23
82
+ rubygems_version: 2.0.14
86
83
  signing_key:
87
- specification_version: 3
84
+ specification_version: 4
88
85
  summary: Ruby command line wrapper for MySQL.
89
86
  test_files:
90
87
  - test/lib/lynx/command/basic_test.rb