paperwork 0.3.1 → 0.3.2

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: acec360949d7b7403f5b7d6985a6cca4289d03c19cf13f7c12a5db5d468072ea
4
- data.tar.gz: d6cdb1bd4f9cbb211d2663c62b1ccd461c15a7c8d7a84f9afad049c31a8c2dd4
3
+ metadata.gz: e485a22660790291fb8fc471ef6bbec18c5e8ef50bdebf8cbfac4fd5b90f1ebd
4
+ data.tar.gz: b275c2b329f53ca0c8584a596418c924183906a4df0cdedbb528ecb993024655
5
5
  SHA512:
6
- metadata.gz: e6a1b14be156b22c42345512735e242a58b1b4ea38354e9b0550c1cab88d4c52d3a8b3efacbefbbe010f983fdaaf7536351efb394390604db58566086c085d98
7
- data.tar.gz: 3b781ef6f0ce74100687d61e04a425a6477629f1ad1cf65f2f476a80629eddef4a32cbed834d5ef0012addd5f1dcc1dd0652aafeda8280f2e281aac6ecd958dc
6
+ metadata.gz: 6331130f7d21e226dd7021ff8fd94823d98f518fe93f373329247a3a09fb4b7564f6338001df33aa48666fe145fd22a4a0b8b3836e34e4c55bb21a928b93b89e
7
+ data.tar.gz: 8d02e0938cbae8cf07448d829edafeb3385d8b794f32310c8b8d335f15ee667c99c2fb27c098c64ddf5c769f2aa33b2a4b18a9c29492597b4c6c3268586581f8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paperwork (0.3.1)
4
+ paperwork (0.3.2)
5
5
  rake (~> 12.3)
6
6
  redcarpet (~> 3.5.0)
7
7
  thor (~> 1.1.0)
@@ -68,17 +68,16 @@ module Paperwork
68
68
  task self.name => self.dependencies do
69
69
  verbose_flag = Paperwork::Config[:verbose] ? " --verbose" : ""
70
70
  Dir.chdir(self.dir) do
71
- Bundler.with_unbundled_env do
72
- Process.spawn(
73
- "bundle exec middleman build#{verbose_flag}",
74
- out: :out,
75
- in: :in,
76
- err: :err
77
- )
71
+ cmd = "bundle exec middleman build#{verbose_flag}"
72
+ if defined? Bundler
73
+ Bundler.with_unbundled_env do
74
+ Process.spawn(cmd, out: :out, in: :in, err: :err)
75
+ end
76
+ else
77
+ Process.spawn(cmd, out: :out, in: :in, err: :err)
78
78
  end
79
79
  Process.waitall
80
80
  end
81
-
82
81
  puts
83
82
  puts "...Done!"
84
83
  puts "build artifacts are located in #{File.join(self.dir, "build")}"
@@ -109,13 +108,13 @@ module Paperwork
109
108
  desc "start middleman server for editing documents and get visual feedback with live reload"
110
109
  task server: :build do
111
110
  Dir.chdir(self.dir) do
112
- Bundler.with_unbundled_env do
113
- Process.spawn(
114
- "bundle exec middleman server",
115
- out: :out,
116
- in: :in,
117
- err: :err
118
- )
111
+ cmd = "bundle exec middleman server"
112
+ if defined? Bundler
113
+ Bundler.with_unbundled_env do
114
+ Process.spawn(cmd, out: :out, in: :in, err: :err)
115
+ end
116
+ else
117
+ Process.spawn(cmd, out: :out, in: :in, err: :err)
119
118
  end
120
119
  puts
121
120
  puts "+---------------------------------------------------------------+"
@@ -28,13 +28,13 @@ module Paperwork
28
28
  directory self.name => self.dependencies do
29
29
  cp_r template, self.dir
30
30
  Dir.chdir(self.dir) do
31
- Bundler.with_unbundled_env do
32
- Process.spawn(
33
- "bundle install --path=../.bundle/gems --jobs 8 --without test development",
34
- out: :out,
35
- in: :in,
36
- err: :err
37
- )
31
+ cmd = "bundle install --path=../.bundle/gems --jobs 8 --without test development"
32
+ if defined? Bundler
33
+ Bundler.with_unbundled_env do
34
+ Process.spawn(cmd, out: :out, in: :in, err: :err)
35
+ end
36
+ else
37
+ Process.spawn(cmd, out: :out, in: :in, err: :err)
38
38
  end
39
39
  Process.spawn("yarn install", out: :out, in: :in, err: :err)
40
40
  Process.waitall
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Paperwork
4
- VERSION = "0.3.1"
4
+ VERSION = "0.3.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperwork
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schmid