muflax 0.3.6 → 0.3.7

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: a86be748e1cdf9b92af704f049b4d6b6968c1a3a076d9ad78ed91735cecc47eb
4
- data.tar.gz: 483fc69cd19f6a15248c958c6759b9b6bad1355d41b480b44c152f5b5f028bb9
3
+ metadata.gz: 33c2923bddef081b7a10ba425447a94169743a00efa4c87c72a55b71a546694c
4
+ data.tar.gz: 46ee933a00fbdfdc718906230aff9c936de2e2706f636019c4eb0e76333883b7
5
5
  SHA512:
6
- metadata.gz: '0787c96e7d01669da6b5ae188965d85c1f802e7cf12b78d3925891afbb0a7d73e2376f7aefe0b468b3a29651c54f208a946a558d9805fe150dfcfd388981a3e3'
7
- data.tar.gz: d0cd56ce2978c4b9034d877f7ac281ae96960d7c027f98a567f050de351257615a42099896ab11e2a1700783c847b82d4ab52bf2e4ba78db0397d9e498a9082b
6
+ metadata.gz: 2ff1f83a49318abd5d9be08848c71fdc63966099d95d6f05d3a36b6740190b5ec2f9b4480a38420eef4ffaea5c257bb18a61a6db3ef0aa7f976338ff6dbff271
7
+ data.tar.gz: 202171cf5ae49ef83569698450831bffe9f1e3299aec5cd96523f8677d47a1b659d0759d5db65466e57f7d151ca1d73afde3c7380a429987cfa92ff95e4dcd57
checksums.yaml.gz.sig CHANGED
Binary file
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- muflax (0.3.6)
4
+ muflax (0.3.7)
5
5
  awesome_print (~> 1)
6
6
  debug_inspector (~> 0.0)
7
7
  highline (~> 1.6)
data/lib/muflax/array.rb CHANGED
@@ -16,8 +16,13 @@ class Array
16
16
  end
17
17
 
18
18
  # silly accessors
19
- def second ; self[1] ; end
20
- def third ; self[2] ; end
21
- def fourth ; self[3] ; end
22
- def fifth ; self[4] ; end
19
+ def second ; self[1] ; end
20
+ def third ; self[2] ; end
21
+ def fourth ; self[3] ; end
22
+ def fifth ; self[4] ; end
23
+
24
+ def rfind *arg, &block
25
+ i = self.rindex(*arg, block)
26
+ i.nil? ? nil : self[i]
27
+ end
23
28
  end
@@ -46,6 +46,10 @@ module Enumerable
46
46
  def count_by &block
47
47
  self.histogram(&block).sort_by(&:second).to_h
48
48
  end
49
+
50
+ def rfind *arg, &block
51
+ self.reverse.find(*arg, block)
52
+ end
49
53
  end
50
54
 
51
55
  class Object
data/lib/muflax/string.rb CHANGED
@@ -62,4 +62,8 @@ class String
62
62
  def indent amount, indent_string = nil, indent_empty_lines = false
63
63
  dup.tap { |_| _.indent!(amount, indent_string, indent_empty_lines) }
64
64
  end
65
+
66
+ def color name
67
+ HighLine.color(self, name)
68
+ end
65
69
  end
data/muflax.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "muflax"
3
- s.version = "0.3.6"
3
+ s.version = "0.3.7"
4
4
 
5
5
  s.authors = ["muflax"]
6
6
  s.summary = "muflax standard library"
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muflax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - muflax
@@ -28,7 +28,7 @@ cert_chain:
28
28
  9xjevPGDZ+8y8wc8/mXBPK1pTaBh2oi8947HaTq8EadxezFs2Je+oSnMbygfo/a7
29
29
  0rbAHpJPtzql3a4+gjK54qkJUWSUjWuLMHFIHhMt1laowNJUio6ASGx8tfzgLLnZ
30
30
  -----END CERTIFICATE-----
31
- date: 2018-01-09 00:00:00.000000000 Z
31
+ date: 2018-01-15 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: awesome_print
metadata.gz.sig CHANGED
Binary file