dockerfilemerge 0.4.5 → 0.4.6

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: 63e67e341397039d077f5bc26fa7cd918355e0da
4
- data.tar.gz: 65eb56fbe4406631673557a13af5bedcab2d679a
3
+ metadata.gz: 63c76356146aaf73dba1e0c93aca46ee2560c001
4
+ data.tar.gz: 651507190dc257065f1709d46d8df7a839091195
5
5
  SHA512:
6
- metadata.gz: 1a15313477768d43797ea14aecc97354c133804a1ad673c7fe116b95cfd0d6287bcd28c959142cbc2c07de8370239cf084b1040372905245f1107bc0d9d4758f
7
- data.tar.gz: a0a0168987ef030989ca32c8e537c0cd08d739c9b55e22a581533d400c00bbcd8b5d106c1ee19b2fec80dfea7988f5319ccc3bde0beb922c5079a2767805cb31
6
+ metadata.gz: 32f4f7a3cc4c18d08a092c49b41c889535dcd6fad6008c9a250fc999e132b58ff5153aa1d0e6708d064b0a56857212686cce3dd53d7ce878ac9e8f01c0d22e3e
7
+ data.tar.gz: c0f419523dd3829bc00e7ee253c7501cef65f192b1f6768ea72459bbc5dfe7abbbbb7bb99e4fe568af23d59e58eda9f5e182d50e5287de9b537e081dc4ee4565
Binary file
data.tar.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- ue�-%��SU�NԒ���2f����e�'XjԞH~g*l�6�ȅ�=-�8OE2�{���YH�9�k�ΥG��;Xi�[�S�dz�E@;��p.��ߐfG�?���4V3zj��6v_5��m ֠�����wSb����T�l�P
2
- y'���:���`�{���of ��^ HA\���ַ�,d7���
3
- !!�� ۽bQ�CjŨ��p�k���#�;K��
1
+ 4 ���G��Lb���Cyd�pω�wr}m�Cs\��?q^*腱�7_.�
2
+ @~Q�NOF���@��jml�����qԭ��,N2��#F�#��c˂y���
@@ -14,6 +14,8 @@ class DockerfileMerge
14
14
  s, type = RXFHelper.read(raw_s)
15
15
 
16
16
  patterns = [
17
+ [:root, /^\s*ADD\s+(?<add>.*)/, :add],
18
+ [:root, /^\s*COPY\s+(?<copy>.*)/, :copy],
17
19
  [:root, /FROM\s+(?<from>.*)/, :from],
18
20
  [:root, /INCLUDE\s*(?<path>.*)?/, :include],
19
21
  [:include, /(?<path>.*)/, :dockerfile],
@@ -45,15 +47,29 @@ class DockerfileMerge
45
47
  line = r.first
46
48
 
47
49
  case label
48
- when :from
50
+
51
+
52
+ when :add
49
53
 
50
54
  lines << line
51
- lines << '' if r.length > 1
55
+ lines << ' ' + r[1..-1].join("\n ").rstrip if r.length > 1
52
56
 
53
57
  when :comment
54
58
 
55
59
  lines << line
56
60
  lines << '' if r.length > 1
61
+
62
+
63
+ when :copy
64
+
65
+ lines << line
66
+ lines << ' ' + r[1..-1].join("\n ").rstrip if r.length > 1
67
+
68
+ when :from
69
+
70
+ lines << line
71
+ lines << '' if r.length > 1
72
+
57
73
 
58
74
  when :include
59
75
 
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.4.5
4
+ version: 0.4.6
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-08-04 00:00:00.000000000 Z
34
+ date: 2015-08-05 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: lineparser
metadata.gz.sig CHANGED
@@ -1,4 +1,2 @@
1
- ��<�msℐ:__��f v�-;���hΡ ƭ�/g��
2
- ���p���g~�z4�@yLD�:�H
3
- �qi���Q�{�_}t���v,5�:�!zR �Z�:��8U@`�
4
- n3����ר��haۭ�-_X
1
+ o=�t�" bd\�>��d)�4WK^�4d���=�)Rc���/>��η1��*��P���2��=���*�@S$�o��dѓ�
2
+ 5v7�P��}8�$���pC��f ��_��4�ٓ8��8��� Xy�P"��]7t�h�!�z�*Pu�J�^1�5L<��g qsi���xr;��J��~��`�7q*MHh�!��VVy1����2�-�9�`�!�!