Skip to content

Commit

Permalink
dir-and-self
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianmariecom committed Jul 11, 2024
1 parent 5666f74 commit 4fd71d7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
dorian-dir (0.4.1)
dorian-dir-and-self (0.1.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -92,7 +92,7 @@ PLATFORMS
ruby

DEPENDENCIES
dorian-dir!
dorian-dir-and-self!
rspec
rubocop-rails-omakase

Expand Down
2 changes: 2 additions & 0 deletions bin/dir → bin/dir-and-self
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ end

PATHS = ARGV.any? ? ARGV : ["."]

puts PATHS

PATHS.each do |path|
puts(
Dir
Expand Down
15 changes: 15 additions & 0 deletions dorian-dir-and-self.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# frozen_string_literal: true

Gem::Specification.new do |s|
s.name = "dorian-dir-and-self"
s.version = "0.1.0"
s.summary = "List directories and self"
s.description = "#{s.summary}\n\ne.g. `dir-and-self`"
s.authors = ["Dorian Marié"]
s.email = "dorian@dorianmarie.com"
s.files = ["bin/dir-and-self"]
s.executables << "dir-and-self"
s.homepage = "https://github.com/dorianmariecom/dorian-dir-and-self"
s.license = "MIT"
s.metadata = { "rubygems_mfa_required" => "true" }
end
15 changes: 0 additions & 15 deletions dorian-dir.gemspec

This file was deleted.

3 changes: 2 additions & 1 deletion spec/dir_spec.rb → spec/dir_and_self_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
`mkdir -p nested/dir/ectory bin spec`
`touch a.rb a.js nested/file`

expect(`#{pwd}/bin/dir`).to eq(<<~OUTPUT)
expect(`#{pwd}/bin/dir-and-self`).to eq(<<~OUTPUT)
.
bin
nested
spec
Expand Down

0 comments on commit 4fd71d7

Please sign in to comment.