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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b6b0a9cc2c20327c42c3b1f1bc1a8e665dfe9da
4
- data.tar.gz: 4938971837b7807ee2279b1401c96566e9a745d7
3
+ metadata.gz: bafe036c0a99eea8b570903989a470ce313ee949
4
+ data.tar.gz: 695a89075ea5a453a5ca5b9335670df3e3727899
5
5
  SHA512:
6
- metadata.gz: ae2da5644f29a445c6fd640c6f47bfc1063ef54136d906192b318552be1fc50f8b924aba1f0d222b43e6ac095459281092078c1ec373a1f4b80c5f27af8ba0a5
7
- data.tar.gz: 2674d33024d2fd5fb526552858b03e6d0b41efb1e7cab515548bd1c7fa0569ee1b7b745668a851fa020a9ad3474d154fd0e15b04ca6f2f479d6150a09d68d5c5
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
- def initialize
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 = host
13
- @port = 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'})
@@ -1,3 +1,3 @@
1
1
  module NabilCan
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nabil_can
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - mohamednabil00000