hoe-markdown 1.4.0 → 1.5.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: ff7db824eae2f2f51e7245761214694782cb873e324b96c04e0b86a6f330157b
4
- data.tar.gz: af890db8cd4fd366c91771ed6963dbfd57a8c132c502952ad66e03a1943075a1
3
+ metadata.gz: 8cc0106e2ca0ff4a9737428397092d41934babb0c2be0fe7036046bffb3b7ccf
4
+ data.tar.gz: a5e2956195654d9fe6a011ad00893b4cf6d5f70603c5ed8aa7b90250e01d65e9
5
5
  SHA512:
6
- metadata.gz: 65e9a5b13c8d4f32d16181c334b1a55683a1e9fce67418a412f7cc8ccf3869537d5eb599afc12ad507cf1ad72339b17506027b6edfcfe65a1a160c7bc0b1b1ae
7
- data.tar.gz: eaa453428312cf92bf51ae8d3c6d76b75fc5611503f110cc43fc54b337e709f1c096d0de8835d1e6264f046866c52ad32e686602bd1bbc79fae2c462c4175d75
6
+ metadata.gz: 948b02eb6dac577a5c8e9a5425aefae6d78070743aa023c9cdf0c6ef5ede50aee88449d4e08bdcc455f472ecffbe7ec7886e098790db27fb91090890e7faa1bc
7
+ data.tar.gz: 9052832cfebca7e3664f87e234332f3fbca03fecf129340572ce825bc75362c1477d1b384b98d1a88f1392cdf9df1e119a5ed531fe9fc0bd7c46d4ba3b7c3be8
@@ -0,0 +1,28 @@
1
+ name: ci
2
+ concurrency:
3
+ group: "${{github.workflow}}-${{github.ref}}"
4
+ cancel-in-progress: true
5
+ on:
6
+ workflow_dispatch:
7
+ push:
8
+ branches:
9
+ - main
10
+ pull_request:
11
+ types: [opened, synchronize]
12
+ branches:
13
+ - '*'
14
+
15
+ jobs:
16
+ build:
17
+ strategy:
18
+ fail-fast: false
19
+ matrix:
20
+ ruby: ["2.7", "3.0", "3.1", "3.2", "head"]
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - uses: ruby/setup-ruby@v1
25
+ with:
26
+ ruby-version: ${{matrix.ruby}}
27
+ bundler-cache: true
28
+ - run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Hoe::Markdown CHANGELOG
2
2
 
3
+ ## v1.5.1 / 2023-10-10
4
+
5
+ Remove experimental code that was accidentally included in v1.5.0.
6
+
7
+
8
+ ## v1.5.0 / 2023-10-10
9
+
10
+ Feature:
11
+
12
+ - use `Bundler.load_gemspec` instead of `eval`, to support Ruby 3.3
13
+
14
+
3
15
  ## v1.4.0 / 2021-01-18
4
16
 
5
17
  Feature:
@@ -6,7 +6,7 @@ class Hoe
6
6
  attr_reader :spec
7
7
 
8
8
  def initialize gem_name
9
- @spec = eval(File.read("./#{gem_name}.gemspec"))
9
+ @spec = Bundler.load_gemspec("#{gem_name}.gemspec")
10
10
  end
11
11
  end
12
12
  end
@@ -27,8 +27,6 @@ class Hoe
27
27
  (?![[[:alnum:]]-])
28
28
  }x
29
29
 
30
- GIT_SHA1_REGEX = %{\b[0-9a-f]{5,40}\b}
31
-
32
30
  def self.linkify_github_issues(markdown, issues_uri)
33
31
  if issues_uri.nil? || issues_uri.empty?
34
32
  raise "#{__FILE__}:#{__method__}: URI for bugs cannot be empty\n"
@@ -64,10 +62,6 @@ class Hoe
64
62
  def self.linkify_github_usernames(markdown)
65
63
  markdown.gsub(GITHUB_USER_REGEX, "[@\\1](https://github.com/\\1)")
66
64
  end
67
-
68
- def self.linkify_git_commits(markdown)
69
- markdown.gsub(GITHUB_SHA1_REGEX, "[`\\1`](https://)") # TODO YOU WERE HERE
70
- end
71
65
  end
72
66
  end
73
67
  end
@@ -1,5 +1,5 @@
1
1
  class Hoe
2
2
  module Markdown
3
- VERSION = "1.4.0"
3
+ VERSION = "1.5.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe-markdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-18 00:00:00.000000000 Z
11
+ date: 2023-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -32,6 +32,7 @@ executables: []
32
32
  extensions: []
33
33
  extra_rdoc_files: []
34
34
  files:
35
+ - ".github/workflows/ci.yml"
35
36
  - ".gitignore"
36
37
  - ".rspec"
37
38
  - ".travis.yml"
@@ -68,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
69
  - !ruby/object:Gem::Version
69
70
  version: '0'
70
71
  requirements: []
71
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.5.0.dev
72
73
  signing_key:
73
74
  specification_version: 4
74
75
  summary: Hoe plugin with helpers for markdown documentation files.