image_optim_pack 0.5.3-x86-openbsd → 0.5.5-x86-openbsd

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: 998cb0304e69a27a09abf1f49b9ab2ecf572037dd5751a699d92d091c613d1de
4
- data.tar.gz: 36537403178e4533be9c6a999fc86ffb9ce97586d3f0a0d0c75c9b606bff75cc
3
+ metadata.gz: 14a6aae0b9c66e16ac26cc03491b3a5293c991e824de7d62f2e49056bd57f160
4
+ data.tar.gz: 607b4c6a0383ee81503a91e74acea9d41f57e4cdfb186c55db603cb9d40efb63
5
5
  SHA512:
6
- metadata.gz: c290a958ae0e30d27e4cae838deb0aafb69ca42c1906c13f53b2e82923dea81c0f94903c5f6f7cc7d0a44324468be788ec84483b4f2ad287142728dffddb3fea
7
- data.tar.gz: fef0c4972e0a4cf7908194e8affc0580c031d7294698e7d4d1b6d9d1a7ebe1d7bc87dbfdb1dee975b774b30e67b2d72f67ebf7f7766ce3cc1f35eddf741d2c1f
6
+ metadata.gz: 775605f29631a087b45719f183ce0ed969b8682deacd9aae91190b046330032d7e19812fe523a39d1c3f3e831a428a904b403d0fedf7bd928e322a8fc0039e54
7
+ data.tar.gz: 881ddf8f0bc0270a9821478ce45a1914cf6c041411da02515283b2a5aab8917b2156377d9cf1d9d00400356a9122ec064cd41a3188c15ef6827be7bd0464d639
data/CHANGELOG.markdown CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## unreleased
4
4
 
