licensee 4.2.3 → 4.2.4

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: 8d1203a53c9b3074cbeffd26bd211c3b8cff3328
4
- data.tar.gz: 1425f46a5b52bdb7f6d567280d913520732a1110
3
+ metadata.gz: a4cb5e38f1cd304a7f3610e1f7e6dab39540fb5f
4
+ data.tar.gz: 5680e4a5987219b6ac315db16cac710d75626b21
5
5
  SHA512:
6
- metadata.gz: 98c3066762f47409124b92824b7d5918868645512ed42afff9f6df98ef9b324ea9a1391a5d90cdb071b750f5bc3a13abb318a37048577afc5627eae82bdb6f59
7
- data.tar.gz: b43eb6ba10189dd7c29460d24fc0fd8f45e2458fe050c53758af4f674328a3de15d3bb0eef2f378a63e352fff580cbb38c3503f60e7514888dccd2fb54e69ab7
6
+ metadata.gz: f5354a2d34d698d2cbad1634f41b987ccc7ab7724c3a0326eab2cb31f5c029c27ae40489017784dfcb7c79c9dbd045d91a1ced46cb26001dfa97f33a621049bd
7
+ data.tar.gz: 739bb188cdba12bf00a3a94e3a21a30f7df67f4324cabdcb3645f39d3d27d2ab565403c5725415de181f139d7cd9a1002c0bc9ad416578a5c887589cb84715e8
@@ -35,7 +35,7 @@ class Licensee
35
35
  end
36
36
 
37
37
  def featured?
38
- meta["featured"] if meta
38
+ !!(meta["featured"] if meta)
39
39
  end
40
40
  alias_method :featured, :featured?
41
41
 
@@ -1,3 +1,3 @@
1
1
  class Licensee
2
- VERSION = "4.2.3"
2
+ VERSION = "4.2.4"
3
3
  end
@@ -29,7 +29,9 @@ class TestLicenseeLicense < Minitest::Test
29
29
 
30
30
  should "know if the license is featured" do
31
31
  assert @license.featured?
32
+ assert_equal TrueClass, @license.featured?.class
32
33
  refute Licensee::License.new("cc0").featured?
34
+ assert_equal FalseClass, Licensee::License.new("cc0").featured?.class
33
35
  end
34
36
 
35
37
  should "parse the license parts" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: licensee
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.3
4
+ version: 4.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter