array_op_custom 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b3d18e41cbc2c5e0b9c17ad6679dbccb02f0dde60d527c85c66c5dd7bbc31b8
4
- data.tar.gz: 5282bf198ea394ba42922bbab1ff25b08749242e57ec83f9dfe4299edf334504
3
+ metadata.gz: 1f59e3cc47a40c3fa6d9c83a846cf59fcef08721d7526dc4d84b57091a7b1b6b
4
+ data.tar.gz: 5085aed34736ae893c2f92fe4c1a65d13052ccc4c9ec75350d25965e0833bb29
5
5
  SHA512:
6
- metadata.gz: 60ce0026ca4c45e25bec409ae6cee86cc1d593b88108addff4770fd27f69e7d3a4f6249381accc5d5c6ee1ab554deef80c9326cb8f2bf2d64c4f1b0df30d3c39
7
- data.tar.gz: 5e9699370a190d3d57a7bfc4a3cd9d1dde4193a0dbe03e093ccbbc04def50750fa5f891312a6e6ae412002e5140eeb4c3664bb52ff0565001744bb3752b2ffcb
6
+ metadata.gz: 20210e3b1ebb981780f760d3c664a1cdd887e4d8df0b4b433dd172410d54f6044308bd26e9170b9cca5740929f28fc3bde9441f6e6bb9134997f3549f5b8d205
7
+ data.tar.gz: fe8944f236f6cb593c561428ae8b844a9ea99f3c6371751e754659eecca87df14d536d4ca1af954353fc6f1250055f816e3bc2dd15effea8a35677bff015af00
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- array_op_custom (0.1.5)
4
+ array_op_custom (0.1.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -61,6 +61,20 @@ require 'array_op_custom'
61
61
  [1, 2, 3].to_h
62
62
  #=> {:"0"=>1, :"1"=>2, :"2"=>3}
63
63
  ```
64
+ You still can use "<<"
65
+ But you can't use push array "+".
66
+ You can use "==" instead of "+".
67
+ ```ruby
68
+ arr = [1, 2, 3]
69
+ p arr << 4
70
+ #=> [1, 2, 3, 4]
71
+ p arr
72
+ #=> [1, 2, 3, 4]
73
+ p arr == 5
74
+ #=> [1, 2, 3, 4, 5]
75
+ p arr
76
+ #=> [1, 2, 3, 4]
77
+ ```
64
78
  ## Development
65
79
 
66
80
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -39,6 +39,9 @@ class Array
39
39
  end
40
40
  end
41
41
  end
42
+ def ==(other)
43
+ return self.dup.push(other)
44
+ end
42
45
  def to_i
43
46
  self.map{|i| i.to_i}
44
47
  end
@@ -1,3 +1,3 @@
1
1
  module ArrayOpCustom
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: array_op_custom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - k-kyg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-16 00:00:00.000000000 Z
11
+ date: 2019-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler