red-candle 1.8.0 → 1.8.1
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 +26 -7
- data/lib/candle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e2d45880b82de259bacdef9c2ce582a3d98da006966e3c211b5f2c63a76a474a
|
|
4
|
+
data.tar.gz: 2f239dbfc74f6c924fba41b7ed53437416459ceed6bfa2b6d5501d82a778c071
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 18f03813074b73b797a82f9d2917441b701e920a3e2a1afef8b7fb4e863ebbf2acbda06decb90a9014766fbaef4554f0e88e66744fe28e86d4e489e5a7db8dcf
|
|
7
|
+
data.tar.gz: 97482fdd896803f4bb3a4a8142ad04995f9a25b53c8876979c77e392881ae43b72f497797501f5fc24323108b1edb5a6206933e0a8eb30ba02879f393df4a507
|
data/Rakefile
CHANGED
|
@@ -2,7 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
require "bundler/gem_tasks"
|
|
4
4
|
require "rake/extensiontask"
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
# rspec is a dev-only dependency. The rb-sys-dock cross-compile container installs
|
|
7
|
+
# the RUNTIME bundle only, so this require is absent there — guard it so the Rakefile
|
|
8
|
+
# (and therefore the `native:<platform>` cross tasks) still loads in a build-only env.
|
|
9
|
+
begin
|
|
10
|
+
require "rspec/core/rake_task"
|
|
11
|
+
RSPEC_AVAILABLE = true
|
|
12
|
+
rescue LoadError
|
|
13
|
+
RSPEC_AVAILABLE = false
|
|
14
|
+
end
|
|
6
15
|
|
|
7
16
|
task default: :spec
|
|
8
17
|
|
|
@@ -90,18 +99,28 @@ desc "Run Rust tests with coverage (alias)"
|
|
|
90
99
|
task "coverage:rust" => "rust:coverage:html"
|
|
91
100
|
|
|
92
101
|
# RSpec tasks
|
|
93
|
-
|
|
94
|
-
RSpec
|
|
95
|
-
|
|
102
|
+
if RSPEC_AVAILABLE
|
|
103
|
+
desc "Run RSpec tests"
|
|
104
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
|
105
|
+
t.rspec_opts = "--format progress"
|
|
106
|
+
end
|
|
107
|
+
else
|
|
108
|
+
desc "spec (rspec unavailable here)"
|
|
109
|
+
task(:spec) { abort "rspec is a dev dependency — not available in this environment" }
|
|
96
110
|
end
|
|
97
111
|
|
|
98
112
|
# Add compile as a dependency for spec task
|
|
99
113
|
task spec: :compile
|
|
100
114
|
|
|
101
115
|
namespace :spec do
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
116
|
+
if RSPEC_AVAILABLE
|
|
117
|
+
desc "Run RSpec tests with all devices"
|
|
118
|
+
RSpec::Core::RakeTask.new(:device) do |t|
|
|
119
|
+
t.rspec_opts = "--format documentation --tag device"
|
|
120
|
+
end
|
|
121
|
+
else
|
|
122
|
+
desc "spec:device (rspec unavailable here)"
|
|
123
|
+
task(:device) { abort "rspec is a dev dependency — not available in this environment" }
|
|
105
124
|
end
|
|
106
125
|
|
|
107
126
|
desc "Run RSpec tests with coverage"
|
data/lib/candle/version.rb
CHANGED