5
+ ## v0.5.5 (2019-07-14)
6
+
7
+ * Fix specifying platform in gemspec for platform specific gems [@toy](https://github.com/toy)
8
+
9
+ ## v0.5.4 (2019-07-14)
10
+
11
+ * Remove deprecated `rubyforge_project` attribute from gemspec [rubygems/rubygems#2436](https://github.com/rubygems/rubygems/pull/2436) [@toy](https://github.com/toy)
12
+
5
13
  ## v0.5.3 (2019-05-25)
6
14
 
7
15
  * pngquant 2.12.3 [@toy](https://github.com/toy)
@@ -1,3 +1,3 @@
1
1
  # encoding: UTF-8
2
2
 
3
- eval "gem_platform = 'x86-darwin'; #{File.read('image_optim_pack.gemspec')}"
3
+ eval "gemspec_path = #{__FILE__.inspect}; #{File.read('image_optim_pack.gemspec')}"
@@ -1,3 +1,3 @@
1
1
  # encoding: UTF-8
2
2
 
3
- eval "gem_platform = 'x86_64-darwin'; #{File.read('image_optim_pack.gemspec')}"
3
+ eval "gemspec_path = #{__FILE__.inspect}; #{File.read('image_optim_pack.gemspec')}"
@@ -0,0 +1,3 @@
1
+ # encoding: UTF-8
2
+
3
+ eval "gemspec_path = #{__FILE__.inspect}; #{File.read('image_optim_pack.gemspec')}"
@@ -1,3 +1,3 @@
1
1
  # encoding: UTF-8
2
2
 
3
- eval "gem_platform = 'amd64-freebsd'; #{File.read('image_optim_pack.gemspec')}"
3
+ eval "gemspec_path = #{__FILE__.inspect}; #{File.read('image_optim_pack.gemspec')}"
@@ -1,3 +1,3 @@
1
1
  # encoding: UTF-8
2
2
 
3
- eval "gem_platform = 'x86-freebsd'; #{File.read('image_optim_pack.gemspec')}"
3
+ eval "gemspec_path = #{__FILE__.inspect}; #{File.read('image_optim_pack.gemspec')}"
@@ -1,3 +1,3 @@
1
1
  # encoding: UTF-8
2
2
 
3
- eval "gem_platform = 'x86-linux'; #{File.read('image_optim_pack.gemspec')}"
3
+ eval "gemspec_path = #{__FILE__.inspect}; #{File.read('image_optim_pack.gemspec')}"
@@ -1,3 +1,3 @@
1
1
  # encoding: UTF-8
2
2
 
3
- eval "gem_platform = 'x86_64-linux'; #{File.read('image_optim_pack.gemspec')}"
3
+ eval "gemspec_path = #{__FILE__.inspect}; #{File.read('image_optim_pack.gemspec')}"
@@ -1,3 +1,3 @@
1
1
  # encoding: UTF-8
2
2
 
3
- eval "gem_platform = 'x86-openbsd'; #{File.read('image_optim_pack.gemspec')}"
3
+ eval "gemspec_path = #{__FILE__.inspect}; #{File.read('image_optim_pack.gemspec')}"
@@ -1,3 +1,3 @@
1
1
  # encoding: UTF-8
2
2
 
3
- eval "gem_platform = 'x86_64-openbsd'; #{File.read('image_optim_pack.gemspec')}"
3
+ eval "gemspec_path = #{__FILE__.inspect}; #{File.read('image_optim_pack.gemspec')}"
@@ -2,14 +2,12 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'image_optim_pack'
5
- s.version = '0.5.3'
5
+ s.version = '0.5.5'
6
6
  s.summary = %q{Precompiled binaries for image_optim: advpng, gifsicle, jhead, jpeg-recompress, jpegoptim, jpegtran, optipng, pngcrush, pngquant}
7
7
  s.homepage = "http://github.com/toy/#{s.name}"
8
8
  s.authors = ['Ivan Kuchin']
9
9
  s.license = 'MIT'
10
10
 
11
- s.rubyforge_project = s.name
12
-
13
11
  s.metadata = {
14
12
  'bug_tracker_uri' => "https://github.com/toy/#{s.name}/issues",
15
13
  'changelog_uri' => "https://github.com/toy/#{s.name}/blob/master/CHANGELOG.markdown",
@@ -18,17 +16,31 @@ Gem::Specification.new do |s|
18
16
  }
19
17
 
20
18
  s.files = `git ls-files`.split("\n")
21
- if defined?(gem_platform)
22
- s.platform = gem_platform
23
-
24
- vendor_dir = {
25
- 'x86-linux' => 'linux-i686',
26
- 'x86_64-openbsd' => 'openbsd-amd64',
27
- }[gem_platform] || begin
28
- gem_platform.sub(/^x86-/, 'i386-').split('-').reverse.join('-')
19
+ if defined?(gemspec_path)
20
+ gem_os, gem_cpu = File.basename(gemspec_path, File.extname(gemspec_path)).split('-').drop(1)
21
+
22
+ s.platform = Gem::Platform.new([gem_cpu, gem_os])
23
+
24
+ cpu_aliases = {
25
+ 'x86' => %w[i386 i686],
26
+ 'x86_64' => %w[x86_64 amd64],
27
+ }[gem_cpu] || [gem_cpu]
28
+
29
+ possible_vendor_dirs = cpu_aliases.map do |cpu_alias|
30
+ "#{gem_os}-#{cpu_alias}"
29
31
  end
30
- vendor_path = File.join('vendor', vendor_dir)
31
- fail "#{vendor_path} is not a dir" unless File.directory?(vendor_path)
32
+
33
+ existing_vendor_dirs = possible_vendor_dirs.select do |vendor_dir|
34
+ File.directory?(File.join('vendor', vendor_dir))
35
+ end
36
+
37
+ vendor_dir = if existing_vendor_dirs.length == 1
38
+ existing_vendor_dirs.first
39
+ else
40
+ message = existing_vendor_dirs.empty? ? 'no vendor dir' : 'multiple vendor dirs'
41
+ fail "#{message} found for os #{gem_os} and cpu #{gem_cpu} out of: #{possible_vendor_dirs.join(', ')}"
42
+ end
43
+
32
44
  s.files.reject! do |path|
33
45
  parts = path.split('/')
34
46
  parts[0] == 'vendor' && parts[1] != vendor_dir
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: image_optim_pack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.5
5
5
  platform: x86-openbsd
6
6
  authors:
7
7
  - Ivan Kuchin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-25 00:00:00.000000000 Z
11
+ date: 2019-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: image_optim
@@ -130,6 +130,7 @@ files:
130
130
  - checksums.mk
131
131
  - image_optim_pack-darwin-x86.gemspec
132
132
  - image_optim_pack-darwin-x86_64.gemspec
133
+ - image_optim_pack-fake-x42.gemspec
133
134
  - image_optim_pack-freebsd-amd64.gemspec
134
135
  - image_optim_pack-freebsd-x86.gemspec
135
136
  - image_optim_pack-linux-x86.gemspec
@@ -163,7 +164,7 @@ licenses:
163
164
  metadata:
164
165
  bug_tracker_uri: https://github.com/toy/image_optim_pack/issues
165
166
  changelog_uri: https://github.com/toy/image_optim_pack/blob/master/CHANGELOG.markdown
166
- documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.5.3
167
+ documentation_uri: https://www.rubydoc.info/gems/image_optim_pack/0.5.5
167
168
  source_code_uri: https://github.com/toy/image_optim_pack
168
169
  post_install_message:
169
170
  rdoc_options: []