collapsium 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -2
- data/Gemfile.lock +1 -1
- data/collapsium.gemspec +2 -2
- data/lib/collapsium/support/methods.rb +5 -0
- data/lib/collapsium/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 825b8a5ec19d768060bc4024a12fc78d3f3c9ed1
|
4
|
+
data.tar.gz: 366975e637fa2a856de4f6dfce2eeec7d5a0a23a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbb69003e1c2e62442e335a4a9dab8bfd2a3763b431ccf6eef3dbf042c729f17afd9b50a50c08665ccb79d118aede827d026f40df5aa1fb0cab4d012c3a213e5
|
7
|
+
data.tar.gz: a2b827ec5aef79c244b29f24839171b20b45b134698d591edd1344b806cc64a9ca45bef60d71a04582cfa85fd5ba813d9f5fce1d52967e6d60ffa30deb908320
|
data/.rubocop.yml
CHANGED
@@ -4,10 +4,10 @@ AllCops:
|
|
4
4
|
# Metrics
|
5
5
|
|
6
6
|
Metrics/LineLength:
|
7
|
-
Max:
|
7
|
+
Max: 84
|
8
8
|
Details: >-
|
9
9
|
Line length of 80 is ideal for readability and compatibility; we'll accept
|
10
|
-
an extra
|
10
|
+
an extra 4 for minor edge cases (e.g. copyright notice).
|
11
11
|
|
12
12
|
Metrics/MethodLength:
|
13
13
|
Max: 35
|
@@ -77,6 +77,9 @@ Style/PreferredHashMethods:
|
|
77
77
|
Style/NumericPredicate:
|
78
78
|
Enabled: false # Not compatible with <= 2.2
|
79
79
|
|
80
|
+
Style/YodaCondition:
|
81
|
+
Enabled: false
|
82
|
+
|
80
83
|
# Layout
|
81
84
|
|
82
85
|
Layout/EmptyLineAfterMagicComment:
|
data/Gemfile.lock
CHANGED
data/collapsium.gemspec
CHANGED
@@ -12,7 +12,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
12
12
|
require 'collapsium/version'
|
13
13
|
|
14
14
|
# rubocop:disable Style/UnneededPercentQ
|
15
|
-
# rubocop:disable
|
15
|
+
# rubocop:disable Layout/SpaceAroundOperators
|
16
16
|
Gem::Specification.new do |spec|
|
17
17
|
spec.name = "collapsium"
|
18
18
|
spec.version = Collapsium::VERSION
|
@@ -41,5 +41,5 @@ Gem::Specification.new do |spec|
|
|
41
41
|
spec.add_development_dependency "simplecov", "~> 0.13"
|
42
42
|
spec.add_development_dependency "yard", "~> 0.9"
|
43
43
|
end
|
44
|
-
# rubocop:enable
|
44
|
+
# rubocop:enable Layout/SpaceAroundOperators
|
45
45
|
# rubocop:enable Style/UnneededPercentQ
|
@@ -35,9 +35,14 @@ module Collapsium
|
|
35
35
|
|
36
36
|
# Object's constants contain all Module and Class definitions to date.
|
37
37
|
# We need to get the constant values, though, not just their names.
|
38
|
+
# Note: the $VERBOSE mess is to silence deprecation warnings, which
|
39
|
+
# occur on newer Ruby versions.
|
40
|
+
verbose = $VERBOSE
|
41
|
+
$VERBOSE = nil
|
38
42
|
builtins = Object.constants.sort.map do |const_name|
|
39
43
|
Object.const_get(const_name)
|
40
44
|
end
|
45
|
+
$VERBOSE = verbose
|
41
46
|
|
42
47
|
# If JSON was required, there will be some generator methods that
|
43
48
|
# override the above generators. We want to filter those out as well.
|
data/lib/collapsium/version.rb
CHANGED