partition_magic 0.1.1 → 0.1.2
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/README.md +7 -33
- data/lib/partition_magic/version.rb +1 -1
- data/partition_magic.gemspec +2 -1
- metadata +5 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4886372506343710b590d5330f69a0e5448bc152589b4d1418058db401e04570
|
4
|
+
data.tar.gz: 30a0ebacfbf22bd05e11970c6ea796f8ac711de9b9febe392fcafc6acf2fb3f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4760b035bf945399b16f286b2bccd6884948796e82ce20d34d6ae61595bfa86bce70cb0a5ffb461bfd78c7f4381f84b0544b1b0f3235158549fd2310fe9fc2ad
|
7
|
+
data.tar.gz: 4e82a4e5dc09eff8cbcd1324af89cb6298b05e472a8a9c8a64b078bdf7ccba1e1856729351a44770136da0509f329e87fe902c63b03c2a3892631259dd702c01
|
data/README.md
CHANGED
@@ -1,39 +1,13 @@
|
|
1
1
|
# PartitionMagic
|
2
2
|
|
3
|
-
|
3
|
+
Welcome to PartitionMagic gem. This Library will help you to partition an array of inetegers to odd and even arrays. A small Array partition library (DO NOT USE IN PRODUCTION ENVIRONMENT, THIS IS ONLY FOR EDUCATIONAL PURPOSE)"
|
4
|
+
|
5
|
+
eg: [1,2,3,4,5,6].partition_even_odd(&:even?)
|
6
|
+
[[2,4,6],[1,3,5]]
|
4
7
|
|
5
|
-
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
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.
|
10
|
-
|
11
|
-
Install the gem and add to the application's Gemfile by executing:
|
12
|
-
|
13
|
-
$ bundle add UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
14
|
-
|
15
|
-
If bundler is not being used to manage dependencies, install the gem by executing:
|
16
|
-
|
17
|
-
$ gem install UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
|
8
|
+
## Install
|
9
|
+
gem install partition_magic
|
18
10
|
|
19
11
|
## Usage
|
20
12
|
|
21
|
-
|
22
|
-
|
23
|
-
## Development
|
24
|
-
|
25
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
26
|
-
|
27
|
-
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).
|
28
|
-
|
29
|
-
## Contributing
|
30
|
-
|
31
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/partition_magic. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/partition_magic/blob/master/CODE_OF_CONDUCT.md).
|
32
|
-
|
33
|
-
## License
|
34
|
-
|
35
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
36
|
-
|
37
|
-
## Code of Conduct
|
38
|
-
|
39
|
-
Everyone interacting in the PartitionMagic project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/partition_magic/blob/master/CODE_OF_CONDUCT.md).
|
13
|
+
require 'partition_magic'
|
data/partition_magic.gemspec
CHANGED
@@ -9,7 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.email = ["pradeek.k@gmail.com"]
|
10
10
|
|
11
11
|
spec.summary = "A small Array partition library"
|
12
|
-
spec.description = "A small Array partition library
|
12
|
+
spec.description = "A small Array partition library (DO NOT
|
13
|
+
USE IN PRODUCTION ENVIRONMENT, THIS IS ONLY FOR EDUCATIONAL PURPOSE)"
|
13
14
|
spec.homepage = "https://github.com/codephilosopher/partition_magic"
|
14
15
|
spec.license = "MIT"
|
15
16
|
spec.required_ruby_version = ">= 2.6.0"
|
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: partition_magic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pradeek
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-02-03 00:00:00.000000000 Z
|
12
11
|
dependencies: []
|
13
|
-
description: A small Array partition library
|
12
|
+
description: "A small Array partition library (DO NOT \nUSE IN PRODUCTION ENVIRONMENT,
|
13
|
+
THIS IS ONLY FOR EDUCATIONAL PURPOSE)"
|
14
14
|
email:
|
15
15
|
- pradeek.k@gmail.com
|
16
16
|
executables: []
|
@@ -36,7 +36,6 @@ licenses:
|
|
36
36
|
- MIT
|
37
37
|
metadata:
|
38
38
|
source_code_uri: https://github.com/codephilosopher/partition_magic
|
39
|
-
post_install_message:
|
40
39
|
rdoc_options: []
|
41
40
|
require_paths:
|
42
41
|
- lib
|
@@ -51,8 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
50
|
- !ruby/object:Gem::Version
|
52
51
|
version: '0'
|
53
52
|
requirements: []
|
54
|
-
rubygems_version: 3.
|
55
|
-
signing_key:
|
53
|
+
rubygems_version: 3.6.3
|
56
54
|
specification_version: 4
|
57
55
|
summary: A small Array partition library
|
58
56
|
test_files: []
|