jfl_alarmes 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/jfl_alarmes.gemspec +34 -0
- data/lib/jfl_alarmes.rb +119 -0
- data/lib/jfl_alarmes/contact_id.yml +86 -0
- data/lib/jfl_alarmes/jfl_event.rb +18 -0
- data/lib/jfl_alarmes/version.rb +3 -0
- metadata +105 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7d871b5b0559fe7023dd1b9c26a77d5301e21bfb9c210e0a377ad48fc146c089
|
4
|
+
data.tar.gz: a54c27964ee37c56741128fd5f36819ba1659170fbb2ce740f406ef615a78314
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 65a92f9c5350a80f40c89f3101912c449ef0071960444a80e805058bd32a8aa766e87cee8eb1ea147ef76896ac6f8ac5abf6a81e6c533085e29bfceca6b0abaa
|
7
|
+
data.tar.gz: fc86ae7d70522b0d6303d611f47d1afbb798eaed793779f7a92706b52148525a6bdbbd693f0ab115de7e08aa2887ecfd318b1c23a2fcb4774e227ea578f513b4
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at devel.neto@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2020 João Fernandes Lima Neto
|
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.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 João Fernandes Lima Neto
|
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,43 @@
|
|
1
|
+
# JflAlarmes
|
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/jfl_alarmes`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'jfl_alarmes'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install jfl_alarmes
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
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.
|
30
|
+
|
31
|
+
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).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jfl_alarmes. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
40
|
+
|
41
|
+
## Code of Conduct
|
42
|
+
|
43
|
+
Everyone interacting in the JflAlarmes project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/jfl_alarmes/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "jfl_alarmes"
|
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/setup
ADDED
data/jfl_alarmes.gemspec
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require "jfl_alarmes/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "jfl_alarmes"
|
7
|
+
spec.version = JflAlarmes::VERSION
|
8
|
+
spec.authors = ["João Fernandes Lima Neto"]
|
9
|
+
spec.email = ["devel.neto@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = "Gem para integrar as centrais monitoradas da JFL Alarmes."
|
12
|
+
spec.description = "Gem para integrar as centrais monitoradas da Empresa JFL Alarmes. A Primeira que esta sendo integrada é o modelo Acitve 20 - Ethernet"
|
13
|
+
spec.homepage = "https://github.com/jfneto/jfl_alarmes"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
#spec.metadata["allowed_push_host"] = "https://rubygems.org/gems/jfl_alarmes"
|
17
|
+
|
18
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
19
|
+
spec.metadata["source_code_uri"] = "https://github.com/jfneto/jfl_alarmes"
|
20
|
+
spec.metadata["changelog_uri"] = "https://github.com/jfneto/jfl_alarmes"
|
21
|
+
|
22
|
+
# Specify which files should be added to the gem when it is released.
|
23
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
24
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
25
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
end
|
27
|
+
spec.bindir = "exe"
|
28
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
|
+
spec.require_paths = ["lib"]
|
30
|
+
|
31
|
+
spec.add_development_dependency "bundler", "~> 2.0"
|
32
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
33
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
34
|
+
end
|
data/lib/jfl_alarmes.rb
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
require "socket"
|
2
|
+
require "yaml"
|
3
|
+
require "jfl_alarmes/version"
|
4
|
+
require "jfl_alarmes/jfl_event"
|
5
|
+
|
6
|
+
module JflAlarmes
|
7
|
+
class JflMonitor
|
8
|
+
attr_accessor :server
|
9
|
+
attr_accessor :events
|
10
|
+
attr_accessor :thread
|
11
|
+
|
12
|
+
# inicia o monitoramento
|
13
|
+
def run(socket_port)
|
14
|
+
|
15
|
+
if @server.nil?
|
16
|
+
@close = false
|
17
|
+
# fica escutando a porta 2034
|
18
|
+
@server = TCPServer.new socket_port
|
19
|
+
# lista de eventos
|
20
|
+
@events = Array.new
|
21
|
+
|
22
|
+
@thread = Thread.new{
|
23
|
+
socket = @server.accept
|
24
|
+
handle_connection(socket)
|
25
|
+
}
|
26
|
+
else
|
27
|
+
puts "Thread já rodando use o comando force_close() para fechar a thread"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def force_close()
|
32
|
+
@close = true
|
33
|
+
Thread.kill(@thread)
|
34
|
+
@server.close
|
35
|
+
end
|
36
|
+
|
37
|
+
private
|
38
|
+
|
39
|
+
attr_accessor :close
|
40
|
+
|
41
|
+
def handle_connection(socket)
|
42
|
+
loop do
|
43
|
+
msg = socket.recvfrom(30) # recebe a mensage - 30 bytes - do cliente
|
44
|
+
|
45
|
+
# Procedimento de conexão
|
46
|
+
if(msg[0][0] == '!')
|
47
|
+
@events << connection(msg[0].unpack('H*'))
|
48
|
+
|
49
|
+
# Responde a conexão
|
50
|
+
resp = "+"
|
51
|
+
socket.write("+")
|
52
|
+
end
|
53
|
+
|
54
|
+
# Alteração de status
|
55
|
+
if(msg[0][0] == '$')
|
56
|
+
@events << contact_id(msg[0])
|
57
|
+
keep_alive(socket)
|
58
|
+
end
|
59
|
+
|
60
|
+
# Keep alive
|
61
|
+
if(msg[0][0] == '@')
|
62
|
+
@events << keep_alive(socket)
|
63
|
+
end
|
64
|
+
|
65
|
+
if(@close)
|
66
|
+
socket.close
|
67
|
+
break
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
def keep_alive(socket)
|
73
|
+
# Keep Alive
|
74
|
+
resp = "@1"
|
75
|
+
socket.write(resp)
|
76
|
+
|
77
|
+
event = JflEvent.new
|
78
|
+
event.type = "@"
|
79
|
+
event.status = "Enviado"
|
80
|
+
event
|
81
|
+
end
|
82
|
+
|
83
|
+
def connection(content)
|
84
|
+
event = JflEvent.new
|
85
|
+
|
86
|
+
#0. 10. 20. 30. 40. 50.
|
87
|
+
#012345678901234567890123456789012345678901234567890123456789
|
88
|
+
#21ffffffffffffffffffffffffffffff5410ec8630590390039053a10608
|
89
|
+
event.type = "!"
|
90
|
+
event.imei = content[2..31]
|
91
|
+
event.mac = content[32..43]
|
92
|
+
event.conta_part_a = content[44..47]
|
93
|
+
event.conta_part_b = content[48..51]
|
94
|
+
event.versao = content[52..53]
|
95
|
+
event.modelo = content[54..55]
|
96
|
+
event.oper = content[56..57]
|
97
|
+
event.status = content[58..59]
|
98
|
+
|
99
|
+
event
|
100
|
+
end
|
101
|
+
|
102
|
+
def contact_id(content)
|
103
|
+
#0. 10.
|
104
|
+
#0123456789012345678
|
105
|
+
#$0390160201000A\x10
|
106
|
+
|
107
|
+
event = JflEvent.new
|
108
|
+
event.type = "$"
|
109
|
+
event.account = content[1..4]
|
110
|
+
event.event = content[5..8]
|
111
|
+
event.partition = content[9..10]
|
112
|
+
event.user_zone = content[11..13]
|
113
|
+
event.count = content[14]
|
114
|
+
event.status = content[15..]
|
115
|
+
|
116
|
+
event
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
@@ -0,0 +1,86 @@
|
|
1
|
+
#
|
2
|
+
contact_id:
|
3
|
+
1100: Emergencia Médica
|
4
|
+
1110: Incêndio
|
5
|
+
1120: Pânico
|
6
|
+
1121: Coação
|
7
|
+
1122: Pânico Silencioso
|
8
|
+
1130: Disparo da zona
|
9
|
+
3130: Restauração do disparo da zona
|
10
|
+
1134: Alarme de porta aberta
|
11
|
+
3134: Restauração do alarme de porta aberta
|
12
|
+
1137: Alarme de zona tipo tamper
|
13
|
+
3137: Restauração do alrme de zona tipo tamper
|
14
|
+
1300: Problema da saida auxiliar
|
15
|
+
3300: Restauração do problema da saida auxiliar
|
16
|
+
1301: Falta de AC
|
17
|
+
3301: Restauração da falta de AC
|
18
|
+
1302: Problema da bateria da central
|
19
|
+
3302: Restauração do problema da bateria da central
|
20
|
+
1306: Alteração de programação
|
21
|
+
1311: Bateria morta
|
22
|
+
1321: Problema de sirene
|
23
|
+
3321: Restauração do problema de sirene
|
24
|
+
1322: Problema de supervisão de sirene Bus
|
25
|
+
3322: Restauração da supervisão da sirene Bus
|
26
|
+
1330: Problema de teclado
|
27
|
+
3330: Restauração do problema de teclado
|
28
|
+
1333: Problema da supervisão PGM Bus
|
29
|
+
3333: Restauração da supervisão PGM Bus
|
30
|
+
1338: Problema de bateria fraca de controle remoto
|
31
|
+
3338: Restauração de bateria fraca de controle remoto
|
32
|
+
1342: Problema de AC do teclado sem fio
|
33
|
+
3342: Restauração de AC do teclado sem fio
|
34
|
+
1345: Problema de bateria fraca do teclado sem fio
|
35
|
+
3345: Restauração de bateria fraca do teclado sem fio
|
36
|
+
1351: Problema de linha telefônica
|
37
|
+
3351: Restauração do problema de linha telefônica
|
38
|
+
1360: Problema de GPRS
|
39
|
+
3360: Restauração do problema de GPRS
|
40
|
+
1361: Problema de Ethernet
|
41
|
+
3361: Restauração do problema Ethernet
|
42
|
+
1362: Problema de SMS
|
43
|
+
3362: Restauração do problema de SMS
|
44
|
+
1363: Problema de módulo de celular
|
45
|
+
3363: Restauração do problema de módulo de celular
|
46
|
+
1364: Problema de SIM card
|
47
|
+
3364: Restauração do problema de SIM card
|
48
|
+
1366: Problema de módulo de Ethernet
|
49
|
+
3366: Retauração do problema de módulo de Ethernet
|
50
|
+
1369: Problema cabo de rede
|
51
|
+
3369: Restauração do cabo de rede
|
52
|
+
1370: Curto de zona
|
53
|
+
3370: Restauração do curto de zona
|
54
|
+
1381: Problema de supervisão do sensor
|
55
|
+
3381: Restauração de supervisão do sensor
|
56
|
+
1383: Problema de tamper do sensor
|
57
|
+
3383: Restauração do problema de tamper do sensor
|
58
|
+
1384: Problema de bateria fraca dos sensores sem fio
|
59
|
+
3384: Restauração de bateria fraca dos sensores sem fio
|
60
|
+
1391: Problema de supervisão do dispositivo de pânico
|
61
|
+
3391: Restauração de supervisão do dispositivo de pânico
|
62
|
+
1410: Acesso remoto a programação por computador
|
63
|
+
1421: Acesso negado (errou senha 5 vezes)
|
64
|
+
1422: PGM acionada pelo usuário
|
65
|
+
3422: PGM desacionada pelo usuário
|
66
|
+
1429: Início de ronda
|
67
|
+
1430: Fim de ronda
|
68
|
+
1570: Zona inibida(By pass)
|
69
|
+
1573: Zona autoanulada
|
70
|
+
1602: Teste periódico
|
71
|
+
1611: Ronda OK
|
72
|
+
1612: Falhou ronda
|
73
|
+
1627: Entrou na programação
|
74
|
+
1628: Saiu da programação
|
75
|
+
3401: Arme
|
76
|
+
1401: Desarme
|
77
|
+
3403: Autoarme por horário programado
|
78
|
+
1403: Auto-desarme por horário programado
|
79
|
+
3404: Autoarme por não movimento
|
80
|
+
3407: Arme remoto
|
81
|
+
1407: Desarme remoto
|
82
|
+
3408: Arme rápido
|
83
|
+
3409: Arme por controle remoto ou entrada LIGA
|
84
|
+
1409: Desarme por controle remoto ou entrada LIGA
|
85
|
+
3441: Arme STAY
|
86
|
+
3464: Auto arme adiado
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class JflEvent
|
2
|
+
# Evento de conexão
|
3
|
+
attr_accessor :type
|
4
|
+
attr_accessor :imei
|
5
|
+
attr_accessor :mac
|
6
|
+
attr_accessor :conta_part_a
|
7
|
+
attr_accessor :conta_part_b
|
8
|
+
attr_accessor :versao
|
9
|
+
attr_accessor :modelo
|
10
|
+
attr_accessor :oper
|
11
|
+
attr_accessor :status
|
12
|
+
|
13
|
+
attr_accessor :account
|
14
|
+
attr_accessor :event
|
15
|
+
attr_accessor :partition
|
16
|
+
attr_accessor :user_zone
|
17
|
+
attr_accessor :count
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jfl_alarmes
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- João Fernandes Lima Neto
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-05-14 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: Gem para integrar as centrais monitoradas da Empresa JFL Alarmes. A Primeira
|
56
|
+
que esta sendo integrada é o modelo Acitve 20 - Ethernet
|
57
|
+
email:
|
58
|
+
- devel.neto@gmail.com
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".gitignore"
|
64
|
+
- ".rspec"
|
65
|
+
- ".travis.yml"
|
66
|
+
- CODE_OF_CONDUCT.md
|
67
|
+
- Gemfile
|
68
|
+
- LICENSE
|
69
|
+
- LICENSE.txt
|
70
|
+
- README.md
|
71
|
+
- Rakefile
|
72
|
+
- bin/console
|
73
|
+
- bin/setup
|
74
|
+
- jfl_alarmes.gemspec
|
75
|
+
- lib/jfl_alarmes.rb
|
76
|
+
- lib/jfl_alarmes/contact_id.yml
|
77
|
+
- lib/jfl_alarmes/jfl_event.rb
|
78
|
+
- lib/jfl_alarmes/version.rb
|
79
|
+
homepage: https://github.com/jfneto/jfl_alarmes
|
80
|
+
licenses:
|
81
|
+
- MIT
|
82
|
+
metadata:
|
83
|
+
homepage_uri: https://github.com/jfneto/jfl_alarmes
|
84
|
+
source_code_uri: https://github.com/jfneto/jfl_alarmes
|
85
|
+
changelog_uri: https://github.com/jfneto/jfl_alarmes
|
86
|
+
post_install_message:
|
87
|
+
rdoc_options: []
|
88
|
+
require_paths:
|
89
|
+
- lib
|
90
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '0'
|
95
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
requirements: []
|
101
|
+
rubygems_version: 3.1.2
|
102
|
+
signing_key:
|
103
|
+
specification_version: 4
|
104
|
+
summary: Gem para integrar as centrais monitoradas da JFL Alarmes.
|
105
|
+
test_files: []
|