shiplane 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +29 -1
- data/lib/shiplane/build.rb +1 -0
- data/lib/shiplane/safe_build.rb +8 -0
- data/lib/shiplane/version.rb +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d8cf09c60a0e71f8f4a4bde78e66cb00016a11710972b17ed3fe3f01c5860e5
|
4
|
+
data.tar.gz: 222c62bdcf4e3c0181aeff82f5588c6b8fde1df79471835f68d7928e2fad40e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a87c6e901acccf1281e8fc9c9f2f4e4ebdd1a062702d6d3d1b8ca5d1da2b57de4bf9b0edec3fbe486ac7ee914a22a42a4c60925a35bf45644c9942479ad47ccc
|
7
|
+
data.tar.gz: 1baf831d73da4a75247f6c06919bcd518cbb096bcda5584537da5b5a8109dafce4243956e04412ebc97f06bf1e68d378e17ccd4fc308eb457233fbf83b50e94f
|
data/README.md
CHANGED
@@ -124,12 +124,40 @@ You can run a deployment like so:
|
|
124
124
|
bundle exec cap production deploy
|
125
125
|
```
|
126
126
|
|
127
|
-
|
127
|
+
### Troubleshooting
|
128
128
|
This is as much a reminder to me as anyone else. If a new version of the gem has just been released and you are trying to pull it, make sure to run the following if bundler fails:
|
129
129
|
```
|
130
130
|
bundle install --full-index
|
131
131
|
```
|
132
132
|
|
133
|
+
##### `Could not load database configuration. No such file - ["config/database.yml"]`
|
134
|
+
If you are receiving similar messages during the build process, this likely means that you are running a task during the build (e.g. asset precompilation) that is loading up the Rails initializers and have an initializer that tries to connect to the database. You can fix this by finding which of your initializers is being called. See this snippet here from an app that shows where you would find the offending initializer:
|
135
|
+
```
|
136
|
+
/var/www/surveyor/vendor/bundle/ruby/2.6.0/gems/zeitwerk-2.1.6/lib/zeitwerk/kernel.rb:23:in `require'
|
137
|
+
/var/www/surveyor/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:302:in `block in require'
|
138
|
+
/var/www/surveyor/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:268:in `load_dependency'
|
139
|
+
/var/www/surveyor/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:302:in `require'
|
140
|
+
/var/www/surveyor/config/initializers/public_activity.rb:1:in `<main>'
|
141
|
+
/var/www/surveyor/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
|
142
|
+
/var/www/surveyor/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.4/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:54:in `load'
|
143
|
+
/var/www/surveyor/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:296:in `block in load'
|
144
|
+
/var/www/surveyor/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:268:in `load_dependency'
|
145
|
+
/var/www/surveyor/vendor/bundle/ruby/2.6.0/gems/activesupport-6.0.0.rc1/lib/active_support/dependencies.rb:296:in `load'
|
146
|
+
/var/www/surveyor/vendor/bundle/ruby/2.6.0/gems/railties-6.0.0.rc1/lib/rails/engine.rb:668:in `block in load_config_initializer'
|
147
|
+
```
|
148
|
+
|
149
|
+
To fix this, wrap the offending code in the initializer with this helper provided by Shiplane:
|
150
|
+
```
|
151
|
+
require 'shiplane/safe_build'
|
152
|
+
|
153
|
+
Shiplane::SafeBuild.wrap do
|
154
|
+
PublicActivity::Activity.class_eval do
|
155
|
+
belongs_to :true_owner, polymorphic: true
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
```
|
160
|
+
|
133
161
|
## Becoming Involved
|
134
162
|
### Community Channels
|
135
163
|
You can join our [Discord community](https://discord.gg/drrn2YG) to ask any questions you might have or to get ahold of someone in the community who might be able to help you. There is no guarantee of service implied, but we absolutely believe in helping out our fellow developers and will do so as we are able. If you feel you know some stuff about Shiplane, feel free to hang out and please help out as well!
|
data/lib/shiplane/build.rb
CHANGED
data/lib/shiplane/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shiplane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Epperson
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.1.
|
19
|
+
version: 0.1.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.1.
|
26
|
+
version: 0.1.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: shiplane_deployers_capistrano_docker
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.1.
|
33
|
+
version: 0.1.6
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.1.
|
40
|
+
version: 0.1.6
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: dotenv
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,6 +129,7 @@ files:
|
|
129
129
|
- lib/shiplane/extensions.rb
|
130
130
|
- lib/shiplane/host.rb
|
131
131
|
- lib/shiplane/railtie.rb
|
132
|
+
- lib/shiplane/safe_build.rb
|
132
133
|
- lib/shiplane/tasks/install.rake
|
133
134
|
- lib/shiplane/version.rb
|
134
135
|
homepage: https://github.com/kirillian/shiplane
|