rubyls 0.1.1 → 0.1.2

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: a4091cce60b24bf02ce5e3fe6da3c9112ee1c9bc
4
- data.tar.gz: 68d767083dc19605610aac9a9705fb355eb66ce6
3
+ metadata.gz: 3f77945fbbece2732870b17afeb8fae5403f777b
4
+ data.tar.gz: 01bfa6b7b70a6d00c6ce114fa932f4f0a49d19d3
5
5
  SHA512:
6
- metadata.gz: 75aa13d7650fd73b03a3cce3f1c3871da33ce099b9f605e71ecf1ffc3c093cd4fe7a844b17a66cc94b3c6391a871cebcb24a2c43b30c562a5dc0e126ecafe608
7
- data.tar.gz: 24dd60603b448ea1f75ee3f46aa6eef968c5d7e79ef8d9200b2ce2bfdb99e31cd5cbbb722c7b77866942dbd840c37437af4e70531713f0aa341abdd217b95ac1
6
+ metadata.gz: 88c751f650c65acee20bda1cabc2478dffa883040fbb27671dff8e44c79d5a2e9206499492766d70cf2423a0092c6cc43c54fdac6ffcc96263aa6ddb7316d669
7
+ data.tar.gz: 312462b912542f9f37b572ef41c37f114e1f80a135a1926be8894ba35c97e832c9267b3438d4034ba05f25e0fb1c80e441a73cf868ed83feb2e45e49c72a4178
data/CHANGELOG.md ADDED
@@ -0,0 +1 @@
1
+ # Changelog
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubyls (0.1.1)
4
+ rubyls (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/exe/rubyls CHANGED
@@ -2,4 +2,5 @@
2
2
 
3
3
  require 'rubyls'
4
4
 
5
- Rubyls.ls(ARGV[0])
5
+ path = ARGV[0] ? ARGV[0] : '.'
6
+ Rubyls.ls(path)
@@ -1,3 +1,3 @@
1
1
  module Rubyls
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/rubyls.rb CHANGED
@@ -3,19 +3,12 @@ require "rubyls/version"
3
3
  module Rubyls
4
4
  class Error < StandardError; end
5
5
 
6
- def self.ls(path = '.')
7
- path.nil?
6
+ def self.ls(path)
8
7
  begin
9
- if RUBY_VERSION.to_f >= 2.5
10
- Dir.children(path).each do |c|
11
- print "#{c}\t"
12
- end
13
- else
14
- Dir.entries(path)[2..-1].each do |c|
15
- print "#{c}\t"
16
- end
8
+ Dir.entries(path)[2..-1].each do |c|
9
+ print "#{c}\t"
17
10
  end
18
- puts
11
+ print "\n"
19
12
  rescue Errno::ENOENT
20
13
  puts "ls: #{path}: No such file or directory"
21
14
  end
data/rubyls.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
 
18
18
  spec.metadata["homepage_uri"] = spec.homepage
19
19
  spec.metadata["source_code_uri"] = "https://github.com/kazu-horie/rubyls.git"
20
- spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
20
+ spec.metadata["changelog_uri"] = "https://github.com/kazu-horie/rubyls/CHANGELOG.md"
21
21
 
22
22
  # Specify which files should be added to the gem when it is released.
23
23
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
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.1
4
+ version: 0.1.2
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-29 00:00:00.000000000 Z
11
+ date: 2019-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -63,6 +63,7 @@ files:
63
63
  - ".gitignore"
64
64
  - ".rspec"
65
65
  - ".travis.yml"
66
+ - CHANGELOG.md
66
67
  - CODE_OF_CONDUCT.md
67
68
  - Gemfile
68
69
  - Gemfile.lock
@@ -81,7 +82,7 @@ licenses:
81
82
  metadata:
82
83
  homepage_uri: https://github.com/kazu-horie/rubyls.git
83
84
  source_code_uri: https://github.com/kazu-horie/rubyls.git
84
- changelog_uri: 'TODO: Put your gem''s CHANGELOG.md URL here.'
85
+ changelog_uri: https://github.com/kazu-horie/rubyls/CHANGELOG.md
85
86
  post_install_message:
86
87
  rdoc_options: []
87
88
  require_paths: