entitize 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/entitize.rb +21 -3
- data/lib/entitize/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3642ef57da490622516961c5489fa74257cf7b68
|
|
4
|
+
data.tar.gz: fa574140fad1231cf88d100778c05b3642711493
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 400d3368a6f10d85103540d13c069e280985b6b485074552a6b4d8d9abf0df5d6b9638f7c25271e5e70bf8a5c280da1573a67d352306b39af95dff31038e1d29
|
|
7
|
+
data.tar.gz: 1d7c2a4b7f82a354e3929af1341d122198620dac404e9614d9a7c8e41abf05a90f5ed6a767a678d2c1a79cc2376a1aff1e6ed483ad41e0520e1b31bd2d533063
|
data/Gemfile.lock
CHANGED
data/lib/entitize.rb
CHANGED
|
@@ -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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
data/lib/entitize/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
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.
|