Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
bundle-update.pdf
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
vividmuimui
October 08, 2019
Programming
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
bundle-update.pdf
vividmuimui
October 08, 2019
Transcript
14 slides
bundle-update bundle-update 2019/09/10 LT 資料 @vividmuimui 1
定期 bundle update 定期 bundle update tachikoma circleci-bundle-update-pr Dependabot Renovate
https://rubygems.org/gems/tachikoma https://github.com/masutaka/circleci-bundle-update-pr https://dependabot.com https://renovatebot.com 2
Dependabot や Renovate が使える環境なら基本的にもうそれで良さそ う Dependabot は GitHub では private
リポも無料で使えるようにな ったし tachikoma, circleci-bundle-update-pr は、とても便利だけど Changelog へのリンクがなくて⼤変 3
tachikoma, circleci-bundle-update-pr tachikoma, circleci-bundle-update-pr Changelog へのリンクがなくて⼤変 Changelog へのリンクがなくて⼤変 こう思ったことないでしょうか? こう思ったことないでしょうか?
4
そこで lock_diff そこで lock_diff 5
GitHub GitHub vividmuimui/lock_diff vividmuimui/lock_diff https://rubygems.org/gems/lock_diff https://rubygems.org/gems/lock_diff 6
lock_diff lock_diff PR のFiles changed にあるGem le.lock の変更の差分を⾒て、 CHANGELOG 系ファイルへのリンクをPR
にコメントするgem tachikoma や circleci-bundle-update-pr などが作ったPR を対象にして実⾏ される想定 https://github.com/vividmuimui/lock_di _sample/pull/9#issuecomment- 315140796
7
lock_diff lock_diff changelog といっても、リポジトリによって様々な場所に書かれてる CHANGELOG.md RELESE_NOTE.txt history.md GitHub の機能の release
etc lock_di はそれらをよしなに探すようになってる コード: vividmuimui/lock_di の changelog_url_ nder.rb 8
実⾏の仕⽅ 実⾏の仕⽅ 実⾏に必要なのは 3 つ リポジトリ名 PR 番号 ( 省略できる)
基本的には特定のPR に対して実⾏するのでPR 番号が必要 でも、最新の bundle update の PR を特定して実⾏する⽅法もある ので、省略できる tachikoma, circleci-bundle-update-pr はPR 作るときのブラン チ名が特徴的なので、それで特定している ( ブランチ名が変わると ❌) $ lock_diff \ -r "vividmuimui/lock_diff_sample" \ -n 9 \ --post-comment=false
# 最新 PR 特定 実行 場合( `_for_tachikoma` 最 $ lock_diff_for_tachikoma
\ -r "vividmuimui/lock_diff_sample" \ --post-comment=false 9
実⾏の仕⽅ 実⾏の仕⽅ circleci で circleci-bundle-update-pr でセットで動かす⽤の コンテナが⽤意 されてる circleci-bundle-update-pr-with-lock-di 10
ぜひ使ってみてください! ぜひ使ってみてください! Dependabot で daily でアップデート、 で weekly で⼀括アップデート、 という感じで併⽤するのも案外良いですよ。
参考: Dependabot vs BundleUpdate+LockDi https://vividmuimui.github.io/slides/dependabot_vs_lockdi /slides/ 11
おわりに おわりに ずっと前に書いて、その時のニーズをある程度実装できたので、全然メ ンテしてない ( コードも汚い) もっと便利にできたらいいなーとは思ってます( 思ってる) https://github.com/vividmuimui/lock_di /issues
12
More Decks by vividmuimui
See All by vividmuimui
あるチームでの技術選定で考えてること(外部向けに修正版)
vividmuimui
0
22
開発組織まわりで最近考えているあれこれ
vividmuimui
0
52
Dependabot vs BundleUpdate+LockDiff
vividmuimui
0
120
あなたの知らないRuboCopの設定
vividmuimui
0
270
最近(2019/02/03)の #Ruby , #Rails , #Bundler 事情
vividmuimui
0
170
Jasperはいいぞ!
vividmuimui
0
61
Danger CI
vividmuimui
0
120
tigとかaliasなし生活を送ってみて改めてgitを覚えてる話
vividmuimui
0
140
lock_diff の紹介
vividmuimui
0
110
Other Decks in Programming
See All in Programming
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
160
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
220
React Native에 현대적인 빌드 도구 더하기: Rollipop 구현기
leegeunhyeok
0
180
Event is what happens
moro
2
4.2k
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
370
Web Framework Benchmark Battle 2026, Any%
a_matsuda
3
3.2k
Seven New Principles of Software Engineering
yegor256
0
480
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
11k
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
3
1.5k
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
250
PyConTW 2026 - AI Coding 不只是工具升級, 區域醫院醫療資訊系統協作開發與資訊團隊轉型實踐
cclai999
0
250
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
210
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.2k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
2
3.8k
Leo the Paperboy
mayatellez
11
2.5k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
Side Projects
sachag
456
43k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
660
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
350
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k