sacsp_gateway 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
+ SHA1:
3
+ metadata.gz: 0934b3a235c107c37650f2fdf5c0248eb027b53e
4
+ data.tar.gz: dfe016d85aaf280cde511707c7a5c202580f559a
5
+ SHA512:
6
+ metadata.gz: 5a285cbaa8fe95c818dcb7d2fd6153fbce245fb147d6765cf08d0d89d87357f024c338bbeddaefd9dd3939f838f4144276601328f1e0954787ae5d47a8c46296
7
+ data.tar.gz: d822cd196d3a7e5f724f5b481e0afabf9f35f5105cfaa8338926755ae99172ff8fd61d971c339d1bb64821a29b18a02d3b8290e23a5d08d0b28365f9b9a0e37e
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.3
4
+ before_install: gem install bundler -v 1.10.6
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ ruby '2.2.3'
4
+ # Specify your gem's dependencies in sacsp_gateway.gemspec
5
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Marcelo Vitor F. Menezes
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Marcelo Menezes
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,112 @@
1
+ # SacspGateway
2
+
3
+ Gem EXPERIMENTAL para criação de chamados no SAC da Prefeitura de São Paulo.
4
+ Criei esta gem somente para fins de estudos e ela não deve ser utilizada para aplicações em produção.
5
+
6
+ ## Instalação
7
+
8
+ Adicione a linha abaixo ao seu Gemfile:
9
+
10
+ ```ruby
11
+ gem 'sacsp_gateway'
12
+ ```
13
+
14
+ e execute:
15
+
16
+ $ bundle
17
+
18
+ Ou instale diretamente com o comando abaixo:
19
+
20
+ $ gem install sacsp_gateway
21
+
22
+ ## Utilização
23
+
24
+ Para criar um chamado no SAC da prefeitura de São Paulo utilizando esta gem, siga os passos abaixo nas mesma ordem (eu preferi manter os nomes como step_x uma vez que fica mais fácil de lembrar a ordem que devem ser chamados:
25
+
26
+ ```ruby
27
+ #0 - Buscar a lista de assuntos que podem ser utilizados na criação de um ticket (ex.: Lixo/Limpeza, Buracos, etc.)
28
+ subjects = SacspGateway.get_subjects #Você pode manter o resultado deste método em cache
29
+ ```
30
+
31
+ ##IMPORTANTE: Os métodos abaixo devem ser chamados em ordem.
32
+
33
+ Iniciando o processo de criação do chamado:
34
+
35
+ ```ruby
36
+ #1 - Envie o assunto do chamado, que foi selecionado com base no método que busca os assuntos.
37
+ subject_key = subjects.last[:key] #ex.: "001Buraco"
38
+ specifications = SacspGateway.step_1(subject_key)
39
+
40
+ #2 - Envie a especificação do assunto com base na lista retornada pelo pelo step_1.
41
+ specification_key = specifications.last[:key] #ex.: "200101STapa-buraco"
42
+ response = SacspGateway.step_2(specification_key)
43
+
44
+ #3 - Envia os dados do chamado, descrição rua, etc.
45
+ # O campo Logradouro, deve que ser especificado conforme no site.
46
+ # Ex:NÃO escreva Av. Brig. Faria Lima, escreva APENAS, Faria Lima, OU entre com o CEP sem hífen. Ex: 01452000.
47
+ ticket_data = {
48
+ txtLogradouro: 'pouso alegre',
49
+ txtNumero: 01,
50
+ txtReferencia: 'na esquina c av nazare',
51
+ txtDescricao: 'A via possui um buraco bem na esquina com a av nazare.'
52
+ }
53
+ street_occurrences = SacspGateway.step_3(ticket_data)
54
+
55
+ #3.1 - Confirma dados do endereço do chamado (com base na resposta do step_3.
56
+ # Se o nome da rua digitada existir em mais de uma localidade, o sistema exije que se selecione
57
+ # a qual dos endereços que a rua pertence (ex.: Rua Vergueiro existe em Santo Amaro, Liberdade e Vila Mariana).
58
+ # Eu sei que é estranho mas infelizmente o sistema da prefeitura funciona assim (pra não dizer que é uma merda).
59
+ street_selected = street_occurrences.last[:key] # Ex.: '165590R POUSO ALEGRE - VILA MONUMENTO'
60
+ ticket_data = {
61
+ comboLogradouro: street_selected,
62
+ txtNumero: 01,
63
+ txtReferencia: 'na esquina c av nazare',
64
+ txtDescricao: 'A via possui um buraco bem na esquina com a av nazare.'
65
+ }
66
+ response = SacspGateway.step_3_1(ticket_data)
67
+
68
+
69
+ #4 - Especifica os dados (RG, UF) de quem está abrindo o chamado (você?)
70
+ id_info = {
71
+ txtRG: 112223334,
72
+ comboRGUF: 'SP'
73
+ }
74
+ response = SacspGateway.step_4(id_info)
75
+
76
+
77
+ #5 - Finaliza o envio do chamado, passando os dados complementares do usuário do chamado
78
+ citizen_data = {
79
+ comboRGUF: 'SP',
80
+ txtNome: 'Marcelo Cidadao',
81
+ txtLogradouro: 'Rua Joao Inacio',
82
+ txtNumero: 8424,
83
+ txtComplemento: '123, bl4',
84
+ txtCep: '01536001',
85
+ txtCidade: 'Sao Paulo',
86
+ comboUF: 'SP',
87
+ txtTelefone: '911111111',
88
+ txtFax: '',
89
+ txtCPF: '',
90
+ txtEmail: 'meuemail@gmail.com',
91
+ comboOcupacao: '002'
92
+ }
93
+ ticket_number = SacspGateway.step_5!(citizen_data)
94
+
95
+ puts "Chamado criado com sucesso!!! --> #{ticket_number}"
96
+ ```
97
+
98
+ ## Development
99
+
100
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
101
+
102
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
103
+
104
+ ## Contributing
105
+
106
+ Bug reports and pull requests are welcome on GitHub at https://github.com/gnumarcelo/sacsp_gateway.
107
+
108
+
109
+ ## License
110
+
111
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
112
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "sacsp_gateway"
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
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,15 @@
1
+ require "sacsp_gateway/version"
2
+ require "sacsp_gateway/exception"
3
+ require "sacsp_gateway/client"
4
+
5
+ module SacspGateway
6
+ extend SingleForwardable
7
+
8
+ def_delegators :client, :get_subjects, :step_1, :step_2, :step_3,
9
+ :step_3_1, :step_4, :step_5!
10
+
11
+ def self.client
12
+ @client ||= Client.new
13
+ end
14
+
15
+ end
@@ -0,0 +1,91 @@
1
+ require 'sacsp_gateway/connection'
2
+
3
+ module SacspGateway
4
+ class Client
5
+
6
+ def conn
7
+ @conn ||= Connection.new
8
+ end
9
+
10
+ def get_subjects
11
+ #Busca todos os assuntos:
12
+ resp_doc = conn.get('/')
13
+ validate_field_presence(resp_doc, "comboAssunto")
14
+ assuntos = resp_doc.xpath('//*[@name="comboAssunto"]/option').map do |it|
15
+ {key: it.attr(:value), text: it.text }
16
+ end
17
+ end
18
+
19
+ def step_1 subject_key
20
+ #send_ticket_subject - Select the ticket subject
21
+ resp_doc = conn.post('/default.asp', {
22
+ txtAssu: '',
23
+ comboAssunto: subject_key,
24
+ acao2: 'Continuar'
25
+ })
26
+ validate_field_presence(resp_doc, "comboSubAssunto")
27
+ specification = resp_doc.xpath('//*[@name="comboSubAssunto"]/option').map do |it|
28
+ {key: it.attr(:value), text: it.text}
29
+ end
30
+ end
31
+
32
+ def step_2 specification_key
33
+ #send_ticket_subject_specification - Select the subject specification
34
+ resp_doc = conn.post('/solicitacaoCadastro.asp', {
35
+ comboSubAssunto: specification_key,
36
+ acao: 'Continuar'
37
+ })
38
+ validate_field_presence(resp_doc, "txtDescricao")
39
+ return true #TODO: deve mesmo retornar algo? true?
40
+ end
41
+
42
+ def step_3 ticket_data
43
+ #send_ticket_request_data
44
+ ticket_data.merge(acao: 'Continuar')
45
+ resp_doc = conn.post('/CadastroParametro/Logradouro.asp', ticket_data)
46
+ validate_field_presence(resp_doc, "comboLogradouro")
47
+ streets = resp_doc.xpath('//*[@name="comboLogradouro"]').map do |opt|
48
+ {key: opt.attr(:value), text: opt.attr(:value).split(" ", 2).last }
49
+ end
50
+ end
51
+
52
+ def step_3_1 ticket_data
53
+ #send_ticket_request_data_confirmation
54
+ ticket_data.merge(acao: 'Continuar')
55
+ resp_doc = conn.post('/CadastroParametro/Logradouro.asp', ticket_data)
56
+ validate_field_presence(resp_doc, "txtRG")
57
+ return true #TODO: deve mesmo retornar algo? true?
58
+ end
59
+
60
+ def step_4 id_info
61
+ #send_citizen_id_info
62
+ id_info.merge(acao: 'Continuar')
63
+ resp_doc = conn.post('/CadastroParametro/Logradouro.asp', id_info)
64
+ citizen_id = id_info[:txtRG]
65
+ validate_content_value_presence(resp_doc, "td", citizen_id)
66
+ return true #TODO: deve mesmo retornar algo? true?
67
+ end
68
+
69
+ def step_5! citizen_data
70
+ #send_citizen_data_confirmation
71
+ resp_doc = conn.post('/CadastroParametro/Solicitante.asp?Acao=ENVIAR', citizen_data)
72
+ ticket_number = resp_doc.xpath('//*[@id="conteudo2"]/table/tr/td/font/b').text
73
+ fail SacspGatewayException.new("Response is not the expected") if !ticket_number
74
+ ticket_number
75
+ end
76
+
77
+ private
78
+ def validate_field_presence resp_doc, attribute_name
79
+ if resp_doc.xpath("//*[@name='#{attribute_name}']").size == 0
80
+ fail SacspGatewayException.new("Response is not the expected")
81
+ end
82
+ end
83
+
84
+ def validate_content_value_presence resp_doc, node_name, value
85
+ if !resp_doc.at("#{node_name}:contains('#{value}')")
86
+ fail SacspGatewayException.new("Response is not the expected")
87
+ end
88
+ end
89
+ end
90
+ end
91
+ #https://github.com/brainspec/cloudmate/blob/c7004e45b10852e8ab4f44cfae8b98603301162f/lib/cloudmate/client.rb
@@ -0,0 +1,31 @@
1
+ require 'faraday_middleware'
2
+ require 'faraday-cookie_jar'
3
+ require 'faraday'
4
+ require 'nokogiri'
5
+
6
+ module SacspGateway
7
+ class Connection
8
+ def initialize
9
+ @conn = Faraday.new(:url => 'http://sac.prefeitura.sp.gov.br') do |faraday|
10
+ faraday.request :url_encoded
11
+ faraday.response :logger
12
+ faraday.use :cookie_jar
13
+ faraday.use FaradayMiddleware::FollowRedirects, limit: 3
14
+ faraday.use Faraday::Response::RaiseError # raise exceptions on 40x, 50x responses
15
+ faraday.adapter Faraday.default_adapter
16
+ end
17
+ #@conn.headers[:user_agent] = 'SACSP::Gateway v0.0.1' # substituir versao aqui
18
+ @conn
19
+ end
20
+
21
+ def post(path, data)
22
+ response = @conn.post(path, data)
23
+ Nokogiri::HTML(response.body)
24
+ end
25
+
26
+ def get(path)
27
+ response = @conn.get(path)
28
+ doc = Nokogiri::HTML(response.body)
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,4 @@
1
+ module SacspGateway
2
+ class SacspGatewayException < Exception
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ module SacspGateway
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,44 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'sacsp_gateway/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "sacsp_gateway"
8
+ spec.version = SacspGateway::VERSION
9
+ spec.authors = ["Marcelo Menezes"]
10
+ spec.email = ["gnumarcelo@gmail.com"]
11
+
12
+ spec.summary = %q{Criação de chamados no SAC da Prefeitura de São Paulo.}
13
+ spec.description = %q{Gem EXPERIMENTAL para criação de chamados no SAC da Prefeitura de São Paulo.}
14
+ spec.homepage = "https://github.com/gnumarcelo/sacsp_gateway"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.required_ruby_version = '>= 2.2'
31
+ spec.add_dependency 'mechanize'
32
+ spec.add_dependency 'faraday'
33
+ spec.add_dependency 'faraday-cookie_jar'
34
+ spec.add_dependency 'faraday_middleware'
35
+ spec.add_dependency 'nokogiri'
36
+
37
+ spec.add_development_dependency "bundler", "~> 1.10"
38
+ spec.add_development_dependency "rake", "~> 10.0"
39
+ spec.add_development_dependency "rspec"
40
+ spec.add_development_dependency 'vcr', '~> 2'
41
+ spec.add_development_dependency 'webmock'
42
+ #spec.add_development_dependency 'debugger'
43
+
44
+ end
metadata ADDED
@@ -0,0 +1,202 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sacsp_gateway
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Marcelo Menezes
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: mechanize
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: faraday-cookie_jar
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: faraday_middleware
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: nokogiri
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.10'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.10'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '10.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '10.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: vcr
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '2'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '2'
139
+ - !ruby/object:Gem::Dependency
140
+ name: webmock
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Gem EXPERIMENTAL para criação de chamados no SAC da Prefeitura de São
154
+ Paulo.
155
+ email:
156
+ - gnumarcelo@gmail.com
157
+ executables: []
158
+ extensions: []
159
+ extra_rdoc_files: []
160
+ files:
161
+ - ".gitignore"
162
+ - ".rspec"
163
+ - ".travis.yml"
164
+ - Gemfile
165
+ - LICENSE
166
+ - LICENSE.txt
167
+ - README.md
168
+ - Rakefile
169
+ - bin/console
170
+ - bin/setup
171
+ - lib/sacsp_gateway.rb
172
+ - lib/sacsp_gateway/client.rb
173
+ - lib/sacsp_gateway/connection.rb
174
+ - lib/sacsp_gateway/exception.rb
175
+ - lib/sacsp_gateway/version.rb
176
+ - sacsp_gateway.gemspec
177
+ homepage: https://github.com/gnumarcelo/sacsp_gateway
178
+ licenses:
179
+ - MIT
180
+ metadata:
181
+ allowed_push_host: https://rubygems.org
182
+ post_install_message:
183
+ rdoc_options: []
184
+ require_paths:
185
+ - lib
186
+ required_ruby_version: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: '2.2'
191
+ required_rubygems_version: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ requirements: []
197
+ rubyforge_project:
198
+ rubygems_version: 2.4.5.1
199
+ signing_key:
200
+ specification_version: 4
201
+ summary: Criação de chamados no SAC da Prefeitura de São Paulo.
202
+ test_files: []