framecurve 2.2.3 → 2.2.5
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 +4 -4
- data/.github/workflows/ci.yml +23 -0
- data/History.txt +9 -0
- data/framecurve.gemspec +2 -5
- data/lib/framecurve/comment.rb +1 -0
- data/lib/framecurve/curve.rb +3 -2
- data/lib/framecurve/extractors/fcp_xml.rb +1 -0
- data/lib/framecurve/extractors/xml_bridge.rb +3 -2
- data/lib/framecurve/parser.rb +1 -0
- data/lib/framecurve/serializer.rb +1 -0
- data/lib/framecurve/tuple.rb +1 -0
- data/lib/framecurve/validator.rb +1 -0
- data/lib/framecurve/version.rb +2 -1
- data/lib/framecurve.rb +1 -0
- metadata +19 -9
- data/.travis.yml +0 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ad48b620ce6b486622f60f9da7563f0747a9034c0cfae760bb4922e6c3f1e0a
|
|
4
|
+
data.tar.gz: f6d1c372cdd086d2b1550abae5ad98c3b568ad0127ba668d415948f186250836
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 152a492ba60bf9b0954eeeae935d6097c32a9c3d8a4ebd282d7c6290e42ba77a846b2343db28228fe88fd26cf63050ba1e90c18a1ba7ad737fb60dfae122a7de
|
|
7
|
+
data.tar.gz: 3e10869dd49d82ca0334e2d1b989a1eee75edf6c81c34f45fa50898264384fdbc2caec2954d61cb1042fa78f9e85789cfda517f4f39f6e13aea14d6775d58f63
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
- push
|
|
5
|
+
- pull_request
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
test:
|
|
9
|
+
name: Ruby ${{ matrix.ruby }}
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
fail-fast: false
|
|
13
|
+
matrix:
|
|
14
|
+
ruby:
|
|
15
|
+
- '2.6'
|
|
16
|
+
- '4.0'
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- uses: ruby/setup-ruby@v1
|
|
20
|
+
with:
|
|
21
|
+
ruby-version: ${{ matrix.ruby }}
|
|
22
|
+
bundler-cache: true
|
|
23
|
+
- run: bundle exec rake test
|
data/History.txt
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
2.2.5
|
|
2
|
+
|
|
3
|
+
* Add frozen_string_literal magic comments to all library files
|
|
4
|
+
|
|
5
|
+
2.2.4
|
|
6
|
+
|
|
7
|
+
* Fix `Curve#each` and the XML bridge on Ruby 3+ (`Proc.new` without a block)
|
|
8
|
+
* Declare the dependency on `rexml`, which is no longer a default gem
|
|
9
|
+
|
|
1
10
|
2.2.2
|
|
2
11
|
|
|
3
12
|
* Fix tests on 1.8, re-roll a release
|
data/framecurve.gemspec
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: framecurve 2.2.2 ruby lib
|
|
3
2
|
|
|
4
3
|
require File.dirname(__FILE__) + '/lib/framecurve/version'
|
|
5
4
|
Gem::Specification.new do |s|
|
|
6
5
|
s.name = "framecurve"
|
|
7
6
|
s.version = Framecurve::VERSION
|
|
8
7
|
|
|
9
|
-
s.
|
|
8
|
+
s.required_ruby_version = ">= 2.6"
|
|
10
9
|
s.require_paths = ["lib"]
|
|
11
10
|
s.authors = ["Julik"]
|
|
12
11
|
s.date = Time.now.utc.strftime("%Y-%m-%d")
|
|
@@ -20,11 +19,9 @@ Gem::Specification.new do |s|
|
|
|
20
19
|
s.files = `git ls-files -z`.split("\x0")
|
|
21
20
|
s.homepage = "http://github.com/guerilla-di/framecurve"
|
|
22
21
|
s.licenses = ["MIT"]
|
|
23
|
-
s.rubygems_version = "2.2.2"
|
|
24
22
|
s.summary = "Handles Framecurve files"
|
|
25
23
|
|
|
26
|
-
s.
|
|
27
|
-
|
|
24
|
+
s.add_runtime_dependency('rexml')
|
|
28
25
|
s.add_development_dependency('rake')
|
|
29
26
|
s.add_development_dependency('cli_test')
|
|
30
27
|
s.add_development_dependency('test-unit')
|
data/lib/framecurve/comment.rb
CHANGED
data/lib/framecurve/curve.rb
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
# Represents a curve file with comments and frame correlation records
|
|
2
3
|
class Framecurve::Curve
|
|
3
4
|
include Enumerable
|
|
@@ -26,8 +27,8 @@ class Framecurve::Curve
|
|
|
26
27
|
end
|
|
27
28
|
|
|
28
29
|
# Iterates over all the elements in the curve
|
|
29
|
-
def each
|
|
30
|
-
@elements.each(&
|
|
30
|
+
def each(&blk)
|
|
31
|
+
@elements.each(&blk)
|
|
31
32
|
end
|
|
32
33
|
|
|
33
34
|
# Iterates over all the comments in the curve
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
require "rexml/document"
|
|
2
3
|
|
|
3
4
|
#:nodoc:
|
|
@@ -30,8 +31,8 @@ class Framecurve::XMLBridge
|
|
|
30
31
|
end
|
|
31
32
|
|
|
32
33
|
# Yields each XPath-satisfying element to the passed block
|
|
33
|
-
def xpath_each(from_root_node, path)
|
|
34
|
-
REXML::XPath.each(from_root_node, path, &
|
|
34
|
+
def xpath_each(from_root_node, path, &blk)
|
|
35
|
+
REXML::XPath.each(from_root_node, path, &blk)
|
|
35
36
|
end
|
|
36
37
|
|
|
37
38
|
# Returns the xpath to that specific node in the document
|
data/lib/framecurve/parser.rb
CHANGED
data/lib/framecurve/tuple.rb
CHANGED
data/lib/framecurve/validator.rb
CHANGED
data/lib/framecurve/version.rb
CHANGED
data/lib/framecurve.rb
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: framecurve
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Julik
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2026-10-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: rexml
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '0'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - ">="
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '0'
|
|
13
26
|
- !ruby/object:Gem::Dependency
|
|
14
27
|
name: rake
|
|
15
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -63,8 +76,8 @@ extra_rdoc_files:
|
|
|
63
76
|
- README.rdoc
|
|
64
77
|
files:
|
|
65
78
|
- ".document"
|
|
79
|
+
- ".github/workflows/ci.yml"
|
|
66
80
|
- ".gitignore"
|
|
67
|
-
- ".travis.yml"
|
|
68
81
|
- Gemfile
|
|
69
82
|
- History.txt
|
|
70
83
|
- LICENSE.txt
|
|
@@ -252,7 +265,6 @@ homepage: http://github.com/guerilla-di/framecurve
|
|
|
252
265
|
licenses:
|
|
253
266
|
- MIT
|
|
254
267
|
metadata: {}
|
|
255
|
-
post_install_message:
|
|
256
268
|
rdoc_options: []
|
|
257
269
|
require_paths:
|
|
258
270
|
- lib
|
|
@@ -260,16 +272,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
260
272
|
requirements:
|
|
261
273
|
- - ">="
|
|
262
274
|
- !ruby/object:Gem::Version
|
|
263
|
-
version: '
|
|
275
|
+
version: '2.6'
|
|
264
276
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
277
|
requirements:
|
|
266
278
|
- - ">="
|
|
267
279
|
- !ruby/object:Gem::Version
|
|
268
280
|
version: '0'
|
|
269
281
|
requirements: []
|
|
270
|
-
|
|
271
|
-
rubygems_version: 2.7.6
|
|
272
|
-
signing_key:
|
|
282
|
+
rubygems_version: 4.0.3
|
|
273
283
|
specification_version: 4
|
|
274
284
|
summary: Handles Framecurve files
|
|
275
285
|
test_files: []
|