data_files 1.1.0 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bc77b2428d997de38f6a43403419c6309bfccfa7447cb05ff4a2400d554d4be
4
- data.tar.gz: e8ad9473ff79bd780755e0bf363ffbd7ed9d4d36055d7e1a8c7ffa726b103d7b
3
+ metadata.gz: b212bb7e832b642964a3de361f3c7e3ffc4e329f524513744a61f60f74e16727
4
+ data.tar.gz: 6f64abd79a24bbc6780cb67523035e18094b70b7e03df25907cd21f7a4cfa2e2
5
5
  SHA512:
6
- metadata.gz: 077d728c7dc6ec187a1f2022e2e5bb5c95f99552e485e427e466d9cf42a35c5648d0f4a33556f6f5d44cdc71b825e33adfb4eb9be24ebee27f9c3c92d4ae739a
7
- data.tar.gz: 4acd129fe10323bf1615edf6a9acd0f607daf1b91d05b58142b91a6adc45acec5e516e7d1d896c99efd8347335fd5a58135b8866698d144afc318505e6f3d7e3
6
+ metadata.gz: 659761b1f511dcee0e3871fb68473cc16a720ea90a9648aeca9bf53bc163f71f83ef0198554fa6d392983410f4945902bc0b8e8f8cf0269cc856d10fc4fdeb83
7
+ data.tar.gz: 7cb7ad80683e15eb47b9a72dec1849e5cf17db3560ddcaee21f4609d88e3be9dd243509d942a62404882b5a76415cdbee895cbc0573530ed7afc159e3c3bb0ed
@@ -1,3 +1,7 @@
1
+ ## [1.1.1] - 2020-01-10
2
+ ### Fixed
3
+ - Don't crash when trying to autocomplete line that contains an assignment.
4
+
1
5
  ## [1.1.0] - 2020-01-10
2
6
  ### Added
3
7
  - Attribute value autocompletion for the ActiveData methods `where` and `find_by`.
@@ -33,6 +33,8 @@ module DataFiles
33
33
  def parse_input(input)
34
34
  klass_name, remainder = input.split('.')
35
35
  method_name, attribute_name, attribute_value = remainder&.split(REGEX_OPENING_PARENTHESIS_OR_WHITESPACE)
36
+
37
+ klass_name = klass_name&.split('=')&.last&.strip
36
38
  attribute_name = attribute_name&.sub(':', '')&.strip
37
39
  attribute_value = attribute_value&.sub('"', '')&.sub('\'', '')
38
40
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DataFiles
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: data_files
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Zecher