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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49240ac5b4150b2f832191182068fa5dff5a292ea2c09276b8d47051c9e6b807
4
- data.tar.gz: da19eb7238196ba1d7470e69ff31e31b22edbccb7b9f87bcdc335d46701b1ad4
3
+ metadata.gz: 891d008dee2f0d5d121858133491ad9ed6a4522fa643e749258bf988d1a9e825
4
+ data.tar.gz: 6f4b5d3975c257b35119c8632a3cf0aff5f07181fed64f85ea126728cbb88484
5
5
  SHA512:
6
- metadata.gz: f15d04903428ecd6d4d728c3b79a4f42bf8ab8f69cda1df7aaa1ebfcc04c2670748030ac16223586af0e77fa36fd727ae2566a01dbaebe9a688fbe414d9dac5a
7
- data.tar.gz: 4e3b4b043138847be6aaaf99ce09b36a0d79233e79375acfd61bd6836130f2be71f04ba6574e917f090a1613d78ede4fc513843367a9bedbff638e998a13c6e4
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
@@ -3,9 +3,9 @@
3
3
 
4
4
  STDOUT.sync = true
5
5
 
6
- $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
6
+ $LOAD_PATH.unshift File.expand_path("../../bridgetown/lib", __dir__)
7
7
 
8
- require "bridgetown-core"
8
+ require "bridgetown"
9
9
  require "mercenary"
10
10
 
11
11
  Bridgetown::PluginManager.require_from_bundler
@@ -46,7 +46,6 @@ module Bridgetown
46
46
 
47
47
  # Output Configuration
48
48
  "permalink" => "date",
49
- "paginate_path" => "/page:num",
50
49
  "timezone" => nil, # use the local timezone
51
50
 
52
51
  "quiet" => false,
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bridgetown
4
- VERSION = "0.7.2"
4
+ VERSION = "0.8.0"
5
5
  end
@@ -4,6 +4,7 @@
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "build": "webpack --mode production",
7
+ "deploy": "yarn build && bundle exec bridgetown build",
7
8
  "dev": "webpack --mode development -w"
8
9
  },
9
10
  "devDependencies": {
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.7.2
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
@@ -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