trax_core 0.0.74 → 0.0.76
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2f12c0eb949c697016820d627ef3467f9a679ee
|
4
|
+
data.tar.gz: cfc59dc2ef2d2ab1bf266b1b649dc15238d984cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8610656021f6fb3456ccc175b4d31864616906ce6a16095739bc18636e1f0572357345e32c5a52f4b0e944b732bc490d34881f1007b1df896d5867ceaf1853a4
|
7
|
+
data.tar.gz: 6f98fccf161ab3c3f3e88bcc0db7f3dc6b1f423109ed0c8cab4147543eb3e979ce1d0fe4ebf9a287792a34ac20bc80a186fa1ee4f1777269b41fcf6da19975e6
|
@@ -16,6 +16,11 @@ module Trax
|
|
16
16
|
end
|
17
17
|
end)
|
18
18
|
|
19
|
+
options.each_pair do |k,v|
|
20
|
+
module_object.instance_variable_set("@#{k}", v)
|
21
|
+
module_object.singleton_class.__send__(:attr_reader, k)
|
22
|
+
end unless options.blank?
|
23
|
+
|
19
24
|
module_object.module_eval(&block) if block_given?
|
20
25
|
|
21
26
|
includes = [options.extract!(:includes).fetch(:includes) { nil }].compact.flatten
|
data/lib/trax_core/version.rb
CHANGED
@@ -12,4 +12,16 @@ describe ::Trax::Core::NamedModule do
|
|
12
12
|
let(:fake_module_name) { "FakeNamespace::ThingWithIncludes" }
|
13
13
|
it { expect(subject::BASE_PRICE).to eq "0.00" }
|
14
14
|
end
|
15
|
+
|
16
|
+
|
17
|
+
context "includes" do
|
18
|
+
let(:fake_module_name) { "FakeNamespace::ThingWithIncludes" }
|
19
|
+
it { expect(subject::BASE_PRICE).to eq "0.00" }
|
20
|
+
end
|
21
|
+
|
22
|
+
context "variables" do
|
23
|
+
let(:fake_module_name) { "FakeNamespace::ThingWithAttributes" }
|
24
|
+
|
25
|
+
it { expect(subject.default_setting_for_something).to eq "anything" }
|
26
|
+
end
|
15
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trax_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.76
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Ayre
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|