putsreq 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +5 -5
  2. data/.babelrc +26 -0
  3. data/.codeclimate.yml +29 -5
  4. data/.env.docker +6 -0
  5. data/.eslintignore +4 -0
  6. data/.eslintrc +22 -0
  7. data/.gitignore +8 -0
  8. data/.postcssrc.yml +3 -0
  9. data/.prettierrc +4 -0
  10. data/.reek +12 -0
  11. data/.rubocop.yml +47 -25
  12. data/.ruby-version +1 -1
  13. data/.simplecov +6 -0
  14. data/.travis.yml +38 -4
  15. data/Dockerfile +44 -0
  16. data/Gemfile +40 -61
  17. data/Gemfile.lock +294 -186
  18. data/Procfile +1 -1
  19. data/README.md +51 -46
  20. data/Rakefile +1 -1
  21. data/{public → app/assets}/images/logo.png +0 -0
  22. data/app/assets/javascripts/application.js +1 -1
  23. data/app/assets/javascripts/buckets.js.coffee +1 -21
  24. data/app/assets/stylesheets/{application.css → application.scss} +2 -1
  25. data/app/assets/stylesheets/buckets.css.scss +0 -2
  26. data/app/controllers/application_controller.rb +11 -9
  27. data/app/controllers/buckets_controller.rb +24 -18
  28. data/app/controllers/home_controller.rb +5 -5
  29. data/app/controllers/requests_controller.rb +13 -2
  30. data/app/helpers/application_helper.rb +6 -2
  31. data/app/interactors/create_or_retrieve_bucket.rb +17 -0
  32. data/app/interactors/create_request.rb +25 -7
  33. data/app/interactors/eval_response_builder.rb +9 -9
  34. data/app/interactors/filter_headers.rb +3 -3
  35. data/app/interactors/forward_request.rb +4 -4
  36. data/app/interactors/record_request.rb +1 -1
  37. data/app/interactors/track.rb +44 -0
  38. data/app/javascript/actionTypes.js +7 -0
  39. data/app/javascript/actions/index.js +64 -0
  40. data/app/javascript/components/Bucket.jsx +91 -0
  41. data/app/javascript/components/Pagination.jsx +67 -0
  42. data/app/javascript/components/RequestCount.jsx +21 -0
  43. data/app/javascript/components/request/Header.jsx +31 -0
  44. data/app/javascript/components/request/Response.jsx +28 -0
  45. data/app/javascript/components/request/index.jsx +47 -0
  46. data/app/javascript/packs/application.js +25 -0
  47. data/app/javascript/packs/hello_react.jsx +26 -0
  48. data/app/javascript/reducers/index.js +23 -0
  49. data/app/javascript/request_poller.js +19 -0
  50. data/app/javascript/store.js +9 -0
  51. data/app/models/bucket.rb +16 -10
  52. data/app/models/request.rb +2 -3
  53. data/app/models/user.rb +2 -2
  54. data/app/serializers/bucket_serializer.rb +11 -0
  55. data/app/serializers/request_serializer.rb +69 -0
  56. data/app/views/buckets/_buttons.html.erb +3 -3
  57. data/app/views/buckets/_form.html.erb +6 -6
  58. data/app/views/buckets/_readonly_buttons.html.erb +1 -1
  59. data/app/views/buckets/show.html.erb +12 -25
  60. data/app/views/home/index.html.erb +22 -16
  61. data/app/views/layouts/application.html.erb +21 -22
  62. data/app/views/layouts/devise.html.erb +16 -18
  63. data/app/views/shared/_flash.html.erb +3 -1
  64. data/bin/byebug +21 -0
  65. data/bin/cc-tddium-post-worker +21 -0
  66. data/bin/codeclimate-test-reporter +21 -0
  67. data/bin/coderay +21 -0
  68. data/bin/dotenv +21 -0
  69. data/bin/htmldiff +21 -0
  70. data/bin/httparty +21 -0
  71. data/bin/httpclient +21 -0
  72. data/bin/ldiff +21 -0
  73. data/bin/mongo_console +21 -0
  74. data/bin/nokogiri +21 -0
  75. data/bin/pry +21 -0
  76. data/bin/putsreq +18 -71
  77. data/bin/rackup +21 -0
  78. data/bin/rails +1 -1
  79. data/bin/ri +21 -0
  80. data/bin/rollbar-rails-runner +21 -0
  81. data/bin/rspec +10 -5
  82. data/bin/safe_yaml +21 -0
  83. data/bin/sass +21 -0
  84. data/bin/sass-convert +21 -0
  85. data/bin/scss +21 -0
  86. data/bin/sdoc +21 -0
  87. data/bin/sdoc-merge +21 -0
  88. data/bin/setup +38 -0
  89. data/bin/sprockets +21 -0
  90. data/bin/thor +21 -0
  91. data/bin/tilt +21 -0
  92. data/bin/unicorn +21 -0
  93. data/bin/unicorn_rails +21 -0
  94. data/bin/update +29 -0
  95. data/bin/webpack +15 -0
  96. data/bin/webpack-dev-server +15 -0
  97. data/bin/yarn +11 -0
  98. data/config/application.rb +6 -4
  99. data/config/boot.rb +1 -1
  100. data/config/environment.rb +1 -1
  101. data/config/environments/development.rb +7 -3
  102. data/config/environments/production.rb +5 -2
  103. data/config/environments/test.rb +3 -1
  104. data/config/initializers/devise.rb +2 -2
  105. data/config/initializers/rack_attack.rb +24 -0
  106. data/config/initializers/rollbar.rb +58 -0
  107. data/config/initializers/setup_email.rb +7 -7
  108. data/config/mongoid.yml +2 -2
  109. data/config/newrelic.yml +45 -0
  110. data/config/puma.rb +15 -0
  111. data/config/routes.rb +2 -0
  112. data/config/webpack/development.js +5 -0
  113. data/config/webpack/environment.js +3 -0
  114. data/config/webpack/production.js +5 -0
  115. data/config/webpack/test.js +5 -0
  116. data/config/webpacker.yml +70 -0
  117. data/docker-compose.yml +25 -0
  118. data/lib/putsreq/cli_helper.rb +114 -0
  119. data/lib/putsreq/version.rb +1 -1
  120. data/package.json +30 -0
  121. data/putsreq.gemspec +6 -7
  122. data/spec/controllers/buckets_controller_spec.rb +54 -46
  123. data/spec/interactors/create_or_retrieve_bucket_spec.rb +25 -0
  124. data/spec/interactors/create_request_spec.rb +11 -8
  125. data/spec/interactors/create_response_spec.rb +1 -1
  126. data/spec/interactors/eval_response_builder_spec.rb +14 -17
  127. data/spec/interactors/forward_request_spec.rb +4 -4
  128. data/spec/lib/putsreq/cli_helper_spec.rb +114 -0
  129. data/spec/models/bucket_spec.rb +3 -3
  130. data/spec/spec_helper.rb +25 -25
  131. data/yarn.lock +7043 -0
  132. metadata +85 -20
  133. data/.hound.yml +0 -14
  134. data/app/interactors/notify_count.rb +0 -15
  135. data/app/models/.keep +0 -0
  136. data/config/initializers/redis.rb +0 -17
  137. data/config/unicorn.rb +0 -16
  138. data/lib/assets/.keep +0 -0
  139. data/public/images/.keep +0 -0
  140. data/vendor/assets/javascripts/.keep +0 -0
  141. data/vendor/assets/stylesheets/.keep +0 -0
