nabil_can 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nabil_can.rb +3 -7
- data/lib/nabil_can/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bafe036c0a99eea8b570903989a470ce313ee949
|
4
|
+
data.tar.gz: 695a89075ea5a453a5ca5b9335670df3e3727899
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8830376a929c0b7e323de47264fdba67e2710d2e6a7ea66ad6fe54741ae0bfcf80a96dff7ef83fa454504dc8efc1de30d91265c1349196cdf47060c726741225
|
7
|
+
data.tar.gz: 50ed3e939052b8aee5eee4b90e7441c714065ebdddc90a8ac34fbc030b5129bdb92f4f6237b8b30cd509940f8a9fc68eef87d3c3b0bf282a007463c005157fbd
|
data/lib/nabil_can.rb
CHANGED
@@ -3,14 +3,10 @@ require "nabil_can/version"
|
|
3
3
|
module NabilCan
|
4
4
|
# Your code goes here...
|
5
5
|
class Ability
|
6
|
-
|
7
|
-
req = Request.new
|
8
|
-
host = req.host # => "example.com"
|
9
|
-
port = req.port
|
10
|
-
end
|
6
|
+
|
11
7
|
def self.sending_http_request(user_id,action_name,model,path,port_no,host_name)
|
12
|
-
@host =
|
13
|
-
@port =
|
8
|
+
@host = host_name
|
9
|
+
@port = port_no
|
14
10
|
@path = "#{path}?user_id=#{user_id}&action_name=#{action_name}&model=#{model}"
|
15
11
|
|
16
12
|
request = Net::HTTP::Get.new(@path, initheader = {'Content-Type' =>'application/json'})
|
data/lib/nabil_can/version.rb
CHANGED