fun_with_files 0.0.15 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.markdown +15 -3
- data/Gemfile +17 -7
- data/{README.rdoc → README.markdown} +11 -10
- data/VERSION +1 -1
- data/lib/fun_with/files/bootstrapper.rb +87 -0
- data/lib/fun_with/files/digest_methods.rb +30 -16
- data/lib/fun_with/files/directory_builder.rb +4 -0
- data/lib/fun_with/files/downloader.rb +3 -19
- data/lib/fun_with/files/errors.rb +9 -1
- data/lib/fun_with/files/file_manipulation_methods.rb +25 -15
- data/lib/fun_with/files/file_path.rb +147 -150
- data/lib/fun_with/files/file_path_class_methods.rb +23 -2
- data/lib/fun_with/files/file_permission_methods.rb +18 -7
- data/lib/fun_with/files/file_requirements.rb +63 -7
- data/lib/fun_with/files/requirements/manager.rb +104 -0
- data/lib/fun_with/files/root_path.rb +3 -3
- data/lib/fun_with/files/stat_methods.rb +33 -0
- data/lib/fun_with/files/string_behavior.rb +6 -2
- data/lib/fun_with/files/utils/byte_size.rb +143 -0
- data/lib/fun_with/files/utils/opts.rb +26 -0
- data/lib/fun_with/files/utils/succession.rb +47 -0
- data/lib/fun_with/files/utils/timestamp.rb +47 -0
- data/lib/fun_with/files/utils/timestamp_format.rb +31 -0
- data/lib/fun_with/files/watcher.rb +157 -0
- data/lib/fun_with/files/watchers/directory_watcher.rb +67 -0
- data/lib/fun_with/files/watchers/file_watcher.rb +45 -0
- data/lib/fun_with/files/watchers/missing_watcher.rb +23 -0
- data/lib/fun_with/files/watchers/node_watcher.rb +44 -0
- data/lib/fun_with/testing/assertions/fun_with_files.rb +91 -0
- data/lib/fun_with/testing/test_case_extensions.rb +12 -0
- data/lib/fun_with_files.rb +5 -75
- data/test/helper.rb +13 -5
- data/test/test_core_extensions.rb +5 -0
- data/test/test_directory_builder.rb +29 -10
- data/test/test_extension_methods.rb +62 -0
- data/test/test_file_manipulation.rb +2 -2
- data/test/test_file_path.rb +18 -39
- data/test/test_file_requirements.rb +36 -0
- data/test/test_fun_with_files.rb +1 -1
- data/test/test_fwf_assertions.rb +62 -0
- data/test/test_moving_files.rb +111 -0
- data/test/test_permission_methods.rb +22 -0
- data/test/test_root_path.rb +9 -0
- data/test/test_stat_methods.rb +17 -0
- data/test/test_timestamping.rb +74 -0
- data/test/test_utils_bytesize.rb +71 -0
- data/test/test_utils_succession.rb +30 -0
- data/test/test_watchers.rb +196 -0
- metadata +54 -16
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fun_with_files
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryce Anderson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xdg
|
@@ -16,34 +16,48 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: fun_with_testing
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
34
45
|
- - "~>"
|
35
46
|
- !ruby/object:Gem::Version
|
36
47
|
version: '0.0'
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 0.0.7
|
37
51
|
type: :development
|
38
52
|
prerelease: false
|
39
53
|
version_requirements: !ruby/object:Gem::Requirement
|
40
54
|
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 0.0.5
|
44
55
|
- - "~>"
|
45
56
|
- !ruby/object:Gem::Version
|
46
57
|
version: '0.0'
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 0.0.7
|
47
61
|
description: |2
|
48
62
|
A more intuitive syntax for performing a variety of file actions. Examples:
|
49
63
|
"/".fwf_filepath.join('usr', 'bin', 'bash').touch
|
@@ -62,8 +76,9 @@ extensions: []
|
|
62
76
|
extra_rdoc_files:
|
63
77
|
- CHANGELOG.markdown
|
64
78
|
- LICENSE.txt
|
65
|
-
- README.
|
79
|
+
- README.markdown
|
66
80
|
files:
|
81
|
+
- "./lib/fun_with/files/bootstrapper.rb"
|
67
82
|
- "./lib/fun_with/files/core_extensions/array.rb"
|
68
83
|
- "./lib/fun_with/files/core_extensions/false_class.rb"
|
69
84
|
- "./lib/fun_with/files/core_extensions/file.rb"
|
@@ -86,10 +101,24 @@ files:
|
|
86
101
|
- "./lib/fun_with/files/gem_api.rb"
|
87
102
|
- "./lib/fun_with/files/pathname_extensions.rb"
|
88
103
|
- "./lib/fun_with/files/remote_path.rb"
|
104
|
+
- "./lib/fun_with/files/requirements/manager.rb"
|
89
105
|
- "./lib/fun_with/files/root_path.rb"
|
106
|
+
- "./lib/fun_with/files/stat_methods.rb"
|
90
107
|
- "./lib/fun_with/files/string_behavior.rb"
|
91
108
|
- "./lib/fun_with/files/string_extensions.rb"
|
109
|
+
- "./lib/fun_with/files/utils/byte_size.rb"
|
110
|
+
- "./lib/fun_with/files/utils/opts.rb"
|
111
|
+
- "./lib/fun_with/files/utils/succession.rb"
|
112
|
+
- "./lib/fun_with/files/utils/timestamp.rb"
|
113
|
+
- "./lib/fun_with/files/utils/timestamp_format.rb"
|
114
|
+
- "./lib/fun_with/files/watcher.rb"
|
115
|
+
- "./lib/fun_with/files/watchers/directory_watcher.rb"
|
116
|
+
- "./lib/fun_with/files/watchers/file_watcher.rb"
|
117
|
+
- "./lib/fun_with/files/watchers/missing_watcher.rb"
|
118
|
+
- "./lib/fun_with/files/watchers/node_watcher.rb"
|
92
119
|
- "./lib/fun_with/files/xdg_extensions.rb"
|
120
|
+
- "./lib/fun_with/testing/assertions/fun_with_files.rb"
|
121
|
+
- "./lib/fun_with/testing/test_case_extensions.rb"
|
93
122
|
- "./lib/fun_with_files.rb"
|
94
123
|
- "./test/data/empty.txt"
|
95
124
|
- "./test/data/grep1.txt"
|
@@ -110,25 +139,35 @@ files:
|
|
110
139
|
- "./test/test_descent.rb"
|
111
140
|
- "./test/test_digest.rb"
|
112
141
|
- "./test/test_directory_builder.rb"
|
142
|
+
- "./test/test_extension_methods.rb"
|
113
143
|
- "./test/test_file_manipulation.rb"
|
114
144
|
- "./test/test_file_path.rb"
|
145
|
+
- "./test/test_file_requirements.rb"
|
115
146
|
- "./test/test_fun_with_files.rb"
|
147
|
+
- "./test/test_fwf_assertions.rb"
|
116
148
|
- "./test/test_globbing.rb"
|
117
149
|
- "./test/test_loading.rb"
|
150
|
+
- "./test/test_moving_files.rb"
|
151
|
+
- "./test/test_permission_methods.rb"
|
118
152
|
- "./test/test_root_path.rb"
|
153
|
+
- "./test/test_stat_methods.rb"
|
119
154
|
- "./test/test_symlinking.rb"
|
155
|
+
- "./test/test_timestamping.rb"
|
120
156
|
- "./test/test_touching.rb"
|
157
|
+
- "./test/test_utils_bytesize.rb"
|
158
|
+
- "./test/test_utils_succession.rb"
|
159
|
+
- "./test/test_watchers.rb"
|
121
160
|
- CHANGELOG.markdown
|
122
161
|
- Gemfile
|
123
162
|
- LICENSE.txt
|
124
|
-
- README.
|
163
|
+
- README.markdown
|
125
164
|
- Rakefile
|
126
165
|
- VERSION
|
127
166
|
homepage: http://github.com/darthschmoo/fun_with_files
|
128
167
|
licenses:
|
129
168
|
- MIT
|
130
169
|
metadata: {}
|
131
|
-
post_install_message:
|
170
|
+
post_install_message:
|
132
171
|
rdoc_options: []
|
133
172
|
require_paths:
|
134
173
|
- lib
|
@@ -143,9 +182,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
182
|
- !ruby/object:Gem::Version
|
144
183
|
version: '0'
|
145
184
|
requirements: []
|
146
|
-
|
147
|
-
|
148
|
-
signing_key:
|
185
|
+
rubygems_version: 3.5.6
|
186
|
+
signing_key:
|
149
187
|
specification_version: 4
|
150
188
|
summary: A mashup of several File, FileUtils, and Dir class functions, with a peppy,
|
151
189
|
fun-loving syntax
|