neon_search 0.0.1
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 +7 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +83 -0
- data/README.md +29 -0
- data/Rakefile +6 -0
- data/lib/neon_search.rb +22 -0
- data/lib/neon_search/version.rb +3 -0
- data/neon_search.gemspec +24 -0
- metadata +55 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 81f74e05dd6f2aa3745a8c664793b6ef033739b2ce34993dd86d0cd79f84930f
|
4
|
+
data.tar.gz: 32a745a68d7c616b96d3ed600ab2690e967a7a651b2961e511198410d18c11f0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b1c3fa15d997665a2efccac5f6928f8e368ffc495123daa6852650540c8da8da6fbcace7ab8c460e877de75a3c1e01b23c93094888ab3ab79e6b2398e05b9914
|
7
|
+
data.tar.gz: 5df87a7d8f3d176d4a63f4141ace2574ed4bd9eedd6efc20ea4207bbb62013109e4a87cc79ac52b79b3b06607931c77477683cf98960c3bf929cc98e6979149b
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7
|
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
# Specify your gem's dependencies in neon_postgres.gemspec
|
4
|
+
gemspec
|
5
|
+
|
6
|
+
gem "rake", "~> 12.0"
|
7
|
+
gem "rspec", "~> 3.0"
|
8
|
+
gem "standard"
|
9
|
+
|
10
|
+
gem "pry", "~> 0.14.1"
|
11
|
+
|
12
|
+
gem "faker", "~> 2.17"
|
13
|
+
|
14
|
+
gem "meilisearch", "~> 0.15.3"
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
neon_search (0.0.1)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
ast (2.4.2)
|
10
|
+
coderay (1.1.3)
|
11
|
+
concurrent-ruby (1.1.8)
|
12
|
+
diff-lcs (1.4.4)
|
13
|
+
faker (2.17.0)
|
14
|
+
i18n (>= 1.6, < 2)
|
15
|
+
httparty (0.18.1)
|
16
|
+
mime-types (~> 3.0)
|
17
|
+
multi_xml (>= 0.5.2)
|
18
|
+
i18n (1.8.10)
|
19
|
+
concurrent-ruby (~> 1.0)
|
20
|
+
meilisearch (0.15.3)
|
21
|
+
httparty (>= 0.17.1, < 0.19.0)
|
22
|
+
method_source (1.0.0)
|
23
|
+
mime-types (3.3.1)
|
24
|
+
mime-types-data (~> 3.2015)
|
25
|
+
mime-types-data (3.2021.0225)
|
26
|
+
multi_xml (0.6.0)
|
27
|
+
parallel (1.20.1)
|
28
|
+
parser (3.0.1.0)
|
29
|
+
ast (~> 2.4.1)
|
30
|
+
pry (0.14.1)
|
31
|
+
coderay (~> 1.1)
|
32
|
+
method_source (~> 1.0)
|
33
|
+
rainbow (3.0.0)
|
34
|
+
rake (12.3.3)
|
35
|
+
regexp_parser (2.1.1)
|
36
|
+
rexml (3.2.5)
|
37
|
+
rspec (3.10.0)
|
38
|
+
rspec-core (~> 3.10.0)
|
39
|
+
rspec-expectations (~> 3.10.0)
|
40
|
+
rspec-mocks (~> 3.10.0)
|
41
|
+
rspec-core (3.10.1)
|
42
|
+
rspec-support (~> 3.10.0)
|
43
|
+
rspec-expectations (3.10.1)
|
44
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
45
|
+
rspec-support (~> 3.10.0)
|
46
|
+
rspec-mocks (3.10.2)
|
47
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
48
|
+
rspec-support (~> 3.10.0)
|
49
|
+
rspec-support (3.10.2)
|
50
|
+
rubocop (1.12.1)
|
51
|
+
parallel (~> 1.10)
|
52
|
+
parser (>= 3.0.0.0)
|
53
|
+
rainbow (>= 2.2.2, < 4.0)
|
54
|
+
regexp_parser (>= 1.8, < 3.0)
|
55
|
+
rexml
|
56
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
57
|
+
ruby-progressbar (~> 1.7)
|
58
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
59
|
+
rubocop-ast (1.4.1)
|
60
|
+
parser (>= 2.7.1.5)
|
61
|
+
rubocop-performance (1.10.1)
|
62
|
+
rubocop (>= 0.90.0, < 2.0)
|
63
|
+
rubocop-ast (>= 0.4.0)
|
64
|
+
ruby-progressbar (1.11.0)
|
65
|
+
standard (1.0.5)
|
66
|
+
rubocop (= 1.12.1)
|
67
|
+
rubocop-performance (= 1.10.1)
|
68
|
+
unicode-display_width (2.0.0)
|
69
|
+
|
70
|
+
PLATFORMS
|
71
|
+
ruby
|
72
|
+
|
73
|
+
DEPENDENCIES
|
74
|
+
faker (~> 2.17)
|
75
|
+
meilisearch (~> 0.15.3)
|
76
|
+
neon_search!
|
77
|
+
pry (~> 0.14.1)
|
78
|
+
rake (~> 12.0)
|
79
|
+
rspec (~> 3.0)
|
80
|
+
standard
|
81
|
+
|
82
|
+
BUNDLED WITH
|
83
|
+
2.1.4
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Neon Search
|
2
|
+
|
3
|
+
This gem is used to create, update, and delete records in
|
4
|
+
[meilisearch](https://meilisearch.com).
|
5
|
+
|
6
|
+
## Interface
|
7
|
+
|
8
|
+
This gem exposes one class, `NeonSecrets::Getter`, with one method, `.get`. In
|
9
|
+
your code you can call it like:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
import 'neon_secrets'
|
13
|
+
|
14
|
+
NeonSecrets::Getter.get(secret_name: "postgres_url")
|
15
|
+
NeonSecrets::Getter.get(secret_name: "stripe_api_key")
|
16
|
+
```
|
17
|
+
|
18
|
+
Secrets are set in Doppler by Neon Law administrators.
|
19
|
+
|
20
|
+
## Doppler Setup
|
21
|
+
|
22
|
+
Use the `search` project and the `dev` environment when working locally using a
|
23
|
+
locally-ran instance of Melisearch. The `stg` and `prd` correspond to our
|
24
|
+
staging and production accounts.
|
25
|
+
|
26
|
+
## Contributing
|
27
|
+
|
28
|
+
Bug reports and pull requests are welcome on GitHub at
|
29
|
+
https://github.com/neonlaw/codebase.
|
data/Rakefile
ADDED
data/lib/neon_search.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require "neon_search/version"
|
2
|
+
|
3
|
+
module NeonSearch
|
4
|
+
class Error < StandardError; end
|
5
|
+
|
6
|
+
class QuestionUpserter
|
7
|
+
def self.upsert(questions)
|
8
|
+
new(questions: questions).upsert
|
9
|
+
end
|
10
|
+
|
11
|
+
def initialize(questions:)
|
12
|
+
@questions = questions
|
13
|
+
end
|
14
|
+
|
15
|
+
def upsert
|
16
|
+
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
attr_reader :questions
|
21
|
+
end
|
22
|
+
end
|
data/neon_search.gemspec
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
require_relative "lib/neon_search/version"
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "neon_search"
|
5
|
+
spec.version = NeonSearch::VERSION
|
6
|
+
spec.authors = ["Neon Law"]
|
7
|
+
spec.email = ["support@neonlaw.com"]
|
8
|
+
|
9
|
+
spec.summary = "A gem to handle CRUDding Neon Law data to Melisearch."
|
10
|
+
spec.description = spec.summary
|
11
|
+
spec.homepage = "https://github.com/neonlaw/codebase"
|
12
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
13
|
+
|
14
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
15
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
16
|
+
spec.metadata["changelog_uri"] = spec.homepage
|
17
|
+
|
18
|
+
# Specify which files should be added to the gem when it is released.
|
19
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
20
|
+
spec.files = Dir.chdir(File.expand_path("..", __FILE__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
spec.require_paths = ["lib"]
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: neon_search
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Neon Law
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-07-19 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A gem to handle CRUDding Neon Law data to Melisearch.
|
14
|
+
email:
|
15
|
+
- support@neonlaw.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- ".gitignore"
|
21
|
+
- ".rspec"
|
22
|
+
- ".ruby-version"
|
23
|
+
- Gemfile
|
24
|
+
- Gemfile.lock
|
25
|
+
- README.md
|
26
|
+
- Rakefile
|
27
|
+
- lib/neon_search.rb
|
28
|
+
- lib/neon_search/version.rb
|
29
|
+
- neon_search.gemspec
|
30
|
+
homepage: https://github.com/neonlaw/codebase
|
31
|
+
licenses: []
|
32
|
+
metadata:
|
33
|
+
homepage_uri: https://github.com/neonlaw/codebase
|
34
|
+
source_code_uri: https://github.com/neonlaw/codebase
|
35
|
+
changelog_uri: https://github.com/neonlaw/codebase
|
36
|
+
post_install_message:
|
37
|
+
rdoc_options: []
|
38
|
+
require_paths:
|
39
|
+
- lib
|
40
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 2.3.0
|
45
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
requirements: []
|
51
|
+
rubygems_version: 3.2.22
|
52
|
+
signing_key:
|
53
|
+
specification_version: 4
|
54
|
+
summary: A gem to handle CRUDding Neon Law data to Melisearch.
|
55
|
+
test_files: []
|