@@ -1 +1 @@
1
- <%= link_to 'Fork', bucket_fork_path(@bucket.token), class: 'btn btn-primary tm10', method: :post %>
1
+ <%= link_to 'Fork', bucket_fork_path(bucket.token), class: 'btn btn-primary tm10', method: :post %>
@@ -1,10 +1,12 @@
1
- <% content_for :title, @bucket.name %>
1
+ <%= javascript_pack_tag 'application' %>
2
+
3
+ <% content_for :title, bucket.name %>
2
4
 
3
5
  <ul class="nav">
4
6
  <li class="logo"><a href="/"><%= image_tag 'logo.png' %></a></li>
5
- <li><a href="<%= "/#{@bucket.token}/inspect" %>">Inspect</a></li>
6
- <li><a href="<%= "/#{@bucket.token}/last" %>" title="JSON-formatted">Last Request</a></li>
7
- <li><a href="<%= "/#{@bucket.token}/last_response" %>" title="JSON-formatted">Last Response</a></li>
7
+ <li><a href="<%= "/#{bucket.token}/inspect" %>">Inspect</a></li>
8
+ <li><a href="<%= "/#{bucket.token}/last" %>" title="JSON-formatted">Last Request</a></li>
9
+ <li><a href="<%= "/#{bucket.token}/last_response" %>" title="JSON-formatted">Last Response</a></li>
8
10
  <% if user_signed_in? %>
