hategra 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/hategra.rb +7 -0
  2. data/lib/hategra/version.rb +1 -1
  3. metadata +2 -2
@@ -2,6 +2,12 @@ require "hategra/version"
2
2
  require "erb"
3
3
 
4
4
  module Hategra
5
+ unless ARGV[0]
6
+ puts "Please give as arguments Hatena-Notation"
7
+ puts "Ex. [http://instagram.com/p/Y-Q9qvNBbh/:image=http://distilleryimage5.s3.amazonaws.com/781e7932b65511e29a5822000a9f15d4_7.jpg]"
8
+ exit
9
+ end
10
+
5
11
  root = File.expand_path '../..', __FILE__
6
12
  template_path = File.join root, "lib/template.erb"
7
13
 
@@ -10,4 +16,5 @@ module Hategra
10
16
  urls = ARGV[0].delete("[]").split(":image=")
11
17
 
12
18
  system("echo '#{template.result(binding)}' | pbcopy")
19
+ puts "Copied!"
13
20
  end
@@ -1,3 +1,3 @@
1
1
  module Hategra
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  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.2
4
+ version: 0.0.3
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-06 00:00:00.000000000 Z
12
+ date: 2013-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler