licensee 8.2.0 → 8.3.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: e34131b196b6176d20acb844ce668c691de7003e
4
- data.tar.gz: a27aeb40069ab19dd1a266a90577dd65753007c0
3
+ metadata.gz: 164aba2b0d79240f86c450f08efcad11696c1689
4
+ data.tar.gz: ba886506d15fde0a96c1ef386a9479c81dd19110
5
5
  SHA512:
6
- metadata.gz: 0fe14b903ee7c7aeac6bece99321a0f278625975c0d44f500444858d8d1740c5601113db2b38c7808db10475eade71dafc03646d21889568803e8a49cbfbd327
7
- data.tar.gz: 20147a4a74491137b911cfc496f58cac5bb036d33a818b75bfd183d7ed13cdb78880467665619476700c2bab3f2e6f4316b3e996de72855e826599a15ffc680c
6
+ metadata.gz: 13be7b5f7eaa4f0bdba46022128506680a50dd340a17b13a0ad0ee0629bdc8953521e47686c3c74b9ac2cd14e135da91945dae447f9905579a1af6e5559f939a
7
+ data.tar.gz: 2bb3cadf3a5d0ce3b61d39d33e9faac916626eb1bb3da52c3649a90e574e9ab9dbf686071ddf64390b8605e845cc4ea0a660c71d3c4f7c6e7e420b2bf1194fca
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ MIT License
2
2
 
3
- Copyright (c) 2014-2015 Ben Balter
3
+ Copyright (c) 2014-2016 Ben Balter
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,3 +1,3 @@
1
1
  module Licensee
2
- VERSION = '8.2.0'.freeze
2
+ VERSION = '8.3.0'.freeze
3
3
  end
@@ -0,0 +1,23 @@
1
+ Copyright (c) 2015, Ben Balter
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,27 @@
1
+ Copyright (c) 2015, Ben Balter
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ * Neither the name of [project] nor the names of its
15
+ contributors may be used to endorse or promote products derived from
16
+ this software without specific prior written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2015, Ben Balter
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any
4
+ purpose with or without fee is hereby granted, provided that the above
5
+ copyright notice and this permission notice appear in all copies.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
10
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Ben Balter
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -4,7 +4,7 @@ class TestLicensee < Minitest::Test
4
4
  should 'know the licenses' do
5
5
  assert_equal Array, Licensee.licenses.class
6
6
  assert_equal 7, Licensee.licenses.size
7
- assert_equal 28, Licensee.licenses(hidden: true).size
7
+ assert_equal 29, Licensee.licenses(hidden: true).size
8
8
  assert_equal Licensee::License, Licensee.licenses.first.class
9
9
  end
10
10
 
@@ -137,7 +137,7 @@ class TestLicenseeLicense < Minitest::Test
137
137
  describe 'class methods' do
138
138
  should 'know license names' do
139
139
  assert_equal Array, Licensee::License.keys.class
140
- assert_equal 28, Licensee::License.keys.size
140
+ assert_equal 29, Licensee::License.keys.size
141
141
  end
142
142
 
143
143
  should 'load the licenses' do
@@ -153,12 +153,12 @@ class TestLicenseeLicense < Minitest::Test
153
153
  end
154
154
 
155
155
  should 'filter the licenses' do
156
- assert_equal 28, Licensee::License.all(hidden: true).size
156
+ assert_equal 29, Licensee::License.all(hidden: true).size
157
157
  assert_equal 3, Licensee::License.all(featured: true).size
158
158
  assert_equal 4, Licensee::License.all(featured: false).size
159
159
 
160
160
  licenses = Licensee::License.all(featured: false, hidden: true)
161
- assert_equal 25, licenses.size
161
+ assert_equal 26, licenses.size
162
162
 
163
163
  licenses = Licensee::License.all(featured: false, hidden: false)
164
164
  assert_equal 4, licenses.size
@@ -75,14 +75,32 @@ class TestLicenseeProject < Minitest::Test
75
75
  end
76
76
  end
77
77
 
78
- describe 'mit license with title removed' do
79
- should 'detect the MIT license' do
78
+ describe 'licenses with title removed or altered' do
79
+ should 'detect the MIT license without title' do
80
80
  verify_license_file fixture_path('mit-without-title/mit.txt')
81
81
  end
82
82
 
83
83
  should 'should detect the MIT license when rewrapped' do
84
84
  verify_license_file fixture_path('mit-without-title-rewrapped/mit.txt')
85
85
  end
86
+
87
+ should 'detect the MIT license with redundant title' do
88
+ verify_license_file fixture_path('mit-with-redundant-title/mit.txt')
89
+ end
90
+
91
+ should 'detect the BSD 2-clause license without title' do
92
+ verify_license_file fixture_path(
93
+ 'bsd-2-clause-without-title/bsd-2-clause.txt')
94
+ end
95
+
96
+ should 'detect the BSD 3-Clause license without title' do
97
+ verify_license_file fixture_path(
98
+ 'bsd-3-clause-without-title/bsd-3-clause.txt')
99
+ end
100
+
101
+ should 'detect the ISC license without title' do
102
+ verify_license_file fixture_path('isc-without-title/isc.txt')
103
+ end
86
104
  end
