rudash 4.0.1 → 4.1.2

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: 9b9c81eefdb82840278c02efea6cd5fb106509c3b5f9a072f20e06065e1c9c8a
4
- data.tar.gz: f4ee7859ee4bae9cc11ccc9056a95ef1c339ce669c80a09796ec4e48908e72e4
3
+ metadata.gz: 892fe97b5610a09bbc03c17dc98b5f3aa1c55a83d23cb7903160bdcf4f8626c3
4
+ data.tar.gz: c25c4d57a7e6d97054a5026d4c5a0b795cef6bb43b03ad3b681bb6f75abea6cc
5
5
  SHA512:
6
- metadata.gz: e50385899f086be790cecab751741867200d0f6ccda8f8ccef0b7e437f7859337d5cc1d4dc943e6ebfc7ab3b4f6cea771edce30b94e6d1ed7dbddd9564712bda
7
- data.tar.gz: d663147aad11bbb4d53c56ca57ed414d9bcf34435c420874aca88e777f0b2dc34937e2a32aba647154569b9c3ac180faf096d06e89aa1dd6e0ae4062dcd34524
6
+ metadata.gz: b9a0b834569963e0c8f29cf1d08890f2b553c8c044d8c52810755fb81721aa33e2fec031c33024b62566cfbf2ab71c82281ffa96c732a069afee1c8a602ceec7
7
+ data.tar.gz: 8f6ccf5a7e181e23f088abac025645e8ad987b7ec14b2f3a1ab58a9e7e2423888946d4dfa0e6ac1f0ede2fa2a317a81364a52c6f13872918d32bd4bc4bdbbf72
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Rudash
2
- VERSION = '4.0.1'.freeze
2
+ VERSION = '4.1.2'.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.1
4
+ version: 4.1.2
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
@@ -99,8 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
100
  - !ruby/object:Gem::Version
100
101
  version: '0'
101
102
  requirements: []
102
- rubyforge_project:
103
- rubygems_version: 2.7.7
103
+ rubygems_version: 3.0.8
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Rudash - Lodash for Ruby Apps