hategra 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/hategra/version.rb +1 -1
  2. data/lib/hategra.rb +5 -2
  3. metadata +2 -2
@@ -1,3 +1,3 @@
1
1
  module Hategra
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/hategra.rb CHANGED
@@ -2,9 +2,12 @@ require "hategra/version"
2
2
  require "erb"
3
3
 
4
4
  module Hategra
5
- urls = ARGV[0].delete("[]").split(":image=")
5
+ root = File.expand_path '../..', __FILE__
6
+ template_path = File.join root, "lib/template.erb"
7
+
8
+ template = ERB.new(File.read(template_path))
6
9
 
7
- template = ERB.new(File.read("./lib/template.erb"))
10
+ urls = ARGV[0].delete("[]").split(":image=")
8
11
 
9
12
  system("echo '#{template.result(binding)}' | pbcopy")
10
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hategra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-04 00:00:00.000000000 Z
12
+ date: 2013-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler