jefferies_tube 1.6.9 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/default.yml +10 -0
- data/lib/jefferies_tube/capistrano/s3_assets.rb +3 -0
- data/lib/jefferies_tube/railtie.rb +3 -3
- data/lib/jefferies_tube/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 791bdc5af6fee6a4346a7dce621fb79721769bf4301ed74af578da40f51252e3
|
4
|
+
data.tar.gz: b2e0d0d8663ed323cb2905d017cfc47b90a7703f64a49fd68082b4700decfb6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 995e0058319ed25823e9ee215483c9f794dd3d5da8c5d605cd1046d719011e9d5090ee1a832cc2319959ceb19795266c65550c0b28ece6adb037839b973bc532
|
7
|
+
data.tar.gz: 21de2d325f17383ba7759b341d72125d2dfa960cfeddd80982aad477e7b84fa2ef1a4a1bc9159601f7ad3e03cfc8a605aa7f30e3d85ae0530585643cdd6a069e
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,13 @@ This project attempts to follow [semantic versioning](https://semver.org/)
|
|
6
6
|
|
7
7
|
## Unreleased
|
8
8
|
|
9
|
+
## 1.7.1
|
10
|
+
* Bugfix: change `exists?` to `exist?` and check for `existing_spec_helper` file
|
11
|
+
* Update robocop rules
|
12
|
+
|
13
|
+
## 1.7.0
|
14
|
+
* Sync static_assets as part of upload_assets_to_s3
|
15
|
+
|
9
16
|
## 1.6.9
|
10
17
|
* Refactor checking for JT_RSPEC environment variable when starting simplecov; prepends env var to rails application's spec_helper if
|
11
18
|
that line does not already exist.
|
data/default.yml
CHANGED
@@ -21,6 +21,16 @@ Layout/EmptyLinesAroundBlockBody:
|
|
21
21
|
Enabled: true
|
22
22
|
Layout/IndentationConsistency:
|
23
23
|
Enabled: true
|
24
|
+
Layout/BlockAlignment:
|
25
|
+
Enabled: true
|
26
|
+
Layout/ArgumentAlignment:
|
27
|
+
Enabled: true
|
28
|
+
EnforcedStyle: with_fixed_indentation
|
29
|
+
Layout/FirstHashElementIndentation:
|
30
|
+
Enabled: true
|
31
|
+
EnforcedStyle: consistent
|
32
|
+
Layout/HashAlignment:
|
33
|
+
Enabled: true
|
24
34
|
|
25
35
|
Rails/HasManyOrHasOneDependent:
|
26
36
|
Enabled: true
|
@@ -4,6 +4,9 @@ task :upload_assets_to_s3 do
|
|
4
4
|
appyml_text = capture :cat, "#{deploy_to}/shared/config/application.yml"
|
5
5
|
appyml = YAML.load appyml_text
|
6
6
|
execute "AWS_ACCESS_KEY_ID=#{appyml['AWS_ACCESS_KEY_ID']}", "AWS_SECRET_ACCESS_KEY=#{appyml["AWS_SECRET_ACCESS_KEY"]}", 'aws', 's3', 'sync', 'public/assets/', "#{fetch(:s3_destination)}/assets"
|
7
|
+
if Dir.exists?('public/static_assets')
|
8
|
+
execute "AWS_ACCESS_KEY_ID=#{appyml['AWS_ACCESS_KEY_ID']}", "AWS_SECRET_ACCESS_KEY=#{appyml["AWS_SECRET_ACCESS_KEY"]}", 'aws', 's3', 'sync', 'public/static_assets/', "#{fetch(:s3_destination)}/static_assets"
|
9
|
+
end
|
7
10
|
if Dir.exists?('public/packs')
|
8
11
|
execute "AWS_ACCESS_KEY_ID=#{appyml['AWS_ACCESS_KEY_ID']}", "AWS_SECRET_ACCESS_KEY=#{appyml["AWS_SECRET_ACCESS_KEY"]}", 'aws', 's3', 'sync', 'public/packs/', "#{fetch(:s3_destination)}/packs"
|
9
12
|
end
|
@@ -32,7 +32,7 @@ module JefferiesTube
|
|
32
32
|
end
|
33
33
|
|
34
34
|
initializer "jefferies_tube.add_maintenance_middleware" do |config|
|
35
|
-
if File.
|
35
|
+
if File.exist? "tmp/maintenance.txt"
|
36
36
|
require 'jefferies_tube/rack/maintenance'
|
37
37
|
config.middleware.use 'JefferiesTube::Rack::Maintenance'
|
38
38
|
end
|
@@ -45,7 +45,7 @@ module JefferiesTube
|
|
45
45
|
end
|
46
46
|
|
47
47
|
initializer "fix spring + figaro" do |config|
|
48
|
-
if defined?(Spring) && File.
|
48
|
+
if defined?(Spring) && File.exist?("config/application.yml")
|
49
49
|
require 'spring/watcher'
|
50
50
|
Spring.watch "config/application.yml"
|
51
51
|
end
|
@@ -78,7 +78,7 @@ module JefferiesTube
|
|
78
78
|
|
79
79
|
initializer 'load simplecov for tests' do |config|
|
80
80
|
existing_spec_helper = File.join(::Rails.root.join "spec", "spec_helper.rb" )
|
81
|
-
if !(File.open(existing_spec_helper, &:readline) == "ENV['JT_RSPEC'] = 'true'\n")
|
81
|
+
if File.exist?(existing_spec_helper) && !(File.open(existing_spec_helper, &:readline) == "ENV['JT_RSPEC'] = 'true'\n")
|
82
82
|
content = File.read(existing_spec_helper)
|
83
83
|
File.open(existing_spec_helper, "w") do |line|
|
84
84
|
line.puts "ENV['JT_RSPEC'] = 'true'"
|
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.
|
4
|
+
version: 1.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Samson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|