shortly 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shortly/client.rb +2 -10
- metadata +3 -3
data/lib/shortly/client.rb
CHANGED
@@ -29,16 +29,8 @@ module Shortly
|
|
29
29
|
|
30
30
|
base_uri ''
|
31
31
|
|
32
|
-
def self.
|
33
|
-
raise MethodNotAvailableError.new("Sorry
|
34
|
-
end
|
35
|
-
|
36
|
-
def self.expand(url, options ={})
|
37
|
-
raise MethodNotAvailableError.new("Sorry. This method is not available for given service.")
|
38
|
-
end
|
39
|
-
|
40
|
-
def self.validate(options = {})
|
41
|
-
raise MethodNotAvailableError.new("Sorry. This method is not available for given service.")
|
32
|
+
def self.method_missing(method_sym, *params)
|
33
|
+
raise MethodNotAvailableError.new("Sorry, #{method_sym} method is not implemented/available for this service.")
|
42
34
|
end
|
43
35
|
|
44
36
|
protected
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shortly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bagwan Pankaj
|