Skip to content

Commit

Permalink
v2.2.3 (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninoseki authored Mar 3, 2024
1 parent 3362160 commit d561dbd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions lib/miteru/kit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ def filesize
def filename_with_size
return filename unless filesize

kb = (filesize.to_f / 1024.0).ceil
"#{filename}(#{kb}KB)"
"#{filename} (#{filesize.kilobytes}KB)"
end

def id
Expand Down
2 changes: 1 addition & 1 deletion lib/miteru/notifiers/slack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def call(kit)
return unless callable?

attachment = SlackAttachment.new(kit.url)
notifier.post(text: kit.basename, attachments: attachment.to_a)
notifier.post(text: kit.filename_with_size, attachments: attachment.to_a)
end

def callable?
Expand Down
2 changes: 1 addition & 1 deletion lib/miteru/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Miteru
VERSION = "2.2.2"
VERSION = "2.2.3"
end
12 changes: 6 additions & 6 deletions miteru.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "standard", "~> 1.34"
spec.add_development_dependency "test-prof", "~> 1.3"
spec.add_development_dependency "vcr", "~> 6.2"
spec.add_development_dependency "webmock", "~> 3.20"
spec.add_development_dependency "webmock", "~> 3.23"

spec.add_dependency "activerecord", "7.1.3"
spec.add_dependency "activerecord", "7.1.3.2"
spec.add_dependency "addressable", "2.8.6"
spec.add_dependency "anyway_config", "2.6.3"
spec.add_dependency "colorize", "1.1.0"
spec.add_dependency "dotenv", "3.0.0"
spec.add_dependency "dotenv", "3.1.0"
spec.add_dependency "down", "5.4.1"
spec.add_dependency "dry-files", "1.1.0"
spec.add_dependency "dry-monads", "1.6.0"
Expand All @@ -52,17 +52,17 @@ Gem::Specification.new do |spec|
spec.add_dependency "oga", "3.4"
spec.add_dependency "parallel", "1.24.0"
spec.add_dependency "puma", "6.4.2"
spec.add_dependency "rack", "3.0.9"
spec.add_dependency "rack", "3.0.9.1"
spec.add_dependency "rack-session", "2.0.0"
spec.add_dependency "rackup", "2.1.0"
spec.add_dependency "redis", "5.1.0"
spec.add_dependency "semantic_logger", "4.15.0"
spec.add_dependency "sentry-ruby", "5.16.1"
spec.add_dependency "sentry-sidekiq", "5.16.1"
spec.add_dependency "sidekiq", "7.2.1"
spec.add_dependency "sidekiq", "7.2.2"
spec.add_dependency "slack-notifier", "2.4.0"
spec.add_dependency "sqlite3", "1.7.2"
spec.add_dependency "thor", "1.3.0"
spec.add_dependency "thor", "1.3.1"
spec.add_dependency "thor-hollaback", "0.2.1"
spec.add_dependency "uuidtools", "2.2.0"
end

0 comments on commit d561dbd

Please sign in to comment.