trash 0.2.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c569fe2513ff956c4f27f7e49d14175551b1ed4e09b84592fce39ae371927829
4
+ data.tar.gz: 03c6f4550193716c5b4b43ae8d0baaece5a4e4cf86ec014c428d3e90784b6a83
5
+ SHA512:
6
+ metadata.gz: 434b0d0f77a28c1ace6637cea8bd1494e20a9c2dedde307ca0fdc612d34ec79053c41751ac65e105dcda3b109e43d5cf85a9b89fb7c7dd396f4eb76c5bd9a0b2
7
+ data.tar.gz: 0503f43edcf3d9cca36d1343a474f5e355cbbcfee3963eea5ad0ef21d91e8565714f7cc090bad1d95873bedca4779eede398e3d2017e0fdb37385a5899a559e7
data/.document CHANGED
@@ -1,5 +1,4 @@
1
1
  README.rdoc
2
2
  lib/**/*.rb
3
3
  bin/*
4
- features/**/*.feature
5
4
  LICENSE
data/Gemfile CHANGED
@@ -1,3 +1,12 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
2
5
 
3
- gemspec
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "rspec", "~> 3.12.0"
10
+ gem "rake", "~> 13.0.6"
11
+ gem "rdoc", "~> 6.5.0"
12
+ end
data/README.rdoc CHANGED
@@ -11,13 +11,13 @@ From the command line:
11
11
  # example:
12
12
  trash potentially-important-file.txt
13
13
  trash this-folder that-folder some-random-file.txt
14
-
14
+
15
15
  Handles multiple files with the same name
16
16
 
17
17
  trash ~/Documents/Groceries/shopping-list.txt
18
18
  trash ~/Documents/Christmas/shopping-list.txt
19
19
  trash ~/Documents/AutoParts/shopping-list.txt
20
-
20
+
21
21
  The trash will contain:
22
22
  * shopping-list.txt # originally ~/Documents/Groceries/shopping-list.txt
23
23
  * shopping-list01.txt # originally ~/Documents/Christmas/shopping-list.txt
@@ -32,9 +32,10 @@ You will find the files that you've trashed in ~/.Trash
32
32
  == Contributors
33
33
 
