json_spotter 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +60 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +37 -0
- data/LICENSE +21 -0
- data/README.md +33 -0
- data/Rakefile +8 -0
- data/json_spotter.gemspec +43 -0
- data/lib/json_spotter/version.rb +5 -0
- data/lib/json_spotter.rb +7 -0
- data/sig/json/spotter.rbs +6 -0
- metadata +61 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 9244a3fff62bd78ee98a6515350b8494e994119291d6ef1e9b66bbd61fd1b574
|
4
|
+
data.tar.gz: c2ada063b06f3612442f407430f4eec706157175d9c74d018c785cdc3596bfa3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3d6b33745771d18718b3dc93e868a5e6e2721681e19da2c425f7db35b735ef33565c1a4cbaa4b9791a2cdf0bfc888849c943f116eb47654cac689a4bd961fcd7
|
7
|
+
data.tar.gz: f5d29aba2736c3660eae9d0e841f7152c46f1438e6dee83f881370826026fbe1c63be32968dd66753e898c8abb68f68139e8a646a4a0aa4f895feb5ab3ec72b3
|
data/.rspec
ADDED
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.2.1
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [0.1.8](https://github.com/holywarez/json_spotter/compare/v0.1.7...v0.1.8) (2023-05-16)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* get rid of extra debug outputs ([03d41a2](https://github.com/holywarez/json_spotter/commit/03d41a265517e1057a1a8e6a22d9092bc5b2e565))
|
9
|
+
|
10
|
+
## [0.1.7](https://github.com/holywarez/json_spotter/compare/v0.1.6...v0.1.7) (2023-05-16)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* try to provide environment explicitly ([9d657f2](https://github.com/holywarez/json_spotter/commit/9d657f23107cf484586d13d11e552cccc249f703))
|
16
|
+
|
17
|
+
## [0.1.6](https://github.com/holywarez/json_spotter/compare/v0.1.5...v0.1.6) (2023-05-16)
|
18
|
+
|
19
|
+
|
20
|
+
### Bug Fixes
|
21
|
+
|
22
|
+
* debug the key ([965a801](https://github.com/holywarez/json_spotter/commit/965a801d8f49db5a862c64c1b6a446ca29a58038))
|
23
|
+
* debug the key ([#21](https://github.com/holywarez/json_spotter/issues/21)) ([c670219](https://github.com/holywarez/json_spotter/commit/c6702199c34c5626dbd470c10ebd553cf9b4cdc5))
|
24
|
+
|
25
|
+
## [0.1.5](https://github.com/holywarez/json_spotter/compare/v0.1.4...v0.1.5) (2023-05-16)
|
26
|
+
|
27
|
+
|
28
|
+
### Bug Fixes
|
29
|
+
|
30
|
+
* tryout ([ef6a9a8](https://github.com/holywarez/json_spotter/commit/ef6a9a852e560dd8cba3fa83859d28450bd7e924))
|
31
|
+
|
32
|
+
## [0.1.4](https://github.com/holywarez/json_spotter/compare/v0.1.3...v0.1.4) (2023-05-16)
|
33
|
+
|
34
|
+
|
35
|
+
### Bug Fixes
|
36
|
+
|
37
|
+
* try out the --key flag ([d4c7d00](https://github.com/holywarez/json_spotter/commit/d4c7d00317a72d68a84ad9858ea819ecec3a1857))
|
38
|
+
* try out the --key flag ([#16](https://github.com/holywarez/json_spotter/issues/16)) ([7f63c56](https://github.com/holywarez/json_spotter/commit/7f63c5690340100d24ac6cb8c56abbfcf3e3d451))
|
39
|
+
|
40
|
+
## [0.1.3](https://github.com/holywarez/json_spotter/compare/v0.1.2...v0.1.3) (2023-05-15)
|
41
|
+
|
42
|
+
|
43
|
+
### Bug Fixes
|
44
|
+
|
45
|
+
* add *.gem to the gitignore ([e5eb29b](https://github.com/holywarez/json_spotter/commit/e5eb29b13863c1716095cea21a56a5f7fdff89cc))
|
46
|
+
* add license to the gemspec ([e5eb29b](https://github.com/holywarez/json_spotter/commit/e5eb29b13863c1716095cea21a56a5f7fdff89cc))
|
47
|
+
|
48
|
+
## [0.1.2](https://github.com/holywarez/json_spotter/compare/v0.1.1...v0.1.2) (2023-05-15)
|
49
|
+
|
50
|
+
|
51
|
+
### Features
|
52
|
+
|
53
|
+
* initial release process setup ([5ff6d02](https://github.com/holywarez/json_spotter/commit/5ff6d02b4349d057e6eff87b92dd1e08860f8028))
|
54
|
+
|
55
|
+
## [0.1.1](https://github.com/holywarez/json_spotter/compare/v0.1.0...v0.1.1) (2023-05-12)
|
56
|
+
|
57
|
+
|
58
|
+
### Bug Fixes
|
59
|
+
|
60
|
+
* checking the pr release creation ([5462a82](https://github.com/holywarez/json_spotter/commit/5462a82aab5d23f84ea705068b3cc88c9e2573b2))
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
json_spotter (0.1.8)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
diff-lcs (1.5.0)
|
10
|
+
rake (13.0.6)
|
11
|
+
rspec (3.12.0)
|
12
|
+
rspec-core (~> 3.12.0)
|
13
|
+
rspec-expectations (~> 3.12.0)
|
14
|
+
rspec-mocks (~> 3.12.0)
|
15
|
+
rspec-core (3.12.2)
|
16
|
+
rspec-support (~> 3.12.0)
|
17
|
+
rspec-expectations (3.12.3)
|
18
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
+
rspec-support (~> 3.12.0)
|
20
|
+
rspec-mocks (3.12.5)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.12.0)
|
23
|
+
rspec-support (3.12.0)
|
24
|
+
|
25
|
+
PLATFORMS
|
26
|
+
arm64-darwin-21
|
27
|
+
ruby
|
28
|
+
x86_64-darwin
|
29
|
+
x86_64-linux
|
30
|
+
|
31
|
+
DEPENDENCIES
|
32
|
+
json_spotter!
|
33
|
+
rake (~> 13.0)
|
34
|
+
rspec (~> 3.0)
|
35
|
+
|
36
|
+
BUNDLED WITH
|
37
|
+
2.4.13
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2023 Anatoly Lapshin
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# JsonSpotter
|
2
|
+
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/json_spotter.svg)](https://badge.fury.io/rb/json_spotter)
|
4
|
+
|
5
|
+
TODO: Delete this and the text below, and describe your gem
|
6
|
+
|
7
|
+
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/json/spotter`. To experiment with that code, run `bin/console` for an interactive prompt.
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
|
12
|
+
|
13
|
+
Install the gem and add to the application's Gemfile by executing:
|
14
|
+
|
15
|
+
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
16
|
+
|
17
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
18
|
+
|
19
|
+
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Development
|
26
|
+
|
27
|
+
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.
|
28
|
+
|
29
|
+
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).
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/holywarez/json_spotter.
|
data/Rakefile
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/json_spotter"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.platform = Gem::Platform::RUBY
|
7
|
+
spec.name = "json_spotter"
|
8
|
+
spec.version = JsonSpotter::VERSION
|
9
|
+
spec.authors = ["Anatoly Lapshin"]
|
10
|
+
spec.email = ["a.lapshin@3commas.io"]
|
11
|
+
spec.license = "MIT"
|
12
|
+
|
13
|
+
spec.summary = "Ruby gem to extract data from JSON streams"
|
14
|
+
spec.description = "json_spotter is a gem to process big json documents in a stream-way. " \
|
15
|
+
"It provides a special json-based language to describe the data that has to " \
|
16
|
+
"be extracted from the json stream of data."
|
17
|
+
spec.homepage = "https://github.com/holywarez/json_spotter"
|
18
|
+
spec.required_ruby_version = ">= 3.2.1"
|
19
|
+
|
20
|
+
spec.metadata = {
|
21
|
+
"bug_tracker_uri" => "https://github.com/holywarez/json_spotter/issues",
|
22
|
+
"documentation_uri" => "https://github.com/holywarez/json_spotter/blob/main/docs",
|
23
|
+
"source_code_uri" => "https://github.com/holywarez/json_spotter/tree/main",
|
24
|
+
"homepage_uri" => spec.homepage,
|
25
|
+
}
|
26
|
+
|
27
|
+
# Specify which files should be added to the gem when it is released.
|
28
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
29
|
+
spec.files = Dir.chdir(__dir__) do
|
30
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
31
|
+
(File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
|
32
|
+
end
|
33
|
+
end
|
34
|
+
spec.bindir = "exe"
|
35
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
36
|
+
spec.require_paths = ["lib"]
|
37
|
+
|
38
|
+
# Uncomment to register a new dependency of your gem
|
39
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
40
|
+
|
41
|
+
# For more information and examples about making a new gem, check out our
|
42
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
43
|
+
end
|
data/lib/json_spotter.rb
ADDED
metadata
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: json_spotter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.8
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Anatoly Lapshin
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2023-05-16 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: json_spotter is a gem to process big json documents in a stream-way.
|
14
|
+
It provides a special json-based language to describe the data that has to be extracted
|
15
|
+
from the json stream of data.
|
16
|
+
email:
|
17
|
+
- a.lapshin@3commas.io
|
18
|
+
executables: []
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- ".rspec"
|
23
|
+
- ".ruby-version"
|
24
|
+
- CHANGELOG.md
|
25
|
+
- Gemfile
|
26
|
+
- Gemfile.lock
|
27
|
+
- LICENSE
|
28
|
+
- README.md
|
29
|
+
- Rakefile
|
30
|
+
- json_spotter.gemspec
|
31
|
+
- lib/json_spotter.rb
|
32
|
+
- lib/json_spotter/version.rb
|
33
|
+
- sig/json/spotter.rbs
|
34
|
+
homepage: https://github.com/holywarez/json_spotter
|
35
|
+
licenses:
|
36
|
+
- MIT
|
37
|
+
metadata:
|
38
|
+
bug_tracker_uri: https://github.com/holywarez/json_spotter/issues
|
39
|
+
documentation_uri: https://github.com/holywarez/json_spotter/blob/main/docs
|
40
|
+
source_code_uri: https://github.com/holywarez/json_spotter/tree/main
|
41
|
+
homepage_uri: https://github.com/holywarez/json_spotter
|
42
|
+
post_install_message:
|
43
|
+
rdoc_options: []
|
44
|
+
require_paths:
|
45
|
+
- lib
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 3.2.1
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
requirements: []
|
57
|
+
rubygems_version: 3.4.6
|
58
|
+
signing_key:
|
59
|
+
specification_version: 4
|
60
|
+
summary: Ruby gem to extract data from JSON streams
|
61
|
+
test_files: []
|