ruby_certisign_login 0.1.14 → 0.1.16

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: 2123e022895514740d16419364c02232a676bf8c2e2d2502fe3be13a909c48a6
4
- data.tar.gz: cd1788e477f1f8fcd3a82087bb0a3b11c14fb320eb6d32d8b6447aadded0b7c0
3
+ metadata.gz: 5dcc7d172c9ece63e70094b3a3053be203a4c3762bc0dfa4d66f7fbc79cee5b3
4
+ data.tar.gz: 0d4189ab21d102fde298874a3141bbcd3b132e959e0b431f7c9424bf8143dae6
5
5
  SHA512:
6
- metadata.gz: 9337b50bda34c3116a4e90ef10b617e7b9cac1620a7963ceb845be38ef623481fc816a218d6a34960b98245eeef66d6ff54b300650206fb40fc0e87dcfc46a91
7
- data.tar.gz: cb31f25d8b8d0f3a474be7735247eed2ebeab20ee7ae3d8dad8d455085c790647d98d45dbd57a3b5b95e1286e027d8ea367a90e0b87026ec0f7c1aea4aa6bd12
6
+ metadata.gz: cd67ee655bd1c5c2e15107c443e7481ddcd807c3828c93eb134a9526ad6d42c547f6c41240bbf9003caeb57c75487dac36ba48b1e7ec6a7744df228fffd7d0f6
7
+ data.tar.gz: 06e08dce6c664e6bd3f8d804ba463c392eb6c1e39426580c591d8dddb489d9261a9f9850cf0d65e0c2cf92b836469b5df94c4364aee17f1df6afab304d84d5d9
data/README.md CHANGED
@@ -22,7 +22,15 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ Adicionar chave da aplicação no path:
26
+ <rails_root>/config/keys/certisign.pk
27
+
28
+ Helper para criação do botão
29
+ = certisign_form(id, name, url)
30
+
31
+ Decrypt do params['cb']
32
+ RubyCertisignLogin::Decrypt.new( params['cb'] )
33
+
26
34
 
27
35
  ## Development
28
36
 
@@ -32,7 +40,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
40
 
33
41
  ## Contributing
34
42
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ruby_certisign_login. 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.
43
+ Bug reports and pull requests are welcome on GitHub at https://github.com/djosino/ruby_certisign_login. 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
44
 
37
45
  ## License
38
46
 
@@ -40,4 +48,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
40
48
 
41
49
  ## Code of Conduct
42
50
 
43
- Everyone interacting in the RubyCertisignLogin project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/ruby_certisign_login/blob/master/CODE_OF_CONDUCT.md).
51
+ Everyone interacting in the RubyCertisignLogin project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/djosino/ruby_certisign_login/blob/master/CODE_OF_CONDUCT.md).
data/init.rb ADDED
@@ -0,0 +1,11 @@
1
+ require 'ruby_certisign_login'
2
+
3
+ # This is all duplication of what Railtie does, but is necessary because
4
+ # the initializer defined by the Railtie won't ever run when loaded as plugin.
5
+
6
+
7
+ if defined? ActionView::Base
8
+ require 'ruby_certisign_login/view_helpers/action_view'
9
+ end
10
+
11
+ RubyCertisignLogin::Railtie.add_locale_path config
@@ -32,9 +32,9 @@ module RubyCertisignLogin
32
32
  end
33
33
  end
34
34
  end
35
-
35
+
36
36
  def cert_valid?(hash)
37
37
  hash[:valido] and hash[:validade].to_date >= Date.today
38
38
  end
39
-
40
- end
39
+
40
+ end
@@ -1,3 +1,3 @@
1
1
  module RubyCertisignLogin
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_certisign_login
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danilo Josino
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-26 00:00:00.000000000 Z
11
+ date: 2019-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,6 +56,7 @@ files:
56
56
  - app/assets/images/ico-certisign_30x30.png
57
57
  - bin/console
58
58
  - bin/setup
59
+ - init.rb
59
60
  - lib/ruby_certisign_login.rb
60
61
  - lib/ruby_certisign_login/engine.rb
61
62
  - lib/ruby_certisign_login/helpers/certisign_form_helper.rb