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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 511690daf88b4369b190598fb63478db5059bc0df80c6a40f25ba6219b2a72ea
4
- data.tar.gz: d23c679146acaa4e4aaf90ef10a4f0ebea3b697fbef3130799822c4a611aa868
3
+ metadata.gz: 7d17eb6cbbb26d388056a406d9c32ecc2440db4c3eaa770c383a21179cc8a489
4
+ data.tar.gz: c1599d61ea5f38feb141d7d88c2df77db5ffd3cb563f1c83fb07b4a9205596c9
5
5
  SHA512:
6
- metadata.gz: 33bb941557c4326f521e9ba018f5a89f68ec6b5a5f5711354179a582f9af546476b87f395e98f4841fdf62c6e8ccbcc57b2d27fdf336724f7fa6c402859ec9ea
7
- data.tar.gz: 82ae3272770a534837ef82923b92e0bd65253c60c2092f25ae6bb7f4ca84386479a6f031ccab678f9d9f19d1c3b376668ef0c23608a3ffb2efcab3844c8a569c
6
+ metadata.gz: 60cfcb25569734f6c762866b297e4714c16cfd96d304dcf4598585b79bc5a736b5e00f8d1851031f9a960a69f714f55fd90d5cac028478bdb1dc61ae957a7029
7
+ data.tar.gz: a27a129fad35a272b6b76eb3629aff8e8950bc432660b35f3e34495d1ef4cbabd24665830e78eaf2ab340e0b21b6ed18d5570ddf101d4695f031dac091103b39
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.0.4] - 2024-07-04
2
+
3
+ - Remove unnecessary foobara gem wiring up code from templates/.github
4
+
5
+ ## [0.0.3] - 2024-06-23
6
+
7
+ - Remove a bunch of unnecessary gems from templates/Gemfile
8
+
1
9
  ## [0.0.2] - 2024-06-19
2
10
 
3
11
  - Add missing templates to gem
@@ -72,7 +72,9 @@ module Foobara
72
72
  if Bundler.respond_to?(:with_unbundled_env)
73
73
  Bundler.with_unbundled_env(&do_it)
74
74
  else
75
+ # :nocov:
75
76
  do_it.call
77
+ # :nocov:
76
78
  end
77
79
  end
78
80
 
@@ -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", github: "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.2
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-06-19 00:00:00.000000000 Z
11
+ date: 2024-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foobara