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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 737fe004ae04714fe3a70c43ec4ccfa82b0472fb
4
- data.tar.gz: 887d66d7fc0779bd0094ebd3c7a09fbfd3c1bc16
3
+ metadata.gz: bfa77bf22c653104e5afdffb0eb593491b2b8fb5
4
+ data.tar.gz: 06a01c80a9fc143e4fee068804b66f224c8b50c2
5
5
  SHA512:
6
- metadata.gz: 1cd5a582a8d7450f6f8b9cd8076a674e520c0782061871058371c998b4e06e77bb8e777cc27c0334db083d2f12ce0fefe9833571781ef0aae856046703869694
7
- data.tar.gz: 1f0a3bf6e58cdbda7b84506032c1ba08c5ad69fc8edb145f84c06573341c4cb81345add496546cef26e42f215de8deeddf0eae6f9bab9046e42c49ce82c25292
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
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ruby3mf`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Write usage instructions here
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`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
40
+ To install this gem onto your local machine, run `bundle exec rake install`.
34
41
 
35
42
  ## Contributing
36
43
 
@@ -1,3 +1,3 @@
1
1
  module Ruby3mf
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
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{Read, write and validate 3MF files with Ruby}
13
- spec.description = %q{Read, write and validate 3MF files with Ruby easily.}
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.8
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-23 00:00:00.000000000 Z
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: Read, write and validate 3MF files with Ruby easily.
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: Read, write and validate 3MF files with Ruby
206
+ summary: Parse and validate 3MF files with Ruby
207
207
  test_files: []