34
34
  * ericmathison[https://github.com/ericmathison] (Eric Mathison)
35
+ * brian-davis[https://github.com/brian-davis] (Brian Davis)
35
36
 
36
37
  == Note on Patches/Pull Requests
37
-
38
+
38
39
  * Fork the project.
39
40
  * Make your feature addition or bug fix.
40
41
  * Add tests for it. This is important so I don't break it in a
@@ -43,6 +44,17 @@ You will find the files that you've trashed in ~/.Trash
43
44
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
44
45
  * Send me a pull request. Bonus points for topic branches.
45
46
 
47
+ == Releasing a new version
48
+
49
+ * Start a Docker container: `docker run --rm -it --volume=$PWD:/app --workdir /app ruby:2.7 bash`
50
+ * Install dependencies: `bundle install`
51
+ * Bump the version in the `VERSION` file.
52
+ * Build the gem: `gem build trash.gemspec`.
53
+ * Check that it's valid by installing it locally: `gem install ./trash-X.Y.Z.gem`.
54
+ * Commit the changes in Git.
55
+ * Tag it: `git tag vX.Y.Z && git push origin vX.Y.Z`.
56
+ * Publish it: `GEM_HOST_API_KEY=TODO gem push trash-X.Y.Z.gem`. (requires RubyGems >= 3.0.5 to use the ENV var)
57
+
46
58
  == Copyright
47
59
 
48
60
  Copyright (c) 2010 Lee Jones. See LICENSE for details.
data/Rakefile CHANGED
@@ -1,42 +1,30 @@
1
- require 'rubygems'
2
- require 'rake'
1
+ # encoding: utf-8
3
2
 
3
+ require 'rubygems'
4
+ require 'bundler'
4
5
  begin
5
- require 'jeweler'
6
- Jeweler::Tasks.new do |gem|
7
- gem.name = "trash"
8
- gem.summary = %Q{trash can for the command line}
9
- gem.description = %Q{when it's hard to say goodbye, and rm is just too much... use trash instead.}
10
- gem.email = "scribblethink@gmail.com"
11
- gem.homepage = "http://github.com/leejones/trash"
12
- gem.authors = ["Lee Jones"]
13
- gem.add_development_dependency "rspec", "~> 1.2.9"
14
- gem.add_development_dependency "rake", "~> 0.8.7"
15
- gem.add_development_dependency "jeweler", "~> 1.4.0"
16
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
- end
18
- Jeweler::GemcutterTasks.new
19
- rescue LoadError
20
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
21
11
  end
12
+ require 'rake'
22
13
 
23
- require 'spec/rake/spectask'
24
- Spec::Rake::SpecTask.new(:spec) do |spec|
25
- spec.libs << 'lib' << 'spec'
26
- spec.spec_files = FileList['spec/**/*_spec.rb']
14
+ require 'rspec/core/rake_task'
15
+ RSpec::Core::RakeTask.new(:spec) do |spec|
16
+ spec.pattern = 'spec/**/*_spec.rb'
27
17
  end
28
18
 
29
- Spec::Rake::SpecTask.new(:rcov) do |spec|
30
- spec.libs << 'lib' << 'spec'
19
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
31
20
  spec.pattern = 'spec/**/*_spec.rb'
32
21
  spec.rcov = true
33
22
  end
34
23
 
35
- task :spec => :check_dependencies
36
24
  task :default => :spec
37
25
 
38
- require 'rake/rdoctask'
39
- Rake::RDocTask.new do |rdoc|
26
+ require 'rdoc/task'
27
+ RDoc::Task.new do |rdoc|
40
28
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
41
29
 
42
30
  rdoc.rdoc_dir = 'rdoc'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.3.0
data/lib/trash.rb CHANGED
@@ -3,60 +3,63 @@ require 'fileutils'
3
3
  class Trash
4
4
  attr_reader :errors
5
5
  attr_accessor :trash_can
6
-
7
- def initialize(options = {})
8
- @trash_can = options[:trash_can].nil? ? "#{ENV['HOME']}/.Trash" : options[:trash_can]
6
+ def initialize(options = {:trash_can => File.join(ENV['HOME'], ".Trash")})
7
+ @trash_can = options[:trash_can]
9
8
  create_trash_can_if_absent
10
9
  @errors = []
11
10
  end
12
11
 
13
12
  def has_trash_can?
14
- File.directory? @trash_can
13
+ File.directory? @trash_can
15
14
  end
16
-
15
+
17
16
  def throw_out(*paths)
18
17
  paths.each do |path|
19
18
  path = File.expand_path(path)
20
19
  if File.exist? path
21
- FileUtils.mv(path, "#{@trash_can}/#{unique_file_name(path)}")
20
+ FileUtils.mv(path, File.join(@trash_can, unique_file_name(path)))
22
21
  else
23
22
  add_error "#{path} does not exist. Please check the file path."
24
23
  return 1
25
24
  end
26
25
  end
27
-
26
+
28
27
  return 0
29
28
  end
30
-
29
+
31
30
  def add_error(error)
32
31
  @errors << error
33
32
  end
34
-
33
+
35
34
  private
36
-
35
+
37
36
  def create_trash_can_if_absent
38
37
  FileUtils.mkdir_p(@trash_can) unless has_trash_can?
39
38
  end
40
-
39
+
41
40
  def unique_file_name(path)
42
- file_name = File.split(path).last
41
+ file_name = File.basename(path)
43
42
  file_extension = File.extname(path)
43
+ file_name_without_extension = File.basename(path, ".*")
44
44
 
45
- return file_name unless File.exists?("#{@trash_can}/#{file_name}")
45
+ return file_name unless file_in_trash?(file_name)
46
46
 
47
47
  if File.directory? path
48
48
  unique_file_name_finder { |c| "#{file_name}#{"%02d" % c}" }
49
49
  else
50
- unique_file_name_finder { |c| "#{file_name.gsub(file_extension, "#{"%02d" % c}#{file_extension}")}" }
50
+ unique_file_name_finder { |c| "#{file_name_without_extension}#{"%02d" % c}#{file_extension}" }
51
51
  end
52
52
  end
53
-
53
+
54
54
  def unique_file_name_finder
55
55
  count = 1
56
- while File.exists?("#{@trash_can}/#{yield(count)}")
56
+ while file_in_trash?(yield(count))
57
57
  count += 1
58
58
  end
59
59
  return yield(count)
60
60
  end
61
61
 
62
- end
62
+ def file_in_trash?(name)
63
+ File.exist?(File.join(@trash_can, name))
64
+ end
65
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,9 +1,6 @@
1
- $LOAD_PATH.unshift(File.dirname(__FILE__))
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
1
  require 'trash'
4
- require 'spec'
5
- require 'spec/autorun'
2
+ require 'rspec/autorun'
6
3
 
7
- Spec::Runner.configure do |config|
8
-
4
+ RSpec.configure do |config|
5
+ config.order = "random"
9
6
  end
data/spec/trash_spec.rb CHANGED
@@ -2,15 +2,15 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe "Trash" do
4
4
  def delete(file)
5
- `if [ -e #{file} ]; then rm -rf #{file}; fi;`
5
+ FileUtils.rm_rf(file)
6
6
  end
7
7
 
8
8
  def delete_from_trash(file)
9
- delete("#{ENV['HOME']}/.Trash/#{file}")
9
+ delete("#{trash_dir}/#{file}")
10
10
  end
11
11
 
12
12
  def trash_should_contain(file_name)
13
- File.exist?("#{ENV['HOME']}/.Trash/#{file_name}").should == true
13
+ File.exist?("#{trash_dir}/#{file_name}").should == true
14
14
  end
15
15
 
16
16
  def trash_should_contain_directory(directory_name)
@@ -22,6 +22,10 @@ describe "Trash" do
22
22
  File.exist?("/tmp/#{file_name}").should == false
23
23
  end
24
24
 
25
+ def trash_dir
26
+ "#{ENV['HOME']}/.Trash"
27
+ end
28
+
25
29
  it "moves a file to the trash" do
26
30
  `echo 'default text' > /tmp/testing.txt`
27
31
  Trash.new.throw_out("/tmp/testing.txt")
@@ -55,29 +59,29 @@ describe "Trash" do
55
59
  Trash.new.throw_out("/tmp/testing.txt")
56
60
  tmp_should_not_contain "testing.txt"
57
61
  trash_should_contain "testing.txt"
58
- original = File.new("#{ENV['HOME']}/.Trash/testing.txt", "r")
59
- original.read.should == "default text\n"
62
+ File.read("#{trash_dir}/testing.txt").should ==
63
+ "default text\n"
60
64
 
61
65
  `echo 'testing different file with same name' > /tmp/testing.txt`
62
66
  Trash.new.throw_out("/tmp/testing.txt")
63
67
  tmp_should_not_contain "testing.txt"
64
68
  trash_should_contain "testing01.txt"
65
- third = File.new("#{ENV['HOME']}/.Trash/testing01.txt", "r")
66
- third.read.should == "testing different file with same name\n"
69
+ File.read("#{trash_dir}/testing01.txt").should ==
70
+ "testing different file with same name\n"
67
71
 
68
72
  `echo 'testing different file 2 with same name' > /tmp/testing.txt`
69
73
  Trash.new.throw_out("/tmp/testing.txt")
70
74
  tmp_should_not_contain "testing.txt"
71
75
  trash_should_contain "testing02.txt"
72
- fourth = File.new("#{ENV['HOME']}/.Trash/testing02.txt", "r")
73
- fourth.read.should == "testing different file 2 with same name\n"
76
+ File.read("#{trash_dir}/testing02.txt").should ==
77
+ "testing different file 2 with same name\n"
74
78
 
75
79
  `echo 'testing different file 3 with same name' > /tmp/testing.txt`
76
80
  Trash.new.throw_out("/tmp/testing.txt")
77
81
  tmp_should_not_contain "testing.txt"
78
82
  trash_should_contain "testing03.txt"
79
- fifth = File.new("#{ENV['HOME']}/.Trash/testing03.txt", "r")
80
- fifth.read.should == "testing different file 3 with same name\n"
83
+ File.read("#{trash_dir}/testing03.txt").should ==
84
+ "testing different file 3 with same name\n"
81
85
 
82
86
  delete_from_trash "testing.txt"
83
87
  delete_from_trash "testing01.txt"
@@ -85,6 +89,23 @@ describe "Trash" do
85
89
  delete_from_trash "testing03.txt"
86
90
  end
87
91
 
92
+ it 'appends a number to duplicate filename even when it has no extension' do
93
+ text1 = "text content"
94
+ text2 = "different content"
95
+ `echo '#{text1}' > /tmp/testing`
96
+ Trash.new.throw_out("/tmp/testing")
97
+ `echo '#{text2}' > /tmp/testing`
98
+ Trash.new.throw_out("/tmp/testing")
99
+
100
+ trash_should_contain "testing"
101
+ File.read("#{trash_dir}/testing").should == "#{text1}\n"
102
+ trash_should_contain "testing01"
103
+ File.read("#{trash_dir}/testing01").should == "#{text2}\n"
104
+
105
+ delete_from_trash "testing"
106
+ delete_from_trash "testing01"
107
+ end
108
+
88
109
  it "should throw an error when file does not exist" do
89
110
  tmp_should_not_contain "not_a_file.txt"
90
111
  trash = Trash.new
@@ -93,7 +114,7 @@ describe "Trash" do
93
114
  end
94
115
 
95
116
  it "moves a directory to the trash" do
96
- dir = `mkdir -p /tmp/testdir01`
117
+ FileUtils.mkdir_p("/tmp/testdir01")
97
118
  Trash.new.throw_out("/tmp/testdir01")
98
119
  tmp_should_not_contain "testdir01"
99
120
  trash_should_contain_directory "testdir01"
@@ -101,7 +122,7 @@ describe "Trash" do
101
122
  end
102
123
 
103
124
  it "moves multiple directories to the trash" do
104
- dirs = `mkdir -p /tmp/testdir01 /tmp/testdir02`
125
+ FileUtils.mkdir_p %w(/tmp/testdir01 /tmp/testdir02)
105
126
  Trash.new.throw_out(*["/tmp/testdir01", "/tmp/testdir02"])
106
127
  tmp_should_not_contain "testdir01"
107
128
  tmp_should_not_contain "testdir02"
@@ -112,12 +133,12 @@ describe "Trash" do
112
133
  end
113
134
 
114
135
  it "handles dots in a directory name" do
115
- `mkdir -p /tmp/testdir.2010`
136
+ FileUtils.mkdir_p("/tmp/testdir.2010")
116
137
  Trash.new.throw_out("/tmp/testdir.2010")
117
138
  tmp_should_not_contain "testdir.2010"
118
139
  trash_should_contain_directory "testdir.2010"
119
140
 
120
- `mkdir -p /tmp/testdir.2010`
141
+ FileUtils.mkdir_p("/tmp/testdir.2010")
121
142
  Trash.new.throw_out("/tmp/testdir.2010")
122
143
  tmp_should_not_contain "testdir.2010"
123
144
  trash_should_contain_directory "testdir.201001"
@@ -128,22 +149,22 @@ describe "Trash" do
128
149
 
129
150
 
130
151
  it "appends a number to the directory name if a directory with same name already exisits in trash" do
131
- `mkdir -p /tmp/testing`
152
+ FileUtils.mkdir_p("/tmp/testing")
132
153
  Trash.new.throw_out("/tmp/testing")
133
154
  tmp_should_not_contain "testing"
134
155
  trash_should_contain_directory "testing"
135
156
 
136
- `mkdir -p /tmp/testing`
157
+ FileUtils.mkdir_p("/tmp/testing")
137
158
  Trash.new.throw_out("/tmp/testing")
138
159
  tmp_should_not_contain "testing"
139
160
  trash_should_contain_directory "testing01"
140
161
 
141
- `mkdir -p /tmp/testing`
162
+ FileUtils.mkdir_p("/tmp/testing")
142
163
  Trash.new.throw_out("/tmp/testing")
143
164
  tmp_should_not_contain "testing"
144
165
  trash_should_contain_directory "testing02"
145
166
 
146
- `mkdir -p /tmp/testing`
167
+ FileUtils.mkdir_p("/tmp/testing")
147
168
  Trash.new.throw_out("/tmp/testing")
148
169
  tmp_should_not_contain "testing"
149
170
  trash_should_contain_directory "testing03"
@@ -156,7 +177,7 @@ describe "Trash" do
156
177
 
157
178
  describe "trash_can" do
158
179
  it "finds the trash can" do
159
- FileUtils.mkdir_p "#{ENV['HOME']}/.Trash"
180
+ FileUtils.mkdir_p trash_dir
160
181
  Trash.new.has_trash_can?.should == true
161
182
  end
162
183
 
data/trash.gemspec CHANGED
@@ -1,67 +1,33 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
- # -*- encoding: utf-8 -*-
5
-
6
1
  Gem::Specification.new do |s|
7
- s.name = %q{trash}
8
- s.version = "0.2.1"
2
+ s.name = "trash".freeze
3
+ s.version = File.read("VERSION")
9
4
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Lee Jones"]
12
- s.date = %q{2013-09-11}
13
- s.default_executable = %q{trash}
14
- s.description = %q{when it's hard to say goodbye, and rm is just too much... use trash instead.}
15
- s.email = %q{scribblethink@gmail.com}
16
- s.executables = ["trash"]
5
+ s.require_paths = ["lib".freeze]
6
+ s.authors = ["Lee Jones".freeze]
7
+ s.date = "2017-01-24"
8
+ s.description = "when it's hard to say goodbye, and rm is just too much... use trash instead.".freeze
9
+ s.executables = ["trash".freeze]
17
10
  s.extra_rdoc_files = [
18
11
  "LICENSE",
19
- "README.rdoc",
20
- "TODO"
12
+ "README.rdoc",
13
+ "TODO"
21
14
  ]
22
15
  s.files = [
23
16
  ".document",
24
- ".gitignore",
25
- "Gemfile",
26
- "LICENSE",
27
- "README.rdoc",
28
- "Rakefile",
29
- "TODO",
30
- "VERSION",
31
- "bin/trash",
32
- "lib/trash.rb",
33
- "spec/spec.opts",
34
- "spec/spec_helper.rb",
35
- "spec/trash_spec.rb",
36
- "trash.gemspec"
37
- ]
38
- s.homepage = %q{http://github.com/leejones/trash}
39
- s.rdoc_options = ["--charset=UTF-8"]
40
- s.require_paths = ["lib"]
41
- s.rubygems_version = %q{1.3.7}
42
- s.summary = %q{trash can for the command line}
43
- s.test_files = [
17
+ ".rspec",
18
+ "Gemfile",
19
+ "LICENSE",
20
+ "README.rdoc",
21
+ "Rakefile",
22
+ "TODO",
23
+ "VERSION",
24
+ "bin/trash",
25
+ "lib/trash.rb",
44
26
  "spec/spec_helper.rb",
45
- "spec/trash_spec.rb"
27
+ "spec/trash_spec.rb",
28
+ "trash.gemspec"
46
29
  ]
47
-
48
- if s.respond_to? :specification_version then
49
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
50
- s.specification_version = 3
51
-
52
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
- s.add_development_dependency(%q<rspec>, ["~> 1.2.9"])
54
- s.add_development_dependency(%q<rake>, ["~> 0.8.7"])
55
- s.add_development_dependency(%q<jeweler>, ["~> 1.4.0"])
56
- else
57
- s.add_dependency(%q<rspec>, ["~> 1.2.9"])
58
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
59
- s.add_dependency(%q<jeweler>, ["~> 1.4.0"])
60
- end
61
- else
62
- s.add_dependency(%q<rspec>, ["~> 1.2.9"])
63
- s.add_dependency(%q<rake>, ["~> 0.8.7"])
64
- s.add_dependency(%q<jeweler>, ["~> 1.4.0"])
65
- end
30
+ s.homepage = "http://github.com/leejones/trash".freeze
31
+ s.licenses = ["MIT".freeze]
32
+ s.summary = "trash can for the command line".freeze
66
33
  end
67
-
metadata CHANGED
@@ -1,84 +1,27 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: trash
3
- version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 2
9
- - 1
10
- version: 0.2.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Lee Jones
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-09-11 00:00:00 -05:00
19
- default_executable: trash
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ~>
26
- - !ruby/object:Gem::Version
27
- hash: 13
28
- segments:
29
- - 1
30
- - 2
31
- - 9
32
- version: 1.2.9
33
- requirement: *id001
34
- name: rspec
35
- prerelease: false
36
- type: :development
37
- - !ruby/object:Gem::Dependency
38
- version_requirements: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 49
44
- segments:
45
- - 0
46
- - 8
47
- - 7
48
- version: 0.8.7
49
- requirement: *id002
50
- name: rake
51
- prerelease: false
52
- type: :development
53
- - !ruby/object:Gem::Dependency
54
- version_requirements: &id003 !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ~>
58
- - !ruby/object:Gem::Version
59
- hash: 7
60
- segments:
61
- - 1
62
- - 4
63
- - 0
64
- version: 1.4.0
65
- requirement: *id003
66
- name: jeweler
67
- prerelease: false
68
- type: :development
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
+ dependencies: []
69
13
  description: when it's hard to say goodbye, and rm is just too much... use trash instead.
70
- email: scribblethink@gmail.com
71
- executables:
14
+ email:
15
+ executables:
72
16
  - trash
73
17
  extensions: []
74
-
75
- extra_rdoc_files:
18
+ extra_rdoc_files:
76
19
  - LICENSE
77
20
  - README.rdoc
78
21
  - TODO
79
- files:
80
- - .document
81
- - .gitignore
22
+ files:
23
+ - ".document"
24
+ - ".rspec"
82
25
  - Gemfile
83
26
  - LICENSE
84
27
  - README.rdoc
@@ -87,44 +30,30 @@ files:
87
30
  - VERSION
88
31
  - bin/trash
89
32
  - lib/trash.rb
90
- - spec/spec.opts
91
33
  - spec/spec_helper.rb
92
34
  - spec/trash_spec.rb
93
35
  - trash.gemspec
94
- has_rdoc: true
95
36
  homepage: http://github.com/leejones/trash
96
- licenses: []
97
-
37
+ licenses:
38
+ - MIT
39
+ metadata: {}
98
40
  post_install_message:
99
- rdoc_options:
100
- - --charset=UTF-8
101
- require_paths:
41
+ rdoc_options: []
42
+ require_paths:
102
43
  - lib
103
- required_ruby_version: !ruby/object:Gem::Requirement
104
- none: false
105
- requirements:
44
+ required_ruby_version: !ruby/object:Gem::Requirement
45
+ requirements:
106
46
  - - ">="
107
- - !ruby/object:Gem::Version
108
- hash: 3
109
- segments:
110
- - 0
111
- version: "0"
112
- required_rubygems_version: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ required_rubygems_version: !ruby/object:Gem::Requirement
50
+ requirements:
115
51
  - - ">="
116
- - !ruby/object:Gem::Version
117
- hash: 3
118
- segments:
119
- - 0
120
- version: "0"
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
121
54
  requirements: []
122
-
123
- rubyforge_project:
124
- rubygems_version: 1.3.7
55
+ rubygems_version: 3.1.6
125
56
  signing_key:
126
- specification_version: 3
57
+ specification_version: 4
127
58
  summary: trash can for the command line
128
- test_files:
129
- - spec/spec_helper.rb
130
- - spec/trash_spec.rb
59
+ test_files: []
data/.gitignore DELETED
@@ -1,22 +0,0 @@
1
- ## MAC OS
2
- .DS_Store
3
-
4
- ## TEXTMATE
5
- *.tmproj
6
- tmtags
7
-
8
- ## EMACS
9
- *~
10
- \#*
11
- .\#*
12
-
13
- ## VIM
14
- *.swp
15
-
16
- ## PROJECT::GENERAL
17
- coverage
18
- rdoc
19
- pkg
20
- Gemfile.lock
21
-
22
- ## PROJECT::SPECIFIC
File without changes