build-files 1.0.2 → 1.0.3

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: a6489c135e1494d5c883e30ab38832d3a9c2afb9
4
- data.tar.gz: a946aca100d97c1d35bf79aedf97af756d30a205
3
+ metadata.gz: e3bd958e529392040e6aac99f38f64577f5c6111
4
+ data.tar.gz: 88625275cbbf480497d35b00abe21ece2800a722
5
5
  SHA512:
6
- metadata.gz: 4d9c032e0525bd3f738965bdc030fb210f4c9f164c292b166bc0b9af701e1b14d201e8307d03c0afef26a1ef33dcb1479e04681e680181a3865c1f9bcb9bb285
7
- data.tar.gz: f0a7d3c974368967e49ed50e5c0db127830ef8addf8c54efe1e464c6cf5074a622f4f4e0e84c850a2888d9ade1d6be1d53eef763e5687af04cffe28a4b1fea1f
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
- [![Build Status](https://secure.travis-ci.org/ioquatix/build-files.png)](http://travis-ci.org/ioquatix/build-files)
6
- [![Code Climate](https://codeclimate.com/github/ioquatix/build-files.png)](https://codeclimate.com/github/ioquatix/build-files)
5
+ [![Build Status](https://secure.travis-ci.org/ioquatix/build-files.svg)](http://travis-ci.org/ioquatix/build-files)
6
+ [![Code Climate](https://codeclimate.com/github/ioquatix/build-files.svg)](https://codeclimate.com/github/ioquatix/build-files)
7
7
  [![Coverage Status](https://coveralls.io/repos/ioquatix/build-files/badge.svg)](https://coveralls.io/r/ioquatix/build-files)
8
8
 
9
9
  ## Installation
@@ -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 parts
99
- @parts ||= @full_path.split(File::SEPARATOR)
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
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Build
22
22
  module Files
23
- VERSION = "1.0.2"
23
+ VERSION = "1.0.3"
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.2
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-09 00:00:00.000000000 Z
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.4.6
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