ncore 3.15.0 → 3.15.1

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: ac9447e7da05e0e5822bc1f853d60054fdcbf4ed383c7faa5e3454a791ea7b9a
4
- data.tar.gz: 253422e826a1009929f1d8fe565aaeb9e9f36d142125b258dbe7523cb1aea6bb
3
+ metadata.gz: 9ddf8c778ed7a75566b6c1665880413606d276e3c07269fe8f4e63ad9f98d0fc
4
+ data.tar.gz: 0a527000d932792291a0f0fce5ad834560ee7ee0637c4798354f0d63067a9784
5
5
  SHA512:
6
- metadata.gz: 0416aa8b47c956fa4f982aee4071c5ef3ecf64d08fb0916b234d051bacf2d6c13f882a396b2bd75c0b502debc0ea36248fa8bacb80580ab95366112a132a8751
7
- data.tar.gz: 8a43de4843cd2363a1b250b1b89486de0b422aa0aa12cbc3746a775d8145d0cf25f504628fa761fedae76de451eef6a902f70747ceb7a79e0bae531a14381c0d
6
+ metadata.gz: 998f66195437f3d3b05783d5cfe96569ba4dfe81d5128319c3352d942b54f273b64bbe32bde720e81e0a87ebb9c1f659a2ac8d9c196e16b27ec029c9216fe38c
7
+ data.tar.gz: 58667228dee3c13b4316839b156e01b619aa88f710ba6d5ff5c821bf4133964165d6fc14b709b03da4cc051fa01865f4e44f3caf7c529403b22aa43f3ae32b6c
@@ -0,0 +1,15 @@
1
+ <!--
2
+ Describe your PR. What's the purpose/use-case of this PR?
3
+ What's been added, changed, and/or removed?
4
+ -->
5
+
6
+ ## Contribution
7
+
8
+ <!-- Check only what applies. The goal here is clarity, not checking all the boxes. -->
9
+
10
+ - [ ] I tested my changes locally
11
+ - [ ] Includes a breaking change (be sure to explain above)
12
+ <!--
13
+ Select one: -->
14
+ - [ ] PR contents is 100% human written
15
+ - [ ] PR includes LLM output <!-- see README.md's Contributing section (near bottom) -->
data/.gitignore CHANGED
@@ -4,7 +4,6 @@
4
4
  .config
5
5
  .ruby-*
6
6
  .yardoc
7
- Gemfile.lock
8
7
  InstalledFiles
9
8
  _yardoc
10
9
  coverage
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ #### 3.15.1
2
+
3
+ - Compatibility with json gem 3.0
4
+
1
5
  #### 3.15.0
2
6
 
3
7
  - Make JSON parsing and generation more consistent by using JSON::Coder
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in ncore.gemspec
4
4
  gemspec
5
+
6
+ gem 'minitest-reporters'
data/Gemfile.lock ADDED
@@ -0,0 +1,63 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ncore (3.15.1)
5
+ activemodel (>= 5.2, < 8.2)
6
+ excon (< 2)
7
+ json (>= 2.17)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activemodel (8.1.3.1)
13
+ activesupport (= 8.1.3.1)
14
+ activesupport (8.1.3.1)
15
+ base64
16
+ bigdecimal
17
+ concurrent-ruby (~> 1.0, >= 1.3.1)
18
+ connection_pool (>= 2.2.5)
19
+ drb
20
+ i18n (>= 1.6, < 2)
21
+ json
22
+ logger (>= 1.4.2)
23
+ minitest (>= 5.1)
24
+ securerandom (>= 0.3)
25
+ tzinfo (~> 2.0, >= 2.0.5)
26
+ uri (>= 0.13.1)
27
+ ansi (1.6.0)
28
+ base64 (0.3.0)
29
+ bigdecimal (4.1.2)
30
+ builder (3.3.0)
31
+ concurrent-ruby (1.3.8)
32
+ connection_pool (3.0.2)
33
+ drb (2.2.3)
34
+ excon (1.7.1)
35
+ logger
36
+ i18n (1.15.2)
37
+ concurrent-ruby (~> 1.0)
38
+ json (3.0.0)
39
+ logger (1.7.0)
40
+ minitest (6.0.6)
41
+ drb (~> 2.0)
42
+ prism (~> 1.5)
43
+ minitest-reporters (1.8.0)
44
+ ansi
45
+ builder
46
+ minitest (>= 5.0, < 7)
47
+ ruby-progressbar
48
+ prism (1.9.0)
49
+ ruby-progressbar (1.13.0)
50
+ securerandom (0.4.1)
51
+ tzinfo (2.0.6)
52
+ concurrent-ruby (~> 1.0)
53
+ uri (1.1.1)
54
+
55
+ PLATFORMS
56
+ ruby
57
+
58
+ DEPENDENCIES
59
+ minitest-reporters
60
+ ncore!
61
+
62
+ BUNDLED WITH
63
+ 4.0.16
data/README.md CHANGED
@@ -5,33 +5,35 @@ client by itself, but provides several useful building blocks to build one.
5
5
 
6
6
  It relies on `excon` for HTTP handling and `activemodel`.
7
7
 
