Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat-Ruby: add crc32, sha1, and md5 function #54

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

iqbaleff214
Copy link
Contributor

@iqbaleff214 iqbaleff214 commented Oct 3, 2022

Issue: #3

  • crc32
  • sha1
  • sha1_file
  • md5
  • md5_file

@codecov
Copy link

codecov bot commented Oct 3, 2022

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (201c4f3) compared to base (8bf0814).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##            master       #54    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           29        17    -12     
  Lines          305       135   -170     
  Branches         4         0     -4     
==========================================
- Hits           305       135   -170     
Flag Coverage Δ
clojure ?
csharp ?
go ?
typescript ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
go/bin_2_hex.go
clojure/src/pehape/string/implode.clj
go/implode.go
go/ucwords.go
csharp/Pehape/String/Levenshtein.cs
csharp/Pehape/String/StrRot13.cs
clojure/src/pehape/string/explode.clj
csharp/Pehape/String/Implode.cs
go/hex_2_bin.go
csharp/Pehape/String/Explode.cs
... and 12 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@aldy505 aldy505 requested a review from elianiva October 6, 2022 10:41
Copy link
Member

@aldy505 aldy505 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a few notes. but it would be nice if there is documentation for each functions.


module Pehape
def self.sha1_file(filename, binary=nil)
return false unless File.exist?(filename.to_s)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kalo di php emang dia return false kalo filenya ngga exist?


module Pehape
def self.md5_file(filename, binary=nil)
return false unless File.exist?(filename.to_s)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kalo di php emang dia return false kalo file ngga exists?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants