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 +4 -4
- data/lib/nx/http.rb +1 -1
- data/lib/nx/version.rb +1 -1
- data/{nx-http-0.1.12.gem → nx-http-0.1.13.gem} +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0ff55055071cd4279ac0e4c73a72e7ea44c42d50fd0448e6c7601797d5322dc
|
4
|
+
data.tar.gz: ba2cd4f81f316b57cdbd897fa1a45a2773ff7686e8d81b83a9c87484b3d99fc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8545a69407341f9d3ef62d5113bf1e2cbf9da3ce6154dd62e4654147e2c1c628f96b8129e251655d0c76e88968194581861cbc743c4324d5141b330cd8f101d7
|
7
|
+
data.tar.gz: db14cbf385b02c6f7ad0877eacfa2f98f63a838a639028c3074f4f10e0fd6fae151913a0be72f33a3518a80e8a244a6035d536dab8b2b6a08d707e1dd068aedb
|
data/lib/nx/http.rb
CHANGED
@@ -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)
|
51
|
+
block.call(http, request) unless block.nil?
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
data/lib/nx/version.rb
CHANGED
Binary file
|
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.
|
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.
|
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
|