shortn-url 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/shortn-url.rb +2 -3
  2. metadata +1 -1
@@ -7,9 +7,8 @@ require 'nokogiri'
7
7
  class ShortnUrl
8
8
 
9
9
  def initialize(opt={}, app_mgr=nil)
10
- @h = opt[:config]
11
- @filepath = @h[:filepath]
12
- @doc = Nokogiri::XML(File.open(filepath,'r').read)
10
+ @filepath = opt[:filepath]
11
+ @doc = Nokogiri::XML(File.open(@filepath,'r').read)
13
12
  end
14
13
 
15
14
  # fetch the short url if it already exists otherwise use a new short url
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shortn-url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors: []
7
7