Upgrade to Pro — share decks privately, control downloads, hide ads and more …

gem updateには学びがいっぱい

gem updateには学びがいっぱい

めぐろLT #7 「最近の学び」

Masato Sugiyama

September 28, 2023
Tweet

More Decks by Masato Sugiyama

Other Decks in Technology

Transcript

  1. gem updateʹ͸ֶͼ͕͍ͬͺ͍
    2023/09/28 Ί͙ΖLT #7 ʮ࠷ۙͷֶͼʯ
    ϥΫεϧגࣜձࣾ ਿࢁ কར

    View full-size slide

  2. ࣗݾ঺հ
    • ਿࢁ কརʢMasato Sugiyamaʣ


    • ϥΫεϧגࣜձࣾ ϥΫεϧࣄۀຊ෦ αʔόʔαΠυΤϯδχΞ


    • 2023೥4݄ ৽ଔೖࣾ


    • https://twitter.com/_smasato_


    • https://github.com/smasato

    View full-size slide

  3. gemͷupdateΛͯ͠ΈΔͱֶͼ͕͋ͬͨ
    • ࠷ۙɺRailsΞϓϦέʔγϣϯͰ࢖͍ͬͯΔgemͷΞοϓσʔτʹϋ
    Ϛ͍ͬͯ·͢


    • ͪΌΜͱ΍ͬͯΈΔͱֶͼ͕͋Γ·ͨ͠


    • ʢͨͿΜʣ৽ଔΤϯδχΞʹ΋͓͢͢ΊͰ͢ʂ

    View full-size slide

  4. gem updateͷ͓΋͠Ζ͞
    • gemͷґଘؔ܎͔ΒͲͷΑ͏ͳॱ൪Ͱupdate͍͔ͯ͘͠Λߟ͑Δ


    • RailsόʔδϣϯΞοϓͷϒϩοΧʔʹͳΔ΋ͷ


    • ૂ͍௨Γʹ bundle update —conservative ͕੒ޭ͢Δͱخ͍͠


    • ͋ΔछͷΨνϟײ

    View full-size slide

  5. ͦΕ͚ͩͰ͸ͳ͍!

    View full-size slide

  6. ΞϓϦέʔγϣϯ΁ͷཧղ͕ਂ·Δ
    • ҙࣝͯ͠ͳ͍͚Ͳ࢖͍ͬͯͨgemʹؾͮ͘


    • ࢖͍ͬͯΔgem͔Βීஈ͸৮Βͳ͍෦෼ͷػೳΛ஌ΕΔ


    • Gem
    fi
    le,Gem
    fi
    le.lockͷίϛοτཤྺ͔ΒΞϓϦέʔγϣϯͷྺ࢙͕
    ֞ؒݟ͑Δ

    View full-size slide

  7. gemʹৄ͘͠ͳΕΔ
    • ͲͷΑ͏ͳgem͕͋Δͷ͔


    • Ruby, Railsͷ৽͍͠όʔδϣϯ΁ͷରԠঢ়گ


    • ϝϯςφϯε͞Ε͍ͯΔ͔


    • ϓϧϦΫΤετ͸ཷ·͍ͬͯͳ͍͔


    • ͜ͷ··࢖͍ଓ͚ͯେৎ෉͔?

    View full-size slide

  8. OSSߩݙͷνϟϯεΛݟ͚ͭΒΕΔ
    updateͷͨΊʹGitHubͷϦϙδτϦΛݟ͍ͯΔͱ……


    • READMEͷϦϯΫ੾Ε


    • Status BadgeʢTravis CI → GitHub Actionsʣ


    • CIͷ໰୊


    • CI͕ࢭ·͍ͬͯΔʢTravis CIʣ


    • masterϒϥϯνͰCIམ͍ͪͯΔ

    View full-size slide

  9. ࣮ࡍʹίϯτϦϏϡʔτͯ͠Έͨ
    OSS׆ಈͷ͸͡ΊͷҰา


    • https://github.com/sds/slim-lint/pull/157


    • Status badgeͷमਖ਼


    • https://github.com/sds/slim-lint/pull/157


    • མ͍ͪͯΔCIΛͱΓ͋͑ͣ௚͢

    View full-size slide

  10. ·ͱΊ
    • gemͷupdate͸͓΋͠Ζ͍


    • OSS׆ಈͷ͖͔͚ͬʹ΋ͳΔ͔΋


    • ͱ͸͍͑ɺDependabot͕͍͍ͩͨ΍ͬͯ͘ΕΔ͔΋

    View full-size slide

  11. ͝ਗ਼ௌ


    ͋Γ͕ͱ͏͍͟͝·ͨ͠!

    View full-size slide