rails-letsencrypt 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10abe713ee77d4fa73de337089261b1981783ad0
4
- data.tar.gz: 528f836581b20b4bb845c67a80386d413ef80801
3
+ metadata.gz: 4f2c887b3a1d6aa85e7e816b9e38825f3731b7f6
4
+ data.tar.gz: 4e8c531be29e92c9bde71803ccca868a6ac649a3
5
5
  SHA512:
6
- metadata.gz: e99ac7b4301fed05b62fc9a77143c0c4efcdcaa76d98fb74e19f3e7f9fc3fb18f8a79ee433a6a0ee1c67e5d527966da1433fe8a3e345ce24bce5978209e596cf
7
- data.tar.gz: 871b718b910992f3484f0a389b7bb9456cfb26532b79920f213a72e5637ae74794562ca643a4834262f164bd75b2265e8bcdcb63c54812241176d4b3af06cdc5
6
+ metadata.gz: 5149e9b89f63bf63933f2e68a1f31029ef2b9b393a02dd232d91d4a1dce95ac1b4dd10ee9155b287a4628de5868b2abddcfde408ddfd8150ba3bc69e3e843dd4
7
+ data.tar.gz: cde51125e065b0042cbf8c4b5c80f494309f574ee696adedfe53a47eb89c45d5633c3950106708c55eb43ef21bbc07f6ecaae2b94092f00098f712787150b1fb
data/Rakefile CHANGED
@@ -14,8 +14,8 @@ RDoc::Task.new(:rdoc) do |rdoc|
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  end
16
16
 
17
- load 'rails/tasks/statistics.rake'
17
+ # TODO: Add rails 5 support tasks => load 'rails/tasks/statistics.rake'
18
18
 
19
19
  require 'bundler/gem_tasks'
20
20
 
21
- task default: :stats
21
+ task default: :install
@@ -48,8 +48,8 @@ module LetsEncrypt
48
48
  true
49
49
  end
50
50
 
51
- def retry_on_verify_error
52
- @retries = 0
51
+ def retry_on_verify_error(e)
52
+ @retries ||= 0
53
53
  if e.is_a?(Acme::Client::Error::BadNonce) && @retries < 5
54
54
  @retries += 1
55
55
  # rubocop:disable Metrics/LineLength
@@ -1,6 +1,6 @@
1
1
  module LetsEncrypt
2
2
  # :nodoc:
3
- class Certificate < ApplicationRecord
3
+ class Certificate < ActiveRecord::Base
4
4
  include CertificateVerifiable
5
5
  include CertificateIssuable
6
6
 
@@ -1,4 +1,4 @@
1
- class CreateLetsEncryptCertificates < ActiveRecord::Migration[5.1]
1
+ class CreateLetsEncryptCertificates < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :lets_encrypt_certificates do |t|
4
4
  t.string :domain
data/lib/letsencrypt.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  require 'openssl'
2
2
  require 'acme-client'
3
+ require 'redis'
3
4
  require 'letsencrypt/engine'
4
5
  require 'letsencrypt/configuration'
5
6
  require 'letsencrypt/logger_proxy'
@@ -1,3 +1,3 @@
1
1
  module LetsEncrypt
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-letsencrypt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - 蒼時弦也
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-06 00:00:00.000000000 Z
11
+ date: 2017-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 5.1.0
19
+ version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 5.1.0
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: acme-client
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -84,7 +84,7 @@ files:
84
84
  - app/models/lets_encrypt/application_record.rb
85
85
  - app/models/lets_encrypt/certificate.rb
86
86
  - config/routes.rb
87
- - db/migrate/20170505165114_create_lets_encrypt_certificates.rb
87
+ - db/migrate/20170510075353_create_lets_encrypt_certificates.rb
88
88
  - lib/letsencrypt.rb
89
89
  - lib/letsencrypt/configuration.rb
90
90
  - lib/letsencrypt/engine.rb