enumerations 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/enumerations.gemspec +1 -1
- data/lib/enumerations/configuration.rb +3 -5
- data/lib/enumerations/version.rb +1 -1
- data/test/helpers/test_helper.rb +0 -2
- 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: 6d3706af5a24b06cfd32e5313ae93aed2d141e1c
|
4
|
+
data.tar.gz: 84e6d7f1536f2fda8bf380dfb8aefd93251bf7fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a33613627715d0897356efcef395ba8a9aaaa037a09c10164304c4fa852521c41f11d650cb3d99caa11e96ee41849c750e490fa154516177b23d231d93d61886
|
7
|
+
data.tar.gz: 8c79d5499ace432b42be7ba39a0ddac3a425dd23fd1c7da6401340bc6571e0bb13c8a673c4a1899ad98857ab861318753ed9ae9f8b747b7f4c0fc42aa17aaf50
|
data/enumerations.gemspec
CHANGED
@@ -3,7 +3,7 @@ require File.expand_path('../lib/enumerations/version', __FILE__)
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'enumerations'
|
5
5
|
s.version = Enumerations::VERSION
|
6
|
-
s.date = '2016-09-
|
6
|
+
s.date = '2016-09-20'
|
7
7
|
s.summary = 'Enumerations for ActiveRecord!'
|
8
8
|
s.description = 'Extends ActiveRecord with enumeration capabilites.'
|
9
9
|
s.homepage = 'https://github.com/infinum/enumerations'
|
@@ -1,16 +1,14 @@
|
|
1
1
|
module Enumerations
|
2
|
-
|
3
|
-
|
2
|
+
def self.configuration
|
3
|
+
@configuration ||= Configuration.new
|
4
4
|
end
|
5
5
|
|
6
6
|
def self.configure
|
7
|
-
self.configuration ||= Configuration.new
|
8
7
|
yield(configuration)
|
9
8
|
end
|
10
9
|
|
11
10
|
def self.restore_default_configuration
|
12
|
-
|
13
|
-
configure {}
|
11
|
+
@configuration = nil
|
14
12
|
end
|
15
13
|
|
16
14
|
class Configuration
|
data/lib/enumerations/version.rb
CHANGED
data/test/helpers/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enumerations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomislav Car
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2016-09-
|
15
|
+
date: 2016-09-20 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activerecord
|