9
11
  <li><%= link_to 'Sign out', destroy_user_session_path, method: :delete %></li>
10
12
  <% else %>
@@ -16,7 +18,7 @@
16
18
  <section class="putsreq-url-box">
17
19
  <h3>Your PutsReq URL</h3>
18
20
  <div class="input-group putsreq-url">
19
- <input id="putsreq-url-input" data-bucket-token="<%= @bucket.token %>" type="text" value="<%= token_url(@bucket.token) %>" readonly="readonly"></input>
21
+ <input id="putsreq-url-input" data-bucket-token="<%= bucket.token %>" type="text" value="<%= token_url(bucket.token) %>" readonly="readonly"></input>
20
22
  <span id="copy-button" class="input-group-addon hastip clipboard" data-clipboard-target="#putsreq-url-input">
21
23
  <span class="glyphicon glyphicon-link hastip"></span>
22
24
  </span>
@@ -27,7 +29,7 @@
27
29
 
28
30
  <section>
29
31
  <h4>Sample Request using cURL</h4>
30
- <code>curl -i -X POST -d 'name=Pablo' <%= token_url(@bucket.token) %></code>
32
+ <code>curl -i -X POST -d 'name=Pablo' <%= token_url(bucket.token) %></code>
31
33
  </section>
32
34
 
33
35
  <hr/>
@@ -36,24 +38,9 @@
36
38
 
37
39
  <p id="new-requests-info"><!-- placeholder: New requests found. Load newer requests? --></p>
38
40
 
39
- <div class="row">
40
- <div class="col-md-6">
41
- <% if @bucket.first_request_at %>
42
- <p>
43
- <em>First request at: <%= @bucket.first_request_at %></br>
44
- Last request at: <%= @bucket.last_request_at %></br>
45
- <% if @bucket.last_request_at - @bucket.first_request_at > 0 %>
46
- From first to last: <%= distance_of_time_in_words @bucket.first_request_at, @bucket.last_request_at, include_seconds: true %></br>
47
- <% end %>
48
- Request ID: <%= link_to @requests.first.id, request_path(id: @requests.first.id, format: :json) %>
49
- </em>
50
- </p>
51
- <% end %>
52
- </div>
53
- <div class="col-md-6"></div>
41
+ <div id="react-root">
54
42
  </div>
55
- <p><%= paginate @requests %></p>
56
- <%= render(partial: 'requests', collection: @requests, as: :recorded_request) || show_no_requests_found(@bucket) %>
57
- <p><%= paginate @requests %></p>
58
43
 
59
- <script src="//js.pusher.com/2.2/pusher.min.js" type="text/javascript"></script>
44
+ <script type="application/json" id="bucket-json">
45
+ <%== BucketSerializer.new(bucket).to_json %>
46
+ </script>
@@ -16,23 +16,29 @@
16
16
  <% end %>
17
17
  </header>
18
18
  <section class="start">
19
- <% if @buckets.any? %>
20
- <div class="history">
21
- <h4 class="bm0 tm0">History</h4>
22
- <small>View and manage your buckets:</small>
23
- <ul class="tm5">
24
- <% @buckets.each do |bucket| %>
25
- <li><%= link_to "#{bucket.name} (#{bucket.requests_count})", bucket_path(bucket.token) %></li>
26
- <% end %>
27
- </ul>
19
+ <div class="row">
20
+ <div class="<%= @buckets.any? ? 'col-md-7' : 'col-md-12' %>">
21
+ <h4>Record requests</h4>
22
+ <p>Change your target URL to a PutsReq URL to start recording your requests.</p>
23
+ <h4 class="tm20">Fake responses</h4>
24
+ <p>PutsReq is the easiest way to fake HTTP responses. You can define the response status, headers and body you want using <a href="https://github.com/phstc/putsreq#response-builder">JavaScript</a>.
25
+ <h4 class="tm20">Forward requests</h4>
26
+ <p>You can easily <a href="https://github.com/phstc/putsreq#forwardto">forward requests to another URL</a>, including <a href="https://github.com/phstc/putsreq#cli">localhost</a>.
28
27
  </div>
