column_namespace 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changes +3 -0
- data/lib/column_namespace.rb +1 -1
- data/lib/column_namespace/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4b491bdd9dfdf04bea97137b8e056257528f5a4aa5d5a2fc799ec921032f1b8
|
4
|
+
data.tar.gz: 2a1d18fc02a3181b5d5c87d933c72294848e1eb2e12fc020632d19ce88f284a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d1f594cf9715ad6e34b2c3609cf4d0601ecfd6bbe8e022b5cce26235c60c7d994d9326b435ebb8c0855d13a05b1d876f536b01b70ce777c4398f19d4ea63f22
|
7
|
+
data.tar.gz: fa73f707f95fd899a52da104225b4b3a44ee09f88b2aa0d91a829d5245a88d7a14921504ff55c51c734b72b0b316f9009a1687c5d42dcf5dbca19bb8c4fe865b
|
data/Changes
ADDED
data/lib/column_namespace.rb
CHANGED
@@ -45,7 +45,7 @@ module ColumnNamespace
|
|
45
45
|
columns = column_names.select { |name| name.starts_with?(prefix) }
|
46
46
|
raise "No attributes found with prefix #{prefix}" unless columns.any?
|
47
47
|
|
48
|
-
method = prefix.sub(/[^[:alnum]]*\z/i, "")
|
48
|
+
method = prefix.sub(/[^[:alnum:]]*\z/i, "")
|
49
49
|
klass = method.classify
|
50
50
|
prefix_regex = /\A#{Regexp.quote(prefix)}[^[:alnum:]]*/
|
51
51
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: column_namespace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Skye Shaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: class2
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- ".rspec"
|
112
112
|
- ".travis.yml"
|
113
113
|
- Appraisals
|
114
|
+
- Changes
|
114
115
|
- Gemfile
|
115
116
|
- README.md
|
116
117
|
- Rakefile
|