prebundler 0.8.1 → 0.9.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: d24f7ba0095fb94854832a40ececf8f212602672f6bc2ef3bfa1564c5e6642c7
4
- data.tar.gz: 37b6336cb3649695aef6bd92788a4f45526930dac882c45e37a95719252c1df6
3
+ metadata.gz: 1928d857a1f4ed0596fa85e0ca8e2d38cdc3a35f1061dcf0cdc62edbe0f0f95d
4
+ data.tar.gz: 89b331c36e6f7d1962ce81a976e73fc557d86c73b9585ecc1f029e0d20e75c4c
5
5
  SHA512:
6
- metadata.gz: c07d2bc1a461b60841e3e2f108f1bf35841651fa5a8c0b5f86ebff36c3bd50d8d6438c6ce9839fbe3199fb7ec8343eacc7d12db3c80add089872493539fe1057
7
- data.tar.gz: 9f1b1dc2194717cf4c039295302d5457253be29708570a6087394000d76dba2ce17bcc5334685e4b6005de0230452867ff8f163bae91a605a04c3e28335c9e9b
6
+ metadata.gz: 25d91cdaad84af6e2bbe70c70ed11a4e30124b75287df16ef94391d411bbc411618619271ead3507241a2a47ec204f3e4849390b475d50f1e98543de657623f5
7
+ data.tar.gz: 49c459e87af92719d8715c160cf82ea43cb28e4300617621717479ccc34577a1e571aeff58761ba8fa89a8dcc8027268426ca96a42553b25e5e25e8172059e60
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.9.0
2
+ ===
3
+ - Include platform version when uploading gem tarballs to the storage backend (this will cause bundles installed by previous versions of prebundler to be rebuilt).
4
+
1
5
  0.8.1
2
6
  ===
3
7
  - Fix bug causing config to not be loaded.
@@ -1,5 +1,6 @@
1
1
  require 'fileutils'
2
2
  require 'set'
3
+ require 'ohai'
3
4
 
4
5
  module Prebundler
5
6
  class GemRef
@@ -122,10 +123,15 @@ module Prebundler
122
123
  end
123
124
 
124
125
  def tar_file
125
- file = File.join(Bundler.local_platform.to_s, Gem.extension_api_version.to_s, "#{id}.tar")
126
+ platform_version = "#{system_info['platform']}-#{system_info['platform_version']}"
127
+ file = File.join(Bundler.local_platform.to_s, platform_version, Gem.extension_api_version.to_s, "#{id}.tar")
126
128
  prefix && !prefix.empty? ? File.join(prefix, file) : file
127
129
  end
128
130
 
131
+ def system_info
132
+ @@system_info ||= Ohai::System.new.all_plugins(['platform'])
133
+ end
134
+
129
135
  def gemspec_file
130
136
  "#{id}.gemspec"
131
137
  end
@@ -1,3 +1,3 @@
1
1
  module Prebundler
2
- VERSION = '0.8.1'
2
+ VERSION = '0.9.0'
3
3
  end
data/prebundler.gemspec CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.add_dependency 'bundler'
17
17
  s.add_dependency 'parallel', '~> 1.0'
18
18
  s.add_dependency 'gli', '~> 2.0'
19
+ s.add_dependency 'ohai', '~> 14.0'
19
20
 
20
21
  # @TODO: move s3 support into separate gem
21
22
  s.add_dependency 'aws-sdk', '~> 2.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prebundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Dutro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-06 00:00:00.000000000 Z
11
+ date: 2019-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: ohai
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '14.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '14.0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: aws-sdk
57
71
  requirement: !ruby/object:Gem::Requirement