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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75a7625f54d62ba53119f75de1c50eeec931ab0944beff8cfaf213bbc8baea24
4
- data.tar.gz: 224fd41e4e83af46608ec01fef0afb2491ccd37d2bba9d76bcf883907a4dc518
3
+ metadata.gz: b6e70e8b2daeb469ff0f64d212e31cbf8c088bdb15a10b6ce83c9743802df68d
4
+ data.tar.gz: 1e3c7891c131058568ed0b21b2acbdb1d9eed133600d5f5c108bede097c08b7c
5
5
  SHA512:
6
- metadata.gz: df90088ff0a81ae63a4543be8ced05ed64dba65c356fc40a03516ea4129708ee46f9d8acb3b8257b07c6de97be08435e4bbdcc2446cb6b3b7f18f2c629df3aa8
7
- data.tar.gz: ff219e6061e33586589b98e509f41c30dbf60dbdf5886ff5c59881162f0fe9ea2e2c5c617f291df90f4a422f1b1e8cc293a5d19f0a99e09f7e0f75c9f28f2139
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: "require_relative \"application\"\n" do <<~'RUBY'
30
+ inject_into_file "config/environment.rb", after: APPLICATION_REQUIRE_REGEX do <<~'RUBY'
29
31
  require_relative "planetscale"
30
32
  RUBY
31
33
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlanetScale
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: planetscale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Van Wiggeren