inspect_request 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7d6cffdcbcdc74f20cc4c28010c1a615f8abc13
4
- data.tar.gz: ff4df94cc91353f4f512ba0c981cedd1c0c6b600
3
+ metadata.gz: 5b47b554290fe5fcbad88bb503676d086ed8908e
4
+ data.tar.gz: cb258de71c477edf2f502553a5b2d94653790f4f
5
5
  SHA512:
6
- metadata.gz: 3d24c6f6e5ce5894dae93af6e076944efef6e3251770fb886b2ba6af98edb64e7bfc96315d8ddbf1b4d5cccae49710d9f276224cce5c1c0aeb8439489d0dae5c
7
- data.tar.gz: afdd8be4b7f37bb1a627e861d0a7cf789ea82f513e521ffc42c890f16220e2a806516495fe775da24fe596318c9c341af20275d2f08cffb956ac8a64ac111556
6
+ metadata.gz: 7f01ced3e1393be34bf609447af3de6f09fc7474e2107bc394ca1e110ad511dfc2348158d5ce7ef86977e57b883a525170055f630c05d30a3b3331f0653788f1
7
+ data.tar.gz: 9e909b5f1969e5f7d8ec98503bc66b995e800b335d3db678a740e42e8f40ffcc3b54bfb2019edb4f29e74e2cd3e9da69519b452f7a6f016a6371cf5c297e3cdb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- inspect_request (0.1.0)
4
+ inspect_request (0.1.1)
5
5
  ritm (~> 1.0.3)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
- # Umbrella
1
+ # InspectRequest
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/umbrella`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ This library will provide you with a proxy (Ritm) which make it possible to inspect network going thru it.
4
+ It similar to what mockserver provide, but much simpler (less feature as well).
5
+ Under the verification function, you have a copy of the request. And you can inspect it however you want. In the end, you just need to return true/false.
4
6
 
5
- TODO: Delete this and the text above, and describe your gem
7
+ Default port is 7777. You cannot change it yet.
6
8
 
7
9
  ## Installation
8
10
 
@@ -0,0 +1,3 @@
1
+ module InspectRequest
2
+ VERSION = '0.1.1'.freeze
3
+ end
@@ -1,4 +1,4 @@
1
- require 'umbrella/version'
1
+ require 'inspect_request/version'
2
2
  require 'ritm'
3
3
 
4
4
  module InspectRequest
@@ -31,6 +31,10 @@ module InspectRequest
31
31
  res
32
32
  end
33
33
 
34
+ def configure(&block)
35
+ InspectRequest.session.configure block
36
+ end
37
+
34
38
  private
35
39
 
36
40
  def track_result(result)
data/umbrella.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  lib = File.expand_path('lib', __dir__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'umbrella/version'
4
+ require 'inspect_request/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'inspect_request'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inspect_request
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Akhmad Fathonih
@@ -103,8 +103,8 @@ files:
103
103
  - Rakefile
104
104
  - bin/console
105
105
  - bin/setup
106
- - lib/umbrella.rb
107
- - lib/umbrella/version.rb
106
+ - lib/inspect_request.rb
107
+ - lib/inspect_request/version.rb
108
108
  - umbrella.gemspec
109
109
  homepage: http://google.com
110
110
  licenses:
@@ -1,3 +0,0 @@
1
- module InspectRequest
2
- VERSION = "0.1.0"
3
- end