blurhash 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/gempush.yml +44 -0
- data/.travis.yml +12 -1
- data/Rakefile +1 -0
- data/lib/blurhash.rb +1 -1
- data/lib/blurhash/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 453bf51509766496d82514566d991f1cb41cfd5229678adf204193de06c0401f
|
4
|
+
data.tar.gz: 59824bc225cdc2ca148a043469f8c6ac6dafc8d70351bf18dfb5c869f61d9964
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f503f1cdb54ba1968edda654ab88f728faf981f689938e6d3c8cc87d8b41a35f1807a863a2e505c81472c8a24e244cb0ea1a89d0bf9a98d2aa2f3b2b36c0f8d2
|
7
|
+
data.tar.gz: 4ab5f390ec34dd68233729a39c19858df3dfc4b367dddb5aec0a476169c5251aa17aa98785b1b98c27453921f7a4a6e149cb1eff6b26b94dfeb814a58dcc5cc9
|
@@ -0,0 +1,44 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
push:
|
8
|
+
branches:
|
9
|
+
- master
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
build:
|
13
|
+
name: Build + Publish
|
14
|
+
runs-on: ubuntu-latest
|
15
|
+
|
16
|
+
steps:
|
17
|
+
- uses: actions/checkout@master
|
18
|
+
- name: Set up Ruby 2.6
|
19
|
+
uses: actions/setup-ruby@v1
|
20
|
+
with:
|
21
|
+
version: 2.6.x
|
22
|
+
|
23
|
+
- name: Publish to GPR
|
24
|
+
run: |
|
25
|
+
mkdir -p $HOME/.gem
|
26
|
+
touch $HOME/.gem/credentials
|
27
|
+
chmod 0600 $HOME/.gem/credentials
|
28
|
+
printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
29
|
+
gem build *.gemspec
|
30
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
31
|
+
env:
|
32
|
+
GEM_HOST_API_KEY: ${{secrets.GPR_AUTH_TOKEN}}
|
33
|
+
OWNER: Gargron
|
34
|
+
|
35
|
+
- name: Publish to RubyGems
|
36
|
+
run: |
|
37
|
+
mkdir -p $HOME/.gem
|
38
|
+
touch $HOME/.gem/credentials
|
39
|
+
chmod 0600 $HOME/.gem/credentials
|
40
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
41
|
+
gem build *.gemspec
|
42
|
+
gem push *.gem
|
43
|
+
env:
|
44
|
+
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
data/.travis.yml
CHANGED
@@ -1,5 +1,16 @@
|
|
1
|
+
arch:
|
2
|
+
- amd64
|
3
|
+
- arm64
|
4
|
+
- ppc64le
|
5
|
+
- s390x
|
6
|
+
addons:
|
7
|
+
apt:
|
8
|
+
packages:
|
9
|
+
- libmagick++-dev
|
1
10
|
sudo: false
|
2
11
|
language: ruby
|
3
12
|
rvm:
|
13
|
+
- 2.7.0
|
14
|
+
- 2.6.5
|
4
15
|
- 2.6.1
|
5
|
-
before_install: gem install bundler -v 2.
|
16
|
+
before_install: gem install bundler -v 2.1.4
|
data/Rakefile
CHANGED
data/lib/blurhash.rb
CHANGED
@@ -23,7 +23,7 @@ module Blurhash
|
|
23
23
|
|
24
24
|
module Unstable
|
25
25
|
extend FFI::Library
|
26
|
-
ffi_lib File.join(File.expand_path(
|
26
|
+
ffi_lib File.join(File.expand_path(File.dirname(__FILE__)), '..', 'ext', 'blurhash', 'encode.' + RbConfig::CONFIG['DLEXT'])
|
27
27
|
attach_function :blurHashForPixels, %i(int int int int pointer size_t), :string
|
28
28
|
end
|
29
29
|
|
data/lib/blurhash/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blurhash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugen Rochko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -102,6 +102,7 @@ extensions:
|
|
102
102
|
- ext/blurhash/extconf.rb
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
+
- ".github/workflows/gempush.yml"
|
105
106
|
- ".gitignore"
|
106
107
|
- ".rspec"
|
107
108
|
- ".travis.yml"
|
@@ -138,8 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
139
|
- !ruby/object:Gem::Version
|
139
140
|
version: '0'
|
140
141
|
requirements: []
|
141
|
-
|
142
|
-
rubygems_version: 2.6.13
|
142
|
+
rubygems_version: 3.0.3
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: Encode an image as a small string that can saved in the database and used
|