reqif 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/rake.yml +18 -0
  3. data/.github/workflows/release.yml +25 -0
  4. data/.gitignore +11 -0
  5. data/.rspec +3 -0
  6. data/.rubocop.yml +8 -0
  7. data/Gemfile +13 -0
  8. data/README.adoc +73 -0
  9. data/Rakefile +12 -0
  10. data/bin/console +11 -0
  11. data/bin/setup +8 -0
  12. data/lib/reqif/alternative_id.rb +14 -0
  13. data/lib/reqif/attribute_definition_boolean.rb +28 -0
  14. data/lib/reqif/attribute_definition_date.rb +28 -0
  15. data/lib/reqif/attribute_definition_enumeration.rb +30 -0
  16. data/lib/reqif/attribute_definition_integer.rb +28 -0
  17. data/lib/reqif/attribute_definition_real.rb +28 -0
  18. data/lib/reqif/attribute_definition_string.rb +28 -0
  19. data/lib/reqif/attribute_definition_xhtml.rb +28 -0
  20. data/lib/reqif/attribute_value_boolean.rb +16 -0
  21. data/lib/reqif/attribute_value_date.rb +16 -0
  22. data/lib/reqif/attribute_value_enumeration.rb +16 -0
  23. data/lib/reqif/attribute_value_integer.rb +16 -0
  24. data/lib/reqif/attribute_value_real.rb +16 -0
  25. data/lib/reqif/attribute_value_string.rb +16 -0
  26. data/lib/reqif/attribute_value_xhtml.rb +20 -0
  27. data/lib/reqif/children.rb +14 -0
  28. data/lib/reqif/core_content.rb +14 -0
  29. data/lib/reqif/datatype_definition_boolean.rb +22 -0
  30. data/lib/reqif/datatype_definition_date.rb +22 -0
  31. data/lib/reqif/datatype_definition_enumeration.rb +24 -0
  32. data/lib/reqif/datatype_definition_integer.rb +26 -0
  33. data/lib/reqif/datatype_definition_real.rb +28 -0
  34. data/lib/reqif/datatype_definition_string.rb +24 -0
  35. data/lib/reqif/datatype_definition_xhtml.rb +22 -0
  36. data/lib/reqif/datatypes.rb +26 -0
  37. data/lib/reqif/default_value.rb +27 -0
  38. data/lib/reqif/definition.rb +27 -0
  39. data/lib/reqif/editable_atts.rb +26 -0
  40. data/lib/reqif/embedded_value.rb +16 -0
  41. data/lib/reqif/enum_value.rb +24 -0
  42. data/lib/reqif/object.rb +14 -0
  43. data/lib/reqif/properties.rb +14 -0
  44. data/lib/reqif/relation_group.rb +30 -0
  45. data/lib/reqif/relation_group_type.rb +24 -0
  46. data/lib/reqif/req_if.rb +18 -0
  47. data/lib/reqif/req_if_content.rb +24 -0
  48. data/lib/reqif/req_if_header.rb +28 -0
  49. data/lib/reqif/req_if_tool_extension.rb +10 -0
  50. data/lib/reqif/source.rb +14 -0
  51. data/lib/reqif/source_specification.rb +14 -0
  52. data/lib/reqif/spec_attributes.rb +26 -0
  53. data/lib/reqif/spec_hierarchy.rb +32 -0
  54. data/lib/reqif/spec_object.rb +26 -0
  55. data/lib/reqif/spec_object_type.rb +24 -0
  56. data/lib/reqif/spec_objects.rb +14 -0
  57. data/lib/reqif/spec_relation.rb +30 -0
  58. data/lib/reqif/spec_relation_groups.rb +14 -0
  59. data/lib/reqif/spec_relation_type.rb +24 -0
  60. data/lib/reqif/spec_relations.rb +17 -0
  61. data/lib/reqif/spec_types.rb +20 -0
  62. data/lib/reqif/specification.rb +28 -0
  63. data/lib/reqif/specification_type.rb +24 -0
  64. data/lib/reqif/specifications.rb +14 -0
  65. data/lib/reqif/specified_values.rb +14 -0
  66. data/lib/reqif/target.rb +14 -0
  67. data/lib/reqif/target_specification.rb +14 -0
  68. data/lib/reqif/the_header.rb +14 -0
  69. data/lib/reqif/tool_extensions.rb +14 -0
  70. data/lib/reqif/type.rb +35 -0
  71. data/lib/reqif/values.rb +30 -0
  72. data/lib/reqif/version.rb +5 -0
  73. data/lib/reqif/xhtml_content.rb +10 -0
  74. data/lib/reqif.rb +22 -0
  75. data/references/driver.xsd +270 -0
  76. data/references/reqif.xsd +893 -0
  77. data/reqif.gemspec +36 -0
  78. data/sig/reqif.rbs +4 -0
  79. metadata +151 -0
