cnf 1.5.0 → 1.6.0
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/lib/cnf/catalog.rb +10 -8
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c66bef6655572193295c6620304301afd73d6a1fc8de7d7dd34016cf90b6c9c
|
|
4
|
+
data.tar.gz: f5cc2f4a77e698c877eb626fd8fdd6422ea0e2643efeb094261a89ad11edcc08
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e298ded0ba3694d60b507419b301b02bd73ece20e75c009ce02c5a35f7b3e31d5266b6a7f7c4c89218d1e09b05264ddcda1c119f42fedae10c2a59403c77c67
|
|
7
|
+
data.tar.gz: 5381512ef7f5e1bed4604bed0de9c835dbc18b7cbcbf21a30c8c31725cb7c21d67afb07bd5a9387d679d9d2698d2d2ede846d551329d99dfc74f341557bb14ee
|
data/lib/cnf/catalog.rb
CHANGED
|
@@ -126,11 +126,11 @@ module Cnf
|
|
|
126
126
|
end
|
|
127
127
|
|
|
128
128
|
def self.active
|
|
129
|
-
|
|
129
|
+
select { |catalog| catalog.active }
|
|
130
130
|
end
|
|
131
131
|
|
|
132
132
|
def self.find_by_name(name)
|
|
133
|
-
|
|
133
|
+
find { |catalog| catalog.name == name }
|
|
134
134
|
end
|
|
135
135
|
|
|
136
136
|
def use_flat_rate?
|
|
@@ -173,13 +173,15 @@ module Cnf
|
|
|
173
173
|
new(channel.to_h)
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
|
+
end
|
|
177
|
+
end
|
|
176
178
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
179
|
+
class NearfineCatalog < AbebooksCatalog
|
|
180
|
+
class << self
|
|
181
|
+
def data
|
|
182
|
+
@data ||= Cnf.nearfine_channels.map do |channel|
|
|
183
|
+
new(channel.to_h)
|
|
184
|
+
end
|
|
183
185
|
end
|
|
184
186
|
end
|
|
185
187
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cnf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jacek Jakubik
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date:
|
|
15
|
+
date: 2023-02-16 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: excon
|