ruby3mf 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -5
- data/lib/ruby3mf/version.rb +1 -1
- data/ruby3mf.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfa77bf22c653104e5afdffb0eb593491b2b8fb5
|
4
|
+
data.tar.gz: 06a01c80a9fc143e4fee068804b66f224c8b50c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e2a9b6c647f2e0f7f50ca5fd67ee846ee69720a8b784fa7efa51c01a167f989eb55364f663d5fb95fd19dae5fdaa41a79768997e93438225ee14686dedecf0a
|
7
|
+
data.tar.gz: 66a8434cd4017727199c0f6017f6d55baaafb6e91ce938ddb4d8df8afcb387f24809f7ac6f853f795b976648b665c5a4cb6bc1b19b80c615b36fb247f716c64d
|
data/README.md
CHANGED
@@ -2,9 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/ruby3mf.svg)](http://badge.fury.io/rb/ruby3mf)
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
TODO: Delete this and the text above, and describe your gem
|
5
|
+
The ruby3mf gem provides an API for parsing and validating 3MF files. It includes a logging mechanism that enables developers to programmatically check a 3MF file for warnings or errors and respond in whatever way is appropriate for their application. Ruby3mf checks everything in the 3MF core specification, from making sure that the 3MF package contains all content in the right format needed to print the file, to verifying that the geometry represents a manifold solid without holes or incorrectly oriented triangles.
|
8
6
|
|
9
7
|
## Installation
|
10
8
|
|
@@ -24,13 +22,22 @@ Or install it yourself as:
|
|
24
22
|
|
25
23
|
## Usage
|
26
24
|
|
27
|
-
|
25
|
+
```ruby
|
26
|
+
Log3mf.reset_log
|
27
|
+
Log3mf.context <filename> do |l|
|
28
|
+
Document.read(<file>)
|
29
|
+
end
|
30
|
+
|
31
|
+
if Log3mf.count_entries(:error, :fatal_error) > 0
|
32
|
+
entries = Log3mf.entries
|
33
|
+
end
|
34
|
+
```
|
28
35
|
|
29
36
|
## Development
|
30
37
|
|
31
38
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
32
39
|
|
33
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
40
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
34
41
|
|
35
42
|
## Contributing
|
36
43
|
|
data/lib/ruby3mf/version.rb
CHANGED
data/ruby3mf.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Mike Whitmarsh, Jeff Porter, and William Hertling"]
|
10
10
|
spec.email = ["mwhit@hp.com", "jeff.porter@hp.com", "william.hertling@hp.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{
|
13
|
-
spec.description = %q{
|
12
|
+
spec.summary = %q{Parse and validate 3MF files with Ruby}
|
13
|
+
spec.description = %q{Parse and validate 3MF files with Ruby easily.}
|
14
14
|
spec.homepage = "https://github.com/IPGPTP/ruby3mf"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby3mf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Whitmarsh, Jeff Porter, and William Hertling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02
|
11
|
+
date: 2017-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -136,7 +136,7 @@ dependencies:
|
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '2.5'
|
139
|
-
description:
|
139
|
+
description: Parse and validate 3MF files with Ruby easily.
|
140
140
|
email:
|
141
141
|
- mwhit@hp.com
|
142
142
|
- jeff.porter@hp.com
|
@@ -203,5 +203,5 @@ rubyforge_project:
|
|
203
203
|
rubygems_version: 2.6.8
|
204
204
|
signing_key:
|
205
205
|
specification_version: 4
|
206
|
-
summary:
|
206
|
+
summary: Parse and validate 3MF files with Ruby
|
207
207
|
test_files: []
|