opensrs 0.4.0 → 0.4.2

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
  SHA256:
3
- metadata.gz: 71d1e83d17bb3fbcf14fe9da34120322c4411bfeb37b9f6023806467025e5d5f
4
- data.tar.gz: 941f1cc4275cf0f64635d6ed5e326a7ebdb9bc6ee98230c495de7e809637d661
3
+ metadata.gz: 7bf3d8a1a7fc99157bf196ab56c8d34832ef523160a9d092a3db0e5b17de2e7f
4
+ data.tar.gz: dc587d48682875b59af971baf6b5552437f5da5fcffea5030985d848c7986457
5
5
  SHA512:
6
- metadata.gz: df149b8fcd50164c419c51aa789d4dab1e8409952ec0b4b1f2fcd202948111512931d82a5169635b8690feec9f01d82fba0548b5952691dcf2d3323081b25210
7
- data.tar.gz: 54e8f4bcbb4538d6215d94dd3bcd797f59dffa7e120a181b2af62d4f38c1cf8fb737d8298e516feda9f7bfc7b100b894714ea33cab4f8fc00458ab95b4b5c330
6
+ metadata.gz: 9b00c5ad6a516c5f00fd292e81b437abb496c47cfd5b690cd44e6113bf1ac613bd348561caafb420bb94891e4b2bf319b1e947592c780c23c0e97147e4dfa1fa
7
+ data.tar.gz: 6ae7ca1eb7b675d079015b37b6efc79740ba98dabce8aa60a6f79fe610ca3f30bb75014ee54b0edb4ee6cc97c9050b8eca1ccf82acb3d82b6952f00f90f29dbe
@@ -0,0 +1,28 @@
1
+ name: Ruby
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ test:
7
+ name: "Rspec (on Ruby ${{ matrix.ruby }})"
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ fail-fast: false
11
+ matrix:
12
+ ruby: ['2.5', '2.6', '2.7', '3.0', '3.1', 'head']
13
+
14
+ steps:
15
+ - name: Set up Ruby ${{ matrix.ruby }}
16
+ uses: ruby/setup-ruby@v1
17
+ with:
18
+ bundler-cache: true
19
+ ruby-version: ${{ matrix.ruby }}
20
+
21
+ - name: Checkout repository
22
+ uses: actions/checkout@v2
23
+
24
+ - name: Install dependencies
25
+ run: gem install bundler && bundle install
26
+
27
+ - name: Run Rspec
28
+ run: bundle exec rspec spec
data/.gitignore CHANGED
@@ -15,3 +15,4 @@
15
15
  *.gem
16
16
  mkmf.log
17
17
  *.sarif
18
+ /vendor
data/Gemfile.lock CHANGED
@@ -1,82 +1,79 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opensrs (0.3.8)
4
+ opensrs (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- activesupport (4.2.10)
9
+ activesupport (4.2.11.3)
10
10
  i18n (~> 0.7)
11
11
  minitest (~> 5.1)
12
12
  thread_safe (~> 0.3, >= 0.3.4)
13
13
  tzinfo (~> 1.1)
14
14
  ast (2.4.2)
15
- code-scanning-rubocop (0.5.0)
15
+ code-scanning-rubocop (0.6.1)
16
16
  rubocop (~> 1.0)
17
- coderay (1.1.0)
18
- concurrent-ruby (1.0.5)
19
- diff-lcs (1.2.5)
20
- i18n (0.9.3)
17
+ coderay (1.1.3)
18
+ concurrent-ruby (1.1.10)
19
+ diff-lcs (1.5.0)
20
+ i18n (0.9.5)
21
21
  concurrent-ruby (~> 1.0)
22
- libxml-ruby (3.2.1)
23
- method_source (0.8.2)
24
- mini_portile2 (2.5.1)
25
- minitest (5.11.3)
26
- nokogiri (1.11.4)
27
- mini_portile2 (~> 2.5.0)
22
+ libxml-ruby (3.2.2)
23
+ method_source (1.0.0)
24
+ mini_portile2 (2.8.0)
25
+ minitest (5.15.0)
26
+ nokogiri (1.13.6)
27
+ mini_portile2 (~> 2.8.0)
28
28
  racc (~> 1.4)
29
- parallel (1.20.1)
30
- parser (3.0.2.0)
29
+ parallel (1.22.1)
30
+ parser (3.1.2.0)
31
31
  ast (~> 2.4.1)
32
- pry (0.10.1)
33
- coderay (~> 1.1.0)
34
- method_source (~> 0.8.1)
35
- slop (~> 3.4)
36
- racc (1.5.2)
37
- rainbow (3.0.0)
32
+ pry (0.14.1)
33
+ coderay (~> 1.1)
34
+ method_source (~> 1.0)
35
+ racc (1.6.0)
36
+ rainbow (3.1.1)
38
37
  rake (13.0.6)
39
- regexp_parser (2.1.1)
38
+ regexp_parser (2.4.0)
40
39
  rexml (3.2.5)
41
- rspec (3.2.0)
42
- rspec-core (~> 3.2.0)
43
- rspec-expectations (~> 3.2.0)
44
- rspec-mocks (~> 3.2.0)
45
- rspec-core (3.2.3)
46
- rspec-support (~> 3.2.0)
47
- rspec-expectations (3.2.1)
40
+ rspec (3.11.0)
41
+ rspec-core (~> 3.11.0)
42
+ rspec-expectations (~> 3.11.0)
43
+ rspec-mocks (~> 3.11.0)
44
+ rspec-core (3.11.0)
45
+ rspec-support (~> 3.11.0)
46
+ rspec-expectations (3.11.0)
48
47
  diff-lcs (>= 1.2.0, < 2.0)
49
- rspec-support (~> 3.2.0)
50
- rspec-mocks (3.2.1)
48
+ rspec-support (~> 3.11.0)
49
+ rspec-mocks (3.11.1)
51
50
  diff-lcs (>= 1.2.0, < 2.0)
52
- rspec-support (~> 3.2.0)
53
- rspec-support (3.2.2)
54
- rubocop (1.19.0)
51
+ rspec-support (~> 3.11.0)
52
+ rspec-support (3.11.0)
53
+ rubocop (1.29.0)
55
54
  parallel (~> 1.10)
56
- parser (>= 3.0.0.0)
55
+ parser (>= 3.1.0.0)
57
56
  rainbow (>= 2.2.2, < 4.0)
58
57
  regexp_parser (>= 1.8, < 3.0)
59
- rexml
60
- rubocop-ast (>= 1.9.1, < 2.0)
58
+ rexml (>= 3.2.5, < 4.0)
59
+ rubocop-ast (>= 1.17.0, < 2.0)
61
60
  ruby-progressbar (~> 1.7)
62
61
  unicode-display_width (>= 1.4.0, < 3.0)
63
- rubocop-ast (1.10.0)
64
- parser (>= 3.0.1.1)
65
- rubocop-rspec (2.4.0)
66
- rubocop (~> 1.0)
67
- rubocop-ast (>= 1.1.0)
62
+ rubocop-ast (1.17.0)
63
+ parser (>= 3.1.1.0)
64
+ rubocop-rspec (2.10.0)
65
+ rubocop (~> 1.19)
68
66
  ruby-progressbar (1.11.0)
69
- shoulda (3.5.0)
70
- shoulda-context (~> 1.0, >= 1.0.1)
71
- shoulda-matchers (>= 1.4.1, < 3.0)
72
- shoulda-context (1.2.1)
73
- shoulda-matchers (2.8.0)
74
- activesupport (>= 3.0.0)
75
- slop (3.6.0)
67
+ shoulda (4.0.0)
68
+ shoulda-context (~> 2.0)
69
+ shoulda-matchers (~> 4.0)
70
+ shoulda-context (2.0.0)
71
+ shoulda-matchers (4.5.1)
72
+ activesupport (>= 4.2.0)
76
73
  thread_safe (0.3.6)
77
- tzinfo (1.2.4)
74
+ tzinfo (1.2.9)
78
75
  thread_safe (~> 0.1)
79
- unicode-display_width (2.0.0)
76
+ unicode-display_width (2.1.0)
80
77
 
81
78
  PLATFORMS
82
79
  ruby
@@ -86,7 +83,7 @@ DEPENDENCIES
86
83
  bundler
87
84
  code-scanning-rubocop (~> 0.5)
88
85
  libxml-ruby (~> 3)
89
- nokogiri (~> 1.11.4)
86
+ nokogiri (~> 1.13.4)
90
87
  opensrs!
91
88
  pry
92
89
  rake
@@ -96,4 +93,4 @@ DEPENDENCIES
96
93
  shoulda
97
94
 
98
95
  BUNDLED WITH
99
- 1.17.2
96
+ 2.3.13
data/README.md CHANGED
@@ -116,11 +116,10 @@ If you have any bugs or feature requests for this gem, feel free to [open an iss
116
116
 
117
117
  ### Contributors (in order of appearance)
118
118
 
119
- * [Joshua Delsman](http://github.com/voxxit)
120
- * Glenn Roberts
119
+ See ["Contributors"](https://github.com/voxxit/opensrs/graphs/contributors) section of GitHub Insights.
121
120
 
122
121
  ### Copyright
123
122
 
124
- Copyright (c) 2010-2021 Joshua Delsman.
123
+ Copyright (c) 2010-2022 Joshua Delsman.
125
124
 
126
125
  Distributed under the MIT license. See `LICENSE` for details.
@@ -1,3 +1,3 @@
1
1
  module OpenSRS
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.4.2'.freeze
3
3
  end
@@ -71,7 +71,7 @@ module OpenSRS
71
71
  end
72
72
 
73
73
  def self.new_element(element_name, container)
74
- ::Nokogiri::XML::Node.new(element_name.to_s, container)
74
+ ::Nokogiri::XML::Node.new(element_name.to_s, container.document)
75
75
  end
76
76
  end
77
77
  end
data/opensrs.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.description = 'Provides support to utilize the OpenSRS API with Ruby.'
12
12
  spec.homepage = 'https://github.com/voxxit/opensrs'
13
13
  spec.license = 'MIT'
14
- spec.required_ruby_version = '~> 2.5'
14
+ spec.required_ruby_version = '>= 2.5'
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
17
  spec.bindir = 'exe'
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency 'bundler'
23
23
  spec.add_development_dependency 'code-scanning-rubocop', '~> 0.5'
24
24
  spec.add_development_dependency 'libxml-ruby', '~> 3'
25
- spec.add_development_dependency 'nokogiri', '~> 1.11.4'
25
+ spec.add_development_dependency 'nokogiri', '~> 1.13.4'
26
26
  spec.add_development_dependency 'pry'
27
27
  spec.add_development_dependency 'rake'
28
28
  spec.add_development_dependency 'rspec'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opensrs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Delsman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-13 00:00:00.000000000 Z
11
+ date: 2022-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 1.11.4
75
+ version: 1.13.4
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 1.11.4
82
+ version: 1.13.4
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -173,6 +173,7 @@ extra_rdoc_files: []
173
173
  files:
174
174
  - ".document"
175
175
  - ".github/workflows/rubocop-analysis.yml"
176
+ - ".github/workflows/ruby.yml"
176
177
  - ".gitignore"
177
178
  - ".rspec"
178
179
  - ".rubocop.yml"
@@ -203,7 +204,7 @@ require_paths:
203
204
  - lib
204
205
  required_ruby_version: !ruby/object:Gem::Requirement
205
206
  requirements:
206
- - - "~>"
207
+ - - ">="
207
208
  - !ruby/object:Gem::Version
208
209
  version: '2.5'
209
210
  required_rubygems_version: !ruby/object:Gem::Requirement