29
- <% end %>
30
- <h4>Record requests</h4>
31
- <p>Change your target URL to a PutsReq URL to start recording your requests.</p>
32
- <h4 class="tm20">Fake responses</h4>
33
- <p>PutsReq is the easiest way to fake HTTP responses. You can define the response status, headers and body you want using <a href="https://github.com/phstc/putsreq#response-builder">JavaScript</a>.
34
- <h4 class="tm20">Forward requests</h4>
35
- <p>You can easily <a href="https://github.com/phstc/putsreq#forwardto">forward requests to another URL</a>, including <a href="https://github.com/phstc/putsreq#cli">localhost</a>.
28
+ <% if @buckets.any? %>
29
+ <div class="col-md-5">
30
+ <div class="history">
31
+ <h4 class="bm0 tm0">History</h4>
32
+ <small>View and manage your buckets:</small>
33
+ <ul class="tm5">
34
+ <% @buckets.each do |bucket| %>
35
+ <li><%= link_to "#{bucket.name} (#{bucket.requests_count})", bucket_path(bucket.token) %></li>
36
+ <% end %>
37
+ </ul>
38
+ </div>
39
+ </div>
40
+ <% end %>
41
+ </div>
36
42
  </section>
37
43
  </div>
38
44
  </div>
@@ -1,28 +1,27 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
- <%= render 'layouts/header' %>
5
- </head>
6
- <body data-route="<%= dispatcher_route %>">
3
+ <head>
4
+ <%= render 'layouts/header' %>
5
+ </head>
6
+ <body data-route="<%= dispatcher_route %>">
7
+ <!-- https://github.com/blog/273-github-ribbons -->
8
+ <a href="https://github.com/phstc/putsreq"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
7
9
 
8
- <!-- https://github.com/blog/273-github-ribbons -->
9
- <a href="https://github.com/phstc/putsreq"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
10
-
11
- <div class="container">
12
- <%= render 'shared/flash' %>
13
- <%= yield %>
14
- <hr />
15
- <div class="row">
16
- <div style="float:left">
17
- <strong>Requests Recorded: <%= REDIS.get 'requests_recorded' %></strong>
18
- <br/>
19
- <br/>
20
- <p>Are you looking for Email testing tools? Have a look at <a href="http://putsbox.com" target="_blank">PutsBox</a>.</p>
21
- </div>
22
- <div style="float:right">
23
- Developed by <a href="http://pablocantero.com" target="_blank">Pablo Cantero</a> | Design by <a href="http://rodger.com.br" target="_blank">Glauber Rodger</a>.
10
+ <div class="container">
11
+ <%= render 'shared/flash' %>
12
+ <%= yield %>
13
+ <hr />
14
+ <div class="row">
15
+ <div class="col-md-6">
16
+ <strong>Requests Recorded: <%= requests_recorded %></strong>
17
+ <br/>
18
+ <br/>
19
+ <p>Are you looking for email testing tools? Have a look at <a href="http://putsbox.com" target="_blank">PutsBox</a>.</p>
20
+ </div>
21
+ <div class="col-md-6 text-right">
22
+ Developed by <a href="http://pablocantero.com" target="_blank">Pablo Cantero</a> | Design by <a href="http://rodger.com.br" target="_blank">Glauber Rodger</a>.
23
+ </div>
24
24
  </div>
25
25
  </div>
26
- </div>
27
- </body>
26
+ </body>
28
27
  </html>
@@ -1,22 +1,20 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
- <%= render 'layouts/header' %>
5
- </head>
6
- <body data-route="<%= dispatcher_route %>">
3
+ <head>
4
+ <%= render 'layouts/header' %>
5
+ </head>
6
+ <body data-route="<%= dispatcher_route %>">
7
+ <!-- https://github.com/blog/273-github-ribbons -->
8
+ <a href="https://github.com/phstc/putsreq"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
7
9
 
8
- <!-- https://github.com/blog/273-github-ribbons -->
9
- <a href="https://github.com/phstc/putsreq"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
10
-
11
- <div class="container">
12
- <%= render 'shared/flash' %>
13
- <ul class="nav">
14
- <li class="logo"><a href="/"><%= image_tag 'logo.png' %></a></li>
15
- </ul>
16
- <%= yield %>
17
- <hr />
18
- <strong>Requests Recorded: <%= REDIS.get 'requests_recorded' %></strong>
19
- </div>
20
-
21
- </body>
10
+ <div class="container">
11
+ <%= render 'shared/flash' %>
12
+ <ul class="nav">
13
+ <li class="logo"><a href="/"><%= image_tag 'logo.png' %></a></li>
14
+ </ul>
15
+ <%= yield %>
16
+ <hr />
17
+ <strong>Requests Recorded: <%= requests_recorded %></strong>
18
+ </div>
19
+ </body>
22
20
  </html>
@@ -1,10 +1,12 @@
1
1
  <% if alert %>
