filepath 0.5 → 0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 62dfbcf4f1dce1088fa0b8f2e34e90ef413007fd
4
+ data.tar.gz: 5381ef6ee7a5ceb721ed6e72fc604cf4b6f9441c
5
+ SHA512:
6
+ metadata.gz: 007539ed47d49ffa9e9147eb0a8e3f8bee3dfc0196cf074fab7528dcf34e6f78536e8736c4d84cc223efacc31fbab7aeb8cd970544503df16d7e30dcdacb5fcf
7
+ data.tar.gz: 4bac91223e32bfd5618a30b2e77ad5420f29b27cb21505805ae75aede7d99d2468303f43005f77b838817abb90f7aed02c18099bd560594f946bb8b78d850493
@@ -0,0 +1,7 @@
1
+ /.bundle/
2
+ /Gemfile.lock
3
+ /coverage/
4
+ /doc/
5
+ /pkg/
6
+ /.yardoc/
7
+ /spec/fixtures/
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - "1.8.7"
4
+ - "1.9.3"
5
+ - "2.0.0"
6
+ - jruby-18mode
7
+ - jruby-19mode
8
+ - rbx-19mode
data/.yardopts CHANGED
@@ -1,4 +1,4 @@
1
1
  -m markdown
2
2
  --no-private
3
3
  -
