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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc9ede33f6827de41ac819213833225aee230195
4
- data.tar.gz: 433c52df04cd60a80317f87a923089a246f9965e
3
+ metadata.gz: f7c24053ef1f98a6a5fe8e1caf5def46d81be0ea
4
+ data.tar.gz: d4f917e500ca4e31cbde8957065c3db8606ede1c
5
5
  SHA512:
6
- metadata.gz: d024fae752d2ec7a58748170f9c5f79c3af8edbd9d4b631360dcda2bc1b401a7fdf59c96a1f0813bdea7e34cd9508a8c092446926535857c227c219cf1af53a3
7
- data.tar.gz: 4bc8f6ad273d381bc42efddd03cf1a4db18b6b4d170ba50d66e11d4c1e3c02ee76aaf806bdba86e01fcf5fe35b1155fc5f14361410fc0670fb270e08f278f650
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.0"
24
+ spec.add_development_dependency "rspec", "~> 3.4"
25
25
  spec.add_development_dependency "rake"
26
26
  end
@@ -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
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Build
22
22
  module Files
23
- VERSION = "1.0.5"
23
+ VERSION = "1.1.0"
24
24
  end
25
25
  end
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.5
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-05-04 00:00:00.000000000 Z
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.0
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.0
40
+ version: '3.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement