Skip to content

Commit

Permalink
Merge pull request #6 from v-kolesnikov/ci
Browse files Browse the repository at this point in the history
Fix CI: add .ci.gemfile
  • Loading branch information
v-kolesnikov committed Jul 4, 2023
2 parents 8206b8d + 61e355b commit c6f93b6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ permissions:
jobs:
tests:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
Expand Down
1 change: 0 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)
Expand Down
4 changes: 2 additions & 2 deletions lib/uuid_v6/sequence.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ def call(uuid = uuid_v1.generate)
tlo2 = uh[5...8]
tmid = uh[8...12]
thig = uh[13...16]
rest = uh[16...]
rest = uh[16..-1]
uh6 = thig + tmid + tlo1 + '6' + tlo2 + rest
to_uuid(uh6)
end

private

def to_uuid(str)
[str[0..7], str[8..11], str[12..15], str[16..19], str[20..]].join('-')
[str[0..7], str[8..11], str[12..15], str[16..19], str[20..-1]].join('-')
end
end
end
3 changes: 2 additions & 1 deletion uuid_v6.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "lib/uuid_v6/version"
require File.expand_path("../lib/uuid_v6/version", __FILE__)

Gem::Specification.new do |spec|
spec.name = "uuid_v6"
Expand All @@ -17,4 +17,5 @@ Gem::Specification.new do |spec|

spec.add_dependency 'uuid'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'rake'
end

0 comments on commit c6f93b6

Please sign in to comment.