Rails 6.1, Ruby3.0.0(rc1)ã«ä¸ããã¾ã§ã«è¸ãã åé¡
趣å³ã§åããã¦ããRails6.0.xãRuby 2.7.1ã®ã¢ããª3ã¤ãRails 6.1ãRuby 3.0.0(rc1)ã«ã¾ã§ä¸ãããã¨è©¦ã¿ãã ãã®ã¨ãã«ééããåé¡ãã¾ã¨ãããã®ã
ã²ã¨ã¾ãRails 6.1ãRuby 2.7.2ã¾ã§ä¸ãããã¨ã«ããã 以ä¸ããã®éç¨ã§è¸ãã åé¡ã
rails aborted! LoadError: cannot load such file -- listen
rails app:update
ãå©ããã¨ãã«åºã¦ããã
gem 'listen'
ã追å ã
Rails 6.1ã¯ActiveStorageå¨ãã®ã¹ãã¼ããå¤ãã£ã¦ãã¦ã rails app:update
ãå®è¡ããã¨ãã¤ã°ã¬ã¼ã·ã§ã³ãã¡ã¤ã«ã追å ãããã®ã§å®è¡ããå¿ããªãã
NoMethodError: undefined method `parent' for MyApplication::Application:Class
rails db:migrate
ãå®è¡ããã¨ãã«rails-erdã§åºãã
Rails 6.1 support · Issue #363 · voormedia/rails-erd · GitHub ã®éããissueã¯ç«ã£ã¦ãããä½è
ã1å¹´ãããæ´æ°ãã¦ãªãã®ã§æ´æ°ããããæã¿èã
ã¨ãããããã©ã¼ã¯çã§ä¿®æ£ãã¦ããã¦ããã®ã§ããã使ãããã«ããã
gem 'rails-erd', github: 'guapolo/rails-erd'
uninitialized constant NestedForm::BuilderMixin (NameError)
åãã rails db:migrate
ã®æã«çºçãrails_admin
ã®åé¡ã®æ§åã
config/initializers/rails_admin.rb
ã«2è¡ã®requireã追å ããã
refs: uninitialized constant NestedForm::BuilderMixin · Issue #887 · sferik/rails_admin · GitHub
require "nested_form/engine" require "nested_form/builder_mixin"
NoMethodError: undefined method `assert_nothing_raised'
RSpecã®SystemSpecã§åºãããã«ãªã£ã¦ããã
rspec - Rails 6.1 upgrade: undefined method `assert_nothing_raised' - Stack Overflow
ããã¨åãåé¡ã ã£ãã®ã§spec/rails_helper.rb
ã«ä»¥ä¸ã追å
config.include ActiveSupport::Testing::Assertions
SystemStackError - stack level too deep
developmentã§è©¦ãã«åä½ç¢ºèªãããã¨ãããåºãã
stacktraceçã« meta_request
ã¨ããGemãæªããã£ãã®ã§è©¦ãã«ãªãã«ããã解決ã
ç¹ã«ä½¿ã£ã¦ããªãã£ãã®ã§ãã®ã¾ã¾åé¤ã
activesupport (6.1.0) lib/active_support/core_ext/object/json.rb:174:in `block in as_json' activesupport (6.1.0) lib/active_support/core_ext/object/json.rb:173:in `each' activesupport (6.1.0) lib/active_support/core_ext/object/json.rb:173:in `as_json' activesupport (6.1.0) lib/active_support/core_ext/object/json.rb:57:in `as_json' activesupport (6.1.0) lib/active_support/core_ext/object/json.rb:174:in `block in as_json' activesupport (6.1.0) lib/active_support/core_ext/object/json.rb:173:in `each' activesupport (6.1.0) lib/active_support/core_ext/object/json.rb:173:in `as_json' activesupport (6.1.0) lib/active_support/core_ext/object/json.rb:174:in `block in as_json' activesupport (6.1.0) lib/active_support/core_ext/object/json.rb:173:in `each' activesupport (6.1.0) lib/active_support/core_ext/object/json.rb:173:in `as_json' activesupport (6.1.0) lib/active_support/core_ext/object/json.rb:57:in `as_json' activesupport (6.1.0) lib/active_support/json/encoding.rb:35:in `encode' activesupport (6.1.0) lib/active_support/json/encoding.rb:22:in `encode' activesupport (6.1.0) lib/active_support/core_ext/object/json.rb:42:in `to_json' meta_request (0.7.2) lib/meta_request/event.rb:46:in `block in json_encodable' meta_request (0.7.2) lib/meta_request/event.rb:66:in `block in transform_hash' meta_request (0.7.2) lib/meta_request/event.rb:60:in `each' meta_request (0.7.2) lib/meta_request/event.rb:60:in `inject' meta_request (0.7.2) lib/meta_request/event.rb:60:in `transform_hash' meta_request (0.7.2) lib/meta_request/event.rb:38:in `json_encodable' meta_request (0.7.2) lib/meta_request/event.rb:15:in `initialize' meta_request (0.7.2) lib/meta_request/app_notifications.rb:69:in `new' meta_request (0.7.2) lib/meta_request/app_notifications.rb:69:in `block in subscribe' meta_request (0.7.2) lib/meta_request/app_notifications.rb:81:in `block in subscribe'
NameError: uninitialized constant ActiveJob::Logging::LogSubscriber
ActiveJobã®å¼æ°ã«å·¨å¤§ãªå¤ãæå®ããã¨ãã°ãä¸ç¬ã§åã¾ãã®ã§snipããããã«æãã§ããã 6.0.xãã6.1ã§ãã®è¾ºãå¤ãã£ã¦ããã¿ããã
diff --git a/config/initializers/active_job_custom_logger.rb b/config/initializers/active_job_custom_logger.rb index 1b352a6..856338a 100644 --- a/config/initializers/active_job_custom_logger.rb +++ b/config/initializers/active_job_custom_logger.rb @@ -1,4 +1,4 @@ -require 'active_job/logging' +require 'active_job/log_subscriber' module ActiveJobCustomLogger def args_info(job) @@ -9,4 +9,4 @@ module ActiveJobCustomLogger end end -ActiveJob::Logging::LogSubscriber.prepend(ActiveJobCustomLogger) +ActiveJob::LogSubscriber.prepend(ActiveJobCustomLogger)
ArgumentError: You tried to define an enum named "bar_status" on the model "Hoge", but this will generate a instance method "_?", which is already defined by another enum.
enumå¤ã«æ¥æ¬èªã使ã£ã¦ãã¨(æ£ç¢ºã«ã¯è±æ°å以å¤ã使ã£ã¦ããã¨)æ£è¦è¡¨ç¾ã§æ¶ããã¦ãã¾ã£ã¦éè¤ã¡ã½ããæ±ãã«ãªãã¨ã©ã¼ã¨ãªãã https://github.com/rails/rails/blob/v6.1.0/activerecord/lib/active_record/enum.rb#L205
ä¸å¿issueã«ã³ã¡ã³ãã ããããã©ãã³ã¼ãã¼ã±ã¼ã¹ãããã®ã§ããããã³ã¡ã³ãããããæ©ãã â¦ã èæ¯çã«ã¯ãã¼ã«ã©ã¤ãºãå¿ è¦ãªã(ããäºå®ããªã)ã®ã§ãã®ã¾ã¾æ¥æ¬èªãå ¥ãã¦ããã
https://github.com/rails/rails/issues/40804#issuecomment-751440989
2021/01/09追è¨
kamipoããã6.1.1ã§ç´ãã¦ããããæè¬ã
manifest unknown
Ruby, Railsã¨ç´æ¥é¢ä¿ãªããã«ãã¹ã masterã«ãã¼ã¸ãã¦imageãä½ãéã«åºãã
ruby:2.7.2-alpine3.10
ãªãã¦ã¤ã¡ã¼ã¸ã¯ãªãã®ã§ ruby:2.7.2-alpine3.12
ã«ä¿®æ£ã
Step 1/22 : FROM ruby:2.7.2-alpine3.10 manifest for ruby:2.7.2-alpine3.10 not found: manifest unknown: manifest unknown
rails aborted! LoadError: Error loading shared library liblzma.so.5: No such file or directory (needed by /usr/local/bundle/gems/nokogiri-1.10.10/lib/nokogiri/nokogiri.so) - /usr/local/bundle/gems/nokogiri-1.10.10/lib/nokogiri/nokogiri.so
Rails 6.1ãRuby 2.7.2ã®æ®µéã§ä¸åãããã¤ãã¦ãããã 趣å³ãªã®ã§å¤å°ã¨ã©ã¼ãåºã¦ãè¯ãããRuby 3ã«é¢ä¿ãªãã¨ããã§åé¡ããããªãåãåãã¦ç¢ºèªãã¦ããããããã
ã©ããã§è¦ããã¨ãããã¨ã©ã¼ã prodç°å¢ã® rails db:migrate
æã«çºçã
alpineã ã¨ãããã¡ãªã¤ã¡ã¼ã¸ããã£ãã®ã§ãã®æ©ä¼ã«slim-busterã«ç§»è¡ããã
ã¤ã¡ã¼ã¸ãµã¤ãºã135MB->285MBã«ãªã£ã¦ãã¾ã£ãâ¦ã ã¨ã¯ããç¹ã«åé¡ãªãæ®éã«åãã®ãã³ã³ããã®ããã¨ããã
Ruby 3å
ãã¼ã¸ã§ã³ç®¡çã«asdfã使ã£ã¦ãããã3.0.0ãé¸ã¹ãªãã£ãã®ã§èª¿ã¹ã¦ããããã«è¡ãçããã
Increment ruby-build for Ruby 3.0.0 support by f440 · Pull Request #192 · asdf-vm/asdf-ruby · GitHub
ASDF_RUBY_BUILD_VERSION=v20201225 asdf install ruby 3.0.0
ã§ã¤ã³ã¹ãã¼ã«ã
ã¾ãèµ·åãããã¨ããã¨cannot load such file -- webrick/httputils (LoadError)
ãåºãã
å
¨ãå¿å½ãããç¡ãã®ã§stacktraceãè¦ãã¨ã
/vendor/bundle/ruby/3.0.0/gems/mechanize-2.7.6/lib/mechanize.rb:12:in `<main>
太å¤ã«ä½¿ã£ã¦ãGemãªã®ã§åé¤ã
次㫠cannot load such file -- binding_of_caller.bundle (LoadError)
ãåºãã
stacktraceãè¦ãã¨ã
/vendor/bundle/ruby/3.0.0/gems/binding_of_caller-0.8.0/lib/binding_of_caller.rb:9:in `<main>'
BetterErrorsã使ãããã«å ¥ãã¦ãããã©ã試ãã«æ¶ãã¦ã¿ãã Gemfile.lockãè¦ãã¨ã
pry-stack_explorer (0.5.1) binding_of_caller (~> 0.7)
ã®ä¾åã§ã¾ã æ®ã£ã¦ããã®ã§pry-stack_explorerãæ¶ãã ããã§ããããrails sã§èµ·åããããã«ãªã£ãã
æè¿ã¯irbãé²åãã¦ãããproductionã§ã¯pryã使ã£ã¦ãªãã®ã§irbã«ç§»è¡ãããã BetterErrorsã便å©ã ã£ããã©web-consoleã§ååããªãã¨ããææ¨é¢ã®æ°æã¡ãå¾ãããã Rails触ãã¯ããã®é ã«ä½¿ã£ãã¢ããªãªã®ã§ä¸è¦ãªgemãããããå ¥ã£ã¦ãã¾ã£ã¦ããâ¦ã
web-consoleã¯Vimiumã¨å¹²æ¸ãã¦ã¾ã¨ãã«ã¿ã¤ãã§ããªããã¨ãä¸çªãã¤ãã jsã§å ¥åãã¼ãåå¾ãã¦preã¿ã°ã®ä¸ã§å ¥ãè¾¼ããããªæåã«ãªã£ã¦ãããããªã®ã§ãç´ ç´ã«inputã¿ã°ã«ãã¦ãããã大ä¸å¤«ããã ãã©ãè²ã ããã¯ããã¦ãã£ã½ãã®ã§ããããããâ¦ã ãããã¯ä¸æçã«Vimiumããªãã«ããã·ã§ã¼ãã«ãããã¼ãªã©ãããã°ããã§å¯¾å¿ããå½¢ã«ãªããâ¦ã
Rubyå
¬å¼ããã¹ãç¨ã® circleci/ruby
ãRCçãããªãã£ãã®ã§ä¸æ¦RC1ã®ã¤ã¡ã¼ã¸ã使ãããã«ããã
ruby:3.0.0-rc1-slim-busterã«ã¯gitãå ¥ã£ã¦ããªãã£ãã®ã§ãgitãapt-get installã«è¿½å ã ãã®ç¶æ ã§ãããã¤ãã¦ç¹ã«åé¡ãªãåä½ããã®ã§ããã¨ã¯æ£å¼çã®ã¤ã¡ã¼ã¸ãåºããåãæ¿ãããããªãã¨ãããããã ã¡ããã¡ããåããªããã®ããã£ã¦ææ¨é¢ããããã©ãçµæçã«è¯ãã£ãæ°ãããã
å
¨ä½ã®ææã¨ãã¦ã¯ä¾åãå¤ããªãã»ã©ã¢ãããã¼ãã®ã¨ãã«å¤§å¤ã§éç¨ã³ã¹ãããããã®ã§æ¥µåä¾åãå¢ãããã«ãã®ãä½ããã¨ããæ°æã¡ã«æ¹ãã¦ãªã£ãã
ãã¨è¤æ°ã¢ããªã§æ´æ°ä½æ¥ããã¦ã㨠rails app:update
ã®å®è¡ã§ config/environments
ã®å·®åãã¡ããã¨åæ ããä½æ¥ãä¸çªç²¾ç¥çã«å¤§å¤ã ã£ãã
ã«ã¹ã¿ã è¨å®ã¯æ«å°¾ã«è¨è¼ãã¦ãªãã¹ãå·®ååæ ã®å½±é¿ãåããªãã¨ããã«ç½®ãã¦ããã®ãããã®ãããããªãã
2020å¹´æ¯ãè¿ã
2020å¹´ã¯ã»ã¼å¨å® ã§ãã£ã¨å®¶ããä»äºããã¦ããã 家ã§ä»äºãããã®ã¯ã¨ã¦ãå¿«é©ã ã£ããã©ãä»äºã趣å³ã¿ãããªã¨ãããããã®ã§ç¡éã«æ®æ¥ãã¦ãã¾ãã®ãè¯ããªãã¨ããææ³ã ãã©ã¤ãã¼ãã ã¨ã³ã¼ããæ¸ãã«ã種ããªãã£ããããã®ã§ãé©åº¦ã«ã³ã¼ãã£ã³ã°ä»¥å¤ã®ãã¨ãããã®ã ããã©ãä»äºãããã¨ãã¼ã£ã¨ãã£ã¦ãã¾ãã
ã¨ããèæ¯ããããä¾å¹´ããã¯ãã©ã¤ãã¼ãæ´»åãå°ãªãã£ãã OSSã«æããPRã¯ä»¥ä¸ã
- googleapis/google-cloud-go
- Spannerã®ReadWriteTransactionä¸ã«panicãèµ·ããã¨ã»ãã·ã§ã³ããªã¼ã¯ããåé¡ã®ä¿®æ£
- aws/eks-charts
- aws-load-balancer-controller chartã«ç°å¢å¤æ°ãä»ä¸ã§ããä¿®æ£
- googleforgames/agones
- helmã®values.yamlã§annotations/resourcesãã¤ããããã®ä¿®æ£
- Prometheus/Grafanaã®æ´æ°
- Allocatorã®ãã°ã¬ãã«ãå¤æ´ããããã®ä¿®æ£
- pingcap/tidb-operator
- helm chartãå£ãã¦ããã®ã§ä¿®æ£
- actions/toolkit
- GitHub Actionsã®ã¡ã¿æ
å ±ã®è¿½å (job, runNumber, runId)
- matrix jobã®å ´åã«jobãä¸æã«ç¹å®ããæ å ±ããªãã£ãã®ãè¾ãã£ã
- GitHub Actionsã®ã¡ã¿æ
å ±ã®è¿½å (job, runNumber, runId)
- GoogleCloudPlatform/k8s-node-termination-handler
- ãã¼ããåé¤ããéã«slackéç¥ããæ©è½ã®è¿½å
- ãã¼ãåé¤æã«å¤ãªã¢ã©ã¼ããåºãªããå æé¢ä¿ã確èªããç¨ã«æ¬²ããã£ãã®ã§æãã¦ã¿ããéã£ã
- ãã¼ããåé¤ããéã«slackéç¥ããæ©è½ã®è¿½å
ããã¾ããã©ã¤ãã¼ãã«æéãå½ã¦ã¦ãªãã£ãå²ã«ã¯è²ã æãããã»ããããªãã¨æã£ã¦ããã
èªåã®OSSãããã¯ãã¯å°éã«action-slackã®æ¹åãè¡ã£ã¦ããã ãã®åã®ãªãªã¼ã¹ã§ã¡ããã©ä»å¹´20åç®ã®ãªãªã¼ã¹ã«ãªããv2.6.0ããv3.8.1ã¾ã§æ´æ°ãããã æ¥ãPRã§å¤§å¤å©ãã£ããã®ããããå°éãªããæé·ããç¶ãããã¦ããã®ã§å¬ããã GitHub Actionsã¯ã¨ã«ãããã¹ããæ¸ãã«ããã®ã§ãã®ããããæ¹åãã¦ã»ããã¨ããã
ä»å¹´ã¯å®¶ã«ããæ¯çãã¨ã¦ãé«ãã£ããã©ãä»äºä»¥å¤ã§æãå½±é¿ãä¸ããã®ã¯åå¼·ä¼ã ã£ããªã¨æãã èªåã¯åå¼·ããã¨ãã¯ä¸äººã§æºè¶³ãªã¿ã¤ããªã®ã§ã主ã«å°å ã®åå¼·ä¼ã«åå ããã¨ãã¯åå¼·ä¼ãã®ãã®ã¨ããããã¯äººã¨è©±ãã¦æ°ãã観ç¹ãããããã¨ããã¨ãããã¡ã¤ã³ã ã£ãã ç»å£å 容ãç´ç²ã«æ°ã«ãªã£ã¦åå ããã±ã¼ã¹ããããã©ãçµå±çºè¡¨ãè¦ãã¨è²ã ãªçåãåºã¦ããã®ã§ãã®å ´ã§è³ªåãããã¨ã®ãã¼ãã«ãé«ããªã£ããªã³ã©ã¤ã³åå¼·ä¼ã¯ãã¾ãåå ãã¦ããªãã£ãã å°å ã ã¨Kyoto.rbã«åå ããã¨ãã«ã¿ããªã§ãã¼ã¯ãã¼ããèãã¦ãã®è©±é¡ã«ã¤ãã¦è©±ãã¨ããä½é¨ããããã¨ãããããã®æã®åå¼·ä¼ã¯èªåã楽ããåå ã§ãããªãã¨æã£ãè¨æ¶ãããã*1 ã¨ã¯ãããªãã ããã ãªã³ã©ã¤ã³åå¼·ä¼ã®å©ç¹ãåãã¦ãã¦æ¬æ°ã§æ°ã«ãªããã©å°ççã«ã¡ãã£ã¨ãªã¼ã¨æãã»ãã·ã§ã³ãæ°è»½ã«è¦ããããã«ãªã£ãã®ã§ãã¼ã¿ã«ã®Pros/Consã¯ããã¾ãå¤ãã£ã¦ãªããããããªãã
å¨å® ã§åãã¨ãã観ç¹ã§è¨ãã¨ããã¼ã¿ã«è¯ãã£ããã©å¨å® ãªãã§ã¯ã ãªã¨æãåé¡ããã£ãã ãããã¨ãæ確ã§å¾ã¯ããã ã(ã³ã¼ããæ¸ãã ã)ãã¿ãããªç¶æ ã§ã¯å¨å® ã®ã»ããå§åçã«ããã©ã¼ãã³ã¹ãè¯ãã ãã¨ã¯ã¤ã³ãã©æ¤è¨¼ã§ç¡é§ã«æéã溶ããç³»ãæ®æ¥ããããããªã£ã¦ãã®ã§ç¸æ§ãè¯ãã£ã(?)ã éã«è¨ãã¨å¤§æ ã¯æ±ºã¾ã£ã¦ããã ãã©ç´°ããã³ã¼ãã¼ã±ã¼ã¹ãè²ã åºã¦ãã¦å£é ã¨ãã§è©³ç´°ãªèªèåãããããå¾ã«é²ãããããªä»äºã¯ããã«ããã ããã«ãããªã£ã¦ããçç±ã¯å£é ã§æ°è»½ã«ã¡ãã£ã¨è©±ãããããã¨ãããã¼ãã«ãä¸ãã£ã¦ããããã ã¨æãã å ã èªåã¯ãããªã«å£é ã§è©±ããããã®ãå¾æãªã¿ã¤ãã§ããªãã®ã§ãããããããã¹ãã§ã¯ãªããã¤ã¹ãã£ãããå¿ è¦ãªã®ã§ãã¨åãåºãã®ã«å¿ççãã¼ãã«ããã£ãã å人ã®æè¦ã¨ãã¦ã¯ã¿ããªå¨å® ã§å£é ã§åãæ©ä¼ãæ¸ã£ã¦ããã ãããã¾ãæ°ã«ããèªãã°ããããããªããã¨æãã¤ã¤ãå£é ã§è©±ãã»ã©ãããªãããªãã¿ãããªå¿çã¨æºãã¦ããç¶æ ã ããç¨åº¦ã®å¨å® æéãçµã¦æ°æã¡ã®æ´çã¨ãã¦ã¯ãå¿ è¦ãããã°ãã¾ãæ°ã«ãã声ãããããã«ãªã£ã¦ãããã©ãå ã 人ã®æéã使ãã®ãè¦æãªã®ã§å¾ã ã«æ £ãã¦ããããã¨ããã
ãã¨ã¯ä»åã®ä»¶ã§ITã¨ã³ã¸ãã¢ã¯å¨å® ã«ãªã£ã人ãããªãå¢ããã¨æãã®ã§ãä»å¾ã®ITã¨ã³ã¸ãã¢æ¥çã¯å¨å® ããã£ã¦ãã¤é åçãªã¨ããã«ã©ãã©ã人æ°ãåºãã®ãããããªãã èªåã¯ä¼ç¤¾ã§åãã¨ãããã¨ã«å¯¾ãã¦ã¯å¤§ãããã¬ãã£ããªè¦ç´ ã¯ãªã*2ããã©ãåºå¤ããããã«ãããæéã«å¯¾ãã¦ã¯ããªããã¬ãã£ãã«æã£ã¦ããã®ã§ãä»ã¯å¨å® ã¯é åçã ãªã¨æãã*3 ãã æçµçã«å®¶åºãæã¤ã¨è²ã ã¡ãªããªãä»ãããã¨ãé£ãããªãã¨æãã®ã§ãéã«åºç¤¾ãããã¨æãããã«ãªããããããªãã
ãã¨ä»å¹´è²·ã£ãå°è±¡æ·±ããã®ãã¡ã
- æéãã¹ã¯(ãã¼ãã£ã¼2 120 DBR)
- ãã®åã«å¥¥è¡ããæµ ãæºã使ã£ã¦ãã¦ãæé¦ã空ä¸ã«æµ®ãã¦ãå½¢ã§ä½æ¥ãã¦ãããç°å¸¸ã«è©ãåã£ãã®ã§è³¼å ¥ã決æ
- é«ããå¤ãããã®ã¯ãã¾ãç¨åº¦ã ã£ããã©å¾ã é¿ãã¦ãããããããªç¶æ³ã«å¯¾å¿ã§ããã®ã§è¯ãã£ã
- ã¯ã¼ã¯ãã§ã¢(ã¸ãªã¼ã BK)
- å¨å® ç¨ã«è²·ã£ãã¨è¨ãããå¨å® ãå§ã¾ãç´åã«æ¤ åãå£ããã®ã§è²·ã£ã
- ã¢ã¼ãã³ãã§ã¢ã¨ããæ¤è¨ãããã©ã座ã£ãæãã§ããã¾ã§é¿ããªãã£ãã®ã§ãæé ãªãã¤ã
- å¼·ãã¦è¨ããªãã¬ãã°ã¬ã¹ãããããã¤ãè²·ãã°ããã£ã
- mac mini(Intel)
- MBP2018 15ã¤ã³ãã®ããããªã¼ãè¨ããã§ããã®ã§è²·ãæ¿ãæ¤è¨ããçµæ
- mac miniãæ³åããå°ããã¦å¸°çæã«æã¡å¸°ããããªç¹ããªãã©ã¤ã³åå¼·ä¼ããªããããªç¹ã決ãæ
- å°æ¥çã«ãªãã©ã¤ã³åå¼·ä¼ã復活ãããApple Sillicon MBAãè³¼å ¥ããäºå®
- mac miniã¹ã¿ã³ã
- è³¼å ¥ããmac miniã®ããã«ã¹ã¿ã³ããè²·ã£ã
- æºãåºããªãã®ã§è¯ã
- Magic Mouse2
- é·æémacã触ãã®ã§ãã¦ã¹ã®ã»ããå¿«é©ãªã®ã§ã¯ï¼ã¨æã£ã¦è²·ã£ã
- ãã¼ãã¼ãããã¹ã¤ãããã¦è§¦ãã¨ãã®æåãã·ãã¢ããã¦æ¥åã§ã¯ä½¿ãã®ãããã
- ãã©ãã¯ãããã¯éã«è§¦ã£ã¦æã£ãã¨ããã«åãã®ãè¯ãç¹ã ã¨æ°ã¥ãã
- iPhone 12 mini
- iPhone 11 Proã使ã£ã¦ãããã©ããã¯ãã§ããã£ã
- 12 miniã使ã£ã¦è»½ããæãå±ããã¨ã«ççã«æåãã
- å¤æ¯ããããã«åããæºå¸¯ã§ããã°ãµã¤ãºã¯å°ããã¾ã¾ã§è¯ãã£ããã â¦
- ã¹ããã¹ã¿ã³ã
- æºã®ä¸ã«ããã¨éç¥ãæ¥ãç¬éFaceIDã§ããã¯è§£é¤ãã¦éç¥å 容ãèªãã¦ä¾¿å©
- ã¿ãã¬ãã ã¢ã¼ã ã¹ã¿ã³ã ã¹ãã
- å¯å®¤ã§å¯è»¢ãããªããåç»ãè¦ããããã«ãªã£ã¦å¿«é©ã«ãªã£ã
- å¯ãåã«å¤ãµãããããããã«ãªã£ã¦ãã¾ã£ãåå ã®ä¸ã¤
- Fitbit Sense
- ããæ¥çªç¶Verse2ãåèµ·åã«ã¼ãã«ãªã£ã¦ãã¾ã£ãã®ã§æ¬¡ã®æ¥ã«Senseãè³¼å ¥ãã
- ãã®å¾ãµãã¼ãã«åãåããããæ°ããVerse2ãéã£ã¦ãããããæªã ã«éãã¦ããªã*4
- Windowsãã¹ã¯ããã
- ãã¸ã¯ã¼ã« ã¢ããã³ã¹ã ã¯ã¤ã¤ã¬ã¹ãã¦ã¹ MX Master 3
- è¯ããã¦ã¹ã¨èãã¦è²·ã£ãããæã£ãããã¯è¯ããªãã£ã
- æéãç½®ãã¦è§¦ãã¨ãã°ããåå¿ããªãã®ããã¬ãã£ã(PCå´ã®éæ¯ã®åé¡?)
- BenQ 31ã¤ã³ãã¢ãã¿ã¼
- å ã 24ã¤ã³ããã£ã¹ãã¬ã¤ã ã£ãWindowsãã·ã³ã®å ¥ãæ¿ãç¨
- Switchã¨ãããã®ãã£ã¹ãã¬ã¤ã§éãã§ãããã大ããã¦è¯ã
æå¾ã«èã ãã¯ãå¤§å¹ ã«æ¸ã£ã¦ããã(主ã«è¶£å³ãããã¯ãã®ã³ãããæ°ãæ¸ã£ã¦ãã)
GitHub Actionsã©ã¤ãã©ãªã®ãªãªã¼ã¹ãèªååãã
action-slackã¨ããGitHub Actionsã§Slackéç¥ãè¡ããã©ã¤ãã©ãªã®ãªãªã¼ã¹ãèªååããã
package.jsonã®ãã¼ã¸ã§ã³ãæ´æ°ããnpm i
ãè¡ã£ã¦masterã«pushããã¨å¤æ´ããããã¼ã¸ã§ã³ã§ãªãªã¼ã¹ä½æã¾ã§è¡ãã
æµãã¨ãã¦ã¯ä»¥ä¸ã®ãããªå½¢ã
- åãã©ã³ãã«pushããéã«åä½ãã¹ãJobãèµ°ã
- 1ã®ãã©ã³ããmasterãã¤åä½ãã¹ããéã£ã¦ããããªãªã¼ã¹æºåJobãèµ°ã
- package.jsonããã³package-lock.jsonãè¦ã¦ãã¼ã¸ã§ã³ãå¤ãã£ã¦ããå ´åã¯ãªãªã¼ã¹æºåãè¡ã
- 3ã§ãªãªã¼ã¹æºåãè¡ã£ãå ´åã¯ãªãªã¼ã¹ãä½æ(actions/create-release)ãã
æã£åãæ©ãã³ã¼ããè¦ãã人ã¯ä»¥ä¸ã®ãªã³ã¯ããã©ããã
æåã«æ©ãã ã®ã¯GitHub Actionsã®ã¯ã¼ã¯ããã¼å
ã§ã³ã¼ããpushãããã¿ã°ãã¤ããå ´åã¯ä»ã®ã¯ã¼ã¯ããã¼ãçºç«ããªãã¨ãããã¨ã
ä¾ãã°ã¿ã°ãpushããã¨actions/create-releaseããªãªã¼ã¹ãä½æããã¯ã¼ã¯ããã¼(WF A)ããã£ãã¨ãã«ãå¥ã®ã¯ã¼ã¯ããã¼ã§ã¿ã°ãã¤ãã¦pushãã¦ãWF Aã¯çºç«ããªãã
ãããåé¿ããããã«ã¯Personal Access Tokenã使ãã¨åé¿ã§ããã¨è¨è¼ããã¦ããã
refs: Events that trigger workflows - GitHub Docs
prepare-release Jobã§ã¯ä»¥ä¸ã®å¦çãè¡ã£ã¦ããã
- ãifã§masterãã©ã³ããéå®ãããneedsã§ãtest Jobãæåãããã¨ããä¿è¨¼ãã
GITHUB_TOKEN
ã«Personal Access Tokenãæå®ãã¦ãactions/create-releaseãè¨è¼ããã¦ããã¯ã¼ã¯ããã¼ãçºç«ããã
prepare-release: if: contains(github.ref, 'master') needs: [test] runs-on: ubuntu-latest steps: ... - run: npm run prepare-release env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
èªåã®å ´å㯠npm run prepare-release
ãå®è¡ããã¨bashã¹ã¯ãªãããå®è¡ãããã®ä¸ã§è²ã
ãªãªã¼ã¹ã«å¿
è¦ãªæä½ãè¡ã£ã¦ããã
prepare-release.sh
ä¸è¨ã®ã¹ã¯ãªããã§ã¯package.jsonãããã¼ã¸ã§ã³æ
å ±ãæ½åºããã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ãè¦ã¦ v3
ãã©ã³ããªã©ã«pushãã¤ã¤*1ã¿ã°ãä»ä¸ããæä½ãè¡ã£ã¦ããã
*1:1æåããè¦ã¦ãªãã®ã§ç¾ç¶v9ã¾ã§ããæ£å¸¸ã«åä½ããªã