docman 0.0.45 → 0.0.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0572487bc6630b12a79f34b928844c087a6ad397
4
- data.tar.gz: 2311f00a9368ec1265181de03d2b15468289dd7c
3
+ metadata.gz: 28d7d39c507378440e7d5d1d31cbb5a55b3cb87e
4
+ data.tar.gz: 38ff4364fae0f21a76c7b8a580d2bb9252d36ca6
5
5
  SHA512:
6
- metadata.gz: 42592715cf60217d2b6fb186e7f9fb042d3def46a3ac1481ae65eb7cd51f798c8427c11931b2235d2a4991b3277f798cfb9f88343112286ff02de2a1b0e3dad8
7
- data.tar.gz: 7c15108497db451faa2d42e83a4d377797ec441b8bca5eb44ae0210eb239c4e4f4dcd5f54c94fe7eaee5e04b5fac5b2730c59bb05c3491c919757c5cc7356b77
6
+ metadata.gz: 9fac30585607ccc966ae0e95100f672e697f17bb7f558038a4c71d8f5b142e9fa7af301573c3eca7d1b4620be0b5ab9b06ac381257e7998c34faf32a50069f0f
7
+ data.tar.gz: ca86e127fe650de5444fb2fea4fc6feda0eb6225194f22aa12d91099f429a7503dca52ea31ddc8e2f644ec4d1853a983d5380d99ebc48fd2d53235e6890bf3a1
@@ -20,7 +20,11 @@ module Docman
20
20
  Dir.chdir self['execution_dir']
21
21
  logger.info "Script execution: #{self['location']}"
22
22
  params = self['params'].nil? ? '' : prepare_params(self['params'])
23
- `chmod 777 #{self['location']}`
23
+
24
+ # Fix for ^M issue when saved from GitLab or windows.
25
+ `cat #{self['location']} | tr -d '\r' > #{self['location']}-tmp`
26
+ `rm -f #{self['location']}`
27
+ `mv #{self['location']}-tmp #{self['location']}`
24
28
  `chmod a+x #{self['location']}`
25
29
  logger.info `#{self['location']} #{params}`
26
30
  $?.exitstatus
@@ -1,3 +1,3 @@
1
1
  module Docman
2
- VERSION = "0.0.45"
2
+ VERSION = "0.0.46"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.45
4
+ version: 0.0.46
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Tolstikov