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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2378fbd29161d5abb1d0a5915f9b364d8e38d8e2
4
- data.tar.gz: 7a6f4c6d27bf5c82494bdf7e0991870d98249de4
3
+ metadata.gz: 0061d8dd1e54b5a59c35fce0d6ebaa42e3ddab7d
4
+ data.tar.gz: 82beff7688104e9f1b81d0935bf78bfef1e0891d
5
5
  SHA512:
6
- metadata.gz: 4f890c497ef66f8618238591e2c686f5d32a03d093674b227eb6617838f488ae004814441b6e45d3ca350e7093091511fdbf46c84f1c3952833c324c50c9f93a
7
- data.tar.gz: fd692c1c7373d8057f9c60e3ab8452dc7b2c6c9dcf4f6183baea89ded6fcb62fb9faa18ff16d94ca1edcd4eddc3e7a40fd9fff94f9a58f41ea9efd06e91cc203
6
+ metadata.gz: d8172a6dd1d450969a92972e431ee5fccbf823d764732bc8dbe632f1434b04c2b43008b00cefcce252b35102a14af16183609dd230ccbd784a5144719f3feb97
7
+ data.tar.gz: 4456a71615fc8a8f31b0a9d8d109af3bf772947fb1d284bd7b6db1b71c3026050c7b3516fa2d5bcccae0837139ba49f54bce4cc3e5674956ac22cb672dd54bd5
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module OO
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
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.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-03-08 00:00:00.000000000 Z
11
+ date: 2016-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler