potassium 7.1.0 → 7.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -2
- data/lib/potassium/assets/.circleci/config.yml.erb +15 -6
- data/lib/potassium/assets/README.yml +1 -1
- data/lib/potassium/recipes/ci.rb +0 -1
- data/lib/potassium/version.rb +1 -1
- data/spec/features/ci_spec.rb +1 -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: 64f3c8d361fa2e9dcef06d11d6be52e3b1d699e84b1a643c23225e3d7eb62dcd
|
4
|
+
data.tar.gz: a476e6fa7dad2e10320f97264e64af48db31d3af4295a409ce91109050b4f6cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61e817be6722660c811982dd5662690ec11e602e611a400628f2a20559c4873907af3e7f6098aab136cd9537706f34822ce000926aa5c631cbf6da5dee4ccbf2
|
7
|
+
data.tar.gz: 72a3c45467f9e3927fc534f46171c2d95ae50c61709d976015ed53c367d0295fe9647de8a7f4ceb2ea48e0fae95349aba8b894f253ae263e1c15bc0f7f375bae
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
-
##
|
4
|
-
|
3
|
+
## 7.2.0
|
4
|
+
Features
|
5
|
+
- Use repo_analyzer from docker image [#448](https://github.com/platanus/potassium/pull/448)
|
5
6
|
## 7.1.0
|
6
7
|
Features
|
7
8
|
- Add environment variables module recipe [#435](https://github.com/platanus/potassium/pull/435)
|
@@ -5,6 +5,7 @@ ruby-image: &ruby-image cimg/ruby:<%= ruby_version %>
|
|
5
5
|
postgres-image: &postgres-image postgres:<%= Potassium::POSTGRES_VERSION %>
|
6
6
|
<%- end -%>
|
7
7
|
redis-image: &redis-image cimg/redis:6.2.12
|
8
|
+
repo-analyzer-image: &repo-analyzer-image platanus/repo-analyzer:ruby-3.2
|
8
9
|
env-vars: &env-vars
|
9
10
|
BUNDLE_JOBS: 4
|
10
11
|
BUNDLE_PATH: vendor/bundle
|
@@ -22,6 +23,7 @@ executors:
|
|
22
23
|
- image: *postgres-image
|
23
24
|
<%- end -%>
|
24
25
|
- image: *redis-image
|
26
|
+
- image: *repo-analyzer-image
|
25
27
|
|
26
28
|
lint-executor:
|
27
29
|
docker:
|
@@ -34,6 +36,9 @@ commands:
|
|
34
36
|
steps:
|
35
37
|
- checkout
|
36
38
|
|
39
|
+
- setup_remote_docker:
|
40
|
+
version: 20.10.18
|
41
|
+
|
37
42
|
- restore_cache:
|
38
43
|
keys:
|
39
44
|
- bundle-dependencies-{{ .Environment.BUNDLE_CACHE_VERSION }}-{{ checksum "Gemfile.lock" }}
|
@@ -112,12 +117,16 @@ jobs:
|
|
112
117
|
bundle exec rspec spec $RSPEC_FORMAT_ARGS $RSPEC_JUNIT_ARGS
|
113
118
|
|
114
119
|
- run:
|
115
|
-
name:
|
116
|
-
command:
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
120
|
+
name: POST extracted info to Nest with Repo Analyzer
|
121
|
+
command: |
|
122
|
+
container_name=$(docker ps --filter "ancestor=platanus/repo-analyzer:ruby-3.2" --format "{{.Names}}")
|
123
|
+
docker cp /home/circleci/project "$container_name":/app/project
|
124
|
+
docker exec "$container_name" rm -rf project/node_modules/ project/vendor/
|
125
|
+
docker exec \
|
126
|
+
-e GITHUB_PERSONAL_TOKEN=$GITHUB_PERSONAL_TOKEN \
|
127
|
+
-e REPO_ANALYZER_URL=$REPO_ANALYZER_URL \
|
128
|
+
"$container_name" \
|
129
|
+
bundle exec rake 'repo_analyzer:analyze[platanus/<%= get(:github_repo_name) || get(:dasherized_app_name) %>,project]'
|
121
130
|
|
122
131
|
- run:
|
123
132
|
name: Run simplecov
|
@@ -50,7 +50,7 @@ readme:
|
|
50
50
|
|
51
51
|
this will create the app on heroku, create a pipeline and link the app to the pipeline.
|
52
52
|
|
53
|
-
You'll still have to manually log in to the heroku
|
53
|
+
You'll still have to manually log in to the heroku dashboard, go to the new pipeline and 'configure automatic deploys' using Github
|
54
54
|
You can run the following command to open the dashboard in the pipeline page
|
55
55
|
|
56
56
|
$ heroku pipelines:open
|
data/lib/potassium/recipes/ci.rb
CHANGED
data/lib/potassium/version.rb
CHANGED
data/spec/features/ci_spec.rb
CHANGED
@@ -24,7 +24,7 @@ RSpec.describe 'CI' do
|
|
24
24
|
|
25
25
|
it "uses dasherized app name for repo analyzer" do
|
26
26
|
expect(ci_config).to include(
|
27
|
-
"repo_analyzer:analyze[platanus/#{PotassiumTestHelpers::APP_NAME.dasherize}]"
|
27
|
+
"repo_analyzer:analyze[platanus/#{PotassiumTestHelpers::APP_NAME.dasherize},project]"
|
28
28
|
)
|
29
29
|
end
|
30
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: potassium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- juliogarciag
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-07-
|
11
|
+
date: 2023-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|