Skip to content

Commit b47e8bf

Browse files
committed
Change and reinstruct runtime dependency gem handling (#68)
Add a Gemfile with a reference only to 'gemspec' Add runtime dependencies to liquid.gemspec so LD applications do not need to list them explicitly. Reinstruct Gemfile usage in applications.
1 parent 12d20f7 commit b47e8bf

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gemspec

README.adoc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,6 @@ See https://rubyinstaller.org/downloads[rubyinstaller.org] if you're on Windows.
8282
----
8383
source 'https://rubygems.org'
8484
85-
gem 'json'
86-
gem 'liquid'
87-
gem 'asciidoctor'
88-
gem 'asciidoctor-pdf'
89-
gem 'logger'
90-
gem 'crack'
9185
gem 'liquidoc'
9286
----
9387
+

liquidoc.gemspec

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ Gem::Specification.new do |spec|
2828
spec.executables = ["liquidoc"]
2929
spec.require_paths = ["lib"]
3030

31+
spec.required_ruby_version = ">= 2.3.0"
32+
spec.required_rubygems_version = ">= 2.7.0"
33+
3134
spec.add_development_dependency "bundler", "~> 1.15"
3235
spec.add_development_dependency "rake", "~> 10.0"
36+
37+
spec.add_runtime_dependency "asciidoctor", "~>1.5"
38+
spec.add_runtime_dependency "json", "~>2.2"
39+
spec.add_runtime_dependency "liquid", "~>4.0"
40+
spec.add_runtime_dependency "asciidoctor-pdf", "~>1.5.0.alpha.16"
41+
spec.add_runtime_dependency "logger", "~>1.3"
42+
spec.add_runtime_dependency "crack", "~>0.4"
43+
spec.add_runtime_dependency "jekyll", "~>3.0"
44+
spec.add_runtime_dependency "jekyll-asciidoc", "~>2.1"
45+
spec.add_runtime_dependency "highline", "~>2.0"
3346
end

0 commit comments

Comments
 (0)