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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 377d143a8f7f66d109486c664653125cb5336865
4
- data.tar.gz: a73bb601c277570ac0e6d9ff1cf7891ac513dabb
2
+ SHA256:
3
+ metadata.gz: 453bf51509766496d82514566d991f1cb41cfd5229678adf204193de06c0401f
4
+ data.tar.gz: 59824bc225cdc2ca148a043469f8c6ac6dafc8d70351bf18dfb5c869f61d9964
5
5
  SHA512:
6
- metadata.gz: b3687b3f4e4dcf3a40a744b906e6be4bfc7395640462422b55960c848cae31de82595760bd5ffb4d039b96655475ff8f7f12a2fa320deac410c1eb1fe708a74e
7
- data.tar.gz: a7b430ffe9ccff1ab3ffef18b1727c3439bf2ac278e93f0b50a8b23ac8b332e9afbcd7345d1f28cb8163b54457e1541e2f92dc0475fdf8c9143700a47a8bb156
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}}
@@ -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.0.1
16
+ before_install: gem install bundler -v 2.1.4
data/Rakefile CHANGED
@@ -9,6 +9,7 @@ task :build => :compile
9
9
 
10
10
  Rake::ExtensionTask.new("blurhash") do |ext|
11
11
  ext.name = "encode"
12
+ ext.lib_dir = "ext/blurhash"
12
13
  end
13
14
 
14
15
  task :default => [:clobber, :compile, :spec]
@@ -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(__dir__), 'encode.' + RbConfig::CONFIG['DLEXT'])
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
 
@@ -1,3 +1,3 @@
1
1
  module Blurhash
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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: 2019-05-04 00:00:00.000000000 Z
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
- rubyforge_project:
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