87
105
 
88
106
  describe 'packages' do
@@ -3,7 +3,7 @@ title: "Do What The F*ck You Want To Public License"
3
3
  spdx-id: WTFPL
4
4
  source: http://www.wtfpl.net/
5
5
 
6
- description: The easiest licence out there. It gives the user permissions to do whatever they want with your code.
6
+ description: The easiest license out there. It gives the user permissions to do whatever they want with your code.
7
7
 
8
8
  how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file.
9
9
 
@@ -0,0 +1,42 @@
1
+ ---
2
+ title: zlib License
3
+ spdx-id: Zlib
4
+ source: https://opensource.org/licenses/Zlib
5
+
6
+ description: A short permissive license, compatible with GPL. Requires altered source versions to be documented as such.
7
+
8
+ how: Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.
9
+
10
+ conditions:
11
+ - include-copyright
12
+ - document-changes
13
+
14
+ permissions:
15
+ - commercial-use
16
+ - modifications
17
+ - distribution
18
+ - private-use
19
+
20
+ limitations:
21
+ - no-liability
22
+ ---
23
+
24
+ zlib License
25
+
26
+ (C) [year] [fullname]
27
+
28
+ This software is provided 'as-is', without any express or implied
29
+ warranty. In no event will the authors be held liable for any damages
30
+ arising from the use of this software.
31
+
32
+ Permission is granted to anyone to use this software for any purpose,
33
+ including commercial applications, and to alter it and redistribute it
34
+ freely, subject to the following restrictions:
35
+
36
+ 1. The origin of this software must not be misrepresented; you must not
37
+ claim that you wrote the original software. If you use this software
38
+ in a product, an acknowledgment in the product documentation would be
39
+ appreciated but is not required.
40
+ 2. Altered source versions must be plainly marked as such, and must not be
41
+ misrepresented as being the original software.
42
+ 3. This notice may not be removed or altered from any source distribution.
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: licensee
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.2.0
4
+ version: 8.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-15 00:00:00.000000000 Z
11
+ date: 2016-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.24b
19
+ version: '0.24'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.24b
26
+ version: '0.24'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -128,12 +128,15 @@ files:
128
128
  - test/fixtures/bower-with-readme/README.md
129
129
  - test/fixtures/bower-with-readme/bower.json
130
130
  - test/fixtures/bower/bower.json
131
+ - test/fixtures/bsd-2-clause-without-title/bsd-2-clause.txt
132
+ - test/fixtures/bsd-3-clause-without-title/bsd-3-clause.txt
131
133
  - test/fixtures/case-sensitive.git/HEAD
132
134
  - test/fixtures/case-sensitive.git/config
133
135
  - test/fixtures/case-sensitive.git/objects/01/7b4f1eebd1dcb735e950b1d01093e3e2bf85e9
134
136
  - test/fixtures/case-sensitive.git/objects/2c/b878e0851c5cf53d7455d9018baa6755a38bd7
135
137
  - test/fixtures/case-sensitive.git/objects/fb/ddf40ba5f30225af7cd9841afe374ca5800cb9
136
138
  - test/fixtures/case-sensitive.git/refs/heads/master
139
+ - test/fixtures/isc-without-title/isc.txt
137
140
  - test/fixtures/licence.git/HEAD
138
141
  - test/fixtures/licence.git/config
139
142
  - test/fixtures/licence.git/objects/66/0c086dc25f9f3b96e7afd9dee8a11b4e614543
@@ -158,6 +161,7 @@ files:
158
161
  - test/fixtures/licenses.git/objects/pack/pack-4a7088171ae3ca900f010a4be6f1c2c96490c338.pack
159
162
  - test/fixtures/licenses.git/packed-refs
160
163
  - test/fixtures/licenses.git/refs/heads/master
164
+ - test/fixtures/mit-with-redundant-title/mit.txt
161
165
  - test/fixtures/mit-without-title-rewrapped/mit.txt
162
166
  - test/fixtures/mit-without-title/mit.txt
163
167
  - test/fixtures/named-license-file-prefix.git/HEAD
@@ -230,6 +234,7 @@ files:
230
234
  - vendor/choosealicense.com/_licenses/osl-3.0.txt
231
235
  - vendor/choosealicense.com/_licenses/unlicense.txt
232
236
  - vendor/choosealicense.com/_licenses/wtfpl.txt
237
+ - vendor/choosealicense.com/_licenses/zlib.txt
233
238
  homepage: https://github.com/benbalter/licensee
234
239
  licenses:
235
240
  - MIT