baran 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -1
- data/Gemfile.lock +1 -1
- data/README.md +4 -3
- data/lib/baran/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c113913bc9751c8dccc46fef4cf58b552e2ef629e0cbcbecf4009f1fb0c9665
|
4
|
+
data.tar.gz: b166d1eab9681981435367ec57d24ce0dd12f45086f7654cfee0ffc6b120e2ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 177b7eb08f07236e680316806fbf0f4fd2ef576ec36cf4005660503b594b90b023c1c29db54860b26990e65ea9ffa3b4d6dc94c913007b09cf018dd01d606754
|
7
|
+
data.tar.gz: e7ec13bcadda327bb1ed691fc9bf55e8954f160bd33167549088baf92280a9e2b2c846450b15656034a46f3697f0c2513fee0ddda24528f56920c48606fb3e23
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -32,6 +32,7 @@ splitter = Baran::CharacterTextSplitter.new(
|
|
32
32
|
separator: "\n\n"
|
33
33
|
)
|
34
34
|
splitter.chunks(text)
|
35
|
+
# => [{ cursor: 0, text: "..." }, ...]
|
35
36
|
```
|
36
37
|
|
37
38
|
### Recursive Character Text Splitter
|
@@ -43,6 +44,7 @@ splitter = Baran::RecursiveCharacterTextSplitter.new(
|
|
43
44
|
separators: ["\nn", "\n", " ", ""]
|
44
45
|
)
|
45
46
|
splitter.chunks(text)
|
47
|
+
# => [{ cursor: 0, text: "..." }, ...]
|
46
48
|
```
|
47
49
|
|
48
50
|
### Markdown Text Splitter
|
@@ -52,6 +54,7 @@ Splitting by the Markdown descriptions.
|
|
52
54
|
```ruby
|
53
55
|
splitter = Baran::MarkdownSplitter.new
|
54
56
|
splitter.chunks(markdown)
|
57
|
+
# => [{ cursor: 0, text: "..." }, ...]
|
55
58
|
```
|
56
59
|
|
57
60
|
Split with the following priority.
|
@@ -77,9 +80,7 @@ Split with the following priority.
|
|
77
80
|
|
78
81
|
## Development
|
79
82
|
|
80
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake
|
81
|
-
|
82
|
-
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).
|
83
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rake` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
83
84
|
|
84
85
|
## Contributing
|
85
86
|
|
data/lib/baran/version.rb
CHANGED