4
- UNLICENSE
4
+ COPYING
data/COPYING ADDED
@@ -0,0 +1,121 @@
1
+ Creative Commons Legal Code
2
+
3
+ CC0 1.0 Universal
4
+
5
+ CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6
+ LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7
+ ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8
+ INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9
+ REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10
+ PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11
+ THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12
+ HEREUNDER.
13
+
14
+ Statement of Purpose
15
+
16
+ The laws of most jurisdictions throughout the world automatically confer
17
+ exclusive Copyright and Related Rights (defined below) upon the creator
18
+ and subsequent owner(s) (each and all, an "owner") of an original work of
19
+ authorship and/or a database (each, a "Work").
20
+
21
+ Certain owners wish to permanently relinquish those rights to a Work for
22
+ the purpose of contributing to a commons of creative, cultural and
23
+ scientific works ("Commons") that the public can reliably and without fear
24
+ of later claims of infringement build upon, modify, incorporate in other
25
+ works, reuse and redistribute as freely as possible in any form whatsoever
26
+ and for any purposes, including without limitation commercial purposes.
27
+ These owners may contribute to the Commons to promote the ideal of a free
28
+ culture and the further production of creative, cultural and scientific
29
+ works, or to gain reputation or greater distribution for their Work in
30
+ part through the use and efforts of others.
31
+
32
+ For these and/or other purposes and motivations, and without any
33
+ expectation of additional consideration or compensation, the person
34
+ associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35
+ is an owner of Copyright and Related Rights in the Work, voluntarily
36
+ elects to apply CC0 to the Work and publicly distribute the Work under its
37
+ terms, with knowledge of his or her Copyright and Related Rights in the
38
+ Work and the meaning and intended legal effect of CC0 on those rights.
39
+
40
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
41
+ protected by copyright and related or neighboring rights ("Copyright and
42
+ Related Rights"). Copyright and Related Rights include, but are not
43
+ limited to, the following:
44
+
45
+ i. the right to reproduce, adapt, distribute, perform, display,
46
+ communicate, and translate a Work;
47
+ ii. moral rights retained by the original author(s) and/or performer(s);
48
+ iii. publicity and privacy rights pertaining to a person's image or
49
+ likeness depicted in a Work;
50
+ iv. rights protecting against unfair competition in regards to a Work,
51
+ subject to the limitations in paragraph 4(a), below;
52
+ v. rights protecting the extraction, dissemination, use and reuse of data
53
+ in a Work;
54
+ vi. database rights (such as those arising under Directive 96/9/EC of the
55
+ European Parliament and of the Council of 11 March 1996 on the legal
56
+ protection of databases, and under any national implementation
57
+ thereof, including any amended or successor version of such
58
+ directive); and
59
+ vii. other similar, equivalent or corresponding rights throughout the
60
+ world based on applicable law or treaty, and any national
61
+ implementations thereof.
62
+
63
+ 2. Waiver. To the greatest extent permitted by, but not in contravention
64
+ of, applicable law, Affirmer hereby overtly, fully, permanently,
65
+ irrevocably and unconditionally waives, abandons, and surrenders all of
66
+ Affirmer's Copyright and Related Rights and associated claims and causes
67
+ of action, whether now known or unknown (including existing as well as
68
+ future claims and causes of action), in the Work (i) in all territories
69
+ worldwide, (ii) for the maximum duration provided by applicable law or
70
+ treaty (including future time extensions), (iii) in any current or future
71
+ medium and for any number of copies, and (iv) for any purpose whatsoever,
72
+ including without limitation commercial, advertising or promotional
73
+ purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74
+ member of the public at large and to the detriment of Affirmer's heirs and
75
+ successors, fully intending that such Waiver shall not be subject to
76
+ revocation, rescission, cancellation, termination, or any other legal or
77
+ equitable action to disrupt the quiet enjoyment of the Work by the public
78
+ as contemplated by Affirmer's express Statement of Purpose.
79
+
80
+ 3. Public License Fallback. Should any part of the Waiver for any reason
81
+ be judged legally invalid or ineffective under applicable law, then the
82
+ Waiver shall be preserved to the maximum extent permitted taking into
83
+ account Affirmer's express Statement of Purpose. In addition, to the
84
+ extent the Waiver is so judged Affirmer hereby grants to each affected
85
+ person a royalty-free, non transferable, non sublicensable, non exclusive,
86
+ irrevocable and unconditional license to exercise Affirmer's Copyright and
87
+ Related Rights in the Work (i) in all territories worldwide, (ii) for the
88
+ maximum duration provided by applicable law or treaty (including future
89
+ time extensions), (iii) in any current or future medium and for any number
90
+ of copies, and (iv) for any purpose whatsoever, including without
91
+ limitation commercial, advertising or promotional purposes (the
92
+ "License"). The License shall be deemed effective as of the date CC0 was
93
+ applied by Affirmer to the Work. Should any part of the License for any
94
+ reason be judged legally invalid or ineffective under applicable law, such
95
+ partial invalidity or ineffectiveness shall not invalidate the remainder
96
+ of the License, and in such case Affirmer hereby affirms that he or she
97
+ will not (i) exercise any of his or her remaining Copyright and Related
98
+ Rights in the Work or (ii) assert any associated claims and causes of
99
+ action with respect to the Work, in either case contrary to Affirmer's
100
+ express Statement of Purpose.
101
+
102
+ 4. Limitations and Disclaimers.
103
+
104
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
105
+ surrendered, licensed or otherwise affected by this document.
106
+ b. Affirmer offers the Work as-is and makes no representations or
107
+ warranties of any kind concerning the Work, express, implied,
108
+ statutory or otherwise, including without limitation warranties of
109
+ title, merchantability, fitness for a particular purpose, non
110
+ infringement, or the absence of latent or other defects, accuracy, or
111
+ the present or absence of errors, whether or not discoverable, all to
112
+ the greatest extent permissible under applicable law.
113
+ c. Affirmer disclaims responsibility for clearing rights of other persons
114
+ that may apply to the Work or any use thereof, including without
115
+ limitation any person's Copyright and Related Rights in the Work.
116
+ Further, Affirmer disclaims responsibility for obtaining any necessary
117
+ consents, permissions or other rights required for any use of the
118
+ Work.
119
+ d. Affirmer understands and acknowledges that Creative Commons is not a
120
+ party to this document and has no duty or obligation with respect to
121
+ this CC0 or use of the Work.
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/README.md CHANGED
@@ -132,6 +132,7 @@ Documentation
132
132
  License
133
133
  -------
134
134
 
135
- This is free and unencumbered software released into the public domain.
136
- See the `UNLICENSE` file or <http://unlicense.org/> for more details.
135
+ This is free software released into the public domain (CC0 license).
137
136
 
137
+ See the `COPYING` file or <http://creativecommons.org/publicdomain/zero/1.0/>
138
+ for more details.
data/Rakefile CHANGED
@@ -1,28 +1,13 @@
1
- # This is free and unencumbered software released into the public domain.
2
- # See the `UNLICENSE` file or <http://unlicense.org/> for more details.
1
+ # This is free software released into the public domain (CC0 license).
3
2
 
4
- begin
5
- require 'bones'
6
- rescue LoadError
7
- abort '### Please install the "bones" gem ###'
8
- end
9
-
10
- Bones {
11
- name 'filepath'
12
- authors 'Gioele Barabucci'
13
- email 'gioele@svario.it'
14
- url 'http://github.com/gioele/filepath'
15
-
16
- version '0.5'
17
-
18
- ignore_file '.gitignore'
19
-
20
- depend_on 'bones-rspec', :development => true
21
- }
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
22
5
 
23
6
  require File.join(File.dirname(__FILE__), 'spec/tasks')
24
7
 
25
- task :default => 'spec:run'
26
- task 'gem:release' => 'spec:run'
8
+ RSpec::Core::RakeTask.new
9
+
10
+ task :default => :spec
11
+ task :release => :spec
27
12
 
28
- task 'spec:run' => 'spec:fixtures:gen'
13
+ task :spec => 'spec:fixtures:gen'
@@ -0,0 +1,32 @@
1
+ # coding: utf-8
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "filepath"
8
+ spec.version = "0.6"
9
+ spec.authors = ["Gioele Barabucci"]
10
+ spec.email = ["gioele@svario.it"]
11
+ spec.summary = "filepath is a small library that helps dealing with files, " +
12
+ "directories and paths in general; a modern replacement for " +
13
+ "the standard Pathname."
14
+ spec.description = "filepath is built around two main classes: `FilePath`, that " +
15
+ "represents paths, and `FilePathList`, lists of paths. The " +
16
+ "instances of these classes are immutable objects with dozens " +
17
+ "of convience methods for common operations such as calculating " +
18
+ "relative paths, concatenating paths, finding all the files in " +
19
+ "a directory or modifing all the extensions of a list of file "
20
+ "names at once."
21
+ spec.homepage = "http://github.com/gioele/filepath"
22
+ spec.license = "CC0"
23
+
24
+ spec.files = `git ls-files`.split($/)
25
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
26
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
27
+ spec.require_paths = ["lib"]
28
+
29
+ spec.add_development_dependency "bundler", "~> 1.3"
30
+ spec.add_development_dependency "rake"
31
+ spec.add_development_dependency "rspec"
32
+ end
@@ -1,5 +1,4 @@
1
- # This is free and unencumbered software released into the public domain.
2
- # See the `UNLICENSE` file or <http://unlicense.org/> for more details.
1
+ # This is free software released into the public domain (CC0 license).
3
2
 
4
3
  require 'filepath/filepath.rb'
5
4
  require 'filepath/filepathlist.rb'
@@ -1,5 +1,4 @@
1
- # This is free and unencumbered software released into the public domain.
2
- # See the `UNLICENSE` file or <http://unlicense.org/> for more details.
1
+ # This is free software released into the public domain (CC0 license).
3
2
 
4
3
 
5
4
  class Array
@@ -1,5 +1,4 @@
1
- # This is free and unencumbered software released into the public domain.
2
- # See the `UNLICENSE` file or <http://unlicense.org/> for more details.
1
+ # This is free software released into the public domain (CC0 license).
3
2
 
4
3
 
5
4
  class String
@@ -1,5 +1,4 @@
1
- # This is free and unencumbered software released into the public domain.
2
- # See the `UNLICENSE` file or <http://unlicense.org/> for more details.
1
+ # This is free software released into the public domain (CC0 license).
3
2
 
4
3
 
5
4
  class FilePath
@@ -1,5 +1,4 @@
1
- # This is free and unencumbered software released into the public domain.
2
- # See the `UNLICENSE` file or <http://unlicense.org/> for more details.
1
+ # This is free software released into the public domain (CC0 license).
3
2
 
4
3
 
5
4
  class FilePathList
@@ -1,5 +1,4 @@
1
- # This is free and unencumbered software released into the public domain.
2
- # See the `UNLICENSE` file or <http://unlicense.org/> for more details.
1
+ # This is free software released into the public domain (CC0 license).
3
2
 
4
3
  require File.join(File.dirname(__FILE__), 'spec_helper')
5
4
 
@@ -1,5 +1,4 @@
1
- # This is free and unencumbered software released into the public domain.
2
- # See the `UNLICENSE` file or <http://unlicense.org/> for more details.
1
+ # This is free software released into the public domain (CC0 license).
3
2
 
4
3
  require File.join(File.dirname(__FILE__), 'spec_helper')
5
4
 
@@ -1,3 +1,5 @@
1
+ # This is free software released into the public domain (CC0 license).
2
+
1
3
  LIB_DIR = File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib]))
