maid 0.1.3.beta.1 → 0.1.3.beta.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -25,8 +25,9 @@ Your rules are defined in Ruby, so easy rules are easy and difficult rules are p
25
25
 
26
26
  ### For Developers
27
27
 
28
- [![Build Status](https://secure.travis-ci.org/benjaminoakes/maid.png)](http://travis-ci.org/benjaminoakes/maid)
29
28
  [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/benjaminoakes/maid)
29
+ [![Build Status](https://secure.travis-ci.org/benjaminoakes/maid.png)](http://travis-ci.org/benjaminoakes/maid)
30
+ [![Dependency Status](https://gemnasium.com/benjaminoakes/maid.png)](https://gemnasium.com/benjaminoakes/maid)
30
31
 
31
32
  * Complete an issue (easy ones [are labelled](https://github.com/benjaminoakes/maid/issues?labels=difficulty-1&page=1&state=open), and issues for future releases are [grouped by milestone](https://github.com/benjaminoakes/maid/issues/milestones)).
32
33
  * **Working on an issue?** Please leave a comment so others know.
data/lib/maid/tools.rb CHANGED
@@ -67,6 +67,8 @@ module Maid::Tools
67
67
  # Ubuntu makes it easy to implement, and there's a Python library for doing so (see `trash-cli`). However, there's not a Ruby equivalent yet.
68
68
 
69
69
  Array(paths).each do |path|
70
+ path = File.expand_path(path)
71
+
70
72
  target = File.join(@trash_path, File.basename(path))
71
73
  safe_trash_path = File.join(@trash_path, "#{File.basename(path)} #{Time.now.strftime('%Y-%m-%d-%H-%M-%S')}")
72
74
 
data/lib/maid/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Maid
2
- VERSION = "0.1.3.beta.1"
2
+ VERSION = "0.1.3.beta.2"
3
3
  end
data/maid.gemspec CHANGED
@@ -17,7 +17,10 @@ Gem::Specification.new do |s|
17
17
 
18
18
  s.add_dependency('thor', '~> 0.16.0')
19
19
  s.add_dependency('deprecated', '~> 3.0.1')
20
- s.add_dependency('xdg', '~> 2.2.2') # Only used on Linux, but still required/tested on OSX
20
+ # Only used on Linux, but still required/tested on OSX
21
+ # # After a new version with the Ruby 1.9 bugfix is released, change over to `xdg`
22
+ # s.add_dependency('xdg', '~> 2.2.2')
23
+ s.add_dependency('maid-xdg', '= 2.2.1.2')
21
24
  s.add_development_dependency('guard', '~> 1.4.0')
22
25
  s.add_development_dependency('guard-rspec', '~> 2.1.0')
23
26
  s.add_development_dependency('rake', '~> 0.9.2.2')
metadata CHANGED
@@ -1,196 +1,134 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: maid
3
- version: !ruby/object:Gem::Version
4
- hash: 62196393
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3.beta.2
5
5
  prerelease: 6
6
- segments:
7
- - 0
8
- - 1
9
- - 3
10
- - beta
11
- - 1
12
- version: 0.1.3.beta.1
13
6
  platform: ruby
14
- authors:
7
+ authors:
15
8
  - Benjamin Oakes
16
9
  autorequire:
17
10
  bindir: bin
18
11
  cert_chain: []
19
-
20
- date: 2012-10-15 00:00:00 -05:00
21
- default_executable:
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
12
+ date: 2012-11-21 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
24
15
  name: thor
25
- prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &15531880 !ruby/object:Gem::Requirement
27
17
  none: false
28
- requirements:
18
+ requirements:
29
19
  - - ~>
30
- - !ruby/object:Gem::Version
31
- hash: 95
32
- segments:
33
- - 0
34
- - 16
35
- - 0
20
+ - !ruby/object:Gem::Version
36
21
  version: 0.16.0
37
22
  type: :runtime
38
- version_requirements: *id001
39
- - !ruby/object:Gem::Dependency
40
- name: deprecated
41
23
  prerelease: false
42
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *15531880
25
+ - !ruby/object:Gem::Dependency
26
+ name: deprecated
27
+ requirement: &15530880 !ruby/object:Gem::Requirement
43
28
  none: false
44
- requirements:
29
+ requirements:
45
30
  - - ~>
46
- - !ruby/object:Gem::Version
47
- hash: 5
48
- segments:
49
- - 3
50
- - 0
51
- - 1
31
+ - !ruby/object:Gem::Version
52
32
  version: 3.0.1
53
33
  type: :runtime
54
- version_requirements: *id002
55
- - !ruby/object:Gem::Dependency
56
- name: xdg
57
34
  prerelease: false
58
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *15530880
36
+ - !ruby/object:Gem::Dependency
37
+ name: maid-xdg
38
+ requirement: &15479780 !ruby/object:Gem::Requirement
59
39
  none: false
60
- requirements:
61
- - - ~>
62
- - !ruby/object:Gem::Version
63
- hash: 3
64
- segments:
65
- - 2
66
- - 2
67
- - 2
68
- version: 2.2.2
40
+ requirements:
41
+ - - =
42
+ - !ruby/object:Gem::Version
43
+ version: 2.2.1.2
69
44
  type: :runtime
70
- version_requirements: *id003
71
- - !ruby/object:Gem::Dependency
72
- name: guard
73
45
  prerelease: false
74
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *15479780
47
+ - !ruby/object:Gem::Dependency
48
+ name: guard
49
+ requirement: &15478900 !ruby/object:Gem::Requirement
75
50
  none: false
76
- requirements:
51
+ requirements:
77
52
  - - ~>
78
- - !ruby/object:Gem::Version
79
- hash: 7
80
- segments:
81
- - 1
82
- - 4
83
- - 0
53
+ - !ruby/object:Gem::Version
84
54
  version: 1.4.0
85
55
  type: :development
86
- version_requirements: *id004
87
- - !ruby/object:Gem::Dependency
88
- name: guard-rspec
89
56
  prerelease: false
90
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *15478900
58
+ - !ruby/object:Gem::Dependency
59
+ name: guard-rspec
60
+ requirement: &15478280 !ruby/object:Gem::Requirement
91
61
  none: false
92
- requirements:
62
+ requirements:
93
63
  - - ~>
94
- - !ruby/object:Gem::Version
95
- hash: 11
96
- segments:
97
- - 2
98
- - 1
99
- - 0
64
+ - !ruby/object:Gem::Version
100
65
  version: 2.1.0
101
66
  type: :development
102
- version_requirements: *id005
103
- - !ruby/object:Gem::Dependency
104
- name: rake
105
67
  prerelease: false
106
- requirement: &id006 !ruby/object:Gem::Requirement
68
+ version_requirements: *15478280
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: &15477580 !ruby/object:Gem::Requirement
107
72
  none: false
108
- requirements:
73
+ requirements:
109
74
  - - ~>
110
- - !ruby/object:Gem::Version
111
- hash: 11
112
- segments:
113
- - 0
114
- - 9
115
- - 2
116
- - 2
75
+ - !ruby/object:Gem::Version
117
76
  version: 0.9.2.2
118
77
  type: :development
119
- version_requirements: *id006
120
- - !ruby/object:Gem::Dependency
121
- name: rspec
122
78
  prerelease: false
123
- requirement: &id007 !ruby/object:Gem::Requirement
79
+ version_requirements: *15477580
80
+ - !ruby/object:Gem::Dependency
81
+ name: rspec
82
+ requirement: &15476860 !ruby/object:Gem::Requirement
124
83
  none: false
125
- requirements:
84
+ requirements:
126
85
  - - ~>
127
- - !ruby/object:Gem::Version
128
- hash: 35
129
- segments:
130
- - 2
131
- - 11
132
- - 0
86
+ - !ruby/object:Gem::Version
133
87
  version: 2.11.0
134
88
  type: :development
135
- version_requirements: *id007
136
- - !ruby/object:Gem::Dependency
137
- name: timecop
138
89
  prerelease: false
139
- requirement: &id008 !ruby/object:Gem::Requirement
90
+ version_requirements: *15476860
91
+ - !ruby/object:Gem::Dependency
92
+ name: timecop
93
+ requirement: &15476100 !ruby/object:Gem::Requirement
140
94
  none: false
141
- requirements:
95
+ requirements:
142
96
  - - ~>
143
- - !ruby/object:Gem::Version
144
- hash: 15
145
- segments:
146
- - 0
147
- - 5
148
- - 2
97
+ - !ruby/object:Gem::Version
149
98
  version: 0.5.2
150
99
  type: :development
151
- version_requirements: *id008
152
- - !ruby/object:Gem::Dependency
153
- name: fakefs
154
100
  prerelease: false
155
- requirement: &id009 !ruby/object:Gem::Requirement
101
+ version_requirements: *15476100
102
+ - !ruby/object:Gem::Dependency
103
+ name: fakefs
104
+ requirement: &15473500 !ruby/object:Gem::Requirement
156
105
  none: false
157
- requirements:
106
+ requirements:
158
107
  - - ~>
159
- - !ruby/object:Gem::Version
160
- hash: 15
161
- segments:
162
- - 0
163
- - 4
164
- - 0
108
+ - !ruby/object:Gem::Version
165
109
  version: 0.4.0
166
110
  type: :development
167
- version_requirements: *id009
168
- - !ruby/object:Gem::Dependency
169
- name: rb-fsevent
170
111
  prerelease: false
171
- requirement: &id010 !ruby/object:Gem::Requirement
112
+ version_requirements: *15473500
113
+ - !ruby/object:Gem::Dependency
114
+ name: rb-inotify
115
+ requirement: &15472800 !ruby/object:Gem::Requirement
172
116
  none: false
173
- requirements:
117
+ requirements:
174
118
  - - ~>
175
- - !ruby/object:Gem::Version
176
- hash: 63
177
- segments:
178
- - 0
179
- - 9
180
- - 2
181
- version: 0.9.2
119
+ - !ruby/object:Gem::Version
120
+ version: 0.8.8
182
121
  type: :development
183
- version_requirements: *id010
122
+ prerelease: false
123
+ version_requirements: *15472800
184
124
  description: Be lazy. Let Maid clean up after you, based on rules you define.
185
- email:
125
+ email:
186
126
  - hello@benjaminoakes.com
187
- executables:
127
+ executables:
188
128
  - maid
189
129
  extensions: []
190
-
191
130
  extra_rdoc_files: []
192
-
193
- files:
131
+ files:
194
132
  - .gitignore
195
133
  - .rspec
196
134
  - .rvmrc
@@ -228,49 +166,28 @@ files:
228
166
  - spec/lib/maid/trash_migration_spec.rb
229
167
  - spec/lib/maid_spec.rb
230
168
  - spec/spec_helper.rb
231
- has_rdoc: true
232
169
  homepage: http://github.com/benjaminoakes/maid
233
170
  licenses: []
234
-
235
171
  post_install_message:
236
172
  rdoc_options: []
237
-
238
- require_paths:
173
+ require_paths:
239
174
  - lib
240
- required_ruby_version: !ruby/object:Gem::Requirement
175
+ required_ruby_version: !ruby/object:Gem::Requirement
241
176
  none: false
242
- requirements:
243
- - - ">="
244
- - !ruby/object:Gem::Version
245
- hash: 3
246
- segments:
247
- - 0
248
- version: "0"
249
- required_rubygems_version: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ! '>='
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ required_rubygems_version: !ruby/object:Gem::Requirement
250
182
  none: false
251
- requirements:
252
- - - ">"
253
- - !ruby/object:Gem::Version
254
- hash: 25
255
- segments:
256
- - 1
257
- - 3
258
- - 1
183
+ requirements:
184
+ - - ! '>'
185
+ - !ruby/object:Gem::Version
259
186
  version: 1.3.1
260
187
  requirements: []
261
-
262
188
  rubyforge_project: maid
263
- rubygems_version: 1.6.2
189
+ rubygems_version: 1.8.11
264
190
  signing_key:
265
191
  specification_version: 3
266
192
  summary: Be lazy. Let Maid clean up after you, based on rules you define.
267
- test_files:
268
- - spec/lib/maid/app_spec.rb
269
- - spec/lib/maid/maid_spec.rb
270
- - spec/lib/maid/numeric_extensions_spec.rb
271
- - spec/lib/maid/platform_spec.rb
272
- - spec/lib/maid/rule_spec.rb
273
- - spec/lib/maid/tools_spec.rb
274
- - spec/lib/maid/trash_migration_spec.rb
275
- - spec/lib/maid_spec.rb
276
- - spec/spec_helper.rb
193
+ test_files: []