grn2drn 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/grn2drn +2 -0
  3. data/lib/grn2drn/version.rb +1 -1
  4. metadata +8 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b881ef409eb9ed83ad1af4b266945828a251a49
4
- data.tar.gz: 86b5c9cda0770503aa48faa9fc26ab7a5d6eff8e
3
+ metadata.gz: 9cec040fac46b1813f053d9feaf6abeef343cd7f
4
+ data.tar.gz: 36bfefe700a463b35150c50e57c6be01fbc10a8a
5
5
  SHA512:
6
- metadata.gz: dabdcf4ed5dfbd0531fac2456c0439138e6f5dc227b98c3bc979332f5afa04204e5aa3beab94e38aa6149a6d0e0cc4f1575beeebe33585f2cb810d1658fed05e
7
- data.tar.gz: 843449bcafa9ea97f5e3bed00c06d783125238593858db7a77cecb0d322920bfcbd18ccba71190ebd7548066eeac7267ddb0b99496904018fea86a6e1d39d9cf
6
+ metadata.gz: bbb67f5ba1273361e2d7e49ff47586196689ec0c983eaafab82b3cde6e6774fefb634e3e253ae31c1ff049defbbb8975530d5191ff1e81d254a9ec90496fc68c
7
+ data.tar.gz: 50f5531f959060b404f0ce406d6b3801397596f267bc0b499c877583292301624981cbb13431d36f7665db551f13e95c4d93dae6a38643c2dc88bb723387b9a8
data/bin/grn2drn CHANGED
@@ -17,6 +17,7 @@
17
17
  # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
18
 
19
19
  require "ostruct"
20
+ require "fileutils"
20
21
  require "optparse"
21
22
 
22
23
  require "grn2drn/version"
@@ -89,6 +90,7 @@ def open_output(path)
89
90
  if path == "-"
90
91
  yield($stdout)
91
92
  else
93
+ FileUtils.mkdir_p(File.dirname(path))
92
94
  File.open(path, "w") do |output|
93
95
  yield(output)
94
96
  end
@@ -14,5 +14,5 @@
14
14
  # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
16
  module Grn2Drn
17
- VERSION = "1.0.3"
17
+ VERSION = "1.0.4"
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grn2drn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Droonga Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-10 00:00:00.000000000 Z
11
+ date: 2014-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -117,16 +117,16 @@ executables:
117
117
  extensions: []
118
118
  extra_rdoc_files: []
119
119
  files:
120
+ - Gemfile
120
121
  - README.md
121
122
  - Rakefile
122
- - Gemfile
123
+ - bin/grn2drn
124
+ - bin/grn2drn-schema
123
125
  - grn2drn.gemspec
126
+ - lib/grn2drn/command-converter.rb
127
+ - lib/grn2drn/error.rb
124
128
  - lib/grn2drn/schema-converter.rb
125
129
  - lib/grn2drn/version.rb
126
- - lib/grn2drn/error.rb
127
- - lib/grn2drn/command-converter.rb
128
- - bin/grn2drn-schema
129
- - bin/grn2drn
130
130
  homepage: https://github.com/droonga/grn2drn
131
131
  licenses:
132
132
  - GPLv3 or later
@@ -147,9 +147,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 2.0.14
150
+ rubygems_version: 2.4.1
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Grn2drn is a command to convert a *.grn dump file to a JSONs file for Droonga.
154
154
  test_files: []
155
- has_rdoc: