ncore 3.9.1 → 3.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/ncore/client.rb +1 -1
- data/lib/ncore/configuration.rb +22 -2
- data/lib/ncore/version.rb +1 -1
- data/ncore.gemspec +4 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fcefc4340fdc30c50a41ace657b6217e619223128d05f17bad093f01dbbbc1d
|
4
|
+
data.tar.gz: 5503c9ffea00f5dc0315ffc4777d6eb728fd0bb9b8fbf84fde0452b08e7d74b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b891c660b6fbf9f3a861d0c471e1e95f8555f0bd96237bcbcc81b329eb74eab8021d426692dcab8574c05e994151497efa6d85116c77dc47f638350db5b950d4
|
7
|
+
data.tar.gz: 29839224b4c0e03a32d87757d83e9e687f48070def0618217da1f60b99ed01cecd8b6c25e88ae7beb38600632235594f3b93ed2ca61897e006c18449fbf51d87
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
#### 3.11.0
|
2
|
+
|
3
|
+
- Allow ActiveModel 7.2, Excon 1.x
|
4
|
+
|
5
|
+
#### 3.10.0
|
6
|
+
|
7
|
+
- Allow Api.default_url and Api.credentials to be lazy loaded
|
8
|
+
- Fix detection of missing credentials
|
9
|
+
- Clarify Ruby 2.7 as minimum in gemspec; for earlier Rubies, lock to < 3.9
|
10
|
+
|
1
11
|
#### 3.9.1
|
2
12
|
|
3
13
|
- Fix clearing of memoized association when assoc_id changes
|
data/lib/ncore/client.rb
CHANGED
data/lib/ncore/configuration.rb
CHANGED
@@ -10,7 +10,17 @@ module NCore
|
|
10
10
|
module ClassMethods
|
11
11
|
|
12
12
|
def init_config_options
|
13
|
-
|
13
|
+
mattr_writer :default_url
|
14
|
+
class_eval <<-MTH
|
15
|
+
def self.default_url
|
16
|
+
self.default_url = @@default_url.call if @@default_url.respond_to? :call
|
17
|
+
@@default_url
|
18
|
+
end
|
19
|
+
def default_url
|
20
|
+
self.default_url = @@default_url.call if @@default_url.respond_to? :call
|
21
|
+
@@default_url
|
22
|
+
end
|
23
|
+
MTH
|
14
24
|
self.default_url = 'https://api.example.com/v1/'
|
15
25
|
|
16
26
|
mattr_accessor :default_headers
|
@@ -20,7 +30,17 @@ module NCore
|
|
20
30
|
user_agent: "NCore/ruby v#{VERSION}"
|
21
31
|
}
|
22
32
|
|
23
|
-
|
33
|
+
mattr_writer :credentials
|
34
|
+
class_eval <<-MTH
|
35
|
+
def self.credentials
|
36
|
+
self.credentials = @@credentials.call if @@credentials.respond_to? :call
|
37
|
+
@@credentials
|
38
|
+
end
|
39
|
+
def credentials
|
40
|
+
self.credentials = @@credentials.call if @@credentials.respond_to? :call
|
41
|
+
@@credentials
|
42
|
+
end
|
43
|
+
MTH
|
24
44
|
|
25
45
|
mattr_accessor :debug
|
26
46
|
self.debug = false
|
data/lib/ncore/version.rb
CHANGED
data/ncore.gemspec
CHANGED
@@ -18,8 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.
|
22
|
-
|
21
|
+
spec.required_ruby_version = '>= 2.7'
|
22
|
+
|
23
|
+
spec.add_dependency 'activemodel', '>= 5.2', '< 7.3'
|
24
|
+
spec.add_dependency 'excon', '< 2'
|
23
25
|
|
24
26
|
spec.add_development_dependency "bundler"
|
25
27
|
spec.add_development_dependency "rake"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ncore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Notioneer Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '5.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '7.
|
22
|
+
version: '7.3'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,21 +29,21 @@ dependencies:
|
|
29
29
|
version: '5.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '7.
|
32
|
+
version: '7.3'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: excon
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - "<"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '
|
39
|
+
version: '2'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "
|
44
|
+
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
46
|
+
version: '2'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,14 +136,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
136
136
|
requirements:
|
137
137
|
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: '
|
139
|
+
version: '2.7'
|
140
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
|
-
rubygems_version: 3.5.
|
146
|
+
rubygems_version: 3.5.11
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: NCore - Gem for building REST API clients
|