gratan 0.2.7 → 0.2.8.beta

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: d7351dc27969d2d348085464822282e02791aaaf
4
- data.tar.gz: 35721b2caab84b866744e7a0dc91f80db3812c7a
3
+ metadata.gz: a52884b2ffd8ef6edc3ff0214ca09909b7ad7b88
4
+ data.tar.gz: cc00c396f47397c437d49fbc88c8a7110e36cdaf
5
5
  SHA512:
6
- metadata.gz: 3e7aa3056a461b53bcbb3ffbf59edf097327b91e66f05a80051b174339f43ec31cfadf30ac93d6d04400dad37caa2045d11fb3d60d592254fdb2a1ee53293b22
7
- data.tar.gz: 3219b8636ed500ca60e34c8bf85b65ac97a41037eb536e2ae37a09c06cba3ddb7bcff102bcf738c2df505d12e94ed8bce26c7637dba5310f492032bae70767b8
6
+ metadata.gz: 39012c2a12d33adb3310e87e70cf7e1aa05d97f137fb3c489942cf3c6c1841343ccf8b0fd604da374e24ed56856a5db5b390bf96d2e835d344047701618d9b60
7
+ data.tar.gz: 197bece8b9786d4447b23e8b628f2c6355795e66fec88b59bbc3dcf715d9de64c164d5f19267852ccd6daffb92e1e731ebab328481dc0810ad48ff8e723a6fda
data/README.md CHANGED
@@ -4,7 +4,7 @@ Gratan is a tool to manage MySQL permissions.
4
4
 
5
5
  It defines the state of MySQL permissions using Ruby DSL, and updates permissions according to DSL.
6
6
 
7
- [![Gem Version](https://badge.fury.io/rb/gratan.png)](http://badge.fury.io/rb/gratan)
7
+ [![Gem Version](https://badge.fury.io/rb/gratan.svg)](http://badge.fury.io/rb/gratan)
8
8
  [![Build Status](https://travis-ci.org/winebarrel/gratan.svg?branch=master)](https://travis-ci.org/winebarrel/gratan)
9
9
  [![Coverage Status](https://coveralls.io/repos/winebarrel/gratan/badge.png?branch=master)](https://coveralls.io/r/winebarrel/gratan?branch=master)
10
10
 
@@ -91,6 +91,9 @@ user "scott", ["localhost", "192.168.%"], expired: '2014/10/10' do
91
91
  end
92
92
  ```
93
93
 
94
+ ## Similar tools
95
+ * [Codenize.tools](http://codenize.tools/)
96
+
94
97
  ## What does "Gratan" mean?
95
98
 
96
99
  [![](http://i.gyazo.com/c37d934ba0a61f760603ce4c56401e60.png)](https://www.google.com/search?q=gratin&tbm=isch)
data/gratan.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['sgwr_dts@yahoo.co.jp']
11
11
  spec.summary = %q{Gratan is a tool to manage MySQL permissions using Ruby DSL.}
12
12
  spec.description = %q{Gratan is a tool to manage MySQL permissions using Ruby DSL.}
13
- spec.homepage = 'https://github.com/winebarrel/gratan'
13
+ spec.homepage = 'http://gratan.codenize.tools/'
14
14
  spec.license = 'MIT'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
data/lib/gratan/client.rb CHANGED
@@ -99,7 +99,11 @@ class Gratan::Client
99
99
 
100
100
  unless attrs[:options].has_key?(:identified)
101
101
  identified = @options[:identifier].identify(user, host)
102
- attrs[:options][:identified] = identified if identified
102
+
103
+ if identified
104
+ attrs = attrs.dup
105
+ attrs[:options][:identified] = identified
106
+ end
103
107
  end
104
108
 
105
109
  @driver.create_user(user, host, attrs)
@@ -1,3 +1,3 @@
1
1
  module Gratan
2
- VERSION = '0.2.7'
2
+ VERSION = '0.2.8.beta'
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.7
4
+ version: 0.2.8.beta
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-11-05 00:00:00.000000000 Z
11
+ date: 2015-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2
@@ -183,7 +183,7 @@ files:
183
183
  - spec/misc/misc_spec.rb
184
184
  - spec/misc/require_spec.rb
185
185
  - spec/spec_helper.rb
186
- homepage: https://github.com/winebarrel/gratan
186
+ homepage: http://gratan.codenize.tools/
187
187
  licenses:
188
188
  - MIT
189
189
  metadata: {}
@@ -198,12 +198,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
198
198
  version: '0'
199
199
  required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  requirements:
201
- - - '>='
201
+ - - '>'
202
202
  - !ruby/object:Gem::Version
203
- version: '0'
203
+ version: 1.3.1
204
204
  requirements: []
205
205
  rubyforge_project:
206
- rubygems_version: 2.4.1
206
+ rubygems_version: 2.0.14
207
207
  signing_key:
208
208
  specification_version: 4
209
209
  summary: Gratan is a tool to manage MySQL permissions using Ruby DSL.