dockerfilemerge 0.2.0 → 0.2.1

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: 6a99f814ecfdd55129c8b94c428f248151a66bc1
4
- data.tar.gz: 1e528f38b25380403559dddc2d4e5cbcc8179aad
3
+ metadata.gz: 2d40e04f3b48e80d1462a9d19b897705f9592a27
4
+ data.tar.gz: ba2590f77eb7bda5a6a92e5d91174972cc38432f
5
5
  SHA512:
6
- metadata.gz: 44ac5460fe56b56a8b3eb87b2e9e790bcfc703763ff14cf619031f2fdb4925c875e60549107702cb8e200121478768dada5381e8296f1f8a0301f18c3d2ab256
7
- data.tar.gz: 29b0d1dc7d5da86a58c3a6807e64779d54dfe0c446e234b18b3283e6213d20362b88c5a85881d84c5bce1ff2822b4bba9cb7b5f34849a5d9d5d551b7f5dabb50
6
+ metadata.gz: 2d17a85a94fffebb4e826e99974745cb5e889f50bb652d6922569fbf6b57aaddffe82ac3f7077e7057c7fc4c71615b09ccd6ef49f43d5fcb930f0d727454530d
7
+ data.tar.gz: 4b482dc7df40d34b1ad97494d2bf2cb5229ec8cc2c7c0acabd391d00ece6e6f7a48c92f4bbbd052221daf9f4a4316fbe0b800d22581623b620ebaf44fb4b43e8
checksums.yaml.gz.sig CHANGED
Binary file
@@ -48,11 +48,10 @@ class DockerfileMerge
48
48
  when :run
49
49
 
50
50
  i = lines.index lines.grep(/RUN/).last
51
- lines.insert(i+1, r.first)
52
-
53
- if r.length > 1 then
54
- lines.insert(i+2, ' ' + r[1..-1].join("\n ").rstrip)
55
- end
51
+ i+=1 while lines[i][/\\\s*$/]
52
+ lines.insert(i+1, r.first)
53
+ lines.insert(i+2, ' ' + r[1..-1].join("\n ").rstrip) if r.length > 1
54
+
56
55
  end
57
56
 
58
57
  end
@@ -68,6 +67,7 @@ class DockerfileMerge
68
67
  def merge_file(lines, path)
69
68
 
70
69
  buffer, type = RXFHelper.read(path)
70
+
71
71
  rows = buffer.lines.map(&:chomp)
72
72
  lines << "\n\n# copied from " + path if type == :url
73
73
  rows.grep(/^# Pull /).each {|x| rows.delete x}
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockerfilemerge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  WHpJ21HYl4KWG8TISerrdwpQAZ5dhV2Yy/4q0MWSnDcMRSYdRAixOcdYW+U+R8cz
32
32
  pf2JrQZNdYZXIg==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-07-10 00:00:00.000000000 Z
34
+ date: 2015-07-11 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: lineparser
metadata.gz.sig CHANGED
Binary file