gratan 0.2.5 → 0.2.6

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: 65d0a9808bf9dba9899060c4c7e220beaf8c0d5a
4
- data.tar.gz: 355bea40e2a79d9c907ac7ffdc162cda0b2ab5b7
3
+ metadata.gz: 1b39e23930b84b24557337302e39d8a4e3fb8051
4
+ data.tar.gz: a1986c201ce5314e900edb5ba24a30a13891d0a1
5
5
  SHA512:
6
- metadata.gz: 58003b9ec0af4f3000c3df6f3c7eff440cf4c0672fac07fc486e8afc0b5eb9864fb865c15fd53991beb7e8e4ad0cc2d317d4c2e9caf902d7f2dfccdc73f16eb8
7
- data.tar.gz: 8600de836683f357bdd0faf21e5a5ac6bd888c40767fa2413b39b1b1c5b387be177047c081e980516e2e998ba4445bc8d2f92768910916978bbd456b128378cd
6
+ metadata.gz: d1879bf7c0fb932e9bded29a28373616da2877b1b9550016002ec0192f8ebad95c200ef47bb87fab405d8fa63f7ccaf4eda87886e9165663bda67140f4f0540f
7
+ data.tar.gz: d6be4767694238c350c35bd0da8be087dedc6bab5aba1711d22afd8c3a7ab62179826d337438621eb0daaaed6d453610e148d6c7ef08108c5534ead183b55675
data/README.md CHANGED
@@ -49,6 +49,7 @@ Usage: gratan [options]
49
49
  -e, --export
50
50
  --with-identifier
51
51
  --split
52
+ --chunk-by-user
52
53
  -o, --output FILE
53
54
  --ignore-user REGEXP
54
55
  --target-user REGEXP
data/lib/gratan/client.rb CHANGED
@@ -97,7 +97,7 @@ class Gratan::Client
97
97
  def create_user(user, host, attrs)
98
98
  attrs[:options] ||= {}
99
99
 
100
- unless attrs.has_key?(:identified)
100
+ unless attrs[:options].has_key?(:identified)
101
101
  identified = @options[:identifier].identify(user, host)
102
102
  attrs[:options][:identified] = identified if identified
103
103
  end
@@ -2,15 +2,6 @@ class Gratan::Identifier::Auto
2
2
  def initialize(output, options = {})
3
3
  @output = output
4
4
  @options = options
5
-
6
- unless @options[:dry_run]
7
- if output == '-'
8
- @output = $stdout
9
- else
10
- @output = output
11
- end
12
- end
13
-
14
5
  @cache = {}
15
6
  end
16
7
 
@@ -1,3 +1,3 @@
1
1
  module Gratan
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gratan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-17 00:00:00.000000000 Z
11
+ date: 2014-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2