8
- See `example/` for the beginning of an actual api client.
8
+ See `example/` for the beginning of an actual api client. See [dnscaster-ruby](https://github.com/cosmicio/dnscaster-ruby) for a complete client.
9
9
 
10
10
 
11
11
  ## Installation
12
12
 
13
13
  Add this line to your application's Gemfile:
14
14
 
15
- gem 'ncore'
15
+ gem 'ncore', '~> 3'
16
16
 
17
- And then execute:
17
+ Or this to your gem's gemspec:
18
18
 
19
- $ bundle
19
+ spec.add_dependency 'ncore', '~> 3'
20
20
 
21
- Or install it yourself as:
22
21
 
23
- $ gem install ncore
22
+ ## Contributing
24
23
 
24
+ Contributions are welcomed. If unsure about the scope or reach of a potential PR, feel free to open a discussion Issue first (not required though).
25
25
 
26
- ## Contributing
26
+ Please submit human-written contributions only. No contributions containing output generated by LLMs or other non-deterministic systems are allowed.
27
+
28
+ * Code, tests, docs, PRs: must be 100% human written.
29
+ * Issues, security reports: must originally be 100% human written. If not originally in English, an LLM may be used to translate to English provided that this translation is disclosed.
30
+
31
+ We recognize that opinions about the use of LLMs and non-deterministic systems vary widely. Still, we respectfully ask that you honor this policy when interacting with this project.
27
32
 
28
- 1. Fork it
29
- 2. Create your feature branch (`git checkout -b my-new-feature`)
30
- 3. Commit your changes (`git commit -am 'Add some feature'`)
31
- 4. Push to the branch (`git push origin my-new-feature`)
32
- 5. Create new Pull Request
33
+ ###### Q: May I use LLMs apart from contributions?
34
+ All usage, training or otherwise, must respect copyrights. Beyond that, we've found that LLMs are prone to errors and misunderstandings--sometimes obvious, sometimes subtle. Please verify everything before trusting an LLM's output.
33
35
 
34
36
 
35
37
  ## License
36
38
 
37
- MIT
39
+ [MIT](LICENSE.txt)
data/Rakefile CHANGED
@@ -1 +1,5 @@
1
- require "bundler/gem_tasks"
1
+ require 'bundler/gem_tasks'
2
+
3
+ require 'minitest/test_task'
4
+ Minitest::TestTask.create
5
+ task default: :test
data/lib/ncore/client.rb CHANGED
@@ -254,11 +254,13 @@ module NCore
254
254
  create_additions: false,
255
255
  decimal_class: BigDecimal,
256
256
  symbolize_names: false,
257
+ }.tap{|opts|
258
+ opts.delete :create_additions if JSON::VERSION >= '3'
257
259
  }
258
260
  end
259
261
 
260
262
  def json_coder
261
- @json_coder ||= ::JSON::Coder.new(json_opts) do |value, is_key|
263
+ @json_coder ||= ::JSON::Coder.new(**json_opts) do |value, is_key|
262
264
  case value
263
265
  when BigDecimal
264
266
  ::JSON::Fragment.new value.to_s
data/lib/ncore/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module NCore
2
- VERSION = '3.15.0'
2
+ VERSION = '3.15.1'
3
3
  end
data/ncore.gemspec CHANGED
@@ -28,7 +28,4 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency 'activemodel', '>= 5.2', '< 8.2'
29
29
  spec.add_dependency 'excon', '< 2'
30
30
  spec.add_dependency 'json', '>= 2.17'
31
-
32
- spec.add_development_dependency "bundler"
33
- spec.add_development_dependency "rake"
34
31
  end
@@ -0,0 +1,7 @@
1
+ require "test_helper"
2
+
3
+ class NCoreTest < ActiveSupport::TestCase
4
+ test "it has a version number" do
5
+ assert NCore::VERSION
6
+ end
7
+ end
@@ -0,0 +1,4 @@
1
+ require 'minitest/reporters'
2
+ Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new
3
+
4
+ require 'ncore'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ncore
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.15.0
4
+ version: 3.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Notioneer Team
@@ -57,34 +57,6 @@ dependencies:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
59
  version: '2.17'
60
- - !ruby/object:Gem::Dependency
61
- name: bundler
62
- requirement: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- version: '0'
67
- type: :development
68
- prerelease: false
69
- version_requirements: !ruby/object:Gem::Requirement
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: '0'
74
- - !ruby/object:Gem::Dependency
75
- name: rake
76
- requirement: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: '0'
81
- type: :development
82
- prerelease: false
83
- version_requirements: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - ">="
86
- - !ruby/object:Gem::Version
87
- version: '0'
88
60
  description: NCore - Ruby gem useful for building REST API clients
89
61
  email:
90
62
  - hello@notioneer.com
@@ -92,10 +64,12 @@ executables: []
92
64
  extensions: []
93
65
  extra_rdoc_files: []
94
66
  files:
67
+ - ".github/pull_request_template.md"
95
68
  - ".gitignore"
96
69
  - CHANGELOG.md
97
70
  - Gemfile
98
- - LICENSE
71
+ - Gemfile.lock
72
+ - LICENSE.txt
99
73
  - README.md
100
74
  - Rakefile
101
75
  - example/lib/my_api.rb
@@ -137,6 +111,8 @@ files:
137
111
  - lib/ncore/version.rb
138
112
  - lib/ncore/wait.rb
139
113
  - ncore.gemspec
114
+ - test/ncore_test.rb
115
+ - test/test_helper.rb
140
116
  homepage: https://notioneer.com/
141
117
  licenses:
142
118
  - MIT
@@ -157,7 +133,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
133
  - !ruby/object:Gem::Version
158
134
  version: '0'
159
135
  requirements: []
160
- rubygems_version: 3.6.9
136
+ rubygems_version: 4.0.16
161
137
  specification_version: 4
162
138
  summary: NCore - Gem for building REST API clients
163
- test_files: []
139
+ test_files:
140
+ - test/ncore_test.rb
141
+ - test/test_helper.rb
File without changes