plugzapi-gem 0.1.0 → 0.1.2

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
  SHA256:
3
- metadata.gz: 0017b1d6c7794ad1e36a4a8bd78d5b5218012bdc797c783b18332333f4211a27
4
- data.tar.gz: 9e3e286b3b4adad999b5c3a6d99362de46d275242470b6022144a3404ace4aea
3
+ metadata.gz: 1b1fd6962616c647dbfe96aab2f05b4121e4523bf0021232fb81876f23ea2e9a
4
+ data.tar.gz: e77d1b56afc42d253c073893e15dcb37eb66b698c1bfcd64f0fe934ef05b5110
5
5
  SHA512:
6
- metadata.gz: 8cb84f75ed446391edbf1330f0a1d0772e879af19cbb1f5f3bb5f5ba46afe5dbdad8dda50e519d9bd6bb495b1f6a9c914090fe0a2026a3c8b68bfb8b2195ba41
7
- data.tar.gz: 668e1fde18ab764dec4a83186b418465412539d8101bafc46a6089a7cc064b9eb4c4eec2d6ca8eb97d66f05260b2db7074624e4c317a028266a8d3b0d90dbc6d
6
+ metadata.gz: 687d0e9d8d2c7cca2f3411f00bf62bc8853f476a358fbc033654b39b3b473bf18c242ee8ae81c4ee05ba8c9cf9e15609b9fadfc9fca37829bb814bcbced1bd4c
7
+ data.tar.gz: a7753dceea5d272d4d31b847e1f69d4991f9144d65a60c291a83148fe91c5742dff49be8ba7e5bd508e061f1aef03b976a78f94e6f9b28446469aa669b7b86de
data/README.md CHANGED
@@ -1,91 +1,20 @@
1
1
  # Plugzapi::Gem
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
4
-
5
- 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/plugzapi/gem`. To experiment with that code, run `bin/console` for an interactive prompt.
6
3
 
7
4
  ## Installation
8
5
 
9
- Para instalar a gem no projeto basta adicionar o seguinte trecho no Gemfile:
10
-
11
- ```ruby
12
- ...
13
- gem 'pegar_o_path_que_vai_gerar_no_gitlab'
14
- ```
15
-
16
- Para testar localmente é possível instalar a gem executando o seguinte comando no terminal:
17
-
18
- ```bash
19
- gem install ./plugzapi-gem.gem
20
- ```
21
-
22
- instalando a gem é preciso criar um initializer para passar algumas variaveis para gem. Segue um exemplo:
23
-
24
- ```ruby
25
- Plugzapi.configure do |config|
26
- config.first_value = "primeiro valor"
27
- config.second_value = "segundo valor"
28
- end
29
- ```
30
6
 
31
7
  ## Usage
32
8
 
33
9
 
34
10
  ## Development
35
11
 
36
- 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.
37
-
38
- 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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
39
-
40
- O desenvolvimento se concentra dentro da pasta lib/plugzapi. Seguindo a estrutura que temos de exemplo na classe Soma que fica dentro do Calculator.
41
-
42
- ```ruby
43
- module Plugzapi
44
- module Calculator
45
- class Soma
46
- attr_reader :value1, :value2
47
-
48
- def self.perform(value1, value2)
49
- new(value1, value2).call
50
- end
51
-
52
- def initialize(value1, value2)
53
- @value1 = value1
54
- @value2 = value2
55
- end
56
-
57
- def call
58
- puts value1 + value2
59
- puts "---------------"
60
- Plugzapi.configuration.valor_dos_parametros
61
- end
62
- end
63
- end
64
- end
65
- ```
66
-
67
- Segue um exemplo de como usar essa classe em uma aplicação que possui a gem instalada e configurada:
68
-
69
- ```ruby
70
- Plugzapi::Calculator::Soma.perform(4, 6)
71
- ```
72
-
73
- Isso vai retornar o seguinte:
74
-
75
- ```bash
76
- 10
77
- ---------------
78
- first_value = primeiro valor
79
- second_value = segundo valor
80
- ```
81
12
 
82
13
  ## Contributing
83
14
 
84
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/plugzapi-gem. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/plugzapi-gem/blob/master/CODE_OF_CONDUCT.md).
85
15
 
86
16
  ## Code of Conduct
87
17
 
88
- Everyone interacting in the Plugzapi::Gem project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/plugzapi-gem/blob/master/CODE_OF_CONDUCT.md).
89
18
 
90
19
  ## License
91
20
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Plugzapi
4
4
  module Gem
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,10 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plugzapi-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
- - Keslley
7
+ - Keslley Capelin
8
+ - Bruno Andrade
8
9
  autorequire:
9
10
  bindir: exe
10
11
  cert_chain: []
@@ -43,7 +44,8 @@ description: " A plugzapi-gem facilita a integração com a API da Tecnospeed
43
44
  e intuitiva, desenvolvedores podem realizar chamadas à API da Plugzapi sem complicações,
44
45
  \n otimizando o tempo de desenvolvimento para um integração com WhatsApp\n"
45
46
  email:
46
- - capelin.cvv@gmail.com
47
+ - keslley.capelin@way-v.com
48
+ - bruno.andrade@way-v.com
47
49
  executables: []
48
50
  extensions: []
49
51
  extra_rdoc_files: []
@@ -67,7 +69,7 @@ files:
67
69
  - lib/plugzapi/send_message.rb
68
70
  - lib/plugzapi/validate_phone.rb
69
71
  - sig/plugzapi/gem.rbs
70
- homepage: https://gitlab.limbersoftware.com.br/way-v/plugzapi-gem
72
+ homepage:
71
73
  licenses:
72
74
  - MIT
73
75
  metadata: