foobara-empty-ruby-project-generator 0.0.2 → 0.0.4
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/write_empty_ruby_project_to_disk.rb +2 -0
- data/templates/.github/workflows/ci.yml.erb +0 -57
- data/templates/Gemfile +1 -8
- 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: 7d17eb6cbbb26d388056a406d9c32ecc2440db4c3eaa770c383a21179cc8a489
|
4
|
+
data.tar.gz: c1599d61ea5f38feb141d7d88c2df77db5ffd3cb563f1c83fb07b4a9205596c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60cfcb25569734f6c762866b297e4714c16cfd96d304dcf4598585b79bc5a736b5e00f8d1851031f9a960a69f714f55fd90d5cac028478bdb1dc61ae957a7029
|
7
|
+
data.tar.gz: a27a129fad35a272b6b76eb3629aff8e8950bc432660b35f3e34495d1ef4cbabd24665830e78eaf2ab340e0b21b6ed18d5570ddf101d4695f031dac091103b39
|
data/CHANGELOG.md
CHANGED
@@ -13,63 +13,6 @@ jobs:
|
|
13
13
|
name: RSpec and Rubocop
|
14
14
|
timeout-minutes: 3
|
15
15
|
steps:
|
16
|
-
- uses: actions/checkout@v3
|
17
|
-
- name: setup ruby version and foobara branch and sha1
|
18
|
-
run: |
|
19
|
-
foobara_entry=`grep -A2 -m 1 ' remote: foobara$' Gemfile.lock`
|
20
|
-
regex="revision: ([0-9a-f]+)\s+branch: ([-_[:alnum:]]+)$"
|
21
|
-
|
22
|
-
if [[ $foobara_entry =~ $regex ]]; then
|
23
|
-
foobara_sha1="${BASH_REMATCH[1]}"
|
24
|
-
foobara_branch="${BASH_REMATCH[2]}"
|
25
|
-
|
26
|
-
echo foobara_sha1=$foobara_sha1 >> "$GITHUB_ENV"
|
27
|
-
echo foobara_branch=$foobara_branch >> "$GITHUB_ENV"
|
28
|
-
else
|
29
|
-
echo "$foobara_entry doesn't match $regex" >&2
|
30
|
-
fi
|
31
|
-
|
32
|
-
echo ruby_version=`cat .ruby-version` >> "$GITHUB_ENV"
|
33
|
-
- name: cache foobara
|
34
|
-
id: cache-foobara
|
35
|
-
uses: actions/cache@v3
|
36
|
-
env:
|
37
|
-
cache-name: cache-foobara
|
38
|
-
with:
|
39
|
-
path: ~/work/<%= kebab_case_project_name %>/foobara
|
40
|
-
key: ${{ env.cache-name }}-${{ env.foobara_branch }}-${{ env.foobara_sha1 }}
|
41
|
-
restore-keys: |
|
42
|
-
${{ env.cache-name }}-${{ env.foobara_branch }}-
|
43
|
-
${{ env.cache-name }}-
|
44
|
-
- if: ${{ steps.cache-foobara.outputs.cache-hit != 'true' }}
|
45
|
-
name: clone or pull foobara
|
46
|
-
run: |
|
47
|
-
set -e
|
48
|
-
cd ..
|
49
|
-
if [ -d foobara ]; then
|
50
|
-
echo pulling
|
51
|
-
cd foobara
|
52
|
-
ssh-agent sh -c 'echo "${{ secrets.FOOBARA_KEY }}" | ssh-add - &&
|
53
|
-
git fetch --depth=1 origin $foobara_sha1 &&
|
54
|
-
if git rev-parse --verify -q $foobara_branch; then
|
55
|
-
git checkout -q $foobara_branch
|
56
|
-
git reset --hard $foobara_sha1
|
57
|
-
else
|
58
|
-
git branch $foobara_branch $foobara_sha1
|
59
|
-
git checkout -q $foobara_branch
|
60
|
-
fi'
|
61
|
-
else
|
62
|
-
echo cloning
|
63
|
-
ssh-agent sh -c 'echo "${{ secrets.FOOBARA_KEY }}" | ssh-add - &&
|
64
|
-
git clone -b $foobara_branch --depth=1 git@github.com:foobara/foobara.git'
|
65
|
-
fi
|
66
|
-
- name: symlink foobara and point bundler at it
|
67
|
-
run: |
|
68
|
-
set -e
|
69
|
-
mkdir -p .bundle
|
70
|
-
echo -e "---\nBUNDLE_LOCAL__FOOBARA: '/home/runner/work/<%= kebab_case_project_name %>/foobara'" > .bundle/config
|
71
|
-
mkdir ../../foobara
|
72
|
-
ln -s ../../<%= kebab_case_project_name %>/foobara ../../foobara/foobara
|
73
16
|
- name: Set up Ruby
|
74
17
|
uses: ruby/setup-ruby@v1
|
75
18
|
with:
|
data/templates/Gemfile
CHANGED
@@ -3,20 +3,13 @@ ruby File.read("#{__dir__}/.ruby-version")
|
|
3
3
|
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
gem "foobara-dotenv-loader"
|
6
|
+
gem "foobara-dotenv-loader"
|
7
7
|
|
8
8
|
gem "rake"
|
9
9
|
|
10
10
|
group :development do
|
11
|
-
gem "foobara-command-generator", github: "foobara/command-generator"
|
12
|
-
gem "foobara-domain-generator", github: "foobara/domain-generator"
|
13
|
-
gem "foobara-empty-ruby-project-generator", github: "foobara/empty-ruby-project-generator"
|
14
|
-
gem "foobara-files-generator", github: "foobara/files-generator"
|
15
|
-
# TODO: only need this one once everything is published gems and we can use .gemspec for this
|
16
11
|
gem "foob"
|
17
|
-
gem "foobara-organization-generator", github: "foobara/organization-generator"
|
18
12
|
gem "foobara-rubocop-rules"
|
19
|
-
gem "foobara-sh-cli-connector", github: "foobara/sh-cli-connector"
|
20
13
|
gem "guard-rspec"
|
21
14
|
gem "rubocop-rake"
|
22
15
|
gem "rubocop-rspec"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara-empty-ruby-project-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
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-
|
11
|
+
date: 2024-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foobara
|