make_me_a_sandwich 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -0,0 +1,14 @@
1
+ ## Installation ##
2
+
3
+ $ gem install make_me_a_sandwich
4
+
5
+ ## Usage ##
6
+
7
+ $ make_me_a_sandwich
8
+ (No sudo required.)
9
+
10
+ ## Configuration ##
11
+
12
+ I like Jimmy John's, so it's the default. You can set any sandwich establishment you want with the SANDWICH_URL environment variable.
13
+
14
+ $ export SANDWICH_URL=http://www.subway.com
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'launchy'
3
+ require File.expand_path(File.dirname(__FILE__) + '/../lib/make_me_a_sandwich.rb')
4
4
 
5
- Launchy.open("http://www.jimmyjohns.com")
5
+ MakeMeASandwich.run
@@ -0,0 +1,8 @@
1
+ require 'launchy'
2
+
3
+ class MakeMeASandwich
4
+ def self.run
5
+ url ||= (ENV['SANDWICH_URL'] or 'http://www.jimmyjohns.com')
6
+ Launchy.open(url)
7
+ end
8
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: make_me_a_sandwich
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Manning
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-08-19 00:00:00 Z
13
+ date: 2011-08-20 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: launchy
@@ -32,6 +32,7 @@ extensions: []
32
32
  extra_rdoc_files: []
33
33
 
34
34
  files:
35
+ - lib/make_me_a_sandwich.rb
35
36
  - bin/make_me_a_sandwich
36
37
  - README.md
37
38
  homepage: https://github.com/mattmanning/make_me_a_sandwich