entitize 0.1.7 → 0.1.8

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: 45d23da306ccc97d92b12300823d7446c16ee699
4
- data.tar.gz: 21ff887c661da5165034f144d4b6e04851524d87
3
+ metadata.gz: 3642ef57da490622516961c5489fa74257cf7b68
4
+ data.tar.gz: fa574140fad1231cf88d100778c05b3642711493
5
5
  SHA512:
6
- metadata.gz: 99490097718f6b005cf5caaa043084758427dd9c86b67f14991491b371d76a6bd72a0f3a3f86f4b8f84a2b4971fab913b403a319a31e10c695601d389d61377f
7
- data.tar.gz: 89c158553f474d0a73e6936e2984c15c445f4d53add128fd053d1b66b2e5c30904d8dcd380ec1d73f6333daf689cbd27aaa992d03f3a9def7a0a3a1d54e29e7e
6
+ metadata.gz: 400d3368a6f10d85103540d13c069e280985b6b485074552a6b4d8d9abf0df5d6b9638f7c25271e5e70bf8a5c280da1573a67d352306b39af95dff31038e1d29
7
+ data.tar.gz: 1d7c2a4b7f82a354e3929af1341d122198620dac404e9614d9a7c8e41abf05a90f5ed6a767a678d2c1a79cc2376a1aff1e6ed483ad41e0520e1b31bd2d533063
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- entitize (0.1.6)
4
+ entitize (0.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -10,10 +10,28 @@ module Entities
10
10
  end
11
11
 
12
12
  module Entitize
13
+ class Configuration
14
+ attr_accessor :base_class
13
15
 
14
- # TODO: Make this customizable
15
- def self.base_class
16
- Entities
16
+ def initialize
17
+ @base_class = Entities
18
+ end
19
+ end
20
+
21
+ class << self
22
+ attr_writer :configuration
23
+
24
+ def configuration
25
+ @configuration ||= Configuration.new
26
+ end
27
+
28
+ def set_base_class(base_class)
29
+ configuration.base_class = base_class
30
+ end
31
+
32
+ def base_class
33
+ configuration.base_class
34
+ end
17
35
  end
18
36
 
19
37
  end
@@ -1,3 +1,3 @@
1
1
  module Entitize
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: entitize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Fiser
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-05 00:00:00.000000000 Z
11
+ date: 2019-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubyforge_project:
101
- rubygems_version: 2.6.10
101
+ rubygems_version: 2.6.12
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Entitize is a library that makes working with external APIs easier.