-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
71 lines (61 loc) · 2.28 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# frozen_string_literal: true
require "rubygems"
require "hoe"
require "rake/clean"
Hoe.plugin :doofus
Hoe.plugin :gemspec2
Hoe.plugin :git2
Hoe.plugin :rubygems
Hoe.spec "cartage-rack" do
developer("Austin Ziegler", "[email protected]")
developer("Kinetic Commerce", "[email protected]")
self.history_file = "History.md"
self.readme_file = "README.rdoc"
# This is a hack because of an issue with Hoe 3.26, but I'm not sure which
# hoe version introduced this issue or if it's a JRuby issue. This issue is
# demonstrable in lib/hoe.rb at line 676, which is (reformatted for space):
#
# ```ruby
# readme =
# input
# .lines
# .chunk { |l| l[/^(?:=+|#+)/] || "" } # # chunk is different somehow
# .map(&:last) # <-- HERE: "#" does not respond to #last
# .each_slice(2)
# .map { |k, v|
# kp = k.join
# kp = kp.strip.chomp(":").split.last.downcase if k.size == 1
# [kp, v.join.strip]
# }
# .to_h
# ```
#
# We don't *ship* with JRuby, but use it in CI only, so this is here at least
# temporarily.
if RUBY_PLATFORM.match?(/java/)
self.summary = self.description = "Description for testing"
self.homepage = "https://github.com/KineticCafe/app-identity/tree/main/ruby/"
end
license "MIT"
require_ruby_version ">= 2.7", "< 4"
spec_extras[:metadata] = ->(val) { val["rubygems_mfa_required"] = "true" }
# This gem *explicitly* does not have a hard link to cartage.
extra_dev_deps << ["appraisal", "~> 2.4"]
extra_dev_deps << ["hoe-doofus", "~> 1.0"]
extra_dev_deps << ["hoe-gemspec2", "~> 1.1"]
extra_dev_deps << ["hoe-git2", "~> 1.7"]
extra_dev_deps << ["hoe-rubygems", "~> 1.0"]
extra_dev_deps << ["minitest", "~> 5.16"]
extra_dev_deps << ["minitest-autotest", "~> 1.0"]
extra_dev_deps << ["minitest-bisect", "~> 1.2"]
extra_dev_deps << ["minitest-focus", "~> 1.1"]
extra_dev_deps << ["minitest-hooks", "~> 1.4"]
extra_dev_deps << ["minitest-moar", "~> 0.0"]
extra_dev_deps << ["minitest-pretty_diff", "~> 0.1"]
extra_dev_deps << ["rack-test", "~> 2.0"]
extra_dev_deps << ["rake", ">= 10.0", "< 14"]
extra_dev_deps << ["rdoc", "~> 6.4"]
extra_dev_deps << ["simplecov", "~> 0.7"]
extra_dev_deps << ["standard", "~> 1.0"]
extra_dev_deps << ["timecop", "~> 0.8"]
end