genRelease 1.0.0 → 1.1.1

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: 3bf46944a48faae33ca1ccb8f83efb2a73a0d0bf
4
- data.tar.gz: 5764d8b71f1e015f74242a6fe96322a7c0745e0d
3
+ metadata.gz: a03d0cacb5af11526e234560169f88ede2c339cd
4
+ data.tar.gz: 2b31ca2f5e984a1e4670f0d934b55c480a67634a
5
5
  SHA512:
6
- metadata.gz: 5e24d0f7e878916c68ff0e6caa273439cd5d6b3c47aa732d7e6aef6f57672683ec24e3dc73a43cb9dd85696493f822efc10d41e94d0cc3643b040a90b489a38a
7
- data.tar.gz: c16f152b70397f9641dc3661fc6df2f4588ace9dde40f2d6429977d393a2f14f99bfcc6bb2726d7a5aac1fd88ac43cc9430dbedf5dd9c867df9a66f7f3328a7a
6
+ metadata.gz: fee4346d976f30a44f486a3f2ab67d4b5484304568cc5e02e5f42245dc3b6c50c5b90fe05d44833439b8f8e18a01522a83af09385a4203f23c230c2deb80c85b
7
+ data.tar.gz: 4614b4f7a37ec5f80e40c1c6eb0a76480923c9bcc2db068782c9f8988fb3ed00e71d00422962b0bab8cf93851146dcde0648633694724d52b9deb1172f43ec80
@@ -1,3 +1,4 @@
1
+ require 'json'
1
2
  module GenRelease
2
3
  module FileUtils
3
4
  extend self
@@ -14,11 +15,11 @@ module GenRelease
14
15
  end
15
16
 
16
17
  def format(content)
17
- result = ""
18
+ json_arr = []
18
19
  content.each do |k,v|
19
- result << ::Kernel::sprintf("%s\nmd5:%s\nsha1:%s\n\n",k.to_s,v[:md5],v[:sha1])
20
+ json_arr << {:file => k.to_s,:md5 => v[:md5].to_s,:sha1 => v[:sha1]}
20
21
  end
21
- result
22
+ json_arr.to_json.to_s
22
23
  end
23
24
  end
24
25
  end
@@ -1,3 +1,3 @@
1
1
  module GenRelease
2
- VERSION = '1.0.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genRelease
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - megrez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-11 00:00:00.000000000 Z
11
+ date: 2015-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.2.2
123
+ rubygems_version: 2.2.0
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: A cli tool to generate RSA key-pair and output a recursive filelist