interage-request 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0f3158ec69ab8db993365e3d5da65aff8b2e3276ceef11f641eedf6cdb675227
4
+ data.tar.gz: a673d489c9cab26eddc199209f0cc1e1168ad17905f3107806e5cc17e16e547d
5
+ SHA512:
6
+ metadata.gz: 2d816277fa807a02aba6df711c27dd23734fadf0136c0a1dcd542173bb1171b8dda2e6b945a22b9d337cd2ab346ffc393224650a27f9b024051f53b474219f32
7
+ data.tar.gz: 12ffc905dcd220155fa052ba7715664dca7b1577262f4104e062e4423f3094a32f050bbddfdf0607676da81471e3ccc7b3c4323ee062a64a71f5fe718ec9385a
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,4 @@
1
+ --require spec_helper
2
+ --format documentation
3
+ --force-color
4
+ --order rand
data/.rubocop.yml ADDED
@@ -0,0 +1,22 @@
1
+ require:
2
+ - rubocop-rspec
3
+ - rubocop-performance
4
+
5
+ Documentation:
6
+ Enabled: false
7
+
8
+ Style/EmptyMethod:
9
+ Enabled: false
10
+
11
+ Style/SymbolArray:
12
+ Enabled: false
13
+
14
+ Style/WordArray:
15
+ Enabled: false
16
+
17
+ AllCops:
18
+ TargetRubyVersion: 2.6
19
+ Exclude:
20
+ - bin/**/*
21
+ - vendor/**/*
22
+ - lib/generators/interage/request/*/templates/**/*.rb
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.2
7
+ before_install: gem install bundler -v 2.0.1
data/CHANGES ADDED
@@ -0,0 +1,7 @@
1
+ Version 0.1.0
2
+ - Renomea e reimplmenta gem para application request
3
+ - Adiciona comando dos geradores na documentação
4
+ - Implementa geradores de classes query
5
+ - Implementar classe application query
6
+ - Cria gem application query
7
+
data/Gemfile ADDED
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
6
+
7
+ group :development, :test do
8
+ # https://github.com/rubocop-hq/rubocop#quickstart
9
+ gem 'rubocop', '~> 0.67.2'
10
+ # https://github.com/backus/rubocop-rspec
11
+ gem 'rubocop-rspec', '~> 1.32'
12
+ # https://github.com/rubocop-hq/rubocop-performance/#usage
13
+ gem 'rubocop-performance', '~> 1.1'
14
+ # https://github.com/rspec/rspec#install
15
+ gem 'rspec', '~> 3.8'
16
+ # https://github.com/pry/pry#installation
17
+ gem 'pry', '~> 0.12.2'
18
+ # https://github.com/presidentbeef/brakeman
19
+ gem 'brakeman', '~> 4.3', '>= 4.3.1', require: false
20
+ # https://github.com/rails/rails/tree/master/activesupport#download-and-installation
21
+ gem 'activesupport', '~> 5.2', '>= 5.2.3'
22
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,80 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ interage-request (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ activesupport (5.2.3)
10
+ concurrent-ruby (~> 1.0, >= 1.0.2)
11
+ i18n (>= 0.7, < 2)
12
+ minitest (~> 5.1)
13
+ tzinfo (~> 1.1)
14
+ ast (2.4.0)
15
+ brakeman (4.5.0)
16
+ coderay (1.1.2)
17
+ concurrent-ruby (1.1.5)
18
+ diff-lcs (1.3)
19
+ i18n (1.6.0)
20
+ concurrent-ruby (~> 1.0)
21
+ jaro_winkler (1.5.2)
22
+ method_source (0.9.2)
23
+ minitest (5.11.3)
24
+ parallel (1.17.0)
25
+ parser (2.6.2.1)
26
+ ast (~> 2.4.0)
27
+ pry (0.12.2)
28
+ coderay (~> 1.1.0)
29
+ method_source (~> 0.9.0)
30
+ psych (3.1.0)
31
+ rainbow (3.0.0)
32
+ rake (10.5.0)
33
+ rspec (3.8.0)
34
+ rspec-core (~> 3.8.0)
35
+ rspec-expectations (~> 3.8.0)
36
+ rspec-mocks (~> 3.8.0)
37
+ rspec-core (3.8.0)
38
+ rspec-support (~> 3.8.0)
39
+ rspec-expectations (3.8.2)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.8.0)
42
+ rspec-mocks (3.8.0)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.8.0)
45
+ rspec-support (3.8.0)
46
+ rubocop (0.67.2)
47
+ jaro_winkler (~> 1.5.1)
48
+ parallel (~> 1.10)
49
+ parser (>= 2.5, != 2.5.1.1)
50
+ psych (>= 3.1.0)
51
+ rainbow (>= 2.2.2, < 4.0)
52
+ ruby-progressbar (~> 1.7)
53
+ unicode-display_width (>= 1.4.0, < 1.6)
54
+ rubocop-performance (1.1.0)
55
+ rubocop (>= 0.67.0)
56
+ rubocop-rspec (1.32.0)
57
+ rubocop (>= 0.60.0)
58
+ ruby-progressbar (1.10.0)
59
+ thread_safe (0.3.6)
60
+ tzinfo (1.2.5)
61
+ thread_safe (~> 0.1)
62
+ unicode-display_width (1.5.0)
63
+
64
+ PLATFORMS
65
+ ruby
66
+
67
+ DEPENDENCIES
68
+ activesupport (~> 5.2, >= 5.2.3)
69
+ brakeman (~> 4.3, >= 4.3.1)
70
+ bundler (~> 2.0)
71
+ interage-request!
72
+ pry (~> 0.12.2)
73
+ rake (~> 10.0)
74
+ rspec (~> 3.8)
75
+ rubocop (~> 0.67.2)
76
+ rubocop-performance (~> 1.1)
77
+ rubocop-rspec (~> 1.32)
78
+
79
+ BUNDLED WITH
80
+ 2.0.1
data/README.md ADDED
@@ -0,0 +1,40 @@
1
+ # Interage::Request
2
+
3
+ ## Installation
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ ```ruby
8
+ gem 'interage-request', '~> 0.1'
9
+ ```
10
+
11
+ And then execute:
12
+
13
+ ```bash
14
+ bundle install
15
+ ```
16
+
17
+ Or install it yourself as:
18
+
19
+ ```bash
20
+ gem install interage-request
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ You can use a Rails generator to create `ApplicationRequest`:
26
+
27
+ ```bash
28
+ rails g interage:request:install
29
+ ```
30
+
31
+ And you can use a Rails generator to create request classes:
32
+
33
+
34
+ ```bash
35
+ rails g interage:request:create CustomersByDocument Customer
36
+ ```
37
+
38
+ ## Contributing
39
+
40
+ Bug reports and merge requests are welcome on GitLab at https://gitlab.com/[USERNAME]/interage-request.
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
data/bin/brakeman ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'brakeman' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("brakeman", "brakeman")
data/bin/bundle ADDED
@@ -0,0 +1,105 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'bundle' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "rubygems"
12
+
13
+ m = Module.new do
14
+ module_function
15
+
16
+ def invoked_as_script?
17
+ File.expand_path($0) == File.expand_path(__FILE__)
18
+ end
19
+
20
+ def env_var_version
21
+ ENV["BUNDLER_VERSION"]
22
+ end
23
+
24
+ def cli_arg_version
25
+ return unless invoked_as_script? # don't want to hijack other binstubs
26
+ return unless "update".start_with?(ARGV.first || " ") # must be running `bundle update`
27
+ bundler_version = nil
28
+ update_index = nil
29
+ ARGV.each_with_index do |a, i|
30
+ if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN
31
+ bundler_version = a
32
+ end
33
+ next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/
34
+ bundler_version = $1 || ">= 0.a"
35
+ update_index = i
36
+ end
37
+ bundler_version
38
+ end
39
+
40
+ def gemfile
41
+ gemfile = ENV["BUNDLE_GEMFILE"]
42
+ return gemfile if gemfile && !gemfile.empty?
43
+
44
+ File.expand_path("../../Gemfile", __FILE__)
45
+ end
46
+
47
+ def lockfile
48
+ lockfile =
49
+ case File.basename(gemfile)
50
+ when "gems.rb" then gemfile.sub(/\.rb$/, gemfile)
51
+ else "#{gemfile}.lock"
52
+ end
53
+ File.expand_path(lockfile)
54
+ end
55
+
56
+ def lockfile_version
57
+ return unless File.file?(lockfile)
58
+ lockfile_contents = File.read(lockfile)
59
+ return unless lockfile_contents =~ /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
60
+ Regexp.last_match(1)
61
+ end
62
+
63
+ def bundler_version
64
+ @bundler_version ||= begin
65
+ env_var_version || cli_arg_version ||
66
+ lockfile_version || "#{Gem::Requirement.default}.a"
67
+ end
68
+ end
69
+
70
+ def load_bundler!
71
+ ENV["BUNDLE_GEMFILE"] ||= gemfile
72
+
73
+ # must dup string for RG < 1.8 compatibility
74
+ activate_bundler(bundler_version.dup)
75
+ end
76
+
77
+ def activate_bundler(bundler_version)
78
+ if Gem::Version.correct?(bundler_version) && Gem::Version.new(bundler_version).release < Gem::Version.new("2.0")
79
+ bundler_version = "< 2"
80
+ end
81
+ gem_error = activation_error_handling do
82
+ gem "bundler", bundler_version
83
+ end
84
+ return if gem_error.nil?
85
+ require_error = activation_error_handling do
86
+ require "bundler/version"
87
+ end
88
+ return if require_error.nil? && Gem::Requirement.new(bundler_version).satisfied_by?(Gem::Version.new(Bundler::VERSION))
89
+ warn "Activating bundler (#{bundler_version}) failed:\n#{gem_error.message}\n\nTo install the version of bundler this project requires, run `gem install bundler -v '#{bundler_version}'`"
90
+ exit 42
91
+ end
92
+
93
+ def activation_error_handling
94
+ yield
95
+ nil
96
+ rescue StandardError, LoadError => e
97
+ e
98
+ end
99
+ end
100
+
101
+ m.load_bundler!
102
+
103
+ if m.invoked_as_script?
104
+ load Gem.bin_path("bundler", "bundle")
105
+ end
data/bin/ci ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ echo -e "\e[1;36m$ bin/brakeman --force-scan \e[0m"
6
+ bin/brakeman --force-scan
7
+
8
+ echo -e "\e[1;36m$ bin/rubocop \e[0m"
9
+ bin/rubocop
10
+
11
+ echo -e "\e[1;36m$ bin/rspec \e[0m"
12
+ bin/rspec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "interage/request"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/rspec ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rspec' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rspec-core", "rspec")
data/bin/rubocop ADDED
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ #
5
+ # This file was generated by Bundler.
6
+ #
7
+ # The application 'rubocop' is installed as part of a gem, and
8
+ # this file is here to facilitate running it.
9
+ #
10
+
11
+ require "pathname"
12
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
13
+ Pathname.new(__FILE__).realpath)
14
+
15
+ bundle_binstub = File.expand_path("../bundle", __FILE__)
16
+
17
+ if File.file?(bundle_binstub)
18
+ if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
19
+ load(bundle_binstub)
20
+ else
21
+ abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
22
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
23
+ end
24
+ end
25
+
26
+ require "rubygems"
27
+ require "bundler/setup"
28
+
29
+ load Gem.bin_path("rubocop", "rubocop")
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'interage/request/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'interage-request'
9
+ spec.version = Interage::Request::VERSION
10
+ spec.authors = ['Walmir Neto']
11
+ spec.email = ['owalmirneto@gmail.com']
12
+
13
+ spec.summary = 'Application Request for Interage'
14
+ spec.description = 'Use Net::HTTP to make requests'
15
+ spec.homepage = 'https://gitlab.com/interage/patterns/request'
16
+ spec.licenses = ['MIT']
17
+
18
+ if spec.respond_to?(:metadata)
19
+ spec.metadata['allowed_push_host'] = 'https://rubygems.org'
20
+
21
+ spec.metadata['homepage_uri'] = spec.homepage
22
+ spec.metadata['source_code_uri'] = spec.homepage
23
+ spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGES"
24
+ else
25
+ raise 'RubyGems 2.0 or newer is required to protect against ' \
26
+ 'public gem pushes.'
27
+ end
28
+
29
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
30
+ `git ls-files -z`.split("\x0").reject do |file|
31
+ file.match(%r{^(test|spec|features)/}) || file.split('.').last == 'gem'
32
+ end
33
+ end
34
+
35
+ spec.bindir = 'exe'
36
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
+ spec.require_paths = ['lib']
38
+
39
+ spec.add_development_dependency 'bundler', '~> 2.0'
40
+ spec.add_development_dependency 'rake', '~> 10.0'
41
+ spec.add_development_dependency 'rspec', '~> 3.0'
42
+ end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails g interage:request:create ClientsByDocument Client
6
+
7
+ This will create:
8
+ /app/requests/clients_by_document_request.rb
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Interage
4
+ module Request
5
+ module Generators
6
+ class CreateGenerator < Rails::Generators::NamedBase
7
+ source_root File.expand_path('templates', __dir__)
8
+
9
+ desc 'Generates a request.'
10
+
11
+ def initialize(args, *_options)
12
+ super
13
+
14
+ @request_name = args[0].camelize
15
+ @klass_name = args[1].camelize
16
+ @base_path = args[0].underscore.pluralize
17
+ end
18
+
19
+ def create_request
20
+ create_file(Rails.root.join("app/requests/#{file_name}_request.rb"),
21
+ sample_file.gsub('{{REQUEST_NAME}}', request_name)
22
+ .gsub('{{KLASS_NAME}}', klass_name)
23
+ .gsub('{{BASE_PATH}}', base_path))
24
+ end
25
+
26
+ private
27
+
28
+ attr_reader :request_name, :klass_name, :base_path
29
+
30
+ def sample_file
31
+ File.read(File.expand_path('templates/sample_request.rb', __dir__))
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ class {{REQUEST_NAME}}Request < ApplicationRequest
4
+ private
5
+
6
+ def klass
7
+ {{KLASS_NAME}}
8
+ end
9
+
10
+ def base_path
11
+ '/{{BASE_PATH}}'
12
+ end
13
+ end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator
3
+
4
+ Example:
5
+ rails g interage:request:install
6
+
7
+ This will create:
8
+ /app/requests/application_request.rb
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Interage
4
+ module Request
5
+ class InstallGenerator < Rails::Generators::Base
6
+ source_root File.expand_path('templates', __dir__)
7
+
8
+ desc 'Generates a application request.'
9
+
10
+ def create_application_request
11
+ copy_file('application_request.rb', application_request_path)
12
+ end
13
+
14
+ private
15
+
16
+ def application_request_path
17
+ Rails.root.join('app/requests/application_request.rb')
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ApplicationRequest < ::Interage::ApplicationRequest
4
+ end
@@ -0,0 +1,86 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'net/http'
4
+
5
+ module Interage
6
+ class ApplicationRequest
7
+ def all(params = {})
8
+ response = get(path: base_path, params: params)
9
+
10
+ response[plural_key_name].map { |attribute| klass.new(attribute) }
11
+ end
12
+
13
+ def find(id)
14
+ response = get(path: member_path(id))
15
+
16
+ klass.new(response[key_name])
17
+ end
18
+
19
+ def create(body)
20
+ post(base_path, body)
21
+ end
22
+
23
+ def update(id)
24
+ put(member_path(id), body)
25
+ end
26
+
27
+ def destroy(id)
28
+ delete(path: member_path(id))
29
+ end
30
+
31
+ protected
32
+
33
+ def base_path
34
+ end
35
+
36
+ def member_path(id)
37
+ "#{base_path}/#{id}"
38
+ end
39
+
40
+ def base_url(path: nil, params: {})
41
+ "#{api_base_url}#{path}?#{params.to_query}"
42
+ end
43
+
44
+ def key_name
45
+ klass.model_name.to_s.underscore.to_sym
46
+ end
47
+
48
+ def get(path: nil, params: {})
49
+ response = start_request(Net::HTTP::Get, path, params)
50
+
51
+ JSON.parse(response.body, symbolize_names: true)
52
+ end
53
+
54
+ def post(path, body)
55
+ start_request(Net::HTTP::Post, path, body)
56
+ end
57
+
58
+ def put(path, body)
59
+ start_request(Net::HTTP::Put, path, body)
60
+ end
61
+
62
+ def delete(path)
63
+ start_request(Net::HTTP::Delete, path)
64
+ end
65
+
66
+ def start_request(klass, path, body = {})
67
+ uri = URI(base_url(path: path))
68
+ request = klass.new(uri)
69
+ request.body = body.to_json
70
+ request.content_type = 'application/json'
71
+ headers.map { |key, value| request[key] = value }
72
+
73
+ Net::HTTP.start(uri.hostname, uri.port) do |http|
74
+ http.request(request)
75
+ end
76
+ end
77
+
78
+ def headers
79
+ {}
80
+ end
81
+
82
+ def plural_key_name
83
+ key_name.to_s.pluralize.to_sym
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'interage/request/version'
4
+ require 'active_support/core_ext/module'
5
+
6
+ module Interage
7
+ module Request
8
+ class Error < StandardError
9
+ end
10
+ end
11
+
12
+ autoload :ApplicationRequest, 'interage/application_request'
13
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Interage
4
+ module Request
5
+ VERSION = '0.1.0'
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,116 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: interage-request
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Walmir Neto
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-04-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: Use Net::HTTP to make requests
56
+ email:
57
+ - owalmirneto@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".rubocop.yml"
65
+ - ".travis.yml"
66
+ - CHANGES
67
+ - Gemfile
68
+ - Gemfile.lock
69
+ - README.md
70
+ - Rakefile
71
+ - VERSION
72
+ - bin/brakeman
73
+ - bin/bundle
74
+ - bin/ci
75
+ - bin/console
76
+ - bin/rspec
77
+ - bin/rubocop
78
+ - bin/setup
79
+ - interage-request.gemspec
80
+ - lib/generators/interage/request/create/USAGE
81
+ - lib/generators/interage/request/create/create_generator.rb
82
+ - lib/generators/interage/request/create/templates/sample_request.rb
83
+ - lib/generators/interage/request/install/USAGE
84
+ - lib/generators/interage/request/install/install_generator.rb
85
+ - lib/generators/interage/request/install/templates/application_request.rb
86
+ - lib/interage/application_request.rb
87
+ - lib/interage/request.rb
88
+ - lib/interage/request/version.rb
89
+ homepage: https://gitlab.com/interage/patterns/request
90
+ licenses:
91
+ - MIT
92
+ metadata:
93
+ allowed_push_host: https://rubygems.org
94
+ homepage_uri: https://gitlab.com/interage/patterns/request
95
+ source_code_uri: https://gitlab.com/interage/patterns/request
96
+ changelog_uri: https://gitlab.com/interage/patterns/request/blob/master/CHANGES
97
+ post_install_message:
98
+ rdoc_options: []
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ requirements: []
112
+ rubygems_version: 3.0.3
113
+ signing_key:
114
+ specification_version: 4
115
+ summary: Application Request for Interage
116
+ test_files: []