codemerger 1.0.1 → 1.0.2

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
  SHA256:
3
- metadata.gz: 3d0842aaaa78108dde76209c855adfa07e342b334bab01f85ae39e0a71bf6aac
4
- data.tar.gz: 3208adeca4b259a5eeda912dd5f26d62feb3b20e65ca1cecd7690ca24dd92ef6
3
+ metadata.gz: db3fdd03f8da4f91da329e9ae3515534c4fde8b634745da020963033fa60dd81
4
+ data.tar.gz: 5035d8a5d3301ddc55987c1d3b8b6d4b154b5161b74e8b94031cc78f466584a2
5
5
  SHA512:
6
- metadata.gz: 163915fd7db6a6ee9b715555fa5e089ca5f5fce4fb22bf49b09f065e36a2ea5721da61dc9c9971260ef73dbdcf8be1c6161db236f95c8744231b5b285fad9580
7
- data.tar.gz: 629cef86e5c60154e2dd0a3749b400c3abe4ae33dfd1302eeca765e7f555d5f740e1eea26ac0edc4f548dc6bb296797850ea2738350f2cf0ab8d99c808d3c940
6
+ metadata.gz: b09bc3184b40ce08bc7ab386d2ecdf19cd7d853e18330bb260cd3786a5af62a60d8c1abff4e0949ec716f2a255007f8942d89d8314c2c4356757d6e0cf5a7b81
7
+ data.tar.gz: bcf9e2b25639ab9ddd1560cc7a2986db9f9d07d19b5a0196fb66136b527180dd31316e404bdd06fc4354b7f2a9444fd54b5db178353b5121588c09c11c42eea3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
data/codemerger.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: codemerger 1.0.1 ruby lib
5
+ # stub: codemerger 1.0.2 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "codemerger".freeze
9
- s.version = "1.0.1".freeze
9
+ s.version = "1.0.2".freeze
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Rodrigo Urubatan".freeze]
14
- s.date = "2025-02-27"
14
+ s.date = "2025-03-05"
15
15
  s.description = "This gem is used to help writing technical posts for wordpress.\n The output is copied and pasted to a post into my wordpress blog, and the code gets colored using the plugin wp-syntax, and the output can be turned into PDF with the plugin wp-mpdf.\n\nToday this gem supports source files in the following languages:\n\n* Ruby (including Rakefile and Gemfile)\n* Java\n* YAML\n* HTML\n* XML\n* Scala\n* CSS\n* Javascript\n* Bash\n* Batch\n\nAll other files are configured as \"text\".".freeze
16
16
  s.email = "rodrigo@urubatan.com.br".freeze
17
17
  s.extra_rdoc_files = [
@@ -36,11 +36,12 @@ Gem::Specification.new do |s|
36
36
  "test/sample.rb",
37
37
  "test/test.html",
38
38
  "test/test2.markdown",
39
+ "test/test3.markdown",
39
40
  "test/test_helper.rb"
40
41
  ]
41
42
  s.homepage = "https://github.com/urubatan/codemerger".freeze
42
43
  s.licenses = ["MIT".freeze]
43
- s.rubygems_version = "3.5.22".freeze
44
+ s.rubygems_version = "3.6.5".freeze
44
45
  s.summary = "Used to create blog posts and tecnical articles that need code samples, the code samples will be taken from the actual source code file instead of a copy paste approach".freeze
45
46
 
46
47
  s.specification_version = 4
@@ -61,7 +61,7 @@ module Codemerger
61
61
 
62
62
  def build_md_merged_file_content(f_name)
63
63
  ext = f_name[/(\.[a-zA-Z]+)/]
64
- if ext !~ /^(md|markdown)$/
64
+ if ext !~ /^\.(md|markdown)$/
65
65
  lang_str = get_language_str(ext)
66
66
  %(_#{sanitize(f_name)}_{:.code-title}
67
67
 
@@ -1,3 +1,3 @@
1
1
  module Codemerger
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
data/test/merger_spec.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require_relative "test_helper"
2
- require "codemerger"
2
+ require_relative "../lib/codemerger"
3
3
  describe Codemerger::Merger do
4
4
  def setup
5
5
  @merger = Codemerger::Merger.new "test"
data/test/test2.markdown CHANGED
@@ -8,4 +8,8 @@ def a(b)
8
8
  end
9
9
  ~~~
10
10
 
11
- Bloco colorido?
11
+ Was the block colored?
12
+
13
+ {{test/test3.markdown}}
14
+
15
+ And the text above was parsed?
@@ -0,0 +1,8 @@
1
+ ## Should be a header
2
+
3
+ And this a simple text
4
+
5
+ * here
6
+ * a list
7
+ * with
8
+ * bullets
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codemerger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Urubatan
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-02-27 00:00:00.000000000 Z
10
+ date: 2025-03-05 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: kramdown
@@ -164,12 +163,12 @@ files:
164
163
  - test/sample.rb
165
164
  - test/test.html
166
165
  - test/test2.markdown
166
+ - test/test3.markdown
167
167
  - test/test_helper.rb
168
168
  homepage: https://github.com/urubatan/codemerger
169
169
  licenses:
170
170
  - MIT
171
171
  metadata: {}
172
- post_install_message:
173
172
  rdoc_options: []
174
173
  require_paths:
175
174
  - lib
@@ -184,8 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
183
  - !ruby/object:Gem::Version
185
184
  version: '0'
186
185
  requirements: []
187
- rubygems_version: 3.5.22
188
- signing_key:
186
+ rubygems_version: 3.6.5
189
187
  specification_version: 4
190
188
  summary: Used to create blog posts and tecnical articles that need code samples, the
191
189
  code samples will be taken from the actual source code file instead of a copy paste