Skip to content

Commit da23f54

Browse files
committed
Move version to its own file for easier bumping
1 parent 11faea4 commit da23f54

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

jekyll-watch.gemspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# frozen_string_literal: true
22

3+
lib = File.expand_path("lib", __dir__)
4+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5+
require "jekyll-watch/version"
6+
37
Gem::Specification.new do |spec|
48
spec.name = "jekyll-watch"
5-
spec.version = "1.5.0"
9+
spec.version = Jekyll::Watch::VERSION
610
spec.authors = ["Parker Moore"]
711
spec.email = ["[email protected]"]
812
spec.summary = "Rebuild your Jekyll site when a file changes with the `--watch` switch."

lib/jekyll-watch.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
22

3+
require "jekyll-watch/version"
34
require_relative "jekyll/watcher"
45
require_relative "jekyll/commands/watch"

lib/jekyll-watch/version.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
module Jekyll
4+
module Watch
5+
VERSION = "1.5.0".freeze
6+
end
7+
end

0 commit comments

Comments
 (0)