labelary 0.3.0 → 0.5.0

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
  SHA256:
3
- metadata.gz: 6b9dd5303cec4ac8eb772b540488877cb268ec7c11679d7fa10b2b746962020d
4
- data.tar.gz: 0a3554611b62cf90aee56e4d170cfc39d29523f7f28b6889e2185a2c6a1cedfc
3
+ metadata.gz: 12e8a02422e6d233bd7b370895442a3dd04b20c0004bc7e3dc96e8090dc0fc56
4
+ data.tar.gz: 3c13dd1d60c7a8d031f8aa9b20d3dfd7731ca5b14d45c7920292d45157acba67
5
5
  SHA512:
6
- metadata.gz: 1906418cdea066683c850cef465bfb0918d676bf6a00b363d12c9e8dc90bf0f71d2dd212cabbbc3bb1052c70f153372833fcf330baa86aa3236ca087bca0c7a5
7
- data.tar.gz: e7cc92f36df0a4a78f0e0179bd7fb69f999790e049f789b72ca79f00270a5ebe2580794d43db057d8c2319b79719446de4de6d6ef8938387010dca3dfb424c17
6
+ metadata.gz: 9d6f51635c1880fcee1e5561c3aef06b91b5884388d77018c10c95371cded7b653a10cf0fb04afa2e260a8ef4ea1fcce6cc344ecd6307e0b86dc569fdfe296d6
7
+ data.tar.gz: f04a7b8bf11c13ec40e1013fd57bd903703e69c7b83bf5868e9efa4f56314f70b1c3f2c289bfca8c1be7f3b91fa84fadc9fdd7fba663b662048157f134602ced
@@ -0,0 +1,20 @@
1
+ name: Publish Gem
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - v*
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - uses: actions/checkout@v1
13
+
14
+ - name: Release Gem
15
+ if: contains(github.ref, 'refs/tags/v')
16
+ uses: cadwallion/publish-rubygems-action@master
17
+ env:
18
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
19
+ RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
20
+ RELEASE_COMMAND: rake release
data/.gitignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+
11
+ *.gem
data/labelary.gemspec CHANGED
@@ -19,10 +19,13 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ['lib']
21
21
 
22
+ spec.required_ruby_version = ">= 2.0"
23
+
22
24
  spec.add_development_dependency 'bundler'
23
25
  spec.add_development_dependency 'rake'
24
26
  spec.add_development_dependency 'pry'
25
27
 
26
- spec.add_dependency 'faraday', '>= 0.9', '< 2'
27
- spec.add_dependency 'faraday_middleware', '>= 0.10', '< 2'
28
+ spec.add_dependency 'faraday', '>= 0.9', '< 3'
29
+ spec.add_dependency 'faraday-multipart'
30
+ spec.add_dependency 'activesupport'
28
31
  end
@@ -29,7 +29,7 @@ module Labelary
29
29
  @dpmm = nil
30
30
  @width = nil
31
31
  @height = nil
32
- @index = 0
32
+ @index = ''
33
33
  @content_type = 'image/png'
34
34
  @font = ''
35
35
  end
@@ -1,7 +1,7 @@
1
1
  module Labelary
2
2
  class Image
3
- def self.encode(*args)
4
- self.new(*args).encode
3
+ def self.encode(**args)
4
+ self.new(**args).encode
5
5
  end
6
6
 
7
7
  def initialize(path:nil, mime_type:, filename:nil, file_io:nil)
@@ -1,7 +1,7 @@
1
1
  module Labelary
2
2
  class Label
3
- def self.render(*args)
4
- self.new(*args).render
3
+ def self.render(**args)
4
+ self.new(**args).render
5
5
  end
6
6
 
7
7
  def initialize(dpmm: nil, width: nil, height: nil, index: nil, zpl:, content_type: nil, font: nil)
@@ -1,3 +1,3 @@
1
1
  module Labelary
2
- VERSION = '0.3.0'
2
+ VERSION = '0.5.0'
3
3
  end
data/lib/labelary.rb CHANGED
@@ -1,5 +1,7 @@
1
+ require 'active_support'
2
+
1
3
  require 'faraday'
2
- require 'faraday_middleware'
4
+ require 'faraday/multipart'
3
5
 
4
6
  require 'labelary/label'
5
7
  require 'labelary/image'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: labelary
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Coleman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-04 00:00:00.000000000 Z
11
+ date: 2023-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -61,7 +61,7 @@ dependencies:
61
61
  version: '0.9'
62
62
  - - "<"
63
63
  - !ruby/object:Gem::Version
64
- version: '2'
64
+ version: '3'
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
@@ -71,27 +71,35 @@ dependencies:
71
71
  version: '0.9'
72
72
  - - "<"
73
73
  - !ruby/object:Gem::Version
74
- version: '2'
74
+ version: '3'
75
75
  - !ruby/object:Gem::Dependency
76
- name: faraday_middleware
76
+ name: faraday-multipart
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: '0.10'
82
- - - "<"
83
- - !ruby/object:Gem::Version
84
- version: '2'
81
+ version: '0'
85
82
  type: :runtime
86
83
  prerelease: false
87
84
  version_requirements: !ruby/object:Gem::Requirement
88
85
  requirements:
89
86
  - - ">="
90
87
  - !ruby/object:Gem::Version
91
- version: '0.10'
92
- - - "<"
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: activesupport
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
93
94
  - !ruby/object:Gem::Version
94
- version: '2'
95
+ version: '0'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
95
103
  description: Ruby Gem to interact with the Labelary.com ZPL Web Service
96
104
  email:
97
105
  - github@robert.net.nz
@@ -99,6 +107,7 @@ executables: []
99
107
  extensions: []
100
108
  extra_rdoc_files: []
101
109
  files:
110
+ - ".github/workflows/rubygems.yml"
102
111
  - ".gitignore"
103
112
  - Gemfile
104
113
  - LICENSE
@@ -125,14 +134,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
134
  requirements:
126
135
  - - ">="
127
136
  - !ruby/object:Gem::Version
128
- version: '0'
137
+ version: '2.0'
129
138
  required_rubygems_version: !ruby/object:Gem::Requirement
130
139
  requirements:
131
140
  - - ">="
132
141
  - !ruby/object:Gem::Version
133
142
  version: '0'
134
143
  requirements: []
135
- rubygems_version: 3.1.4
144
+ rubygems_version: 3.3.7
136
145
  signing_key:
137
146
  specification_version: 4
138
147
  summary: Ruby Gem to interact with the Labelary.com ZPL Web Service