zanders 2.2.3 → 2.2.4
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/.circleci/config.yml +41 -0
- data/lib/zanders/catalog.rb +8 -1
- data/lib/zanders/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b49aceab6e21642a68d113c3daf0ebb0b409dda
|
|
4
|
+
data.tar.gz: 7508428f2850614453c2b310f181385ab33a9f77
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46c3abc2277f6d251751e04ca49746055c88c14b72148a0f062f9ecab5ae8c81f9f63e1a6c0c7f8305bd89b06e72faf3fe3fe724dcaac5661dc9b17fa559310d
|
|
7
|
+
data.tar.gz: f3b7ec0f60d001c176529e7d1a675c96c63d5f1442f27b4a122047f82d5bdf42984a667e43335894d4db8b15e021e48b7235861d6ea9866e6959fb0c7de962b9
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Ruby CircleCI 2.0 configuration file
|
|
2
|
+
#
|
|
3
|
+
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
|
|
4
|
+
#
|
|
5
|
+
version: 2
|
|
6
|
+
jobs:
|
|
7
|
+
build:
|
|
8
|
+
docker:
|
|
9
|
+
# specify the version you desire here
|
|
10
|
+
- image: circleci/ruby:2.4.1-node-browsers
|
|
11
|
+
|
|
12
|
+
working_directory: ~/repo
|
|
13
|
+
|
|
14
|
+
steps:
|
|
15
|
+
- checkout
|
|
16
|
+
|
|
17
|
+
# Download and cache dependencies
|
|
18
|
+
- restore_cache:
|
|
19
|
+
keys:
|
|
20
|
+
- v1-dependencies-{{ checksum "zanders.gemspec" }}
|
|
21
|
+
# fallback to using the latest cache if no exact match is found
|
|
22
|
+
- v1-dependencies-
|
|
23
|
+
|
|
24
|
+
- run:
|
|
25
|
+
name: install dependencies
|
|
26
|
+
command: |
|
|
27
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
|
28
|
+
|
|
29
|
+
- save_cache:
|
|
30
|
+
paths:
|
|
31
|
+
- ./vendor/bundle
|
|
32
|
+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
|
33
|
+
|
|
34
|
+
# run tests!
|
|
35
|
+
- run:
|
|
36
|
+
name: run tests
|
|
37
|
+
command: |
|
|
38
|
+
mkdir /tmp/test-results
|
|
39
|
+
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
|
|
40
|
+
|
|
41
|
+
bundle exec rspec --format documentation $TEST_FILES
|
data/lib/zanders/catalog.rb
CHANGED
|
@@ -48,6 +48,13 @@ module Zanders
|
|
|
48
48
|
long_description = self.get_description(content_for(node, 'ITEMNO'))
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
+
# product_type = case content_for(node, 'ITEMPRODUCTTYPE')
|
|
52
|
+
# when 'PD', 'PR'
|
|
53
|
+
# :ammunition
|
|
54
|
+
# else
|
|
55
|
+
# nil
|
|
56
|
+
# end
|
|
57
|
+
|
|
51
58
|
{
|
|
52
59
|
name: content_for(node, 'ITEMDESCRIPTION'),
|
|
53
60
|
upc: content_for(node, 'ITEMUPC'),
|
|
@@ -57,7 +64,7 @@ module Zanders
|
|
|
57
64
|
short_description: content_for(node, 'ITEMDESCRIPTION'),
|
|
58
65
|
long_description: long_description,
|
|
59
66
|
category: content_for(node, 'ITEMCATEGORYNAME'),
|
|
60
|
-
product_type:
|
|
67
|
+
# product_type: product_type,
|
|
61
68
|
mfg_number: content_for(node, 'ITEMMPN'),
|
|
62
69
|
weight: content_for(node, 'ITEMWEIGHT'),
|
|
63
70
|
caliber: features[:caliber],
|
data/lib/zanders/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zanders
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Knight
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-06-
|
|
11
|
+
date: 2018-06-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|
|
@@ -115,6 +115,7 @@ executables: []
|
|
|
115
115
|
extensions: []
|
|
116
116
|
extra_rdoc_files: []
|
|
117
117
|
files:
|
|
118
|
+
- ".circleci/config.yml"
|
|
118
119
|
- ".gitignore"
|
|
119
120
|
- ".rspec"
|
|
120
121
|
- ".ruby-gemset"
|