2
2
  <div id="main-alert" class="alert alert-danger">
3
+ <button type="button" class="close" data-dismiss="alert">x</button>
3
4
  <h4><%= alert %></h4>
4
5
  </div>
5
6
  <% end %>
6
7
  <% if notice %>
7
8
  <div id="main-alert" class="alert alert-success">
9
+ <button type="button" class="close" data-dismiss="alert">x</button>
8
10
  <h4><%= notice %></h4>
9
11
  </div>
10
- <% end %>
12
+ <% end %>
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'byebug' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
12
+ load(bundle_binstub) if File.file?(bundle_binstub)
13
+
14
+ require "pathname"
15
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
16
+ Pathname.new(__FILE__).realpath)
17
+
18
+ require "rubygems"
19
+ require "bundler/setup"
20
+
21
+ load Gem.bin_path("byebug", "byebug")
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'cc-tddium-post-worker' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
12
+ load(bundle_binstub) if File.file?(bundle_binstub)
13
+
14
+ require "pathname"
15
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
16
+ Pathname.new(__FILE__).realpath)
17
+
18
+ require "rubygems"
19
+ require "bundler/setup"
20
+
21
+ load Gem.bin_path("codeclimate-test-reporter", "cc-tddium-post-worker")
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'codeclimate-test-reporter' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
12
+ load(bundle_binstub) if File.file?(bundle_binstub)
13
+
14
+ require "pathname"
15
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
16
+ Pathname.new(__FILE__).realpath)
17
+
18
+ require "rubygems"
19
+ require "bundler/setup"
20
+
21
+ load Gem.bin_path("codeclimate-test-reporter", "codeclimate-test-reporter")
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'coderay' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
12
+ load(bundle_binstub) if File.file?(bundle_binstub)
13
+
14
+ require "pathname"
15
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
16
+ Pathname.new(__FILE__).realpath)
17
+
18
+ require "rubygems"
19
+ require "bundler/setup"
20
+
21
+ load Gem.bin_path("coderay", "coderay")
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'dotenv' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
12
+ load(bundle_binstub) if File.file?(bundle_binstub)
13
+
14
+ require "pathname"
15
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
16
+ Pathname.new(__FILE__).realpath)
17
+
18
+ require "rubygems"
19
+ require "bundler/setup"
20
+
21
+ load Gem.bin_path("dotenv", "dotenv")
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'htmldiff' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
12
+ load(bundle_binstub) if File.file?(bundle_binstub)
13
+
14
+ require "pathname"
15
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
16
+ Pathname.new(__FILE__).realpath)
17
+
18
+ require "rubygems"
19
+ require "bundler/setup"
20
+
21
+ load Gem.bin_path("diff-lcs", "htmldiff")
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'httparty' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
12
+ load(bundle_binstub) if File.file?(bundle_binstub)
13
+
14
+ require "pathname"
15
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
16
+ Pathname.new(__FILE__).realpath)
17
+
18
+ require "rubygems"
19
+ require "bundler/setup"
20
+
21
+ load Gem.bin_path("httparty", "httparty")
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'httpclient' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
12
+ load(bundle_binstub) if File.file?(bundle_binstub)
13
+
14
+ require "pathname"
15
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
16
+ Pathname.new(__FILE__).realpath)
17
+
18
+ require "rubygems"
19
+ require "bundler/setup"
20
+
21
+ load Gem.bin_path("httpclient", "httpclient")
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'ldiff' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
12
+ load(bundle_binstub) if File.file?(bundle_binstub)
13
+
14
+ require "pathname"
15
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
16
+ Pathname.new(__FILE__).realpath)
17
+
18
+ require "rubygems"
19
+ require "bundler/setup"
20
+
21
+ load Gem.bin_path("diff-lcs", "ldiff")
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'mongo_console' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
12
+ load(bundle_binstub) if File.file?(bundle_binstub)
13
+
14
+ require "pathname"
15
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
16
+ Pathname.new(__FILE__).realpath)
17
+
18
+ require "rubygems"
19
+ require "bundler/setup"
20
+
21
+ load Gem.bin_path("mongo", "mongo_console")
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'nokogiri' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
12
+ load(bundle_binstub) if File.file?(bundle_binstub)
13
+
14
+ require "pathname"
15
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
16
+ Pathname.new(__FILE__).realpath)
17
+
18
+ require "rubygems"
19
+ require "bundler/setup"
20
+
21
+ load Gem.bin_path("nokogiri", "nokogiri")