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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 851cc54004fb49af7ab29acf1b0adb5d887e54246397058aed37de7f3761b5f7
4
- data.tar.gz: 18f116ac4a131c58a27aeea0baf575bc7e5c392ac1e4b667bc614b955d538bcb
3
+ metadata.gz: f4b491bdd9dfdf04bea97137b8e056257528f5a4aa5d5a2fc799ec921032f1b8
4
+ data.tar.gz: 2a1d18fc02a3181b5d5c87d933c72294848e1eb2e12fc020632d19ce88f284a0
5
5
  SHA512:
6
- metadata.gz: 19e4d8ef5552f60155fe65ec73f0a704aa3e2d18b9311c06ecddce80fca924f6ae2c1a8e58f06d2b169d804264a759893e5ed80c03213d2adf3bac4f93258782
7
- data.tar.gz: a6e06fd4d6a22db02df72eb27c5e6596888d0cfdf46b95011200bc5f34b91628177e59b147c3778671b537937a52d6fe87448248a6fe9ee8d4273d182c0252b2
6
+ metadata.gz: 9d1f594cf9715ad6e34b2c3609cf4d0601ecfd6bbe8e022b5cce26235c60c7d994d9326b435ebb8c0855d13a05b1d876f536b01b70ce777c4398f19d4ea63f22
7
+ data.tar.gz: fa73f707f95fd899a52da104225b4b3a44ee09f88b2aa0d91a829d5245a88d7a14921504ff55c51c734b72b0b316f9009a1687c5d42dcf5dbca19bb8c4fe865b
data/Changes ADDED
@@ -0,0 +1,3 @@
1
+ 2020-05-22 v0.0.2
2
+ --------------------
3
+ * Fix regex bug when using only a column prefix
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ColumnNamespace
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
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.1
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-16 00:00:00.000000000 Z
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