shufflino 0.1.1 → 0.2.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 +4 -4
- data/Gemfile.lock +1 -1
- data/Makefile +6 -1
- data/README.md +9 -9
- data/lib/shufflino/version.rb +1 -1
- data/lib/shufflino.rb +5 -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: 055a7e285d85a35ea1419927b9484b6991eaf7032d759338c206f0e48f0ab2ae
|
|
4
|
+
data.tar.gz: 73c54fa867ae235217cda1beb87d582498bc959772686af4847a6424644687cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e655bd0247e8ad985978acbb5f06b39888079c67e0efdcb29ac1dcc43c73d3710e653569c21879d6ba06b23664f653d29f0b493764638ee05fc83c1c85114d77
|
|
7
|
+
data.tar.gz: 4ac23d05d2ea34a7dc8f0a622916b8eca97c4f418c922fad05f0fd0b45ee950cf8ae9a6deb94936e929ce87370be6d056360d7f22fad50a7cb59552fc48dc8dc
|
data/Gemfile.lock
CHANGED
data/Makefile
CHANGED
data/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Shufflino
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
3
|
+
Generates random-looking like strings from shuffled seed arrays
|
|
6
4
|
|
|
7
5
|
## Installation
|
|
8
6
|
|
|
@@ -22,7 +20,13 @@ Or install it yourself as:
|
|
|
22
20
|
|
|
23
21
|
## Usage
|
|
24
22
|
|
|
25
|
-
|
|
23
|
+
```
|
|
24
|
+
seeds = [[:f, :m, :e, :W], [:U, :t, 3, :Q], [9, :S, :j, :w]]
|
|
25
|
+
shufflino = Shufflino::Core.new(seeds)
|
|
26
|
+
shufflino.generate(0) # =>"fU9"
|
|
27
|
+
shufflino.generate(63) # => "WQw"
|
|
28
|
+
shufflino.generate(64) # Raises error (Not enough seeds)
|
|
29
|
+
```
|
|
26
30
|
|
|
27
31
|
## Development
|
|
28
32
|
|
|
@@ -32,12 +36,8 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
32
36
|
|
|
33
37
|
## Contributing
|
|
34
38
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
39
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/inem/shufflino. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
|
36
40
|
|
|
37
41
|
## License
|
|
38
42
|
|
|
39
43
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
40
|
-
|
|
41
|
-
## Code of Conduct
|
|
42
|
-
|
|
43
|
-
Everyone interacting in the Shufflino project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/shufflino/blob/master/CODE_OF_CONDUCT.md).
|
data/lib/shufflino/version.rb
CHANGED
data/lib/shufflino.rb
CHANGED