numerictth2 0.1.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcfaf5633dca2fd19bcaeb7834d3242a2518c9aef8a4d2306ce79878951ea4ce
4
- data.tar.gz: 146529a4dbc4e5a49444bff2cd8b48c06f142f5869bde2a433fcf1e3068a4638
3
+ metadata.gz: ad91370edee12dcbc9e647994da75f2c7a9d1c7a3bc4e4e6cfe909c0d3f82a84
4
+ data.tar.gz: 88b2f76029d69dc8c60f4e4453e914f588eddb12343ab6f080176ddb4db9be1d
5
5
  SHA512:
6
- metadata.gz: b3083558c9fe5aaec6558c96f3a246de785b75e554c1af2dc94b2e07b1461223e7ed9a5bddb57c85da90c2878cb3b6b4efd8d4d63c1f68c10aed6073d539f66d
7
- data.tar.gz: 9113f48a9094acefe5fc0f008262bf78b21335f33cc564cfcc2899040dc5fd8a0f2ad836e02f2d0061d774feb7fb72ec2f32fcea278732b51b90cb4348e5336a
6
+ metadata.gz: ea0a96cfc3a31bf5790f21bbea6f7b446a20acbdc7318c5e0fd179afa054eb329af96e8c718727bb3ee561b5f71b5d702d09969916a0ee0f3255da9d61fadebc
7
+ data.tar.gz: 40c29d0ba784907c4ec337acfaec08b2f219cb9d8f0b84abe8b8ff230bb25f68b13a5746467409f11c488106dda945618ccc1782a57c89ab1811e5c78dd74abf
data/README.md CHANGED
@@ -3,7 +3,11 @@
3
3
  # gem install bundler
4
4
  # gem install rails
5
5
  # bundle gem isim
6
- # gem build h2o.gemspec
6
+ # gem build numerictth2.gemspec
7
+ # gem install numerictth2-0.1.0.gem
8
+ # gem push numerictth2-0.1.1.gem
9
+ # irb >> require 'numerictth2' >>> include Numerictth2
10
+ # 'test'.numerictth2(10,'-')
7
11
  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/numerictth2`. To experiment with that code, run `bin/console` for an interactive prompt.
8
12
 
9
13
  TODO: Delete this and the text above, and describe your gem
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Numerictth2
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
data/lib/numerictth2.rb CHANGED
@@ -11,3 +11,11 @@ end
11
11
  class String
12
12
  include Numerictth2
13
13
  end
14
+
15
+ class Array
16
+ def split_by_partiy
17
+ partition(&:even?)
18
+ end
19
+ end
20
+
21
+ #even, odd = [1,2,3,4,6,7].split_by_partiy // even // odd
data/numerictth2.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ["sadikizgi@gmail.com"]
10
10
 
11
11
  spec.summary = "numeric"
12
- spec.description = "numeric someting"
12
+ spec.description = "Edit the contents in the array"
13
13
  spec.homepage = "https://rubygems.org/"
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: numerictth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - sadikizgi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-04 00:00:00.000000000 Z
11
+ date: 2023-09-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: numeric someting
13
+ description: Edit the contents in the array
14
14
  email:
15
15
  - sadikizgi@gmail.com
16
16
  executables: []