bake-modernize 0.16.0 → 0.16.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
  SHA256:
3
- metadata.gz: 310142a997767785291aadb64e0cb29310a0776a7e1d6a5081ab5c674ea711fe
4
- data.tar.gz: 944e2d7c534f5303c92f6b3564ed0777c4857d2eeb0c46877dff3bd4c8568cb2
3
+ metadata.gz: b4e0e80c65059d2844c335a96accf0e4ce635e95080445842ac4a6b387a5b4fe
4
+ data.tar.gz: d1e4619dd1829db4079bb5eb54c5914709ce21a8c1b9abe0e65f5cbaa42c89f7
5
5
  SHA512:
6
- metadata.gz: a5366bbe5432f8c8e0c45a18a0b80457e2a48a9fdd1568336e10cd4c51c2c08c26233612ce7698fc085b93db3e48a7d79bb73586723952824dffd6c46c92d71a
7
- data.tar.gz: 643d36c17ab69f94246bbcc6e5fcf986067acdfe0418cac26010bbba019659b71d318e2fa51a9393b48b195a89b835d3e99acaf1ab58872957c7ca300d23b77d
6
+ metadata.gz: '06923a301a200565214a638c78c6ac1686391ea3449c5259d0ea5692383b4104086105a3f22b136fb32723b0fdfbc3bb845efba0f99ce695ccf4908b4fd7d319'
7
+ data.tar.gz: 043bfccdbd86d6a29010fd7f5c6b5ed78ffd1fdececef9e3c323671934370db92b72b7640c79c8b5e9035ebfcfd29a4093bc2cc1b0e4c127e40d10f4c97212e2
checksums.yaml.gz.sig CHANGED
Binary file
@@ -19,6 +19,8 @@ end
19
19
  private
20
20
 
21
21
  DEFAULT_CONTRIBUTING = <<~EOF
22
+ ## Contributing
23
+
22
24
  We welcome contributions to this project.
23
25
 
24
26
  1. Fork it.
@@ -33,36 +35,9 @@ def update_contributing(readme_path)
33
35
 
34
36
  replacement = Markly.parse(DEFAULT_CONTRIBUTING)
35
37
 
36
- node = root.first_child
37
-
38
- while node
39
- if node.type == :header && node.to_plaintext =~ /Contributing/
40
- break
41
- end
42
-
43
- node = node.next
44
- return unless node
45
- end
46
-
47
- contributing_header = node
48
- node = node.next
49
-
50
- while node
51
- next_node = node.next
52
- node.delete
53
-
54
- node = next_node
55
-
56
- if next_node.nil? || node.type == :header
57
- break
58
- end
59
- end
38
+ return unless node = root.find_header("Contributing")
60
39
 
61
- node = contributing_header
62
- replacement.each do |child|
63
- node.insert_after(child)
64
- node = child
65
- end
40
+ node.replace_section(replacement)
66
41
 
67
42
  File.write(readme_path, root.to_markdown(width: 0))
68
43
  end
@@ -115,26 +115,8 @@ end
115
115
  def remove_license(readme_path)
116
116
  root = Markly.parse(File.read(readme_path))
117
117
 
118
- node = root.first_child
119
-
120
- while node
121
- if node.type == :header && node.to_plaintext =~ /License/
122
- break
123
- end
124
-
125
- node = node.next
126
- return unless node
127
- end
128
-
129
- while node
130
- next_node = node.next
131
- node.delete
132
-
133
- node = next_node
134
-
135
- if next_node.nil? || node.type == :header
136
- break
137
- end
118
+ if node = root.find_header("License")
119
+ node.replace_section(nil)
138
120
  end
139
121
 
140
122
  File.write(readme_path, root.to_markdown(width: 0))
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Bake
7
7
  module Modernize
8
- VERSION = "0.16.0"
8
+ VERSION = "0.16.1"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-modernize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -38,7 +38,7 @@ cert_chain:
38
38
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
39
39
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
40
40
  -----END CERTIFICATE-----
41
- date: 2023-06-15 00:00:00.000000000 Z
41
+ date: 2023-06-17 00:00:00.000000000 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: async-http
@@ -86,16 +86,16 @@ dependencies:
86
86
  name: markly
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
- - - ">="
89
+ - - "~>"
90
90
  - !ruby/object:Gem::Version
91
- version: '0'
91
+ version: '0.8'
92
92
  type: :runtime
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
- - - ">="
96
+ - - "~>"
97
97
  - !ruby/object:Gem::Version
98
- version: '0'
98
+ version: '0.8'
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: rugged
101
101
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file