shortn-url 0.1.0 → 0.1.1

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 +3 -2
  2. metadata +1 -1
data/lib/shortn-url.rb CHANGED
@@ -6,8 +6,9 @@ require 'nokogiri'
6
6
 
7
7
  class ShortnUrl
8
8
 
9
- def initialize(filepath)
10
- @filepath = filepath
9
+ def initialize(opt={})
10
+ @h = opt[:config]
11
+ @filepath = @h[:filepath]
11
12
  @doc = Nokogiri::XML(File.open(filepath,'r').read)
12
13
  end
13
14
 
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors: []
7
7