nx-http 0.1.13 → 0.1.14

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
  SHA256:
3
- metadata.gz: 46aebac08b847f2c90aac11be037957595faecd60cba20195d9bb27c2ba63925
4
- data.tar.gz: fd93ba27b9ae6d829f37428080ae94c5e318c3a6a88b7d64903e295efeebc120
3
+ metadata.gz: c0ff55055071cd4279ac0e4c73a72e7ea44c42d50fd0448e6c7601797d5322dc
4
+ data.tar.gz: ba2cd4f81f316b57cdbd897fa1a45a2773ff7686e8d81b83a9c87484b3d99fc7
5
5
  SHA512:
6
- metadata.gz: 24458209b0ccf4a3a8e7b2de3f18d975ea2b1bc9b86e9d22f259c249f27005b1688ded1fa9f1816e3eae0bd7b8c0bc28fc7681d49cac8382227a8dc1aa7d2029
7
- data.tar.gz: 524fda2f8b696480c4ae3ea99cee8b92f8e2deeb9d72bf2c9cd03629fec369ffb28c6c1c4b77993b5b8082658f996a25b6c1679e9d8f3fdad8ced56c3389959c
6
+ metadata.gz: 8545a69407341f9d3ef62d5113bf1e2cbf9da3ce6154dd62e4654147e2c1c628f96b8129e251655d0c76e88968194581861cbc743c4324d5141b330cd8f101d7
7
+ data.tar.gz: db14cbf385b02c6f7ad0877eacfa2f98f63a838a639028c3074f4f10e0fd6fae151913a0be72f33a3518a80e8a244a6035d536dab8b2b6a08d707e1dd068aedb
@@ -48,7 +48,7 @@ module Nx
48
48
  ["get", "post", "put", "delete", "options"].each do |item|
49
49
  define_method item.to_sym do |url, data = {}, options = {}, &block|
50
50
  self.request(item, url, data, options) do |http, request|
51
- block.call(http, request) if block_given?
51
+ block.call(http, request) unless block.nil?
52
52
  end
53
53
  end
54
54
  end
@@ -1,5 +1,5 @@
1
1
  module Nx
2
2
  class Http
3
- VERSION = "0.1.13"
3
+ VERSION = "0.1.14"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nx-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - afeiship
@@ -69,7 +69,7 @@ files:
69
69
  - lib/nx/data_transform.rb
70
70
  - lib/nx/http.rb
71
71
  - lib/nx/version.rb
72
- - nx-http-0.1.12.gem
72
+ - nx-http-0.1.13.gem
73
73
  - nx-http.gemspec
74
74
  - package.json
75
75
  homepage: https://github.com/afeiship/nx-http