rudash 4.0.3 → 4.1.0

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: cb9e62ed94db7df6ae03fba6f953bfb132414322c865c80e473f31bafa25da61
4
- data.tar.gz: 564265736e1870141ab4dd6b475b46cba971b5420ba8e3db0da6c0e31daba432
3
+ metadata.gz: 9e1a3756c5c0da2f62b41c21db89066c281e113aa3d5d5912a9cc681b3ce76b5
4
+ data.tar.gz: 2fce4770db4a43a545e1e4ff972d42861922ab89b3d49bc986e5a076f57b4a02
5
5
  SHA512:
6
- metadata.gz: e6fb840dcc5823d039bc55a2cac97174eb88ec96523f42c84d33fa52f399f1b96bbd89c421aaf631d1ae0d3991df4c57196ce6ade08e365acaa7183bd7d1faab
7
- data.tar.gz: 267e7c43d1062835ae666b5b569737d6f5b3f8b5a1d9ae619d76004e94cbddbff628ccacab61f0d55283e1c45b4f0921a0210efaadbc45894abedb2f0be9df44
6
+ metadata.gz: c4983d6e92e35ebd46955e8dcbc77c3ce0fc56f6407d176bfb8a00a6a4c63ac5f607520798d06cd1af3834ec754fba001c5e0f4797d248b398676da8b92d4bcb
7
+ data.tar.gz: 4a772ab232c51fcbf8c0656265c973598da22a9213adda6d361def5e32e0ae3aac9c98242d52d74c30a3f82defab8157e5d67e7d8d430b4a239ce766fe65b1f6
@@ -0,0 +1,15 @@
1
+ module Rudash
2
+ module Default
3
+ def ends_with?(str, *rest_args)
4
+ case str
5
+ when String
6
+ suffix = self.head(rest_args)
7
+ return false if suffix.nil?
8
+
9
+ str.end_with?(suffix.to_s)
10
+ else
11
+ false
12
+ end
13
+ end
14
+ end
15
+ end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rudash
2
- VERSION = '4.0.3'.freeze
2
+ VERSION = '4.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rudash
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.3
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Islam Attrash
@@ -29,6 +29,7 @@ files:
29
29
  - lib/rudash/each.rb
30
30
  - lib/rudash/each_right.rb
31
31
  - lib/rudash/empty.rb
32
+ - lib/rudash/ends_with.rb
32
33
  - lib/rudash/eq.rb
33
34
  - lib/rudash/equal.rb
34
35
  - lib/rudash/every.rb