bridgetown-core 0.7.2 → 0.8.0
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 +4 -4
- data/Rakefile +1 -31
- data/bin/bridgetown +2 -2
- data/lib/bridgetown-core/configuration.rb +0 -1
- data/lib/bridgetown-core/deprecator.rb +0 -4
- data/lib/bridgetown-core/version.rb +1 -1
- data/lib/site_template/package.json +1 -0
- metadata +1 -2
- data/rake/release.rake +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 891d008dee2f0d5d121858133491ad9ed6a4522fa643e749258bf988d1a9e825
|
4
|
+
data.tar.gz: 6f4b5d3975c257b35119c8632a3cf0aff5f07181fed64f85ea126728cbb88484
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7940c328f6f50464a88f00652596ba51ca7b85f2ecfdf2cd1a5e135580f6d37b724e8eb2450c64d7915f1cc79a5c1ba92ba80c1a06575136edd8bd1cea5321a
|
7
|
+
data.tar.gz: 02f801c390fbde1e01640b40666fea4a927ef184ee76391fc5a63aec94a3839b96cdeda81fcc94ce630f0d3d120f4320597297828576fffb81cb0cd5ce408da4
|
data/Rakefile
CHANGED
@@ -3,40 +3,10 @@ require "bundler/gem_tasks"
|
|
3
3
|
$LOAD_PATH.unshift File.expand_path("lib", __dir__)
|
4
4
|
require "bridgetown-core/version"
|
5
5
|
|
6
|
-
Dir.glob("rake/**.rake").each { |f| import f }
|
7
|
-
|
8
|
-
#############################################################################
|
9
|
-
#
|
10
|
-
# Helper functions
|
11
|
-
#
|
12
|
-
#############################################################################
|
13
|
-
|
14
|
-
def name
|
15
|
-
"bridgetown-core"
|
16
|
-
end
|
17
|
-
|
18
|
-
def version
|
19
|
-
Bridgetown::VERSION
|
20
|
-
end
|
21
|
-
|
22
|
-
def gemspec_file
|
23
|
-
"#{name}.gemspec"
|
24
|
-
end
|
25
|
-
|
26
|
-
def gem_file
|
27
|
-
"#{name}-#{Gem::Version.new(version)}.gem"
|
28
|
-
end
|
29
|
-
|
30
|
-
#############################################################################
|
31
|
-
#
|
32
|
-
# Standard tasks
|
33
|
-
#
|
34
|
-
#############################################################################
|
35
|
-
|
36
6
|
task :spec => :test
|
37
7
|
require "rake/testtask"
|
38
8
|
Rake::TestTask.new(:test) do |test|
|
39
9
|
test.libs << "lib" << "test"
|
40
10
|
test.pattern = "test/**/test_*.rb"
|
41
11
|
test.verbose = true
|
42
|
-
end
|
12
|
+
end
|
data/bin/bridgetown
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
|
4
4
|
STDOUT.sync = true
|
5
5
|
|
6
|
-
$LOAD_PATH.unshift File.expand_path("
|
6
|
+
$LOAD_PATH.unshift File.expand_path("../../bridgetown/lib", __dir__)
|
7
7
|
|
8
|
-
require "bridgetown
|
8
|
+
require "bridgetown"
|
9
9
|
require "mercenary"
|
10
10
|
|
11
11
|
Bridgetown::PluginManager.require_from_bundler
|
@@ -15,10 +15,6 @@ module Bridgetown
|
|
15
15
|
'--watch'."
|
16
16
|
arg_is_present? args, "--no-auto", "To disable auto-replication, simply leave off \
|
17
17
|
the '--watch' switch."
|
18
|
-
arg_is_present? args, "--pygments", "The 'pygments'settings has been removed in \
|
19
|
-
favour of 'highlighter'."
|
20
|
-
arg_is_present? args, "--paginate", "The 'paginate' setting can only be set in \
|
21
|
-
your config files."
|
22
18
|
arg_is_present? args, "--url", "The 'url' setting can only be set in your \
|
23
19
|
config files."
|
24
20
|
no_subcommand(args)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
@@ -291,7 +291,6 @@ files:
|
|
291
291
|
- lib/site_template/src/about.md
|
292
292
|
- lib/site_template/src/index.md
|
293
293
|
- lib/site_template/webpack.config.js
|
294
|
-
- rake/release.rake
|
295
294
|
homepage: https://bridgetownrb.com
|
296
295
|
licenses:
|
297
296
|
- MIT
|
data/rake/release.rake
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
#############################################################################
|
4
|
-
#
|
5
|
-
# Packaging tasks
|
6
|
-
#
|
7
|
-
#############################################################################
|
8
|
-
|
9
|
-
# TODO: maybe this should get reworked to use Bundler's builtin Gem tasks?
|
10
|
-
|
11
|
-
desc "Release #{name} v#{version}"
|
12
|
-
task :bt_release => :bt_build do
|
13
|
-
current_branch = `git branch`.to_s.strip.match(%r!^\* (.+)$!)[1]
|
14
|
-
unless current_branch == "master" || current_branch.end_with?("-stable")
|
15
|
-
puts "You must be on the master branch to release!"
|
16
|
-
exit!
|
17
|
-
end
|
18
|
-
sh "git commit --allow-empty -m 'Release :gem: #{version}'"
|
19
|
-
sh "git tag v#{version}"
|
20
|
-
sh "git push origin #{current_branch}"
|
21
|
-
sh "git push origin v#{version}"
|
22
|
-
sh "gem push pkg/#{name}-#{version}.gem"
|
23
|
-
end
|
24
|
-
|
25
|
-
desc "Build #{name} v#{version} into pkg/"
|
26
|
-
task :bt_build do
|
27
|
-
mkdir_p "pkg"
|
28
|
-
sh "gem build #{gemspec_file}"
|
29
|
-
sh "mv #{gem_file} pkg"
|
30
|
-
end
|