2
4
  $LOAD_PATH.unshift(LIB_DIR) unless $LOAD_PATH.include?(LIB_DIR)
3
5
 
@@ -1,5 +1,6 @@
1
- # This is free and unencumbered software released into the public domain.
2
- # See the `UNLICENSE` file or <http://unlicense.org/> for more details.
1
+ # This is free software released into the public domain (CC0 license).
2
+
3
+ require 'rake/clean'
3
4
 
4
5
  FIXTURES_DIR = File.join(%w{spec fixtures})
5
6
  FIXTURES_FAKE_ENTRIES = [
metadata CHANGED
@@ -1,72 +1,76 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: filepath
3
- version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease:
6
- segments:
7
- - 0
8
- - 5
9
- version: "0.5"
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.6'
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Gioele Barabucci
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2012-07-31 00:00:00 Z
18
- dependencies:
19
- - !ruby/object:Gem::Dependency
20
- name: bones-rspec
11
+ date: 2013-09-15 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
21
  prerelease: false
22
- requirement: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- hash: 13
28
- segments:
29
- - 2
30
- - 0
31
- - 1
32
- version: 2.0.1
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
33
34
  type: :development
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: bones
37
35
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 39
44
- segments:
45
- - 3
46
- - 8
47
- - 0
48
- version: 3.8.0
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: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
49
48
  type: :development
50
- version_requirements: *id002
51
- description: |-
52
- filepath is a small library that helps dealing with files, directories and
53
- paths in general; a modern replacement for the standard Pathname.
54
- email: gioele@svario.it
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: 'filepath is built around two main classes: `FilePath`, that represents
56
+ paths, and `FilePathList`, lists of paths. The instances of these classes are immutable
57
+ objects with dozens of convience methods for common operations such as calculating
58
+ relative paths, concatenating paths, finding all the files in a directory or modifing
59
+ all the extensions of a list of file '
60
+ email:
61
+ - gioele@svario.it
55
62
  executables: []
56
-
57
63
  extensions: []
58
-
59
64
  extra_rdoc_files: []
60
-
61
- files:
62
- - .yardoc/checksums
63
- - .yardoc/object_types
64
- - .yardoc/objects/root.dat
65
- - .yardoc/proxy_types
65
+ files:
66
+ - .gitignore
67
+ - .travis.yml
66
68
  - .yardopts
69
+ - COPYING
70
+ - Gemfile
67
71
  - README.md
68
72
  - Rakefile
69
- - UNLICENSE
73
+ - filepath.gemspec
70
74
  - lib/filepath.rb
71
75
  - lib/filepath/core_ext/array.rb
72
76
  - lib/filepath/core_ext/string.rb
@@ -74,44 +78,35 @@ files:
74
78
  - lib/filepath/filepathlist.rb
75
79
  - spec/filepath_spec.rb
76
80
  - spec/filepathlist_spec.rb
77
- - spec/fixtures/d1/f11
78
- - spec/fixtures/d1/f12
79
- - spec/fixtures/f1
80
81
  - spec/spec_helper.rb
81
82
  - spec/tasks.rb
82
83
  homepage: http://github.com/gioele/filepath
83
- licenses: []
84
-
84
+ licenses:
85
+ - CC0
86
+ metadata: {}
85
87
  post_install_message:
86
- rdoc_options:
87
- - --main
88
- - README.md
89
- require_paths:
88
+ rdoc_options: []
89
+ require_paths:
90
90
  - lib
91
- required_ruby_version: !ruby/object:Gem::Requirement
92
- none: false
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- hash: 3
97
- segments:
98
- - 0
99
- version: "0"
100
- required_rubygems_version: !ruby/object:Gem::Requirement
101
- none: false
102
- requirements:
103
- - - ">="
104
- - !ruby/object:Gem::Version
105
- hash: 3
106
- segments:
107
- - 0
108
- version: "0"
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
109
101
  requirements: []
110
-
111
- rubyforge_project: filepath
112
- rubygems_version: 1.8.24
102
+ rubyforge_project:
103
+ rubygems_version: 2.0.4
113
104
  signing_key:
114
- specification_version: 3
115
- summary: filepath is a small library that helps dealing with files, directories and paths in general; a modern replacement for the standard Pathname.
116
- test_files: []
117
-
105
+ specification_version: 4
106
+ summary: filepath is a small library that helps dealing with files, directories and
107
+ paths in general; a modern replacement for the standard Pathname.
108
+ test_files:
109
+ - spec/filepath_spec.rb
110
+ - spec/filepathlist_spec.rb
111
+ - spec/spec_helper.rb
112
+ - spec/tasks.rb
@@ -1,5 +0,0 @@
1
- lib/filepath/filepathlist.rb 335c103f2ff2f3f0ac8002e6572efec06bc6a39f
2
- lib/filepath.rb b4eb1e60d85d4eec7fcc37bb64429918d7750887
3
- lib/filepath/filepath.rb 0c95f278feab4f64cd5535d1c994338b5c2c2638
4
- lib/filepath/core_ext/array.rb b774c4cbf988b1cd154222454dbc36730d4f5fe7
5
- lib/filepath/core_ext/string.rb 75d10671a6f439286f1c7d4f81d03eb84c3796f6
Binary file
Binary file
Binary file
data/UNLICENSE DELETED
@@ -1,24 +0,0 @@
1
- This is free and unencumbered software released into the public domain.
2
-
3
- Anyone is free to copy, modify, publish, use, compile, sell, or
4
- distribute this software, either in source code form or as a compiled
5
- binary, for any purpose, commercial or non-commercial, and by any
6
- means.
7
-
8
- In jurisdictions that recognize copyright laws, the author or authors
9
- of this software dedicate any and all copyright interest in the
10
- software to the public domain. We make this dedication for the benefit
11
- of the public at large and to the detriment of our heirs and
12
- successors. We intend this dedication to be an overt act of
13
- relinquishment in perpetuity of all present and future rights to this
14
- software under copyright law.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20
- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21
- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
- OTHER DEALINGS IN THE SOFTWARE.
23
-
24
- For more information, please refer to <http://unlicense.org/>
File without changes
File without changes
File without changes