sitepress-cli 2.0.0.beta4 → 2.0.0.beta5

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: cb006137b5f33f8d301b33b9cdd23e7829b3ed64cbd5a47fe90d7f388522f44e
4
- data.tar.gz: 7082dcb8d70cc7be61d2f1e5e631859d608eedc5e2604b2990e7b1806b642db7
3
+ metadata.gz: 3bd20de438037956871dea76b30e2a3be15e4c73a5235e404e851a526cbec56e
4
+ data.tar.gz: 4547457f7f21beeacd0950d4fda1fc0c77a3fe592bdd56f24aee6247a1ac61fe
5
5
  SHA512:
6
- metadata.gz: 9469c5aac52e30934eb1efbe5e711b7392edacc18f15df4c05a15c8c39e92372fd0ecd5a6b9688433bf903d204b44a391bfa62a21ef619abfbbcfcefc7d56975
7
- data.tar.gz: 160c4ad63e50e267fa1b308e211f11b52a0807df73507581d194dfc6eed74ad7773b2a58f066b9535fac73f37321737cff510dd2b9a658c0ea627f7bac0f55c7
6
+ metadata.gz: 21536f6bac9617b1978ecfd8e3c2eb5a99979c0fe63715b9438a61307e6982ca7c8e3b1f41372a91ffbe6bfca36e5a035680087a019ff644b206ae6999e75d53
7
+ data.tar.gz: bc54f1e7e4456b04738b6116216f3a54da5a4d49b88bed1d2a1ad311523975344a57fbe28666df27497f2f2182b9da7c66170bb489c02cc03e182451be5b430d
data/lib/sitepress/cli.rb CHANGED
@@ -43,6 +43,10 @@ module Sitepress
43
43
 
44
44
  desc "new PATH", "Create new project at PATH"
45
45
  def new(target)
46
+ # Peg the generated site to roughly the released version.
47
+ *segments, _ = Gem::Version.new(Sitepress::VERSION).segments
48
+ @target_sitepress_version = segments.join(".")
49
+
46
50
  inside target do
47
51
  directory self.class.source_root, "."
48
52
  run "bundle install"
@@ -1,7 +1,7 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  # Stand-alone Sitepress server and compiler.
4
- gem "sitepress"
4
+ gem "sitepress", "~> <%= @target_sitepress_version %>"
5
5
 
6
6
  # Server used for the Sitepress preview server.
7
7
  gem "webrick"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sitepress-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta4
4
+ version: 2.0.0.beta5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.0.0.beta4
19
+ version: 2.0.0.beta5
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.beta4
26
+ version: 2.0.0.beta5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +66,7 @@ files:
66
66
  - lib/sitepress/repl.rb
67
67
  - sitepress-cli.gemspec
68
68
  - templates/default/.gitignore
69
- - templates/default/Gemfile
69
+ - templates/default/Gemfile.tt
70
70
  - templates/default/Rakefile
71
71
  - templates/default/assets/config/manifest.js
72
72
  - templates/default/assets/images/logo-brown.svg