activefacts-api 1.8.1 → 1.8.3

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
  SHA1:
3
- metadata.gz: 4e8bc18f2ff2e54fc8fba5887cb489ff347ff985
4
- data.tar.gz: e1e3f0193704bf2f2f499b547af8e9b21051184d
3
+ metadata.gz: 53d9f111a40359767bb349de0cd96ce8361e87a6
4
+ data.tar.gz: be6ca92584885108eb1a8992fe0a15af344826c9
5
5
  SHA512:
6
- metadata.gz: 4e875745552de8d366040ce5a5d706fbd4a8d62c3ab63b9a9374ceab8339b16291d7cc86906c0310b0087a013abf29fe9ac5811899e98e99ffc36d1d12596931
7
- data.tar.gz: fa8d10b07b754afd0dd43afa71af4e148f7e71097d3670cfda6cb69a72575fc8b101b226b122659cc81e5a238848f7f2e3e53192c06900a14fca8610f92010d8
6
+ metadata.gz: 0caee6c89b9f5d3b1c31b021d874430b601f8083f5eda9fa5c99ba066f2dc1ad305e58727fba02f0242c0b729f1b6cf962bf5754da6a145e1d6ca5f15f40e1ff
7
+ data.tar.gz: 06ded73a5f6423d2c23ad95cef8ae17f4c655e03ed44fd69d1b66957659eacea2b2704e34c37b3953de0cb7458795a0b3d5401a79c376fe6dc211eab1ba89b9e
@@ -0,0 +1,28 @@
1
+ ToDo
2
+ Thoughts
3
+ Documentation
4
+
5
+ # rcov generated
6
+ coverage
7
+
8
+ # rdoc generated
9
+ rdoc
10
+
11
+ # yard generated
12
+ doc
13
+ .yardoc
14
+
15
+ # bundler
16
+ .bundle
17
+ Gemfile.lock
18
+
19
+ pkg
20
+
21
+ # Rubinius generated
22
+ .rbx
23
+
24
+ # Common spec log file
25
+ spec/*log
26
+
27
+ .DS_Store
28
+ *.swp
data/.rspec CHANGED
@@ -1,2 +1 @@
1
1
  --require spec_helper
2
- --color
data/Gemfile CHANGED
@@ -1,15 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'rbtree-pure', '~> 0'
4
-
5
- group :development do
6
- gem 'rake', '~> 10.1'
7
- gem 'jeweler', '~> 2'
8
- gem 'rspec', '~> 2.6', '>= 2.6.0'
9
- gem 'ruby-debug', '~> 0', :platforms => [:mri_18]
10
- gem 'debugger', '~> 1', :platforms => [:mri_19, :mri_20]
11
- gem 'pry', '~> 0', :platforms => [:jruby, :rbx]
12
- end
3
+ gemspec
13
4
 
14
5
  group :test do
15
6
  # rcov 1.0.0 is broken for jruby, so 0.9.11 is the only one available.
data/Rakefile CHANGED
@@ -1,32 +1,8 @@
1
- require 'rubygems'
2
- require 'rake'
3
-
4
- require 'jeweler'
5
- Jeweler::Tasks.new do |gem|
6
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
7
- gem.name = "activefacts-api"
8
- gem.homepage = "http://github.com/cjheath/activefacts-api"
9
- gem.license = "MIT"
10
- gem.summary = "A fact-based data model DSL and API"
11
- gem.description = %q{
12
- The ActiveFacts API is a Ruby DSL for managing constellations of elementary facts.
13
- Each fact is either existential (a value or an entity), characteristic (boolean) or
14
- binary relational (A rel B). Relational facts are consistently co-referenced, so you
15
- can traverse them efficiently in any direction. Each constellation maintains constraints
16
- over the fact population.
17
- }
18
- gem.email = "clifford.heath@gmail.com"
19
- gem.authors = ["Clifford Heath"]
20
- # Include your dependencies below. Runtime dependencies are required when using your gem,
21
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
22
- end
23
- Jeweler::RubygemsDotOrgTasks.new
24
-
25
- require 'rspec/core'
26
- require 'rspec/core/rake_task'
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
27
3
  require 'rdoc/task'
28
4
 
29
- gem "rspec", :require => "spec/rake/spectask"
5
+ RSpec::Core::RakeTask.new(:spec)
30
6
 
31
7
  task :default => :spec
32
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.1
1
+ 1.8.2
@@ -1,106 +1,46 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
5
- # stub: activefacts-api 1.8.1 ruby lib
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'activefacts/api/version'
6
5
 
7
- Gem::Specification.new do |s|
8
- s.name = "activefacts-api"
9
- s.version = "1.8.1"
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "activefacts-api"
8
+ spec.version = ActiveFacts::API::VERSION
9
+ spec.authors = ["Clifford Heath"]
10
+ spec.email = ["clifford.heath@gmail.com"]
11
+ spec.date = "2015-10-02"
10
12
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
- s.authors = ["Clifford Heath"]
14
- s.date = "2015-09-10"
15
- s.description = "\nThe ActiveFacts API is a Ruby DSL for managing constellations of elementary facts.\nEach fact is either existential (a value or an entity), characteristic (boolean) or\nbinary relational (A rel B). Relational facts are consistently co-referenced, so you\ncan traverse them efficiently in any direction. Each constellation maintains constraints\nover the fact population.\n"
16
- s.email = "clifford.heath@gmail.com"
17
- s.extra_rdoc_files = [
13
+ spec.summary = "A fact-based data model DSL and API"
14
+ spec.description = %q{
15
+ The ActiveFacts API is a Ruby DSL for managing constellations of elementary facts.
16
+ Each fact is either existential (a value or an entity), characteristic (boolean) or
17
+ binary relational (A rel B). Relational facts are consistently co-referenced, so you
18
+ can traverse them efficiently in any direction. Each constellation maintains constraints
19
+ over the fact population.
20
+ }
21
+ spec.homepage = "https://github.com/cjheath/activefacts-api"
22
+ spec.license = "MIT"
23
+
24
+ spec.bindir = "exe"
25
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ["lib"]
27
+
28
+ spec.extra_rdoc_files = [
18
29
  "LICENSE.txt",
19
30
  "README.rdoc",
20
31
  "TODO"
21
32
  ]
22
- s.files = [
23
- ".document",
24
- ".rspec",
25
- ".travis.yml",
26
- "Gemfile",
27
- "LICENSE.txt",
28
- "README.rdoc",
29
- "Rakefile",
30
- "VERSION",
31
- "activefacts-api.gemspec",
32
- "lib/activefacts/api.rb",
33
- "lib/activefacts/api/constellation.rb",
34
- "lib/activefacts/api/date.rb",
35
- "lib/activefacts/api/entity.rb",
36
- "lib/activefacts/api/exceptions.rb",
37
- "lib/activefacts/api/fact_type.rb",
38
- "lib/activefacts/api/guid.rb",
39
- "lib/activefacts/api/instance.rb",
40
- "lib/activefacts/api/instance_index.rb",
41
- "lib/activefacts/api/numeric.rb",
42
- "lib/activefacts/api/object_type.rb",
43
- "lib/activefacts/api/role.rb",
44
- "lib/activefacts/api/role_values.rb",
45
- "lib/activefacts/api/standard_types.rb",
46
- "lib/activefacts/api/support.rb",
47
- "lib/activefacts/api/value.rb",
48
- "lib/activefacts/api/vocabulary.rb",
49
- "lib/activefacts/tracer.rb",
50
- "spec/constellation/constellation_spec.rb",
51
- "spec/constellation/instance_index_spec.rb",
52
- "spec/constellation/instance_spec.rb",
53
- "spec/fact_type/role_values_spec.rb",
54
- "spec/fact_type/roles_spec.rb",
55
- "spec/fixtures/tax.rb",
56
- "spec/identification_scheme/identification_spec.rb",
57
- "spec/identification_scheme/identity_change_spec.rb",
58
- "spec/identification_scheme/identity_supertype_change_spec.rb",
59
- "spec/metadata_spec.rb",
60
- "spec/object_type/entity_type/entity_type_spec.rb",
61
- "spec/object_type/entity_type/multipart_identification_spec.rb",
62
- "spec/object_type/value_type/autocounter_spec.rb",
63
- "spec/object_type/value_type/date_time_spec.rb",
64
- "spec/object_type/value_type/guid_spec.rb",
65
- "spec/object_type/value_type/numeric_spec.rb",
66
- "spec/object_type/value_type/value_type_spec.rb",
67
- "spec/simplecov_helper.rb",
68
- "spec/spec_helper.rb",
69
- "spec/support/reduce_exceptions_helper.rb"
70
- ]
71
- s.homepage = "http://github.com/cjheath/activefacts-api"
72
- s.licenses = ["MIT"]
73
- s.rubygems_version = "2.2.2"
74
- s.summary = "A fact-based data model DSL and API"
33
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
+
35
+ spec.add_runtime_dependency(%q<rbtree-pure>, [">= 0.1.1", "~> 0"])
75
36
 
76
- if s.respond_to? :specification_version then
77
- s.specification_version = 4
37
+ spec.add_development_dependency "bundler", "~> 1.10.a"
38
+ spec.add_development_dependency "rake", "~> 10.0"
39
+ spec.add_development_dependency "rspec"
78
40
 
79
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
80
- s.add_runtime_dependency(%q<rbtree-pure>, ["~> 0"])
81
- s.add_development_dependency(%q<rake>, ["~> 10.1"])
82
- s.add_development_dependency(%q<jeweler>, ["~> 2"])
83
- s.add_development_dependency(%q<rspec>, [">= 2.6.0", "~> 2.6"])
84
- s.add_development_dependency(%q<ruby-debug>, ["~> 0"])
85
- s.add_development_dependency(%q<debugger>, ["~> 1"])
86
- s.add_development_dependency(%q<pry>, ["~> 0"])
87
- else
88
- s.add_dependency(%q<rbtree-pure>, ["~> 0"])
89
- s.add_dependency(%q<rake>, ["~> 10.1"])
90
- s.add_dependency(%q<jeweler>, ["~> 2"])
91
- s.add_dependency(%q<rspec>, [">= 2.6.0", "~> 2.6"])
92
- s.add_dependency(%q<ruby-debug>, ["~> 0"])
93
- s.add_dependency(%q<debugger>, ["~> 1"])
94
- s.add_dependency(%q<pry>, ["~> 0"])
95
- end
96
- else
97
- s.add_dependency(%q<rbtree-pure>, ["~> 0"])
98
- s.add_dependency(%q<rake>, ["~> 10.1"])
99
- s.add_dependency(%q<jeweler>, ["~> 2"])
100
- s.add_dependency(%q<rspec>, [">= 2.6.0", "~> 2.6"])
101
- s.add_dependency(%q<ruby-debug>, ["~> 0"])
102
- s.add_dependency(%q<debugger>, ["~> 1"])
103
- s.add_dependency(%q<pry>, ["~> 0"])
104
- end
41
+ spec.add_runtime_dependency(%q<ruby-debug>, ["~> 0"]) if RUBY_VERSION < "1.9"
42
+ spec.add_runtime_dependency(%q<debugger>, ["~> 1"]) if RUBY_VERSION =~ /^1\.9/ or RUBY_VERSION =~ /^2\.0/
43
+ spec.add_runtime_dependency(%q<byebug>, ["~> 1"]) if RUBY_VERSION =~ /^2\.1/
44
+ # spec.add_development_dependency(%q<pry>, ["~> 0"]) # rbx, jruby
105
45
  end
106
46
 
@@ -0,0 +1,5 @@
1
+ module ActiveFacts
2
+ module API
3
+ VERSION = "1.8.3"
4
+ end
5
+ end
@@ -136,6 +136,15 @@ module ActiveFacts
136
136
  # Ok, no debugger, tough luck.
137
137
  end
138
138
 
139
+ if trace :trap
140
+ trap('SIGINT') do
141
+ puts "Stopped at:\n\t"+caller*"\n\t"
142
+ debugger
143
+ true # Stopped on SIGINT
144
+ end
145
+ end
146
+
147
+ errors = []
139
148
  (
140
149
  [ENV["DEBUG_PREFERENCE"]].compact +
141
150
  [
@@ -149,23 +158,18 @@ module ActiveFacts
149
158
  require debugger
150
159
  if debugger == 'byebug'
151
160
  Kernel.class_eval do
152
- alias_method :byebug, :debugger
161
+ alias_method :debugger, :byebug
153
162
  end
154
163
  end
155
164
  ::Debugger.start if (const_get(::Debugger) rescue nil)
156
- break
165
+ return
157
166
  rescue LoadError => e
158
167
  errors << e
159
168
  end
160
169
  end
161
170
 
162
- if trace :trap
163
- trap('SIGINT') do
164
- puts "Stopped at:\n\t"+caller*"\n\t"
165
- debugger
166
- true # Stopped on SIGINT
167
- end
168
- end
171
+ # Report when we couldn't load any debugger
172
+ $stderr.p errors
169
173
  end
170
174
 
171
175
  def setup_firstaid
metadata CHANGED
@@ -1,19 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activefacts-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clifford Heath
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-10 00:00:00.000000000 Z
11
+ date: 2015-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rbtree-pure
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.1
17
20
  - - "~>"
18
21
  - !ruby/object:Gem::Version
19
22
  version: '0'
@@ -21,99 +24,68 @@ dependencies:
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 0.1.1
24
30
  - - "~>"
25
31
  - !ruby/object:Gem::Version
26
32
  version: '0'
27
33
  - !ruby/object:Gem::Dependency
28
- name: rake
34
+ name: bundler
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
37
  - - "~>"
32
38
  - !ruby/object:Gem::Version
33
- version: '10.1'
39
+ version: 1.10.a
34
40
  type: :development
35
41
  prerelease: false
36
42
  version_requirements: !ruby/object:Gem::Requirement
37
43
  requirements:
38
44
  - - "~>"
39
45
  - !ruby/object:Gem::Version
40
- version: '10.1'
46
+ version: 1.10.a
41
47
  - !ruby/object:Gem::Dependency
42
- name: jeweler
48
+ name: rake
43
49
  requirement: !ruby/object:Gem::Requirement
44
50
  requirements:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: '2'
53
+ version: '10.0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
51
57
  requirements:
52
58
  - - "~>"
53
59
  - !ruby/object:Gem::Version
54
- version: '2'
60
+ version: '10.0'
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: rspec
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
59
65
  - - ">="
60
- - !ruby/object:Gem::Version
61
- version: 2.6.0
62
- - - "~>"
63
- - !ruby/object:Gem::Version
64
- version: '2.6'
65
- type: :development
66
- prerelease: false
67
- version_requirements: !ruby/object:Gem::Requirement
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- version: 2.6.0
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '2.6'
75
- - !ruby/object:Gem::Dependency
76
- name: ruby-debug
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
66
  - !ruby/object:Gem::Version
81
67
  version: '0'
82
68
  type: :development
83
69
  prerelease: false
84
70
  version_requirements: !ruby/object:Gem::Requirement
85
71
  requirements:
86
- - - "~>"
72
+ - - ">="
87
73
  - !ruby/object:Gem::Version
88
74
  version: '0'
89
75
  - !ruby/object:Gem::Dependency
90
- name: debugger
76
+ name: byebug
91
77
  requirement: !ruby/object:Gem::Requirement
92
78
  requirements:
93
79
  - - "~>"
94
80
  - !ruby/object:Gem::Version
95
81
  version: '1'
96
- type: :development
82
+ type: :runtime
97
83
  prerelease: false
98
84
  version_requirements: !ruby/object:Gem::Requirement
99
85
  requirements:
100
86
  - - "~>"
101
87
  - !ruby/object:Gem::Version
102
88
  version: '1'
103
- - !ruby/object:Gem::Dependency
104
- name: pry
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- type: :development
111
- prerelease: false
112
- version_requirements: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - "~>"
115
- - !ruby/object:Gem::Version
116
- version: '0'
117
89
  description: |2
118
90
 
119
91
  The ActiveFacts API is a Ruby DSL for managing constellations of elementary facts.
@@ -121,7 +93,8 @@ description: |2
121
93
  binary relational (A rel B). Relational facts are consistently co-referenced, so you
122
94
  can traverse them efficiently in any direction. Each constellation maintains constraints
123
95
  over the fact population.
124
- email: clifford.heath@gmail.com
96
+ email:
97
+ - clifford.heath@gmail.com
125
98
  executables: []
126
99
  extensions: []
127
100
  extra_rdoc_files:
@@ -130,6 +103,7 @@ extra_rdoc_files:
130
103
  - TODO
131
104
  files:
132
105
  - ".document"
106
+ - ".gitignore"
133
107
  - ".rspec"
134
108
  - ".travis.yml"
135
109
  - Gemfile
@@ -155,29 +129,10 @@ files:
155
129
  - lib/activefacts/api/standard_types.rb
156
130
  - lib/activefacts/api/support.rb
157
131
  - lib/activefacts/api/value.rb
132
+ - lib/activefacts/api/version.rb
158
133
  - lib/activefacts/api/vocabulary.rb
159
134
  - lib/activefacts/tracer.rb
160
- - spec/constellation/constellation_spec.rb
161
- - spec/constellation/instance_index_spec.rb
162
- - spec/constellation/instance_spec.rb
163
- - spec/fact_type/role_values_spec.rb
164
- - spec/fact_type/roles_spec.rb
165
- - spec/fixtures/tax.rb
166
- - spec/identification_scheme/identification_spec.rb
167
- - spec/identification_scheme/identity_change_spec.rb
168
- - spec/identification_scheme/identity_supertype_change_spec.rb
169
- - spec/metadata_spec.rb
170
- - spec/object_type/entity_type/entity_type_spec.rb
171
- - spec/object_type/entity_type/multipart_identification_spec.rb
172
- - spec/object_type/value_type/autocounter_spec.rb
173
- - spec/object_type/value_type/date_time_spec.rb
174
- - spec/object_type/value_type/guid_spec.rb
175
- - spec/object_type/value_type/numeric_spec.rb
176
- - spec/object_type/value_type/value_type_spec.rb
177
- - spec/simplecov_helper.rb
178
- - spec/spec_helper.rb
179
- - spec/support/reduce_exceptions_helper.rb
180
- homepage: http://github.com/cjheath/activefacts-api
135
+ homepage: https://github.com/cjheath/activefacts-api
181
136
  licenses:
182
137
  - MIT
183
138
  metadata: {}