dymo_render 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,29 @@
1
+ require "dymo_render"
2
+ require "pry"
3
+
4
+ module DymoRenderSpecHelper
5
+ extend RSpec::Matchers::DSL
6
+
7
+ FILE_FIXTURE_PATH = File.expand_path("fixtures/files", __dir__)
8
+
9
+ def file_fixture(fixture_name)
10
+ path = Pathname.new(File.join(FILE_FIXTURE_PATH, fixture_name))
11
+
12
+ if path.exist?
13
+ path
14
+ else
15
+ msg = "the directory '%s' does not contain a file named '%s'"
16
+ raise ArgumentError, msg % [FILE_FIXTURE_PATH, fixture_name]
17
+ end
18
+ end
19
+
20
+ matcher :be_truthy do
21
+ match do |actual|
22
+ actual
23
+ end
24
+ end
25
+ end
26
+
27
+ RSpec.configure do |config|
28
+ config.include DymoRenderSpecHelper
29
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dymo_render
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Gentry
@@ -73,7 +73,23 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
+ - ".gitignore"
77
+ - Gemfile
78
+ - Gemfile.lock
79
+ - LICENSE
80
+ - README.md
81
+ - Rakefile
82
+ - dymo_render.gemspec
76
83
  - lib/dymo_render.rb
84
+ - lib/dymo_render/version.rb
85
+ - spec/dymo_render_spec.rb
86
+ - spec/fixtures/files/Roboto Mono.ttf
87
+ - spec/fixtures/files/Roboto.ttf
88
+ - spec/fixtures/files/sample_qr.label
89
+ - spec/fixtures/files/sample_qr.pdf
90
+ - spec/fixtures/files/sample_qr_code128.label
91
+ - spec/fixtures/files/sample_qr_code128.pdf
92
+ - spec/spec_helper.rb
77
93
  homepage: http://github.com/bgentry/dymo_render
78
94
  licenses:
79
95
  - BSD-2-Clause
@@ -98,4 +114,12 @@ rubygems_version: 2.7.6
98
114
  signing_key:
99
115
  specification_version: 4
100
116
  summary: Render PDFs using DYMO XML
101
- test_files: []
117
+ test_files:
118
+ - spec/dymo_render_spec.rb
119
+ - spec/fixtures/files/Roboto Mono.ttf
120
+ - spec/fixtures/files/Roboto.ttf
121
+ - spec/fixtures/files/sample_qr.label
122
+ - spec/fixtures/files/sample_qr.pdf
123
+ - spec/fixtures/files/sample_qr_code128.label
124
+ - spec/fixtures/files/sample_qr_code128.pdf
125
+ - spec/spec_helper.rb