# Autodetect new RubyGem installs

**URL:** <https://www.ruby-forum.com/t/autodetect-new-rubygem-installs/132003>\
**Category:** Ruby\
**Created:** [March 15, 2008, 4:35am UTC](https://www.ruby-forum.com/t/autodetect-new-rubygem-installs/132003 "2008-03-15T04:35:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jHurt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@jHurt](https://www.ruby-forum.com/u/jHurt)\
**Post date:** [March 15, 2008, 4:35am UTC](https://www.ruby-forum.com/t/autodetect-new-rubygem-installs/132003/1 "2008-03-15T04:35:58Z")

</div>

I’m using launchd on Leopard to run gem server. I can have launchd  
automatically restart the gem server any time a file is updated. Is  
there any one file that changes every time a gem is installed or  
updated?

---

<div class="post-metadata">

**Author:** ![jHurt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/b9bd4f/32.png) [@jHurt](https://www.ruby-forum.com/u/jHurt)\
**Post date:** [March 17, 2008, 7:07pm UTC](https://www.ruby-forum.com/t/autodetect-new-rubygem-installs/132003/2 "2008-03-17T19:07:37Z")

</div>

On Mar 14, 2008, at 20:34 , jHurt wrote:

> I’m using launchd on Leopard to run gem server. I can have launchd  
> automatically restart the gem server any time a file is updated. Is  
> there any one file that changes every time a gem is installed or  
> updated?

the gem directory itself. I believe you can detect changes on that  
with launchd.