data/reqif.gemspec ADDED
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/reqif/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "reqif"
7
+ spec.version = Reqif::VERSION
8
+ spec.authors = ["Ribose Inc."]
9
+ spec.email = ["open.source@ribose.com'"]
10
+
11
+ spec.summary = "ReqIF (Requirements Interchange Format) library"
12
+ spec.description = "A Ruby library for parsing and generating ReqIF data"
13
+ spec.homepage = "https://github.com/lutaml/reqif"
14
+ spec.license = "MIT"
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = spec.homepage
18
+ spec.metadata["changelog_uri"] = "https://github.com/lutaml/reqif/releases"
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem
22
+ # that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`
25
+ .split("\x0")
26
+ .reject { |f| f.match(%r{^(test|spec|features)/}) }
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.required_ruby_version = ">= 3.0.0"
33
+
34
+ spec.add_dependency "lutaml-model"
35
+ spec.add_dependency "zeitwerk", "~> 2.6.18"
36
+ end
data/sig/reqif.rbs ADDED
@@ -0,0 +1,4 @@
1
+ module Reqif
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,151 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: reqif
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Ribose Inc.
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-10-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: lutaml-model
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: zeitwerk
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.6.18
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.6.18
41
+ description: A Ruby library for parsing and generating ReqIF data
42
+ email:
43
+ - open.source@ribose.com'
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".github/workflows/rake.yml"
49
+ - ".github/workflows/release.yml"
50
+ - ".gitignore"
51
+ - ".rspec"
52
+ - ".rubocop.yml"
53
+ - Gemfile
54
+ - README.adoc
55
+ - Rakefile
56
+ - bin/console
57
+ - bin/setup
58
+ - lib/reqif.rb
59
+ - lib/reqif/alternative_id.rb
60
+ - lib/reqif/attribute_definition_boolean.rb
61
+ - lib/reqif/attribute_definition_date.rb
62
+ - lib/reqif/attribute_definition_enumeration.rb
63
+ - lib/reqif/attribute_definition_integer.rb
64
+ - lib/reqif/attribute_definition_real.rb
65
+ - lib/reqif/attribute_definition_string.rb
66
+ - lib/reqif/attribute_definition_xhtml.rb
67
+ - lib/reqif/attribute_value_boolean.rb
68
+ - lib/reqif/attribute_value_date.rb
69
+ - lib/reqif/attribute_value_enumeration.rb
70
+ - lib/reqif/attribute_value_integer.rb
71
+ - lib/reqif/attribute_value_real.rb
72
+ - lib/reqif/attribute_value_string.rb
73
+ - lib/reqif/attribute_value_xhtml.rb
74
+ - lib/reqif/children.rb
75
+ - lib/reqif/core_content.rb
76
+ - lib/reqif/datatype_definition_boolean.rb
77
+ - lib/reqif/datatype_definition_date.rb
78
+ - lib/reqif/datatype_definition_enumeration.rb
79
+ - lib/reqif/datatype_definition_integer.rb
80
+ - lib/reqif/datatype_definition_real.rb
81
+ - lib/reqif/datatype_definition_string.rb
82
+ - lib/reqif/datatype_definition_xhtml.rb
83
+ - lib/reqif/datatypes.rb
84
+ - lib/reqif/default_value.rb
85
+ - lib/reqif/definition.rb
86
+ - lib/reqif/editable_atts.rb
87
+ - lib/reqif/embedded_value.rb
88
+ - lib/reqif/enum_value.rb
89
+ - lib/reqif/object.rb
90
+ - lib/reqif/properties.rb
91
+ - lib/reqif/relation_group.rb
92
+ - lib/reqif/relation_group_type.rb
93
+ - lib/reqif/req_if.rb
94
+ - lib/reqif/req_if_content.rb
95
+ - lib/reqif/req_if_header.rb
96
+ - lib/reqif/req_if_tool_extension.rb
97
+ - lib/reqif/source.rb
98
+ - lib/reqif/source_specification.rb
99
+ - lib/reqif/spec_attributes.rb
100
+ - lib/reqif/spec_hierarchy.rb
101
+ - lib/reqif/spec_object.rb
102
+ - lib/reqif/spec_object_type.rb
103
+ - lib/reqif/spec_objects.rb
104
+ - lib/reqif/spec_relation.rb
105
+ - lib/reqif/spec_relation_groups.rb
106
+ - lib/reqif/spec_relation_type.rb
107
+ - lib/reqif/spec_relations.rb
108
+ - lib/reqif/spec_types.rb
109
+ - lib/reqif/specification.rb
110
+ - lib/reqif/specification_type.rb
111
+ - lib/reqif/specifications.rb
112
+ - lib/reqif/specified_values.rb
113
+ - lib/reqif/target.rb
114
+ - lib/reqif/target_specification.rb
115
+ - lib/reqif/the_header.rb
116
+ - lib/reqif/tool_extensions.rb
117
+ - lib/reqif/type.rb
118
+ - lib/reqif/values.rb
119
+ - lib/reqif/version.rb
120
+ - lib/reqif/xhtml_content.rb
121
+ - references/driver.xsd
122
+ - references/reqif.xsd
123
+ - reqif.gemspec
124
+ - sig/reqif.rbs
125
+ homepage: https://github.com/lutaml/reqif
126
+ licenses:
127
+ - MIT
128
+ metadata:
129
+ homepage_uri: https://github.com/lutaml/reqif
130
+ source_code_uri: https://github.com/lutaml/reqif
131
+ changelog_uri: https://github.com/lutaml/reqif/releases
132
+ post_install_message:
133
+ rdoc_options: []
134
+ require_paths:
135
+ - lib
136
+ required_ruby_version: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: 3.0.0
141
+ required_rubygems_version: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ requirements: []
147
+ rubygems_version: 3.5.11
148
+ signing_key:
149
+ specification_version: 4
150
+ summary: ReqIF (Requirements Interchange Format) library
151
+ test_files: []