partition_magic 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5faf35805880a910a043b59313f772bbee330143ba8ec700e51e0944776a4d93
4
- data.tar.gz: c78719c6d15d2f0a59315742b52ce731f272d46dd010521e8823d4f507b555eb
3
+ metadata.gz: f7e0506d2040d26185bbf366a65ebcc31675c8a31fa46d230437b7212cd2aa62
4
+ data.tar.gz: 2165ee6334622228f9e65c3e5fe4359a94e3b7dce5a6066ce13f106ea94005de
5
5
  SHA512:
6
- metadata.gz: e72bf005718d3efdaee6a377680f3403809f67763241cabb1d593b835ba6a0122b041786372caf786893eced3247fe5a6533fcfa820d9a615b1ce1d66d47226a
7
- data.tar.gz: d329a0b5233b54eed9456ec1bbff1378cd41ce78c39d46794dcc45500145df0b86a6b39491dab1710628b8dcba760cb44e3dff082fe922ddf78a482f6e94d624
6
+ metadata.gz: 2e1a4378114712f924568de34dd658c76917ed3cf9fcbdbd998f883ee2cc1b624c2bafd144739e13052fcb28eb318e5b4933e14d90f5651dc3fe0c496c9337ea
7
+ data.tar.gz: a649b0d9f87d724e7525867f21c93566eb70faf135c0eaefca691443f5b8cc7d34304bf63caf142bb885ec459d4f8a44f7c3acdb9f281db75f317ed53565fd39
data/.idea/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/partition_magic.iml" filepath="$PROJECT_DIR$/.idea/partition_magic.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,51 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$">
8
+ <sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
9
+ <sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
10
+ <sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
11
+ </content>
12
+ <orderEntry type="jdk" jdkName="rbenv: 3.2.2" jdkType="RUBY_SDK" />
13
+ <orderEntry type="sourceFolder" forTests="false" />
14
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.4.22, rbenv: 3.2.2) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.20.0, rbenv: 3.2.2) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="rake (v13.1.0, rbenv: 3.2.2) [gem]" level="application" />
17
+ </component>
18
+ <component name="RakeTasksCache">
19
+ <option name="myRootTask">
20
+ <RakeTaskImpl id="rake">
21
+ <subtasks>
22
+ <RakeTaskImpl description="Build partition_magic-0.1.0.gem into the pkg directory" fullCommand="build" id="build" />
23
+ <RakeTaskImpl id="build">
24
+ <subtasks>
25
+ <RakeTaskImpl description="Generate SHA512 checksum if partition_magic-0.1.0.gem into the checksums directory" fullCommand="build:checksum" id="checksum" />
26
+ </subtasks>
27
+ </RakeTaskImpl>
28
+ <RakeTaskImpl description="Remove any temporary products" fullCommand="clean" id="clean" />
29
+ <RakeTaskImpl description="Remove any generated files" fullCommand="clobber" id="clobber" />
30
+ <RakeTaskImpl description="Build and install partition_magic-0.1.0.gem into system gems" fullCommand="install" id="install" />
31
+ <RakeTaskImpl id="install">
32
+ <subtasks>
33
+ <RakeTaskImpl description="Build and install partition_magic-0.1.0.gem into system gems without network access" fullCommand="install:local" id="local" />
34
+ </subtasks>
35
+ </RakeTaskImpl>
36
+ <RakeTaskImpl description="Create tag v0.1.0 and build and push partition_magic-0.1.0.gem to https://github.com/codephilosopher/partition_magic" fullCommand="release[remote]" id="release[remote]" />
37
+ <RakeTaskImpl description="Run tests" fullCommand="test" id="test" />
38
+ <RakeTaskImpl description="" fullCommand="default" id="default" />
39
+ <RakeTaskImpl description="" fullCommand="release" id="release" />
40
+ <RakeTaskImpl id="release">
41
+ <subtasks>
42
+ <RakeTaskImpl description="" fullCommand="release:guard_clean" id="guard_clean" />
43
+ <RakeTaskImpl description="" fullCommand="release:rubygem_push" id="rubygem_push" />
44
+ <RakeTaskImpl description="" fullCommand="release:source_control_push" id="source_control_push" />
45
+ </subtasks>
46
+ </RakeTaskImpl>
47
+ </subtasks>
48
+ </RakeTaskImpl>
49
+ </option>
50
+ </component>
51
+ </module>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,3 @@
1
+ class Array
2
+ include PartitionMagic
3
+ end
@@ -0,0 +1,15 @@
1
+ module PartitionMagic
2
+ def partition_even_odd (&block)
3
+ even = []
4
+ odd = []
5
+ each do |n|
6
+ result = block.call(n)
7
+ if result == true
8
+ even << n
9
+ else
10
+ odd << n
11
+ end
12
+ end
13
+ [even, odd]
14
+ end
15
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PartitionMagic
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -10,14 +10,14 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = "A small Array partition library"
12
12
  spec.description = "A small Array partition library"
13
- # spec.homepage = "https://github.com/codephilosopher/partition_magic"
13
+ spec.homepage = "https://github.com/codephilosopher/partition_magic"
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = ">= 2.6.0"
16
16
 
17
17
  # spec.metadata["allowed_push_host"] = "https://github.com/codephilosopher/partition_magic"
18
18
 
19
19
  # spec.metadata["homepage_uri"] = spec.homepage
20
- # spec.metadata["source_code_uri"] = "https://github.com/codephilosopher/partition_magic"
20
+ spec.metadata["source_code_uri"] = "https://github.com/codephilosopher/partition_magic"
21
21
  # spec.metadata["changelog_uri"] = "https://github.com/codephilosopher/partition_magic"
22
22
 
23
23
  # Specify which files should be added to the gem when it is released.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: partition_magic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pradeek
@@ -17,18 +17,25 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - ".idea/.gitignore"
21
+ - ".idea/modules.xml"
22
+ - ".idea/partition_magic.iml"
23
+ - ".idea/vcs.xml"
20
24
  - CODE_OF_CONDUCT.md
21
25
  - LICENSE.txt
22
26
  - README.md
23
27
  - Rakefile
24
28
  - lib/partition_magic.rb
29
+ - lib/partition_magic/array.rb
30
+ - lib/partition_magic/partition_magic.rb
25
31
  - lib/partition_magic/version.rb
26
32
  - partition_magic.gemspec
27
33
  - sig/partition_magic.rbs
28
- homepage:
34
+ homepage: https://github.com/codephilosopher/partition_magic
29
35
  licenses:
30
36
  - MIT
31
- metadata: {}
37
+ metadata:
38
+ source_code_uri: https://github.com/codephilosopher/partition_magic
32
39
  post_install_message:
33
40
  rdoc_options: []
34
41
  require_paths: