rubyls 0.1.0 → 0.1.1

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
  SHA1:
3
- metadata.gz: 74ffb48d37cb378249e33382f14c17da486c20a0
4
- data.tar.gz: 6e222a1fbe9573b36636cf36cb626d309d5a1a89
3
+ metadata.gz: a4091cce60b24bf02ce5e3fe6da3c9112ee1c9bc
4
+ data.tar.gz: 68d767083dc19605610aac9a9705fb355eb66ce6
5
5
  SHA512:
6
- metadata.gz: 4f3417e09b0ce3fe77e52537d221a1b13fbcc0ae72109337d762cfecd54aae6ea39b1ac50cd52692dad3e3f4229845b99fd2260c90ad1d0e50e0a6ff62814cad
7
- data.tar.gz: d317daa9d605dcad6491e573e54424e672b127d4c4f9d3ff8a2b6bbf74e3f627a050e755d9ab0e9fc3008012a3e7abf11c21f971fcafdda7aaa7c833f922bfc4
6
+ metadata.gz: 75aa13d7650fd73b03a3cce3f1c3871da33ce099b9f605e71ecf1ffc3c093cd4fe7a844b17a66cc94b3c6391a871cebcb24a2c43b30c562a5dc0e126ecafe608
7
+ data.tar.gz: 24dd60603b448ea1f75ee3f46aa6eef968c5d7e79ef8d9200b2ce2bfdb99e31cd5cbbb722c7b77866942dbd840c37437af4e70531713f0aa341abdd217b95ac1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubyls (0.1.0)
4
+ rubyls (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module Rubyls
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/rubyls.rb CHANGED
@@ -3,7 +3,8 @@ require "rubyls/version"
3
3
  module Rubyls
4
4
  class Error < StandardError; end
5
5
 
6
- def self.ls(path)
6
+ def self.ls(path = '.')
7
+ path.nil?
7
8
  begin
8
9
  if RUBY_VERSION.to_f >= 2.5
9
10
  Dir.children(path).each do |c|
@@ -16,7 +17,7 @@ module Rubyls
16
17
  end
17
18
  puts
18
19
  rescue Errno::ENOENT
19
- puts "ls: #{ARGV[0]}: No such file or directory"
20
+ puts "ls: #{path}: No such file or directory"
20
21
  end
21
22
  end
22
23
  end
data/rubyls.gemspec CHANGED
@@ -13,6 +13,8 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/kazu-horie/rubyls.git"
14
14
  spec.license = "MIT"
15
15
 
16
+ spec.required_ruby_version = '>= 2.0.0'
17
+
16
18
  spec.metadata["homepage_uri"] = spec.homepage
17
19
  spec.metadata["source_code_uri"] = "https://github.com/kazu-horie/rubyls.git"
18
20
  spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuki Horie
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-27 00:00:00.000000000 Z
11
+ date: 2019-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  requirements:
91
91
  - - ">="
92
92
  - !ruby/object:Gem::Version
93
- version: '0'
93
+ version: 2.0.0
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - ">="