build-files 1.0.2 → 1.0.3
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 +4 -4
- data/README.md +2 -2
- data/lib/build/files/path.rb +8 -10
- data/lib/build/files/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e3bd958e529392040e6aac99f38f64577f5c6111
|
|
4
|
+
data.tar.gz: 88625275cbbf480497d35b00abe21ece2800a722
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea2dda41b31f7649532cb32f20e16ddb5d7d938032f44a11227a9fe1c9e2c5cce0f30cbaa6c59be65cd0a126a253eb0086fcaa06255ca6cc44fe380524143625
|
|
7
|
+
data.tar.gz: 5f388d6984509dca9e82be714bbd149661e21a6e3296ba93fa74b83dc863228b543521a95b9cf04f59e2f2236e4fa67d273420a031271f0feb7f4a69236dc4b8
|
data/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Build::Files is a set of idiomatic classes for dealing with paths and monitoring directories. File paths are represented with both root and relative parts which makes copying directory structures intuitive.
|
|
4
4
|
|
|
5
|
-
[](http://travis-ci.org/ioquatix/build-files)
|
|
6
|
+
[](https://codeclimate.com/github/ioquatix/build-files)
|
|
7
7
|
[](https://coveralls.io/r/ioquatix/build-files)
|
|
8
8
|
|
|
9
9
|
## Installation
|
data/lib/build/files/path.rb
CHANGED
|
@@ -80,14 +80,6 @@ module Build
|
|
|
80
80
|
# @root = @root.to_s
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
-
def components
|
|
84
|
-
@components ||= @full_path.split(File::SEPARATOR)
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
def basename
|
|
88
|
-
self.components.last
|
|
89
|
-
end
|
|
90
|
-
|
|
91
83
|
attr :root
|
|
92
84
|
attr :full_path
|
|
93
85
|
|
|
@@ -95,10 +87,16 @@ module Build
|
|
|
95
87
|
@full_path.length
|
|
96
88
|
end
|
|
97
89
|
|
|
98
|
-
def
|
|
99
|
-
@
|
|
90
|
+
def components
|
|
91
|
+
@components ||= @full_path.split(File::SEPARATOR).freeze
|
|
100
92
|
end
|
|
101
93
|
|
|
94
|
+
def basename
|
|
95
|
+
self.parts.last
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
alias parts components
|
|
99
|
+
|
|
102
100
|
def relative_path
|
|
103
101
|
@relative_path ||= Path.relative_path(@root.to_s, @full_path)
|
|
104
102
|
end
|
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.0.3
|
|
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-01-
|
|
11
|
+
date: 2016-01-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
103
|
version: '0'
|
|
104
104
|
requirements: []
|
|
105
105
|
rubyforge_project:
|
|
106
|
-
rubygems_version: 2.
|
|
106
|
+
rubygems_version: 2.2.2
|
|
107
107
|
signing_key:
|
|
108
108
|
specification_version: 4
|
|
109
109
|
summary: Build::Files is a set of idiomatic classes for dealing with paths and monitoring
|