activefacts-orm 1.9.3 → 1.9.4

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
- SHA1:
3
- metadata.gz: 82e2c25908f461462bc453d30fad3b5f7ac8863c
4
- data.tar.gz: 006d51ee61381439af10d7dc84ceddb2b82f6e49
2
+ SHA256:
3
+ metadata.gz: 5b1e670a02a064959acdb48a484f044597b034be46e4cdc1687019f93b0c8a96
4
+ data.tar.gz: a65dc7b26ac6aa636f5cfbf46bebf09539cb34aee5a9dba1a485f98dc049b73f
5
5
  SHA512:
6
- metadata.gz: bf0da1d7e8807ad4f33ccaba74b9d0456c493963a1f31d27c3c5fcdd773a44e9b4c316033bd28892bb71051a886392e49fc67c9d4461c0d3fa00d1bd43002632
7
- data.tar.gz: 44f9892a75edfd05cb7ae31e9385709e854af9688f56ad733ca70cf8e16d2c0e2879ef5b5c5affa9ed2ea391fcc4fee52b1a80d465dd0b5cafd5de5f204ccfd4
6
+ metadata.gz: 3e13f0d0dc7ef4668a92ecf82999e09919f6df0c0d3fbb6f726ab7577b3eb264bf3692a20de41ab34189692cd88cf12c912db6adc2e1fdb226c26a7d98839c63
7
+ data.tar.gz: 1c37e597b597322bfb32e531e911a2c3fefe8ec1fa093fe312a5e09ff359fb24bf137ea62a5529ac5b06da949d51b6d7a7433122609b97af7854b87c83a6232c
@@ -20,7 +20,7 @@ Install the Natural ORM Architect from http://ormfoundation.org to produce input
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_development_dependency "bundler", ">= 1.10"
23
- spec.add_development_dependency "rake", "> 10"
23
+ spec.add_development_dependency "rake", ">= 10"
24
24
  spec.add_development_dependency "rspec", "~> 3.3"
25
25
 
26
26
  spec.add_runtime_dependency "activefacts-metamodel", ">= 1.8", "~> 1"
@@ -521,11 +521,16 @@ module ActiveFacts
521
521
  # # REVISIT: rr.leading_adjective = ...; Add adjectives here
522
522
  # }
523
523
 
524
+ if x_readings.empty?
525
+ raise "#{fact_type.describe} has no readings"
526
+ end
524
527
  x_readings.each_with_index{|x, i|
525
528
  reading = @constellation.Reading(fact_type, fact_type.all_reading.size, :is_negative => false)
526
529
  reading.role_sequence = role_sequence
527
530
  # REVISIT: The downcase here only needs to be the initial letter of each word, but be safe:
528
- reading.text = extract_adjectives(x.text, role_sequence)
531
+ text = extract_adjectives(x.text, role_sequence)
532
+ raise "#{fact_type.describe} has an empty reading #{x.text}" if text.empty?
533
+ reading.text = text
529
534
  }
530
535
  }
531
536
  end
@@ -578,7 +583,7 @@ module ActiveFacts
578
583
  case w
579
584
  when /[A-Za-z]/
580
585
  if RESERVED_WORDS.include?(w)
581
- $stderr.puts "Masking reserved word '#{w}' in reading '#{text}' with players #{all_role_refs.map(&:role).map(&:name).inspect}"
586
+ $stderr.puts "Masking reserved word '#{w}' in reading '#{text}' with players #{all_role_refs.map(&:role).map(&:object_type).map(&:name).inspect}"
582
587
  next "_#{w}"
583
588
  elsif @constellation.ObjectType[[[@vocabulary.name], w]]
584
589
  $stderr.puts "Masking object type name '#{w}' in reading '#{text}'"
@@ -1,5 +1,5 @@
1
1
  module ActiveFacts
2
2
  module ORM
3
- VERSION = "1.9.3"
3
+ VERSION = "1.9.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activefacts-orm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.3
4
+ version: 1.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clifford Heath
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-12 00:00:00.000000000 Z
11
+ date: 2019-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,14 +28,14 @@ dependencies:
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10'
41
41
  - !ruby/object:Gem::Dependency
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  requirements: []
133
133
  rubyforge_project:
134
- rubygems_version: 2.6.13
134
+ rubygems_version: 2.7.6
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: ORM format importer for the ActiveFacts fact modeling suite.