jefferies_tube 0.1.6 → 0.1.7

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
  SHA1:
3
- metadata.gz: d06cfabdade9e68241e375646fa6f493c89db7ef
4
- data.tar.gz: d99e67ed69c4d05d85ee990fc3dd1576e4b73ac8
3
+ metadata.gz: 98ee07f2822dc127b9cfb3326a709330aa486bc4
4
+ data.tar.gz: 4453bb6c1c4f56bd7d4fb14fe9f2ed77fe69c835
5
5
  SHA512:
6
- metadata.gz: cc5f699e1c580546d2bf840e97a587cf2a3a8fa3deec44aa62de5693a1cfc46bd9b781ced14bee690aceffe296eefc2668fee63c3a9d0b3d20c9b9230ff35e68
7
- data.tar.gz: 0968e69405a4a132f37f1f01db0b4b59cbc272989af06ccd398933189fb24b4ad6a1100bf7c3b86646e53e4ebac1900cd138e762ed067f9805121d48a2a01803
6
+ metadata.gz: 965a91177d826698f3f99949d6a814ca8653029eebc6880ba0d3198fdb8959095e584561bad2d7cf95a3ad566e22666087f43bf3cde83395ef75acbd6d18ad7a
7
+ data.tar.gz: d4b2ab295c72a1cae4754da0fcba8ad49bf99630bf4d43b434b9c07dae2f56773fe8dfcd92bbb2cfbdf5dc26b781e9c76434070002f4dd0af75eceba44ebb676
@@ -7,3 +7,21 @@ task :upload_assets_to_s3 do
7
7
  end
8
8
  end
9
9
  end
10
+
11
+ # From https://github.com/capistrano/rails/issues/89
12
+ task :copy_assets_manifest do
13
+ next unless roles(:web, :app).count > 1
14
+ manifest_contents, manifest_name = nil, nil
15
+ assets_path = release_path.join('public', fetch(:assets_prefix))
16
+
17
+ on roles(fetch(:assets_roles)), primary: true do
18
+ manifest_name = capture(:ls, assets_path.join('.sprockets-manifest*')).strip
19
+ manifest_contents = download! assets_path.join(manifest_name)
20
+ end
21
+ on roles(:app) do
22
+ execute :rm, '-f', assets_path.join('.sprockets-manifest*')
23
+ upload! StringIO.new(manifest_contents), assets_path.join(manifest_name)
24
+ end
25
+ end
26
+
27
+ after "upload_assets_to_s3", :copy_assets_manifest
@@ -1,5 +1,5 @@
1
1
  module JefferiesTube
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
 
4
4
  def self.latest_rubygems_version
5
5
  JSON.parse(URI.parse("https://rubygems.org/api/v1/versions/jefferies_tube/latest.json").read)["version"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jefferies_tube
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Samson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-09 00:00:00.000000000 Z
11
+ date: 2018-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  version: '0'
173
173
  requirements: []
174
174
  rubyforge_project:
175
- rubygems_version: 2.6.13
175
+ rubygems_version: 2.4.5.1
176
176
  signing_key:
177
177
  specification_version: 4
178
178
  summary: Ten Forward Consulting useful tools.