oo 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oo/license_checkers.rb +2 -0
- data/lib/oo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0061d8dd1e54b5a59c35fce0d6ebaa42e3ddab7d
|
4
|
+
data.tar.gz: 82beff7688104e9f1b81d0935bf78bfef1e0891d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8172a6dd1d450969a92972e431ee5fccbf823d764732bc8dbe632f1434b04c2b43008b00cefcce252b35102a14af16183609dd230ccbd784a5144719f3feb97
|
7
|
+
data.tar.gz: 4456a71615fc8a8f31b0a9d8d109af3bf772947fb1d284bd7b6db1b71c3026050c7b3516fa2d5bcccae0837139ba49f54bce4cc3e5674956ac22cb672dd54bd5
|
data/lib/oo/license_checkers.rb
CHANGED
@@ -2,6 +2,8 @@ module OO
|
|
2
2
|
module LicenseCheckers
|
3
3
|
def self.included(base)
|
4
4
|
base.class_eval do
|
5
|
+
helper_method(:licensed?) if defined?(Rails)
|
6
|
+
|
5
7
|
def licensed?(attrs = {})
|
6
8
|
user = attrs.fetch(:user, license_checkers_default_user)
|
7
9
|
key = attrs.fetch(:to, license_checkers_default_key)
|
data/lib/oo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Krzysztof Buszewicz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|