foobara-rack-connector-generator 0.0.1 → 0.0.2
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/CHANGELOG.md +4 -0
- data/src/generators/gemfile_generator.rb +4 -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: ffa24bab0345f5c7c005da7c0f3965b830ba90330654e4f456f4acb9f1222e02
|
|
4
|
+
data.tar.gz: e7a771141f8fc2db6969589d1ff2db6596ba2ba0d38f005e37a531c33c4b25f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 390cb5e48f490094044b77642ab045f2b6ae4e1fff79b4a2d26dd584d1832a66dbe42b70d797d8499ace037f8733578cdde5686bfef11953e895b06c4bfcf436
|
|
7
|
+
data.tar.gz: 8f5ef688cd866e0eea9f7005d0637e45e6c81068f4ed14ca7f3f1adae7b7803ba746ee167cd8d20535580f5d7510392b89f32117a2d9bba56a6623ffda08a2ca
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
module Foobara
|
|
2
2
|
module Generators
|
|
3
|
+
# TODO: do this in the .gemspec instead...
|
|
3
4
|
module RackConnectorGenerator
|
|
4
5
|
module Generators
|
|
5
6
|
# Kind of tricky... for the first time we will be loading an existing file in the working directory
|
|
@@ -19,7 +20,9 @@ module Foobara
|
|
|
19
20
|
match = contents.match(/^gem /)
|
|
20
21
|
|
|
21
22
|
if match
|
|
22
|
-
new_entry = 'gem "foobara-rack-connector", github: "foobara/rack-connector"'
|
|
23
|
+
new_entry = 'gem "foobara-rack-connector", github: "foobara/rack-connector"\n'
|
|
24
|
+
new_entry += 'gem "rackup"'
|
|
25
|
+
|
|
23
26
|
"#{match.pre_match}\n#{new_entry}\n#{match}#{match.post_match}"
|
|
24
27
|
else
|
|
25
28
|
# TODO: maybe print a warning and return the original Gemfile
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foobara-rack-connector-generator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Miles Georgi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-06-
|
|
11
|
+
date: 2024-06-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: foobara
|