reviewed 0.1.23 → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,11 +4,11 @@ module Reviewed
4
4
  attr_reader :path
5
5
 
6
6
  def initialize(opts={})
7
- if opts[:resource].kind_of?(String)
8
- @path = opts[:resource]
9
- else
7
+ if opts[:resource].kind_of?(Class)
10
8
  @resource = opts[:resource]
11
9
  @path = @resource.path
10
+ else
11
+ @path = opts[:resource].to_s
12
12
  end
13
13
 
14
14
  @client = opts[:client] || Reviewed::Client.new
@@ -1,4 +1,4 @@
1
1
  module Reviewed
2
- VERSION = "0.1.23"
2
+ VERSION = "0.1.24"
3
3
  API_VERSION = 'v1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reviewed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: