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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b2664aec3b6a2394602e16c6ff7b1f63d947f926ae97fb3bc7d57d9067cdc011
4
- data.tar.gz: 4cff288e22a51842e2f4e58b6363ff67527c9b66ae94d0cfe0ff4fe39f480509
3
+ metadata.gz: 9ad48b620ce6b486622f60f9da7563f0747a9034c0cfae760bb4922e6c3f1e0a
4
+ data.tar.gz: f6d1c372cdd086d2b1550abae5ad98c3b568ad0127ba668d415948f186250836
5
5
  SHA512:
6
- metadata.gz: de07a6b5168cc737e0d3608afab54fea7b5c321ce5ca55b653d8e8c42d36dfef1b40a4eedc759af6bc5ee4177c059cc9e6db5702243efc7a25462f4ef7ffaf15
7
- data.tar.gz: bc45a62882763ec15f99d22761c53f8d7026d9b7e13b43213b279d2c0be4ad7dd19caae250369b970fed6bd0eea8017a9d3e4d51c1379b73331dc7c07338f83f
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.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
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.specification_version = 4
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')
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Represents a framecurve comment
2
3
  class Framecurve::Comment
3
4
  include Comparable
@@ -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(&Proc.new)
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 File.dirname(__FILE__) + "/xml_bridge"
2
3
 
3
4
  module Framecurve
@@ -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, &Proc.new)
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
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Parses the data in the passed file/IO into a Curve object.
2
3
  # curve = Framecurve::Parser.new.parse("/tmp/curve.framecurve.txt")
3
4
  class Framecurve::Parser
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Writes out a Curve object to the passed IO
2
3
  class Framecurve::Serializer
3
4
 
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Represents one Framecurve frame correlation record
2
3
  class Framecurve::Tuple
3
4
  include Comparable
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Validates a Curve object for well-formedness and completeness.
2
3
  # v = Validator.new
3
4
  # v.parse(io_handle)
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Framecurve
2
- VERSION = "2.2.3"
3
+ VERSION = "2.2.5"
3
4
  end
data/lib/framecurve.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Framecurve
2
3
  # Is raised when a malformed framecurve bit has occurred in the system
3
4
  class Malformed < RuntimeError
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.3
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: 2018-12-19 00:00:00.000000000 Z
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: '0'
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
- rubyforge_project:
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: []
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- rvm:
2
- - 1.8.7
3
- - 1.9.2
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1.1
7
- - 2.1.2
8
- cache: bundler