build-files 1.0.5 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/build-files.gemspec +1 -1
- data/lib/build/files/system.rb +16 -0
- data/lib/build/files/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7c24053ef1f98a6a5fe8e1caf5def46d81be0ea
|
4
|
+
data.tar.gz: d4f917e500ca4e31cbde8957065c3db8606ede1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b69db18cbf7fbb044d6d5d214a3bbac92f72440b855a9a853ed603e531fbef58754995dff83acffec947772eb0d0982a8fe324376f484cc611987a2a7f39885
|
7
|
+
data.tar.gz: 879bcda49ce04ad7f7d10f93cf4d66abde104b6eabe9efbdf198f27d35e5bf0d0b46874b6a06fb7b589d8b8fc90d2fa66b1cb6562d696634fc0543b5c7543532
|
data/build-files.gemspec
CHANGED
@@ -21,6 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.required_ruby_version = '>= 2.0'
|
22
22
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
24
|
-
spec.add_development_dependency "rspec", "~> 3.4
|
24
|
+
spec.add_development_dependency "rspec", "~> 3.4"
|
25
25
|
spec.add_development_dependency "rake"
|
26
26
|
end
|
data/lib/build/files/system.rb
CHANGED
@@ -50,6 +50,10 @@ module Build
|
|
50
50
|
FileUtils.touch self
|
51
51
|
end
|
52
52
|
|
53
|
+
def stat
|
54
|
+
File.stat self
|
55
|
+
end
|
56
|
+
|
53
57
|
# Checks if the file exists in the local file system.
|
54
58
|
def exist?
|
55
59
|
File.exist? self
|
@@ -60,6 +64,18 @@ module Build
|
|
60
64
|
File.directory? self
|
61
65
|
end
|
62
66
|
|
67
|
+
def file?
|
68
|
+
File.file? self
|
69
|
+
end
|
70
|
+
|
71
|
+
def symlink?
|
72
|
+
File.symlink? self
|
73
|
+
end
|
74
|
+
|
75
|
+
def readable?
|
76
|
+
File.readable? self
|
77
|
+
end
|
78
|
+
|
63
79
|
# The time the file was last modified.
|
64
80
|
def modified_time
|
65
81
|
File.mtime self
|
data/lib/build/files/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: build-files
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.4
|
33
|
+
version: '3.4'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 3.4
|
40
|
+
version: '3.4'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|