Skip to content

Commit

Permalink
add ability to run Memory Trimming on demand
Browse files Browse the repository at this point in the history
  • Loading branch information
henderea committed Jul 29, 2014
1 parent f554dbb commit e4145b1
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ A RubyMotion application for keeping memory usage in check. Shows up in the men
* **v0.7.8:** add retina status icon
* **v0.8:** add memory quick-trimming functionality and remove the old "reload preferences" menu item
* **v0.8.1:** add an option to control whether or not growl notifications are sticky
* **v0.8.2:** add ability to run Memory Trimming on demand

###Versions (code-signed with developer ID):
* **v0.3:** <http://memorytamer.s3.amazonaws.com/MemoryTamer-0.3.zip> (Mavericks-only)
Expand All @@ -50,3 +51,4 @@ A RubyMotion application for keeping memory usage in check. Shows up in the men
* **v0.7.8:** <https://memorytamer.s3.amazonaws.com/MemoryTamer-0.7.8.zip>
* **v0.8:** <https://memorytamer.s3.amazonaws.com/MemoryTamer-0.8.zip>
* **v0.8.1:** <https://memorytamer.s3.amazonaws.com/MemoryTamer-0.8.1.zip>
* **v0.8.2:** <https://memorytamer.s3.amazonaws.com/MemoryTamer-0.8.2.zip>
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Motion::Project::App.setup do |app|
app.icon = 'Icon.icns'
app.info_plist['CFBundleIconFile'] = 'Icon.icns'
app.name = 'MemoryTamer'
app.version = '0.8.1'
app.short_version = '0.8.1'
app.version = '0.8.2'
app.short_version = '0.8.2'
app.identifier = 'us.myepg.MemoryTamer'
app.info_plist['NSUIElement'] = 1
app.info_plist['SUFeedURL'] = 'https://raw.githubusercontent.com/henderea/MemoryTamer/master/appcast.xml'
Expand Down
3 changes: 3 additions & 0 deletions app/app_delegate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def applicationDidFinishLaunching(notification)
MainMenu[:statusbar].subscribe(:status_free) { |_, _|
Thread.start { free_mem_default(get_free_mem) }
}.canExecuteBlock { |_| !@freeing }
MainMenu[:statusbar].subscribe(:status_trim) { |_, _|
Thread.start { trim_mem(get_free_mem) }
}.canExecuteBlock { |_| !@freeing }
MainMenu[:statusbar].subscribe(:status_quit) { |_, _|
NSApp.terminate
}
Expand Down
2 changes: 2 additions & 0 deletions app/menu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def self.def_items
menuItem :services_item, 'Services', preset: :services

menuItem :status_free, 'Free memory now'
menuItem :status_trim, 'Trim memory now'
menuItem :status_update, 'Check for Updates'
menuItem :status_version, 'Current Version: 0.0'
menuItem :status_quit, 'Quit', preset: :quit
Expand Down Expand Up @@ -50,6 +51,7 @@ def self.def_menus

statusbarMenu(:statusbar, '', status_item_icon: NSImage.imageNamed('Status'), status_item_length: NSVariableStatusItemLength) {
status_free
status_trim
___
status_preferences
___
Expand Down
9 changes: 9 additions & 0 deletions appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
<link>https://raw.githubusercontent.com/henderea/MemoryTamer/master/appcast.xml</link>
<description>Most recent changes with links to updates.</description>
<language>en</language>
<item>
<title>Version 0.8.2</title>
<sparkle:releaseNotesLink>
http://releases.io/henderea/MemoryTamer/0.8.2?heading=true
</sparkle:releaseNotesLink>
<pubDate>Tue, 29 Jul 2014 10:15:00 -0400</pubDate>
<enclosure url="http://memorytamer.s3.amazonaws.com/MemoryTamer-0.8.2.zip" sparkle:version="0.8.2" length="4566418" type="application/octet-stream" />
<sparkle:minimumSystemVersion>10.7</sparkle:minimumSystemVersion>
</item>
<item>
<title>Version 0.8.1</title>
<sparkle:releaseNotesLink>
Expand Down

0 comments on commit e4145b1

Please sign in to comment.