gratan 0.2.8 → 0.2.9.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/gratan +11 -1
- data/lib/gratan/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0deeb68ccacd8d24022b3939ed06414d0d9e13b6
|
4
|
+
data.tar.gz: f4117fc4474f5f6f35c0c7e92fb685bf98432b2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 908ae4b362a771f0e0ba6950727852173c9ed3e134ab6be03ee18dfd31b5b9bc4a5a314f3e078b6dac425543e47628e809e68baa7c0b2f856b8c3e898ab4b1d3
|
7
|
+
data.tar.gz: d072fed85df8e62ca497f5fbffca471c364e2980805f5331017c5b71fd20d06951090997cca8e4e51ad3c3ef005cc2f05172470ba5c76b94b829f6949b1cdd27
|
data/bin/gratan
CHANGED
@@ -12,6 +12,10 @@ mode = nil
|
|
12
12
|
file = DEFAULT_FILENAME
|
13
13
|
output_file = '-'
|
14
14
|
split = false
|
15
|
+
MAGIC_COMMENT = <<-EOS
|
16
|
+
# -*- mode: ruby -*-
|
17
|
+
# vi: set ft=ruby :
|
18
|
+
EOS
|
15
19
|
|
16
20
|
mysql_options = {
|
17
21
|
:host => 'localhost',
|
@@ -89,6 +93,7 @@ begin
|
|
89
93
|
logger.info(" write `#{grant_file}`")
|
90
94
|
|
91
95
|
open(grant_file, 'wb') do |f|
|
96
|
+
f.puts MAGIC_COMMENT
|
92
97
|
f.puts dsl
|
93
98
|
end
|
94
99
|
end
|
@@ -96,6 +101,8 @@ begin
|
|
96
101
|
logger.info(" write `#{output_file}`")
|
97
102
|
|
98
103
|
open(output_file, 'wb') do |f|
|
104
|
+
f.puts MAGIC_COMMENT
|
105
|
+
|
99
106
|
requires.each do |grant_file|
|
100
107
|
f.puts "require '#{File.basename grant_file}'"
|
101
108
|
end
|
@@ -106,7 +113,10 @@ begin
|
|
106
113
|
puts client.export(options)
|
107
114
|
else
|
108
115
|
logger.info("Export Grants to `#{output_file}`")
|
109
|
-
open(output_file, 'wb')
|
116
|
+
open(output_file, 'wb') do |f|
|
117
|
+
f.puts MAGIC_COMMENT
|
118
|
+
f.puts client.export(options)
|
119
|
+
end
|
110
120
|
end
|
111
121
|
end
|
112
122
|
when :apply
|
data/lib/gratan/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.9.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: 2015-
|
11
|
+
date: 2015-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mysql2
|
@@ -201,9 +201,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
201
201
|
version: '0'
|
202
202
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
203
203
|
requirements:
|
204
|
-
- - '
|
204
|
+
- - '>'
|
205
205
|
- !ruby/object:Gem::Version
|
206
|
-
version:
|
206
|
+
version: 1.3.1
|
207
207
|
requirements: []
|
208
208
|
rubyforge_project:
|
209
209
|
rubygems_version: 2.0.14
|