scms 4.4.6 → 4.4.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/scms/scms-bundler.rb +14 -0
- data/lib/scms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MGI5MGIyN2ZiNDRjMDJhNzA0Y2ViN2FiOTk3ZTRkNmQyMTE1ZjdjZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWMzYzg5NDllOTBkMWE0NWYwYzE0ZGNiMTIxYmYzYWQzZjA0ODNmNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTRmMjQ0OTRlZTg5NzI4ZWY3MGZiNTBiODk0YzE0NmEyMTY4NjIwM2UwYWVk
|
10
|
+
NTE3MDQxZGY2M2ZiYWQ3YzUwNTE1MjE0OWJmYWRmODkwZjAyOWU5NDFhNjY2
|
11
|
+
MjNhNzhkMjI3YjFjNzA3ODRjMmVlMDBmMzg5ODdkNjU1NWU5ZmI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmVmOThiODAyZTFiZTAxNjEzYzcwMDNjM2NkODlmZmQwMGNlOGQ0MWQzYTlm
|
14
|
+
NjlmZWE3YzAwODUwMmJhYmY0Mzg2NjkyMzhiZDQ2ODY2ZjgyOGU2NTBmMmJl
|
15
|
+
ZDYwNGRmMjYzZDIyNjVlY2JjZjNkMGRhODIzNzZiMjNkZDY4MWY=
|
data/lib/scms/scms-bundler.rb
CHANGED
@@ -2,6 +2,7 @@ module ScmsBundler
|
|
2
2
|
require 'fileutils'
|
3
3
|
require 'packr'
|
4
4
|
require 'scms/scms-bundler.rb'
|
5
|
+
require 'zlib'
|
5
6
|
|
6
7
|
def ScmsBundler.run()
|
7
8
|
Dir.glob('**/*.bundle').each do|bundle|
|
@@ -49,6 +50,19 @@ module ScmsBundler
|
|
49
50
|
begin
|
50
51
|
File.open(out, 'w') {|f| f.write(content) }
|
51
52
|
ScmsUtils.successLog("Created: #{out}")
|
53
|
+
|
54
|
+
extn = File.extname out # => ".mp4"
|
55
|
+
name = File.basename out, extn # => "xyz"
|
56
|
+
path = File.dirname out # => "/path/to"
|
57
|
+
|
58
|
+
gzip_out = "#{path}#{name}.gz#{extn}"
|
59
|
+
Zlib::GzipWriter.open("#{out}.gz") do |gz|
|
60
|
+
File.open(out).each do |line|
|
61
|
+
gz.write line
|
62
|
+
end
|
63
|
+
gz.close
|
64
|
+
end
|
65
|
+
puts "Created gzip: #{gzip_out}"
|
52
66
|
rescue Exception=>e
|
53
67
|
ScmsUtils.errLog("Error creating bundle: #{out}")
|
54
68
|
ScmsUtils.errLog(e.message)
|
data/lib/scms/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.4.
|
4
|
+
version: 4.4.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Courtenay Probert
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cprobert-s3sync
|