Jump to content

Search the Community

Showing results for tags 'ruby'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Blogs

There are no results to display.

Categories

There are no results to display.

Calendars

There are no results to display.

Forums

  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
    • Workflow Advanced Tips & Tricks
    • Workflow Automation Tasks
  • Alfred Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting

Categories

  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media

Categories

  • New Features
  • Other

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Twitter


Location


Interests

  1. Hi, I want to write a little Workflow with Ruby. But i have a little bit trouble to do so. I use the Alfredo Library. Unfortunately until now i was not able to find some example workflows codes with the Alfredo library. Do somebody know such workflows?
  2. Hi, Here's a little workflow to query rubygems.org. Home: https://github.com/olibob/alfred-rubygems Direct download: https://github.com/olibob/alfred-rubygems/raw/master/alfred-rubygems.alfredworkflow Example: Maybe someone else than me will find it useful Regards, Olibob
  3. AlfredLite is a lightweight modular framework for creating workflows. Features Modular designOnly load the modules your workflow uses Faster load times (execution speed is an underappreciated feature of any workflow) Less bundeled dependencies Subclassable workflowsAlfred::Workflow is designed to be subclassed, the possibilities are endless! Requirements AlfredLite is tested against the following verions of Ruby: 1.8.7 (preinstalled on OS X Mountain Lion) 1.9.3 2.0.0 (preinstalled on OS X Mavericks) Contributing (aka I can't do this alone!) Bug FixesReporting bugs is encouraged and greatly appreciated, send them here. If you're contributing a bug fix, please make sure you're committing your fixes on the develop branch (bonus points for creating a dedicated bug fix branch). Feature RequestsHave an idea that will help make writing your workflows easier? Then submit it here. Available on Github Updates 2013-06-02: The first release of AlfredLite was made available today, it can be found here. Next up on the list of todos: a settings module.
  4. Strange issue - hope somone would be able to explain why this happens. In our workflow: https://bitly.com/myphonedesktop-alfred2 when user triggers workflow, we have a check if our application (myPhoneDesktop) is running and if not we starting application. The way we check if app is running is the same way we do for all our other extensions, plugins, etc e.g., myPhoneDesktop for Dropzone - we have the following ruby method: def mpd_running?(app_name) `ps aux` =~ /#{app_name}/ ? true : false end Whats strange is that (ONLY from within Alfred) #mpd_running? method returns a false positive when myPhoneDesktop is not running. This only happens when you launch the script via Alfred and this is not repeatable in IRB or RubyMine or other ruby env. Note: this is not specific to our application i.e., regardless what application would be in place of #{app_name} variable - if executed from within Alfred this method will return true when app is not running. Of course we can come up with workaround and use diff way of checking if app is running like this one suggested by @matias def mpd_running?(app_name) `pgrep -f #{app_name}`.length > 0 end ... but would like to avoid this and resolve what causing above method to return false positive. Hope someone can shine some light on this issue. Thank you.
  5. This workflow lets you search for gems on RubyGems.org Usage Just type gem followed by the name of the gem you want to find on Rubygems and select the one you want to open. If you already know the exact name of the gem, type to_gem followed by the name of the gem to open its details page on RubyGems. Screenshot Changelog 06/07/13 - Results are now displayed in AlfredDownload Version 1.1 (131KB) Contact You can find me on Twitter (@OyoKooN) if you need anything.
  6. UPDATE 25/05/13 - rewrote the whole damn thing in python, added aleoop for quick updates Hey guys, I've finished creating a pocket workflow, I know there are several already in the forums, but this one doesn't require your username/password at any point. (Not that other workflow creators are malicious!) You can download it here (https://github.com/altryne/pocket_alfred/raw/master/Pocket%20workflow.alfredworkflow) and all the code on github (the code is a bit of a mess, I was learning ruby as I was writing) Usage : First login with "pocket_login", this will redirect you to the pocket site to authorize Afterwards use "pocket" to share a URLs Supports : Chrome - if running Safari - if running Clipboard - if contains URL I've banged my head for a long time trying to achieve the sleak oAuth flow, and finally done it, if anyone's interested I can write a blogpost about it. Lemme know what you think, and what improvements/suggestions you may have. credits to https://github.com/vitorgalvao/alfred-workflows/blob/master/Pinadd/pinadd for the chrome and safari applescripts
  7. I created a workflow to search rubygems.org if anyone is interested. Download Source
  8. I've started work on a workflow bundle that I intend to use as a base for other scripting workflows. The language I'm most proficient in is Ruby, so I've taken the liberty of creating this for myself and others to use when developing in Ruby. Features: Shows exceptions and debug output in the Mac OS X Console Adds a ruby gems repository to the workflow bundle so you can package gems with your workflow. Provides access to the workflow bundle's info.plist data Provides sqlite3 gem It's incomplete, but I wanted to get feedback from others as soon as possible. For example, I've added a compiled sqlite3 gem in as part of the gem repository. Does this work across Mac systems? i.e. if you install the workflow, do you get sqlite3 support out-of-the-box? To get started: Copy the init.rb.example file into your script window (e.g. Run Script action). Choose /usr/bin/ruby as the script language. The contents of init.rb.example is some "bootstrap" ruby code that takes great care to catch all exceptions and send them to the Console.app so you can debug your scripts. Copy alfred.rb and main.rb to your bundle. Also copy ruby-1.8 and its subdirectories. This is the gem repo that will let you install gems as part of the bundle for others to use. https://github.com/canadaduane/alfred2-ruby-framework Thanks, Duane Johnson http://makerhome.ca/
  9. Another question :-) How do I get hold of the parameter string using Ruby? Thanks again.
  10. It would be awesome to be given the option to input an arbitrary path to a binary in the "Language" specifier for the various workflow components. This would allow for supporting alternate shells (I've seen a few zsh suggestions on here) or language runtimes (like node). While this could cut down on workflow portability, it would be the workflow author's job to identify requirements to people for the workflow to function. Another reason for arbitrary paths would be to easily support updated/alternate versions of existing language binaries. For example, the built-in OS X version of Ruby is currently versioned 1.8.7-p358. Ruby version 1.8.7 will be officially deprecated as of this summer. Again, workflow authors could provide instructions on installing and using up-to-date interpreters.
  11. Hey all, Blogged a tip on bootstrapping Alfred to use a newer version of Ruby with RVM (system Ruby is 1.8.7). http://samrayner.com/posts/alfred-ruby/ Hope someone finds it useful. Cheers, Sam Note: your Workflow will require users to have RVM installed if you use this.
×
×
  • Create New...