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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf8fa48bec3abe9c9a5a0b78b1bce9e5d3a16a7ae2026ca7675a46b4cd65900e
4
- data.tar.gz: d0eb6c8fbc7d0efec8f2920ad3b94c240ec344ee8e0a5606072016193889f5e3
3
+ metadata.gz: 64f3c8d361fa2e9dcef06d11d6be52e3b1d699e84b1a643c23225e3d7eb62dcd
4
+ data.tar.gz: a476e6fa7dad2e10320f97264e64af48db31d3af4295a409ce91109050b4f6cc
5
5
  SHA512:
6
- metadata.gz: 555b3a8191c0eb1cee82b0fab20796827ee7e9a2191e61c9e462ab907ded83279e5e4a3472160db52cb43068dd5d969c07a9712767dedfafa769c436f647416f
7
- data.tar.gz: 2e7358f4f012301fa59add914bc80692a3e135025bab6fc96c007c50f46808fcc19b33c21cca2876475f3f7ce978b0a9d0b4a01b8ac9f65113620427314c2569
6
+ metadata.gz: 61e817be6722660c811982dd5662690ec11e602e611a400628f2a20559c4873907af3e7f6098aab136cd9537706f34822ce000926aa5c631cbf6da5dee4ccbf2
7
+ data.tar.gz: 72a3c45467f9e3927fc534f46171c2d95ae50c61709d976015ed53c367d0295fe9647de8a7f4ceb2ea48e0fae95349aba8b894f253ae263e1c15bc0f7f375bae
data/CHANGELOG.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
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: Update repo analyzer gem
116
- command: bundle update --conservative repo_analyzer
117
-
118
- - run:
119
- name: POST extracted data to nest
120
- command: bin/rake "repo_analyzer:analyze[platanus/<%= get(:github_repo_name) || get(:dasherized_app_name) %>]"
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 dahsboard, go to the new pipeline and 'configure automatic deploys' using Github
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
@@ -1,7 +1,6 @@
1
1
  class Recipes::Ci < Rails::AppBuilder
2
2
  def create
3
3
  template '../assets/.circleci/config.yml.erb', '.circleci/config.yml'
4
- gather_gem 'repo_analyzer'
5
4
 
6
5
  gather_gems(:test) do
7
6
  gather_gem 'rspec_junit_formatter', '~> 0.4'
@@ -1,5 +1,5 @@
1
1
  module Potassium
2
- VERSION = "7.1.0"
2
+ VERSION = "7.2.0"
3
3
  RUBY_VERSION = "2.7.0"
4
4
  RAILS_VERSION = "~> 7.0.4.2"
5
5
  RUBOCOP_VERSION = "~> 1.9"
@@ -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.1.0
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-03 00:00:00.000000000 Z
11
+ date: 2023-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler