trash 0.2.0 → 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 ADDED
@@ -0,0 +1,12 @@
1
+ source "https://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
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
@@ -7,22 +7,35 @@ A simple command line utility to move files/folders to a "trash" folder before d
7
7
  == Usage
8
8
 
9
9
  From the command line:
10
-
10
+ trash [file/directory name(s)]
11
+ # example:
11
12
  trash potentially-important-file.txt
12
-
13
+ trash this-folder that-folder some-random-file.txt
14
+
13
15
  Handles multiple files with the same name
14
16
 
15
17
  trash ~/Documents/Groceries/shopping-list.txt
16
18
  trash ~/Documents/Christmas/shopping-list.txt
17
19
  trash ~/Documents/AutoParts/shopping-list.txt
18
-
19
- Trash folder will contain:
20
+
21
+ The trash will contain:
20
22
  * shopping-list.txt # originally ~/Documents/Groceries/shopping-list.txt
21
23
  * shopping-list01.txt # originally ~/Documents/Christmas/shopping-list.txt
22
24
  * shopping-list02.txt # originally ~/Documents/AutoParts/shopping-list.txt
23
25
 
26
+ You will find the files that you've trashed in ~/.Trash
27
+
28
+ == Installation
29
+
30
+ gem install trash
31
+
32
+ == Contributors
33
+
34
+ * ericmathison[https://github.com/ericmathison] (Eric Mathison)
35
+ * brian-davis[https://github.com/brian-davis] (Brian Davis)
36
+
24
37
  == Note on Patches/Pull Requests
25
-
38
+
26
39
  * Fork the project.
27
40
  * Make your feature addition or bug fix.
28
41
  * Add tests for it. This is important so I don't break it in a
@@ -31,6 +44,17 @@ Trash folder will contain:
31
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)
32
45
  * Send me a pull request. Bonus points for topic branches.
33
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
+
34
58
  == Copyright
35
59
 
36
60
  Copyright (c) 2010 Lee Jones. See LICENSE for details.
data/Rakefile CHANGED
@@ -1,53 +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 its 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 "cucumber", ">= 0"
15
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
- end
17
- Jeweler::GemcutterTasks.new
18
- rescue LoadError
19
- 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
20
11
  end
12
+ require 'rake'
21
13
 
22
- require 'spec/rake/spectask'
23
- Spec::Rake::SpecTask.new(:spec) do |spec|
24
- spec.libs << 'lib' << 'spec'
25
- 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'
26
17
  end
27
18
 
28
- Spec::Rake::SpecTask.new(:rcov) do |spec|
29
- spec.libs << 'lib' << 'spec'
19
+ RSpec::Core::RakeTask.new(:rcov) do |spec|
30
20
  spec.pattern = 'spec/**/*_spec.rb'
31
21
  spec.rcov = true
32
22
  end
33
23
 
34
- task :spec => :check_dependencies
35
-
36
- begin
37
- require 'cucumber/rake/task'
38
- Cucumber::Rake::Task.new(:features)
39
-
40
- task :features => :check_dependencies
41
- rescue LoadError
42
- task :features do
43
- abort "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
44
- end
45
- end
46
-
47
24
  task :default => :spec
48
25
 
49
- require 'rake/rdoctask'
50
- Rake::RDocTask.new do |rdoc|
26
+ require 'rdoc/task'
27
+ RDoc::Task.new do |rdoc|
51
28
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
52
29
 
53
30
  rdoc.rdoc_dir = 'rdoc'
data/TODO CHANGED
@@ -0,0 +1 @@
1
+ * Add command for emptying the trash
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
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("/Users/leejones/.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("/Users/leejones/.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("/Users/leejones/.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("/Users/leejones/.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.0"
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{2010-03-26}
13
- s.default_executable = %q{trash}
14
- s.description = %q{when its 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
- "LICENSE",
26
- "README.rdoc",
27
- "Rakefile",
28
- "TODO",
29
- "VERSION",
30
- "bin/trash",
31
- "config/cucumber.yml",
32
- "features/step_definitions/trash_steps.rb",
33
- "features/support/env.rb",
34
- "features/trash.feature",
35
- "lib/trash.rb",
36
- "spec/spec.opts",
37
- "spec/spec_helper.rb",
38
- "spec/trash_spec.rb",
39
- "trash.gemspec"
40
- ]
41
- s.homepage = %q{http://github.com/leejones/trash}
42
- s.rdoc_options = ["--charset=UTF-8"]
43
- s.require_paths = ["lib"]
44
- s.rubygems_version = %q{1.3.6}
45
- s.summary = %q{trash can for the command line}
46
- 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",
47
26
  "spec/spec_helper.rb",
48
- "spec/trash_spec.rb"
27
+ "spec/trash_spec.rb",
28
+ "trash.gemspec"
49
29
  ]
50
-
51
- if s.respond_to? :specification_version then
52
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
53
- s.specification_version = 3
54
-
55
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
56
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
57
- s.add_development_dependency(%q<cucumber>, [">= 0"])
58
- else
59
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
60
- s.add_dependency(%q<cucumber>, [">= 0"])
61
- end
62
- else
63
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
64
- s.add_dependency(%q<cucumber>, [">= 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,106 +1,59 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: trash
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 0
9
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Lee Jones
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2010-03-26 00:00:00 -04:00
18
- default_executable: trash
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: rspec
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 2
30
- - 9
31
- version: 1.2.9
32
- type: :development
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: cucumber
36
- prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- version: "0"
44
- type: :development
45
- version_requirements: *id002
46
- description: when its hard to say goodbye, and rm is just too much... use trash instead.
47
- email: scribblethink@gmail.com
48
- executables:
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: when it's hard to say goodbye, and rm is just too much... use trash instead.
14
+ email:
15
+ executables:
49
16
  - trash
50
17
  extensions: []
51
-
52
- extra_rdoc_files:
18
+ extra_rdoc_files:
53
19
  - LICENSE
54
20
  - README.rdoc
55
21
  - TODO
56
- files:
57
- - .document
58
- - .gitignore
22
+ files:
23
+ - ".document"
24
+ - ".rspec"
25
+ - Gemfile
59
26
  - LICENSE
60
27
  - README.rdoc
61
28
  - Rakefile
62
29
  - TODO
63
30
  - VERSION
64
31
  - bin/trash
65
- - config/cucumber.yml
66
- - features/step_definitions/trash_steps.rb
67
- - features/support/env.rb
68
- - features/trash.feature
69
32
  - lib/trash.rb
70
- - spec/spec.opts
71
33
  - spec/spec_helper.rb
72
34
  - spec/trash_spec.rb
73
35
  - trash.gemspec
74
- has_rdoc: true
75
36
  homepage: http://github.com/leejones/trash
76
- licenses: []
77
-
37
+ licenses:
38
+ - MIT
39
+ metadata: {}
78
40
  post_install_message:
79
- rdoc_options:
80
- - --charset=UTF-8
81
- require_paths:
41
+ rdoc_options: []
42
+ require_paths:
82
43
  - lib
83
- required_ruby_version: !ruby/object:Gem::Requirement
84
- requirements:
44
+ required_ruby_version: !ruby/object:Gem::Requirement
45
+ requirements:
85
46
  - - ">="
86
- - !ruby/object:Gem::Version
87
- segments:
88
- - 0
89
- version: "0"
90
- required_rubygems_version: !ruby/object:Gem::Requirement
91
- requirements:
47
+ - !ruby/object:Gem::Version
48
+ version: '0'
49
+ required_rubygems_version: !ruby/object:Gem::Requirement
50
+ requirements:
92
51
  - - ">="
93
- - !ruby/object:Gem::Version
94
- segments:
95
- - 0
96
- version: "0"
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
97
54
  requirements: []
98
-
99
- rubyforge_project:
100
- rubygems_version: 1.3.6
55
+ rubygems_version: 3.1.6
101
56
  signing_key:
102
- specification_version: 3
57
+ specification_version: 4
103
58
  summary: trash can for the command line
104
- test_files:
105
- - spec/spec_helper.rb
106
- - spec/trash_spec.rb
59
+ test_files: []
data/.gitignore DELETED
@@ -1,21 +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
-
21
- ## PROJECT::SPECIFIC
data/config/cucumber.yml DELETED
@@ -1 +0,0 @@
1
- default: --format profile features
File without changes
@@ -1,4 +0,0 @@
1
- $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
2
- require 'trash'
3
-
4
- require 'spec/expectations'
@@ -1,9 +0,0 @@
1
- Feature: something something
2
- In order to something something
3
- A user something something
4
- something something something
5
-
6
- Scenario: something something
7
- Given inspiration
8
- When I create a sweet new gem
9
- Then everyone should see how awesome I am
File without changes