guard-openscad 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +11 -5
- data/Guardfile +5 -0
- data/Rakefile +3 -5
- data/VERSION +1 -1
- data/features/README.feature +20 -0
- data/features/step_definitions/.gitkeep +0 -0
- data/features/step_definitions/README_steps.rb +49 -0
- data/features/support/env.rb +22 -0
- data/guard-openscad.gemspec +27 -14
- metadata +72 -20
data/Gemfile
CHANGED
@@ -5,15 +5,21 @@ gem "guard", "~> 1.6"
|
|
5
5
|
|
6
6
|
gem "rb-fsevent", "~> 0.9"
|
7
7
|
|
8
|
-
gem "scad4r", "~> 0.2"
|
8
|
+
gem "scad4r", "~> 0.2.1"
|
9
9
|
|
10
10
|
group :development do
|
11
|
-
gem "
|
12
|
-
|
11
|
+
gem "aruba", "~> 0.5"
|
12
|
+
|
13
|
+
gem "cucumber", "~> 1.2"
|
14
|
+
|
15
|
+
gem "guard-cucumber", "~> 1.3"
|
16
|
+
gem "guard-rspec", "~> 2.3"
|
17
|
+
|
13
18
|
gem "jeweler", "~> 1.8"
|
14
19
|
|
20
|
+
gem "rdoc", "~> 3.12"
|
21
|
+
gem "rspec", "~> 2.12"
|
22
|
+
|
15
23
|
gem "simplecov", "~> 0.7"
|
16
24
|
gem "simplecov-csv", "~> 0.1"
|
17
|
-
|
18
|
-
gem "guard-rspec", "~> 2.3"
|
19
25
|
end
|
data/Guardfile
CHANGED
@@ -11,3 +11,8 @@ guard 'rspec', focused_on_failed: true do
|
|
11
11
|
watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
|
12
12
|
end
|
13
13
|
|
14
|
+
guard 'cucumber' do
|
15
|
+
watch(%r{^features/.+\.feature$})
|
16
|
+
watch(%r{^features/support/.+$}) { 'features' }
|
17
|
+
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
|
18
|
+
end
|
data/Rakefile
CHANGED
@@ -32,12 +32,10 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
32
32
|
spec.rspec_opts = "-r simplecov -p"
|
33
33
|
end
|
34
34
|
|
35
|
-
|
36
|
-
|
37
|
-
spec.rcov = true
|
38
|
-
end
|
35
|
+
require 'cucumber/rake/task'
|
36
|
+
Cucumber::Rake::Task.new(:features)
|
39
37
|
|
40
|
-
task :default => :spec
|
38
|
+
task :default => [:spec, :features]
|
41
39
|
|
42
40
|
require 'rdoc/task'
|
43
41
|
Rake::RDocTask.new do |rdoc|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
@@ -0,0 +1,20 @@
|
|
1
|
+
Feature: A Guard plugin which runs .scad files through OpenSCAD
|
2
|
+
OpenSCAD guard provides automatic SCAD processing, it can:
|
3
|
+
- Compile to CSG for fast syntax checking.
|
4
|
+
- Render to STL for slicing.
|
5
|
+
|
6
|
+
Scenario: Installation
|
7
|
+
Given Add to your `Gemfile`
|
8
|
+
"""
|
9
|
+
gem "guard-openscad", path: "/Users/caleb/Projects/guard-openscad"
|
10
|
+
"""
|
11
|
+
And Run `bundle install`
|
12
|
+
And Setup your Guardfile `bundle exec guard init`
|
13
|
+
And Run `bundle exec guard`
|
14
|
+
When You create a new scad file `scad/cube.scad`
|
15
|
+
"""
|
16
|
+
cube(10,10,10);
|
17
|
+
"""
|
18
|
+
Then Guard should notify you with "openscad SUCCESS"
|
19
|
+
And a file named "scad/cube.csg" should exist
|
20
|
+
|
File without changes
|
@@ -0,0 +1,49 @@
|
|
1
|
+
Given /^Add to your `Gemfile`$/ do |string|
|
2
|
+
steps %{
|
3
|
+
Given a file named "Gemfile" with:
|
4
|
+
"""
|
5
|
+
source "http://rubygems.org"
|
6
|
+
|
7
|
+
#{string}
|
8
|
+
"""
|
9
|
+
}
|
10
|
+
end
|
11
|
+
|
12
|
+
When /^Run `bundle install`$/ do
|
13
|
+
steps %{
|
14
|
+
When I successfully run `bundle install` for up to 44 seconds
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
Given /^Setup your Guardfile `([^`]*)`$/ do |command|
|
19
|
+
steps %{
|
20
|
+
When I run `#{command}`
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
Given /^Run `bundle exec guard`$/ do
|
25
|
+
steps %{
|
26
|
+
When I run `bundle exec guard` interactively
|
27
|
+
And I type "exit"
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
When /^You create a new scad file `scad\/cube\.scad`$/ do |string|
|
32
|
+
steps %{
|
33
|
+
Given a file named "scad/cube.scad" with:
|
34
|
+
"""
|
35
|
+
#{string}
|
36
|
+
"""
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
Then /^Guard should notify (?:me|you) with "([^"]*)"$/ do |notification|
|
41
|
+
begin
|
42
|
+
steps %{
|
43
|
+
Then the output should contain "#{notification}"
|
44
|
+
}
|
45
|
+
rescue ChildProcess::TimeoutError => e
|
46
|
+
type("exit")
|
47
|
+
retry
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'bundler'
|
2
|
+
|
3
|
+
require 'simplecov'
|
4
|
+
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
|
14
|
+
|
15
|
+
require 'rspec/expectations'
|
16
|
+
require 'aruba/cucumber'
|
17
|
+
|
18
|
+
require 'pry'
|
19
|
+
|
20
|
+
Before do
|
21
|
+
unset_bundler_env_vars
|
22
|
+
end
|
data/guard-openscad.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "guard-openscad"
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Caleb Buxton"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-03-08"
|
13
13
|
s.description = "Checks syntax of .scad files and generates .stl files."
|
14
14
|
s.email = "me@cpb.ca"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -26,6 +26,10 @@ Gem::Specification.new do |s|
|
|
26
26
|
"README.rdoc",
|
27
27
|
"Rakefile",
|
28
28
|
"VERSION",
|
29
|
+
"features/README.feature",
|
30
|
+
"features/step_definitions/.gitkeep",
|
31
|
+
"features/step_definitions/README_steps.rb",
|
32
|
+
"features/support/env.rb",
|
29
33
|
"guard-openscad.gemspec",
|
30
34
|
"lib/guard/openscad.rb",
|
31
35
|
"lib/guard/openscad/templates/Guardfile",
|
@@ -49,36 +53,45 @@ Gem::Specification.new do |s|
|
|
49
53
|
s.add_runtime_dependency(%q<growl>, ["~> 1.0"])
|
50
54
|
s.add_runtime_dependency(%q<guard>, ["~> 1.6"])
|
51
55
|
s.add_runtime_dependency(%q<rb-fsevent>, ["~> 0.9"])
|
52
|
-
s.add_runtime_dependency(%q<scad4r>, ["~> 0.2"])
|
53
|
-
s.add_development_dependency(%q<
|
54
|
-
s.add_development_dependency(%q<
|
56
|
+
s.add_runtime_dependency(%q<scad4r>, ["~> 0.2.1"])
|
57
|
+
s.add_development_dependency(%q<aruba>, ["~> 0.5"])
|
58
|
+
s.add_development_dependency(%q<cucumber>, ["~> 1.2"])
|
59
|
+
s.add_development_dependency(%q<guard-cucumber>, ["~> 1.3"])
|
60
|
+
s.add_development_dependency(%q<guard-rspec>, ["~> 2.3"])
|
55
61
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8"])
|
62
|
+
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
63
|
+
s.add_development_dependency(%q<rspec>, ["~> 2.12"])
|
56
64
|
s.add_development_dependency(%q<simplecov>, ["~> 0.7"])
|
57
65
|
s.add_development_dependency(%q<simplecov-csv>, ["~> 0.1"])
|
58
|
-
s.add_development_dependency(%q<guard-rspec>, ["~> 2.3"])
|
59
66
|
else
|
60
67
|
s.add_dependency(%q<growl>, ["~> 1.0"])
|
61
68
|
s.add_dependency(%q<guard>, ["~> 1.6"])
|
62
69
|
s.add_dependency(%q<rb-fsevent>, ["~> 0.9"])
|
63
|
-
s.add_dependency(%q<scad4r>, ["~> 0.2"])
|
64
|
-
s.add_dependency(%q<
|
65
|
-
s.add_dependency(%q<
|
70
|
+
s.add_dependency(%q<scad4r>, ["~> 0.2.1"])
|
71
|
+
s.add_dependency(%q<aruba>, ["~> 0.5"])
|
72
|
+
s.add_dependency(%q<cucumber>, ["~> 1.2"])
|
73
|
+
s.add_dependency(%q<guard-cucumber>, ["~> 1.3"])
|
74
|
+
s.add_dependency(%q<guard-rspec>, ["~> 2.3"])
|
66
75
|
s.add_dependency(%q<jeweler>, ["~> 1.8"])
|
76
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
77
|
+
s.add_dependency(%q<rspec>, ["~> 2.12"])
|
67
78
|
s.add_dependency(%q<simplecov>, ["~> 0.7"])
|
68
79
|
s.add_dependency(%q<simplecov-csv>, ["~> 0.1"])
|
69
|
-
s.add_dependency(%q<guard-rspec>, ["~> 2.3"])
|
70
80
|
end
|
71
81
|
else
|
72
82
|
s.add_dependency(%q<growl>, ["~> 1.0"])
|
73
83
|
s.add_dependency(%q<guard>, ["~> 1.6"])
|
74
84
|
s.add_dependency(%q<rb-fsevent>, ["~> 0.9"])
|
75
|
-
s.add_dependency(%q<scad4r>, ["~> 0.2"])
|
76
|
-
s.add_dependency(%q<
|
77
|
-
s.add_dependency(%q<
|
85
|
+
s.add_dependency(%q<scad4r>, ["~> 0.2.1"])
|
86
|
+
s.add_dependency(%q<aruba>, ["~> 0.5"])
|
87
|
+
s.add_dependency(%q<cucumber>, ["~> 1.2"])
|
88
|
+
s.add_dependency(%q<guard-cucumber>, ["~> 1.3"])
|
89
|
+
s.add_dependency(%q<guard-rspec>, ["~> 2.3"])
|
78
90
|
s.add_dependency(%q<jeweler>, ["~> 1.8"])
|
91
|
+
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
92
|
+
s.add_dependency(%q<rspec>, ["~> 2.12"])
|
79
93
|
s.add_dependency(%q<simplecov>, ["~> 0.7"])
|
80
94
|
s.add_dependency(%q<simplecov-csv>, ["~> 0.1"])
|
81
|
-
s.add_dependency(%q<guard-rspec>, ["~> 2.3"])
|
82
95
|
end
|
83
96
|
end
|
84
97
|
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: guard-openscad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Caleb Buxton
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-03-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
type: :runtime
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
69
|
+
version: 0.2.1
|
70
70
|
name: scad4r
|
71
71
|
prerelease: false
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
77
|
+
version: 0.2.1
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
type: :development
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -82,15 +82,15 @@ dependencies:
|
|
82
82
|
requirements:
|
83
83
|
- - ~>
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: '
|
86
|
-
name:
|
85
|
+
version: '0.5'
|
86
|
+
name: aruba
|
87
87
|
prerelease: false
|
88
88
|
requirement: !ruby/object:Gem::Requirement
|
89
89
|
none: false
|
90
90
|
requirements:
|
91
91
|
- - ~>
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: '
|
93
|
+
version: '0.5'
|
94
94
|
- !ruby/object:Gem::Dependency
|
95
95
|
type: :development
|
96
96
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -98,15 +98,47 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - ~>
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: '
|
102
|
-
name:
|
101
|
+
version: '1.2'
|
102
|
+
name: cucumber
|
103
103
|
prerelease: false
|
104
104
|
requirement: !ruby/object:Gem::Requirement
|
105
105
|
none: false
|
106
106
|
requirements:
|
107
107
|
- - ~>
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
109
|
+
version: '1.2'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
type: :development
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.3'
|
118
|
+
name: guard-cucumber
|
119
|
+
prerelease: false
|
120
|
+
requirement: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '1.3'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
type: :development
|
128
|
+
version_requirements: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ~>
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '2.3'
|
134
|
+
name: guard-rspec
|
135
|
+
prerelease: false
|
136
|
+
requirement: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '2.3'
|
110
142
|
- !ruby/object:Gem::Dependency
|
111
143
|
type: :development
|
112
144
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -130,15 +162,15 @@ dependencies:
|
|
130
162
|
requirements:
|
131
163
|
- - ~>
|
132
164
|
- !ruby/object:Gem::Version
|
133
|
-
version: '
|
134
|
-
name:
|
165
|
+
version: '3.12'
|
166
|
+
name: rdoc
|
135
167
|
prerelease: false
|
136
168
|
requirement: !ruby/object:Gem::Requirement
|
137
169
|
none: false
|
138
170
|
requirements:
|
139
171
|
- - ~>
|
140
172
|
- !ruby/object:Gem::Version
|
141
|
-
version: '
|
173
|
+
version: '3.12'
|
142
174
|
- !ruby/object:Gem::Dependency
|
143
175
|
type: :development
|
144
176
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -146,15 +178,15 @@ dependencies:
|
|
146
178
|
requirements:
|
147
179
|
- - ~>
|
148
180
|
- !ruby/object:Gem::Version
|
149
|
-
version: '
|
150
|
-
name:
|
181
|
+
version: '2.12'
|
182
|
+
name: rspec
|
151
183
|
prerelease: false
|
152
184
|
requirement: !ruby/object:Gem::Requirement
|
153
185
|
none: false
|
154
186
|
requirements:
|
155
187
|
- - ~>
|
156
188
|
- !ruby/object:Gem::Version
|
157
|
-
version: '
|
189
|
+
version: '2.12'
|
158
190
|
- !ruby/object:Gem::Dependency
|
159
191
|
type: :development
|
160
192
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -162,15 +194,31 @@ dependencies:
|
|
162
194
|
requirements:
|
163
195
|
- - ~>
|
164
196
|
- !ruby/object:Gem::Version
|
165
|
-
version: '
|
166
|
-
name:
|
197
|
+
version: '0.7'
|
198
|
+
name: simplecov
|
167
199
|
prerelease: false
|
168
200
|
requirement: !ruby/object:Gem::Requirement
|
169
201
|
none: false
|
170
202
|
requirements:
|
171
203
|
- - ~>
|
172
204
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
205
|
+
version: '0.7'
|
206
|
+
- !ruby/object:Gem::Dependency
|
207
|
+
type: :development
|
208
|
+
version_requirements: !ruby/object:Gem::Requirement
|
209
|
+
none: false
|
210
|
+
requirements:
|
211
|
+
- - ~>
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '0.1'
|
214
|
+
name: simplecov-csv
|
215
|
+
prerelease: false
|
216
|
+
requirement: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
218
|
+
requirements:
|
219
|
+
- - ~>
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0.1'
|
174
222
|
description: Checks syntax of .scad files and generates .stl files.
|
175
223
|
email: me@cpb.ca
|
176
224
|
executables: []
|
@@ -188,6 +236,10 @@ files:
|
|
188
236
|
- README.rdoc
|
189
237
|
- Rakefile
|
190
238
|
- VERSION
|
239
|
+
- features/README.feature
|
240
|
+
- features/step_definitions/.gitkeep
|
241
|
+
- features/step_definitions/README_steps.rb
|
242
|
+
- features/support/env.rb
|
191
243
|
- guard-openscad.gemspec
|
192
244
|
- lib/guard/openscad.rb
|
193
245
|
- lib/guard/openscad/templates/Guardfile
|
@@ -211,7 +263,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
211
263
|
- !ruby/object:Gem::Version
|
212
264
|
segments:
|
213
265
|
- 0
|
214
|
-
hash:
|
266
|
+
hash: 418293515392501118
|
215
267
|
version: '0'
|
216
268
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
269
|
none: false
|