evt-constant 2.1.0.0 → 2.1.0.1
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/lib/constant/import.rb +1 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17eced35f5905252a25ba020d494be512c92a9007a7958489c52248bd492b0f1
|
|
4
|
+
data.tar.gz: ab36e7dac2d41e40455b8eac4eb71a0bdc74ea3fac996d314992b2b5b97b5f4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca38a280e592e840eb98e0a5df5d6b73551ca5112c9839052a5dd2f7eda2bef671444eeb844750d3bcd1a0f3d3d9bbf03319d1b1e5659fddccf2378a9fbcc0e6
|
|
7
|
+
data.tar.gz: 1af28935125986c0dfc6974a491e87cd04cbbac32a9245b5c04c17bf6769401ebe66b3d4ad130dac893fcc2deb2385e3cccc9c878e6b730e232c2a5f83de7260
|
data/lib/constant/import.rb
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
module Constant
|
|
2
2
|
module Import
|
|
3
|
-
Error = Class.new(RuntimeError)
|
|
4
|
-
|
|
5
3
|
def self.included(base)
|
|
6
4
|
base.extend(Macro)
|
|
7
5
|
end
|
|
@@ -10,7 +8,7 @@ module Constant
|
|
|
10
8
|
alias_name = kwargs[:alias]
|
|
11
9
|
|
|
12
10
|
if alias_name.nil? && destination_constant.ancestors.include?(origin_constant)
|
|
13
|
-
raise Error, "#{destination_constant} already includes #{origin_constant}"
|
|
11
|
+
raise Constant::Error, "#{destination_constant} already includes #{origin_constant}"
|
|
14
12
|
end
|
|
15
13
|
|
|
16
14
|
target = destination_constant
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: evt-constant
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.0.
|
|
4
|
+
version: 2.1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The Eventide Project
|
|
@@ -37,7 +37,7 @@ dependencies:
|
|
|
37
37
|
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: '0'
|
|
40
|
-
description: Utilities for
|
|
40
|
+
description: Utilities for importing constants and inspecting constants
|
|
41
41
|
email: opensource@eventide-project.org
|
|
42
42
|
executables: []
|
|
43
43
|
extensions: []
|