jefferies_tube 1.0.1 → 1.0.2

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: 4fd23aef1814d6e6fe6225ee920706d2061f2bdf
4
- data.tar.gz: 7a88ce9539c0ca861e2b1563a60dad4d17e6ed90
3
+ metadata.gz: 6a90318f3d381db1aa634b7d84e6deb97f3e6a1a
4
+ data.tar.gz: 7306ae53a572ce62decc931f78b641f94c5f712d
5
5
  SHA512:
6
- metadata.gz: 6f198c3210d0070c9125162351b6e7588c9b4a8bb91a2093c2c4e9a62713c72c6472b5d4953c2a3ef110b8d9f3d34b05598c194c63202b828c121c70cb6956a7
7
- data.tar.gz: e116b55dcf76afec96a03de92011b03673b58fb3f021fe6ffd5fc68e8951de240710f7c8da455df9f954f32feb4a9fea697f72a9b699b25b314bdbad66bc901c
6
+ metadata.gz: 88ef0393465ce4d4401e232d57d7648d888c2e1046e6c4da31bcc03d048cb561f8eb2d8afa011752b0c411adb68eab107307d8c2d86638e446d3c037cab42eb9
7
+ data.tar.gz: 1b52108013a86727b8ec8464609cf2877cdf4e43685c4ad0f88c21e677b12a7d92ff0ab7abbe1da667bc36823e58d87935b66fe888201757374bcc62168ffb1f
data/CHANGELOG.md CHANGED
@@ -10,7 +10,7 @@ This project attempts to follow [semantic versioning](https://semver.org/)
10
10
 
11
11
  ## 1.0.1 - 2018-06-19
12
12
 
13
- * big fixes
13
+ * bug fixes
14
14
  * Fix bug with webpacker integration when using CDN where packs/manifest.json
15
15
  wasn't being copied to other servers.
16
16
 
@@ -19,20 +19,25 @@ task :copy_assets_manifest do
19
19
 
20
20
  assets_path = release_path.join('public', fetch(:assets_prefix))
21
21
  packs_path = release_path.join('public/packs')
22
+ webpack_enabled = Dir.exists?(packs_path)
22
23
 
23
24
  on roles(fetch(:assets_roles)), primary: true do
24
25
  manifest_name = capture(:ls, assets_path.join('.sprockets-manifest*')).strip
25
26
  manifest_contents = download! assets_path.join(manifest_name)
26
-
27
- packs_manifest_name = capture(:ls, packs_path.join('manifest.json')).strip
28
- packs_manifest_contents = download! packs_path.join(packs_manifest_name)
27
+ if webpack_enabled
28
+ packs_manifest_name = capture(:ls, packs_path.join('manifest.json')).strip
29
+ packs_manifest_contents = download! packs_path.join(packs_manifest_name)
30
+ end
29
31
  end
32
+
30
33
  on roles(:app) do
31
34
  execute :rm, '-f', assets_path.join('.sprockets-manifest*')
32
35
  upload! StringIO.new(manifest_contents), assets_path.join(manifest_name)
33
36
 
34
- execute :rm, '-f', packs_path.join('manifest.json')
35
- upload! StringIO.new(packs_manifest_contents), packs_path.join(packs_manifest_name)
37
+ if webpack_enabled
38
+ execute :rm, '-f', packs_path.join('manifest.json')
39
+ upload! StringIO.new(packs_manifest_contents), packs_path.join(packs_manifest_name)
40
+ end
36
41
  end
37
42
  end
38
43
 
@@ -1,5 +1,5 @@
1
1
  module JefferiesTube
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
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: 1.0.1
4
+ version: 1.0.2
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-06-19 00:00:00.000000000 Z
11
+ date: 2018-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.6.13
176
+ rubygems_version: 2.5.1
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: Ten Forward Consulting useful tools.