dymo_render 0.0.3 → 0.0.4
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/.gitignore +50 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +60 -0
- data/LICENSE +22 -0
- data/README.md +35 -0
- data/Rakefile +10 -0
- data/dymo_render.gemspec +24 -0
- data/lib/dymo_render/version.rb +3 -0
- data/spec/dymo_render_spec.rb +46 -0
- data/spec/fixtures/files/Roboto Mono.ttf +0 -0
- data/spec/fixtures/files/Roboto.ttf +0 -0
- data/spec/fixtures/files/sample_qr.label +109 -0
- data/spec/fixtures/files/sample_qr.pdf +1933 -1
- data/spec/fixtures/files/sample_qr_code128.label +95 -0
- data/spec/fixtures/files/sample_qr_code128.pdf +2157 -0
- data/spec/spec_helper.rb +29 -0
- metadata +26 -2
data/spec/spec_helper.rb
ADDED
@@ -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.
|
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
|