zunnit 0.4.1 → 0.4.2

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.
data/lib/zunnit/api.rb CHANGED
@@ -17,6 +17,10 @@ module Zunnit
17
17
  yield self if block_given?
18
18
  end
19
19
 
20
+ def url
21
+ "http://#{self.client}.zunnit.com/"
22
+ end
23
+
20
24
  # Make a GET request to Zunnit's API
21
25
  def get(action, options={})
22
26
  request(:get, action, options)
@@ -29,7 +33,7 @@ module Zunnit
29
33
 
30
34
  private
31
35
  def connection
32
- @connection ||= Faraday.new(:url => Zunnit.url)
36
+ @connection ||= Faraday.new(:url => url)
33
37
  end
34
38
 
35
39
  def params_for(options={})
data/lib/zunnit/setup.rb CHANGED
@@ -25,7 +25,4 @@ module Zunnit
25
25
  self
26
26
  end
27
27
 
28
- def self.url
29
- "http://#{self.client}.zunnit.com/"
30
- end
31
28
  end
@@ -1,4 +1,4 @@
1
1
  module Zunnit
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
4
4
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: zunnit
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.1
5
+ version: 0.4.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Marcelo Eden