foobara-rack-connector-generator 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/src/generators/gemfile_generator.rb +3 -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: a60a4a6b9103538f93ae54286b479f03577359822bbc8a0ae496976cc6566006
|
4
|
+
data.tar.gz: 4baff3eb28219884d239d24b894c93ca6d173cf2f029711f13bc69d202516dce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34ac4750b284d717e1f72e01c1e18ab2f0e7299dc5e6dd034cc3993bdda199d5b6bb18727b0078487d1c73e68b0274dc997e5a97940424a115640ffcce49372d
|
7
|
+
data.tar.gz: fa91cf5c82120c36bb27590b3e59c844a8e7a0c5c4463816c5252bf9c9dd54fedcb5b75f7069df3d8e59ce5748a30f7fe9a13252eeffe023eaef7bfd5a75bd6d
|
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,8 @@ module Foobara
|
|
19
20
|
match = contents.match(/^gem /)
|
20
21
|
|
21
22
|
if match
|
22
|
-
new_entry =
|
23
|
+
new_entry = "gem \"foobara-rack-connector\", github: \"foobara/rack-connector\"\ngem \"rackup\""
|
24
|
+
|
23
25
|
"#{match.pre_match}\n#{new_entry}\n#{match}#{match.post_match}"
|
24
26
|
else
|
25
27
|
# 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.3
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foobara
|