sitepress-cli 2.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47b220abebebc16b765605139dabc9d680a24ced09a41acd95e23417c6cfa0b1
4
- data.tar.gz: 935a906c5ea0c51b1d9522862a201e06d8f5507fe1897f687b61f8e48e17b26e
3
+ metadata.gz: 6ee2bd48a67bc6bf606f7357f65fc6c920d3fb60801a5b0caac5d5b13fa2203b
4
+ data.tar.gz: a69b8b963170095cf9aa92f17bccaf98608597b7e750f8a459ed9c035e233d05
5
5
  SHA512:
6
- metadata.gz: 98e8c553101db8f2c855fac3c3301db888870c7161525c617c21b05a894df8f8b354e98919cea970d2e5d6d7d3d3f3dceada6c388b550a7b16645d33154f32f8
7
- data.tar.gz: 99cf8ed79c79bd3bd16bb7b752e50c362b1ae4abb34b3bb8c8367283be638c0524e95a9ea057c3c80a5e58318b9e5e59350162689235496a5a0219cf472bf6ea
6
+ metadata.gz: 4b45a55f55d40164976522ede44ffc0681519a1fcdf818106ca75c68c7358d26dd8958254a690770c7a2e75dc2a8e134ed89ef2a46247343bfd56c1f9cdbf3f6
7
+ data.tar.gz: 263ec19e3a608254385a8a6aa8450e8f11062981b6e76153e3e9d929f5d8a6042ea9eefacbea43ed4dab0dfcef8db0fbb4a547d7ad10781d23db281760107c88
@@ -6,7 +6,5 @@ require "sitepress/server" # Load all the stuff needed setup the configuration
6
6
  # Setup defaults for stand-alone Sitepress server in the current path. This
7
7
  # can, and should, be over-ridden by the end-user in the `config/site.rb` file.
8
8
  Sitepress.configure do |config|
9
- config.routes = false
10
9
  config.site = Sitepress::Site.new root_path: "."
11
10
  end
12
-
data/lib/sitepress/cli.rb CHANGED
@@ -16,11 +16,14 @@ module Sitepress
16
16
  desc "server", "Run preview server"
17
17
  def server
18
18
  initialize!
19
+
19
20
  # Enable Sitepress web error reporting so users have more friendly
20
21
  # error messages instead of seeing a Rails exception.
21
- controller.enable_sitepress_error_reporting = true
22
+ app.config.enable_sitepress_error_reporting = true
23
+
22
24
  # Enable reloading the site between requests so we can see changes.
23
- controller.enable_site_reloading = true
25
+ app.config.enable_site_reloading = true
26
+
24
27
  # This will use whatever server is found in the user's Gemfile.
25
28
  Rack::Server.start app: app,
26
29
  Port: options.fetch("port"),
@@ -92,10 +95,6 @@ module Sitepress
92
95
  app.initialize!
93
96
  end
94
97
 
95
- def controller
96
- ::SiteController
97
- end
98
-
99
98
  def app
100
99
  Sitepress::Server
101
100
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "sitepress-server", spec.version
22
21
  spec.add_runtime_dependency "thor", ">= 1.0.0"
23
22
  spec.add_runtime_dependency "rack", ">= 1.0.0"
23
+ spec.add_runtime_dependency "sitepress-server", spec.version
24
24
  end
metadata CHANGED
@@ -1,31 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sitepress-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-02 00:00:00.000000000 Z
11
+ date: 2022-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: sitepress-server
14
+ name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.0
19
+ version: 1.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 2.0.0
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: thor
28
+ name: rack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -39,19 +39,19 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.0.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: rack
42
+ name: sitepress-server
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 1.0.0
47
+ version: 3.0.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 1.0.0
54
+ version: 3.0.1
55
55
  description:
56
56
  email:
57
57
  - bradgessler@gmail.com
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.2.3
101
+ rubygems_version: 3.3.7
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Sitepress command line interface and compilation tools for static site.