planetscale 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/planetscale/install_generator.rb +3 -1
- data/lib/planetscale/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6e70e8b2daeb469ff0f64d212e31cbf8c088bdb15a10b6ce83c9743802df68d
|
4
|
+
data.tar.gz: 1e3c7891c131058568ed0b21b2acbdb1d9eed133600d5f5c108bede097c08b7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 706ffb5c12525d30102cf9776b68139be28047f850c237437f5aed32b07ad0b9824d531e06d57a3351bb232fb5732cc608f10cd307d60278a1f4082e312c850b
|
7
|
+
data.tar.gz: aa39a15d0cdf08c4b3d3a6a53ee9c237dad54696c97de8703c573af8df7079a91c3adab78bcc024e47a5a9f03a71dd4f77ab47e03ea082e874fc91935ab3182e
|
@@ -23,9 +23,11 @@ class Planetscale
|
|
23
23
|
@org ||= options[:organization]
|
24
24
|
end
|
25
25
|
|
26
|
+
APPLICATION_REQUIRE_REGEX = /(require_relative ("|')application("|')\n)/.freeze
|
27
|
+
|
26
28
|
def create_planetscale_config
|
27
29
|
create_file "config/planetscale.rb", "PlanetScale.start(org: '#{@org}')\n"
|
28
|
-
inject_into_file "config/environment.rb", after:
|
30
|
+
inject_into_file "config/environment.rb", after: APPLICATION_REQUIRE_REGEX do <<~'RUBY'
|
29
31
|
require_relative "planetscale"
|
30
32
|
RUBY
|
31
33
|
end
|
data/lib/planetscale/version.rb
CHANGED