crtsh-rb 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 166f2ae1b569a2cc6e2ceaaf94a4eb3441a1484c5662e1e7d5c71e3b8eb8ab68
4
- data.tar.gz: 93672f754b8e4a0afef0c6db43b20ace71aea80a588f69fd94768295317b6d2b
3
+ metadata.gz: 6221162f9e62bddc1dfd2de5d7fe8d372a6c57361f463fa865b7ffe4017b57fa
4
+ data.tar.gz: 68dca3786a7ecd8032235bff8aa9292ed6157ce16b8eb698d68fa95d2d8062ee
5
5
  SHA512:
6
- metadata.gz: 5e1fa611c95c9cc799f2089e27b9cdb1764a690bd3370fde9483546f897d41f0b3d505195a083c22972664127a17fb995741c94b269ff42ee53410c536ee420e
7
- data.tar.gz: c732d7e31e2f690baa3e94eb62b0a1aa839de00cb9564e57a32f6910f08aa6712e58bb2ddce143cd22d3a44d298ab68c67d84014931ac5d8fe6d94fb25349167
6
+ metadata.gz: 4a4a4aa9b2b9c497f478776753e6573ef787960b2ec4c7dd1c369ae5c272425356d41470935ead53fa7ed176db3ffa50aeacffd20f0c03de736d31fcdfa3ad08
7
+ data.tar.gz: 234a6d9921c05f2f796041ed95ad535b46cd75ef41aa53b804a0e0655ddee18135eb90e24c10a8ad9232d0876c5af702809f6c62bed0d6ccd758a269f8d9fae7
@@ -0,0 +1,25 @@
1
+ name: Ruby CI
2
+
3
+ on: [pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ ruby: [2.7, "3.0"]
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Set up Ruby
17
+ uses: ruby/setup-ruby@v1
18
+ with:
19
+ ruby-version: ${{ matrix.ruby }}
20
+ bundler-cache: true
21
+ - name: Build and test with Rake
22
+ run: |
23
+ gem install bundler
24
+ bundle install
25
+ bundle exec rake
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # crtsh
2
2
 
3
- [![Build Status](https://travis-ci.com/ninoseki/crtsh.svg?branch=master)](https://travis-ci.com/ninoseki/crtsh)
3
+ [![Ruby CI](https://github.com/ninoseki/crtsh/actions/workflows/test.yml/badge.svg)](https://github.com/ninoseki/crtsh/actions/workflows/test.yml)
4
4
  [![Coverage Status](https://coveralls.io/repos/github/ninoseki/crtsh/badge.svg?branch=master)](https://coveralls.io/github/ninoseki/crtsh?branch=master)
5
5
  [![CodeFactor](https://www.codefactor.io/repository/github/ninoseki/crtsh/badge)](https://www.codefactor.io/repository/github/ninoseki/crtsh)
6
6
 
@@ -15,16 +15,22 @@ gem install crtsh-rb
15
15
  ## Usage
16
16
 
17
17
  ```ruby
18
+ # Interact with Web API
18
19
  require "crtsh"
19
20
 
20
- # Interact with Web API
21
21
  api = Crtsh::API.new
22
22
  api.search("crt.sh")
23
23
  api.search("crt.sh", match: "LIKE")
24
24
  api.search("crt.sh", exclude: "expired")
25
25
  api.search("crt.sh", match: "LIKE", exclude: "expired")
26
+ ```
26
27
 
28
+ ```ruby
27
29
  # Interact with DB
30
+ # Note that you have to install pg manually
31
+ # gem install pg
32
+ require "crtsh/db"
33
+
28
34
  db = Crtsh::DB.new
29
35
  sql = """
30
36
  SELECT digest(certificate.certificate, 'sha256') sha256
data/crtsh.gemspec CHANGED
@@ -24,12 +24,11 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
25
  spec.require_paths = ["lib"]
26
26
 
27
- spec.add_development_dependency "bundler", "~> 2.1"
27
+ spec.add_development_dependency "bundler", "~> 2.2"
28
28
  spec.add_development_dependency "coveralls", "~> 0.8"
29
+ spec.add_development_dependency "pg", "~> 1.2"
29
30
  spec.add_development_dependency "rake", "~> 13.0"
30
- spec.add_development_dependency "rspec", "~> 3.9"
31
- spec.add_development_dependency "vcr", "~> 5.0"
32
- spec.add_development_dependency "webmock", "~> 3.8"
33
-
34
- spec.add_dependency "pg", "~> 1.2"
31
+ spec.add_development_dependency "rspec", "~> 3.10"
32
+ spec.add_development_dependency "vcr", "~> 6.0"
33
+ spec.add_development_dependency "webmock", "~> 3.12"
35
34
  end
data/lib/crtsh.rb CHANGED
@@ -3,7 +3,6 @@
3
3
  require "crtsh/version"
4
4
 
5
5
  require "crtsh/api"
6
- require "crtsh/db"
7
6
 
8
7
  module Crtsh
9
8
  class Error < StandardError; end
data/lib/crtsh/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Crtsh
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
data/renovate.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": [
3
+ "config:base"
4
+ ]
5
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crtsh-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manabu Niseki
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-03 00:00:00.000000000 Z
11
+ date: 2021-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.1'
19
+ version: '2.2'
20
20
  type: :development
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: '2.1'
26
+ version: '2.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: coveralls
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -39,75 +39,75 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.8'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
42
+ name: pg
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '13.0'
47
+ version: '1.2'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '13.0'
54
+ version: '1.2'
55
55
  - !ruby/object:Gem::Dependency
56
- name: rspec
56
+ name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.9'
61
+ version: '13.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '3.9'
68
+ version: '13.0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: vcr
70
+ name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '5.0'
75
+ version: '3.10'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '5.0'
82
+ version: '3.10'
83
83
  - !ruby/object:Gem::Dependency
84
- name: webmock
84
+ name: vcr
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.8'
89
+ version: '6.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '3.8'
96
+ version: '6.0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: pg
98
+ name: webmock
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.2'
104
- type: :runtime
103
+ version: '3.12'
104
+ type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.2'
110
+ version: '3.12'
111
111
  description: crt.sh API wrapper for Ruby
112
112
  email:
113
113
  - manabu.niseki@gmail.com
@@ -115,9 +115,9 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
+ - ".github/workflows/test.yml"
118
119
  - ".gitignore"
119
120
  - ".rspec"
120
- - ".travis.yml"
121
121
  - Gemfile
122
122
  - LICENSE
123
123
  - README.md
@@ -127,11 +127,12 @@ files:
127
127
  - lib/crtsh/api.rb
128
128
  - lib/crtsh/db.rb
129
129
  - lib/crtsh/version.rb
130
+ - renovate.json
130
131
  homepage: https://github.com/ninoseki/crtsh
131
132
  licenses:
132
133
  - MIT
133
134
  metadata: {}
134
- post_install_message:
135
+ post_install_message:
135
136
  rdoc_options: []
136
137
  require_paths:
137
138
  - lib
@@ -146,8 +147,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
147
  - !ruby/object:Gem::Version
147
148
  version: '0'
148
149
  requirements: []
149
- rubygems_version: 3.0.3
150
- signing_key:
150
+ rubygems_version: 3.2.15
151
+ signing_key:
151
152
  specification_version: 4
152
153
  summary: crt.sh API wrapper for Ruby
153
154
  test_files: []
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.6
7
- before_install: gem install bundler -v 2.1