arctic-vendor 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +51 -0
  3. data/CHANGELOG.md +12 -0
  4. data/Gemfile.lock +2 -3
  5. data/documentation/CHANGELOG.md +137 -0
  6. data/documentation/CODE_OF_CONDUCT.md +46 -0
  7. data/documentation/Gemfile +11 -0
  8. data/documentation/Gemfile.lock +130 -0
  9. data/documentation/LICENSE +13 -0
  10. data/documentation/Procfile +1 -0
  11. data/documentation/README.md +118 -0
  12. data/documentation/build/fonts/slate.eot +0 -0
  13. data/documentation/build/fonts/slate.svg +14 -0
  14. data/documentation/build/fonts/slate.ttf +0 -0
  15. data/documentation/build/fonts/slate.woff +0 -0
  16. data/documentation/build/fonts/slate.woff2 +0 -0
  17. data/documentation/build/images/logo.png +0 -0
  18. data/documentation/build/images/navbar.png +0 -0
  19. data/documentation/build/index.html +564 -0
  20. data/documentation/build/javascripts/all.js +131 -0
  21. data/documentation/build/javascripts/all_nosearch.js +31 -0
  22. data/documentation/build/stylesheets/print.css +1 -0
  23. data/documentation/build/stylesheets/screen.css +1 -0
  24. data/documentation/config.rb +57 -0
  25. data/documentation/deploy.sh +215 -0
  26. data/documentation/font-selection.json +148 -0
  27. data/documentation/lib/multilang.rb +16 -0
  28. data/documentation/lib/nesting_unique_head.rb +22 -0
  29. data/documentation/lib/toc_data.rb +30 -0
  30. data/documentation/lib/unique_head.rb +24 -0
  31. data/documentation/source/fonts/slate.eot +0 -0
  32. data/documentation/source/fonts/slate.svg +14 -0
  33. data/documentation/source/fonts/slate.ttf +0 -0
  34. data/documentation/source/fonts/slate.woff +0 -0
  35. data/documentation/source/fonts/slate.woff2 +0 -0
  36. data/documentation/source/images/logo.png +0 -0
  37. data/documentation/source/images/navbar.png +0 -0
  38. data/documentation/source/includes/_errors.md +17 -0
  39. data/documentation/source/index.html.md +150 -0
  40. data/documentation/source/javascripts/all.js +2 -0
  41. data/documentation/source/javascripts/all_nosearch.js +16 -0
  42. data/documentation/source/javascripts/app/_lang.js +164 -0
  43. data/documentation/source/javascripts/app/_search.js +98 -0
  44. data/documentation/source/javascripts/app/_toc.js +114 -0
  45. data/documentation/source/javascripts/lib/_energize.js +169 -0
  46. data/documentation/source/javascripts/lib/_imagesloaded.min.js +7 -0
  47. data/documentation/source/javascripts/lib/_jquery.highlight.js +108 -0
  48. data/documentation/source/javascripts/lib/_jquery.js +9831 -0
  49. data/documentation/source/javascripts/lib/_lunr.js +1910 -0
  50. data/documentation/source/layouts/layout.erb +116 -0
  51. data/documentation/source/stylesheets/_icon-font.scss +38 -0
  52. data/documentation/source/stylesheets/_normalize.scss +427 -0
  53. data/documentation/source/stylesheets/_rtl.scss +140 -0
  54. data/documentation/source/stylesheets/_variables.scss +103 -0
  55. data/documentation/source/stylesheets/_variables2.scss +147 -0
  56. data/documentation/source/stylesheets/print.css.scss +148 -0
  57. data/documentation/source/stylesheets/screen.css.scss +712 -0
  58. data/lib/arctic/vendor/api.rb +38 -4
  59. data/lib/arctic/vendor/product.rb +47 -0
  60. data/lib/arctic/vendor/vendor.rb +7 -6
  61. data/lib/arctic/vendor/version.rb +1 -1
  62. data/vendor.gemspec +1 -1
  63. metadata +57 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e678ef652c084b21fd6bfe28c2c7cdbb7adf5d63a59abdf2fe280c9a2db382cb
4
- data.tar.gz: d6523f7bcb738e8822357804cb1d71739c2eb297b5f4d66f29742501497afc28
3
+ metadata.gz: d9b10bccdbda37e0c61b2dbad2920ee98fac213842af037c8891ee00bc284d81
4
+ data.tar.gz: 65b338d09027ace93aca485d2f7d59ec360aee4c3fb20be8367886773e2efd94
5
5
  SHA512:
6
- metadata.gz: 3fd4296d9bf46ce2417378e99e4fba962a730ac4eb07df1083d3368f187676f6c387cde0b359ab68ab29f705eae1ed53a41a7b5a891ea366a170837d49ae7d2e
7
- data.tar.gz: 49c7f80fe637630f9bd2305f795feb5eeb4e5dce04caadc9c9e922294d551e5247d3818880b28dea110d7ce157364a0f5e8a5c8e99c983580e8d643ba1cdb028
6
+ metadata.gz: 8440a5cb2c61d885441bffa66ea4ad2be719ba0dd9576b9cea6f937a9deda4325926cdc3580c00642e580af78fc16c9ce2502efdfdf828d1bb3ec67911df5a2c
7
+ data.tar.gz: 4c35c647c5400a98c996a1f3210d94e7b7f277f29902f4f435029daded18cdf2acdb028534c9a742c56d6d6b571e572fd9e5875f702c80bb10f6ac746e798e57
@@ -0,0 +1,51 @@
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
+
7
+ jobs:
8
+ build:
9
+ docker:
10
+ # specify the version you desire here
11
+ - image: circleci/ruby:2.4.1-node-browsers
12
+
13
+ working_directory: ~/repo
14
+
15
+ branches:
16
+ only:
17
+ - master
18
+
19
+ steps:
20
+ - add_ssh_keys:
21
+ fingerprints:
22
+ - "bb:37:1e:f6:bf:64:3d:f9:5a:8e:82:c1:a6:a9:e4:a9"
23
+
24
+ - checkout
25
+
26
+ # Download and cache dependencies
27
+ - restore_cache:
28
+ keys:
29
+ - v1-dependencies-{{ checksum "Gemfile.lock" }}-{{ checksum "documentation/Gemfile.lock" }}
30
+ - v1-dependencies-
31
+
32
+ - run:
33
+ name: install dependencies
34
+ command: bundle install --jobs=4 --retry=3 --path vendor/bundle
35
+
36
+ - run:
37
+ name: install documentation dependencies
38
+ command: cd documentation && bundle install --jobs=4 --retry=3 --path vendor/bundle && cd -
39
+
40
+ - save_cache:
41
+ paths:
42
+ - ./vendor/bundle
43
+ key: v1-dependencies-{{ checksum "Gemfile.lock" }}-{{ checksum "documentation/Gemfile.lock" }}
44
+
45
+ - run:
46
+ name: Run tests
47
+ command: bundle exec rspec --format progress
48
+
49
+ - run:
50
+ name: Deploy documentation
51
+ command: cd documentation && ./deploy.sh
data/CHANGELOG.md CHANGED
@@ -3,3 +3,15 @@
3
3
  ### 0.2.1
4
4
 
5
5
  * Added Arctic::Vendor::API#list_products method to allow vendors to retrieve products from the Core API - Emil Kampp <emil@youwe.dk>
6
+
7
+ ### 0.2.2
8
+
9
+ * Added synchronization endpoint to mark a shop as synchronized
10
+
11
+ ### 0.2.3
12
+
13
+ * When retrieving products from the Core API it will now be an array of Product objects.
14
+ * Introduce Product#update_state to update each product state
15
+ * Product#characteristics is now a Hashie::Mash to allow for dot-notation
16
+ * Allow traversing API pagination with API#make_paginated_request
17
+ * Allow setting batch size for Arctic::Vendor#distribute_products
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- arctic-vendor (0.2.1)
4
+ arctic-vendor (0.2.3)
5
5
  activesupport (~> 5.2)
6
6
  faraday (~> 0.14)
7
7
 
@@ -15,7 +15,7 @@ GEM
15
15
  tzinfo (~> 1.1)
16
16
  concurrent-ruby (1.0.5)
17
17
  diff-lcs (1.3)
18
- faraday (0.15.1)
18
+ faraday (0.15.2)
19
19
  multipart-post (>= 1.2, < 3)
20
20
  i18n (1.0.1)
21
21
  concurrent-ruby (~> 1.0)
@@ -44,7 +44,6 @@ PLATFORMS
44
44
 
45
45
  DEPENDENCIES
46
46
  arctic-vendor!
47
- bundler (~> 1.16)
48
47
  rake (~> 10.0)
49
48
  rspec (~> 3.0)
50
49
 
@@ -0,0 +1,137 @@
1
+ # Changelog
2
+
3
+ ## Version 2.2
4
+
5
+ *January 19, 2018*
6
+
7
+ - Fixes bugs with some non-roman languages not generating unique headers
8
+ - Adds editorconfig, thanks to [Jay Thomas](https://github.com/jaythomas)
9
+ - Adds optional `NestingUniqueHeadCounter`, thanks to [Vladimir Morozov](https://github.com/greenhost87)
10
+ - Small fixes to typos and language, thx [Emir Ribić](https://github.com/ribice), [Gregor Martynus](https://github.com/gr2m), and [Martius](https://github.com/martiuslim)!
11
+ - Adds links to Spectrum chat for questions in README and ISSUE_TEMPLATE
12
+
13
+ ## Version 2.1
14
+
15
+ *October 30, 2017*
16
+
17
+ - Right-to-left text stylesheet option, thanks to [Mohammad Hossein Rabiee](https://github.com/mhrabiee)
18
+ - Fix for HTML5 history state bug, thanks to [Zach Toolson](https://github.com/ztoolson)
19
+ - Small styling changes, typo fixes, small bug fixes from [Marian Friedmann](https://github.com/rnarian), [Ben Wilhelm](https://github.com/benwilhelm), [Fouad Matin](https://github.com/fouad), [Nicolas Bonduel](https://github.com/NicolasBonduel), [Christian Oliff](https://github.com/coliff)
20
+
21
+ Thanks to everyone who submitted PRs for this version!
22
+
23
+ ## Version 2.0
24
+
25
+ *July 17, 2017*
26
+
27
+ - All-new statically generated table of contents
28
+ - Should be much faster loading and scrolling for large pages
29
+ - Smaller Javascript file sizes
30
+ - Avoids the problem with the last link in the ToC not ever highlighting if the section was shorter than the page
31
+ - Fixes control-click not opening in a new page
32
+ - Automatically updates the HTML title as you scroll
33
+ - Updated design
34
+ - New default colors!
35
+ - New spacings and sizes!
36
+ - System-default typefaces, just like GitHub
37
+ - Added search input delay on large corpuses to reduce lag
38
+ - We even bumped the major version cause hey, why not?
39
+ - Various small bug fixes
40
+
41
+ Thanks to everyone who helped debug or wrote code for this version! It was a serious community effort, and I couldn't have done it alone.
42
+
43
+ ## Version 1.5
44
+
45
+ *February 23, 2017*
46
+
47
+ - Add [multiple tabs per programming language](https://github.com/lord/slate/wiki/Multiple-language-tabs-per-programming-language) feature
48
+ - Upgrade Middleman to add Ruby 1.4.0 compatibility
49
+ - Switch default code highlighting color scheme to better highlight JSON
50
+ - Various small typo and bug fixes
51
+
52
+ ## Version 1.4
53
+
54
+ *November 24, 2016*
55
+
56
+ - Upgrade Middleman and Rouge gems, should hopefully solve a number of bugs
57
+ - Update some links in README
58
+ - Fix broken Vagrant startup script
59
+ - Fix some problems with deploy.sh help message
60
+ - Fix bug with language tabs not hiding properly if no error
61
+ - Add `!default` to SASS variables
62
+ - Fix bug with logo margin
63
+ - Bump tested Ruby versions in .travis.yml
64
+
65
+ ## Version 1.3.3
66
+
67
+ *June 11, 2016*
68
+
69
+ Documentation and example changes.
70
+
71
+ ## Version 1.3.2
72
+
73
+ *February 3, 2016*
74
+
75
+ A small bugfix for slightly incorrect background colors on code samples in some cases.
76
+
77
+ ## Version 1.3.1
78
+
79
+ *January 31, 2016*
80
+
81
+ A small bugfix for incorrect whitespace in code blocks.
82
+
83
+ ## Version 1.3
84
+
85
+ *January 27, 2016*
86
+
87
+ We've upgraded Middleman and a number of other dependencies, which should fix quite a few bugs.
88
+
89
+ Instead of `rake build` and `rake deploy`, you should now run `bundle exec middleman build --clean` to build your server, and `./deploy.sh` to deploy it to Github Pages.
90
+
91
+ ## Version 1.2
92
+
93
+ *June 20, 2015*
94
+
95
+ **Fixes:**
96
+
97
+ - Remove crash on invalid languages
98
+ - Update Tocify to scroll to the highlighted header in the Table of Contents
99
+ - Fix variable leak and update search algorithms
100
+ - Update Python examples to be valid Python
101
+ - Update gems
102
+ - More misc. bugfixes of Javascript errors
103
+ - Add Dockerfile
104
+ - Remove unused gems
105
+ - Optimize images, fonts, and generated asset files
106
+ - Add chinese font support
107
+ - Remove RedCarpet header ID patch
108
+ - Update language tabs to not disturb existing query strings
109
+
110
+ ## Version 1.1
111
+
112
+ *July 27, 2014*
113
+
114
+ **Fixes:**
115
+
116
+ - Finally, a fix for the redcarpet upgrade bug
117
+
118
+ ## Version 1.0
119
+
120
+ *July 2, 2014*
121
+
122
+ [View Issues](https://github.com/tripit/slate/issues?milestone=1&state=closed)
123
+
124
+ **Features:**
125
+
126
+ - Responsive designs for phones and tablets
127
+ - Started tagging versions
128
+
129
+ **Fixes:**
130
+
131
+ - Fixed 'unrecognized expression' error
132
+ - Fixed #undefined hash bug
133
+ - Fixed bug where the current language tab would be unselected
134
+ - Fixed bug where tocify wouldn't highlight the current section while searching
135
+ - Fixed bug where ids of header tags would have special characters that caused problems
136
+ - Updated layout so that pages with disabled search wouldn't load search.js
137
+ - Cleaned up Javascript
@@ -0,0 +1,46 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ ## Our Standards
8
+
9
+ Examples of behavior that contributes to creating a positive environment include:
10
+
11
+ * Using welcoming and inclusive language
12
+ * Being respectful of differing viewpoints and experiences
13
+ * Gracefully accepting constructive criticism
14
+ * Focusing on what is best for the community
15
+ * Showing empathy towards other community members
16
+
17
+ Examples of unacceptable behavior by participants include:
18
+
19
+ * The use of sexualized language or imagery and unwelcome sexual attention or advances
20
+ * Trolling, insulting/derogatory comments, and personal or political attacks
21
+ * Public or private harassment
22
+ * Publishing others' private information, such as a physical or electronic address, without explicit permission
23
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
24
+
25
+ ## Our Responsibilities
26
+
27
+ Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28
+
29
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30
+
31
+ ## Scope
32
+
33
+ This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34
+
35
+ ## Enforcement
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at hello@lord.io. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38
+
39
+ Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40
+
41
+ ## Attribution
42
+
43
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44
+
45
+ [homepage]: http://contributor-covenant.org
46
+ [version]: http://contributor-covenant.org/version/1/4/
@@ -0,0 +1,11 @@
1
+ ruby '>=2.3.1'
2
+ source 'https://rubygems.org'
3
+
4
+ # Middleman
5
+ gem 'middleman', '~>4.2.1'
6
+ gem 'middleman-syntax', '~> 3.0.0'
7
+ gem 'middleman-autoprefixer', '~> 2.7.0'
8
+ gem "middleman-sprockets", "~> 4.1.0"
9
+ gem 'rouge', '~> 2.0.5'
10
+ gem 'redcarpet', '~> 3.4.0'
11
+ gem 'nokogiri', '~> 1.6.8'
@@ -0,0 +1,130 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ activesupport (5.0.7)
5
+ concurrent-ruby (~> 1.0, >= 1.0.2)
6
+ i18n (>= 0.7, < 2)
7
+ minitest (~> 5.1)
8
+ tzinfo (~> 1.1)
9
+ addressable (2.5.2)
10
+ public_suffix (>= 2.0.2, < 4.0)
11
+ autoprefixer-rails (6.7.7.2)
12
+ execjs
13
+ backports (3.11.3)
14
+ coffee-script (2.4.1)
15
+ coffee-script-source
16
+ execjs
17
+ coffee-script-source (1.12.2)
18
+ compass-import-once (1.0.5)
19
+ sass (>= 3.2, < 3.5)
20
+ concurrent-ruby (1.0.5)
21
+ contracts (0.13.0)
22
+ dotenv (2.4.0)
23
+ erubis (2.7.0)
24
+ execjs (2.7.0)
25
+ fast_blank (1.0.0)
26
+ fastimage (2.1.3)
27
+ ffi (1.9.23)
28
+ haml (5.0.4)
29
+ temple (>= 0.8.0)
30
+ tilt
31
+ hamster (3.0.0)
32
+ concurrent-ruby (~> 1.0)
33
+ hashie (3.5.7)
34
+ i18n (0.7.0)
35
+ kramdown (1.16.2)
36
+ listen (3.0.8)
37
+ rb-fsevent (~> 0.9, >= 0.9.4)
38
+ rb-inotify (~> 0.9, >= 0.9.7)
39
+ memoist (0.16.0)
40
+ middleman (4.2.1)
41
+ coffee-script (~> 2.2)
42
+ compass-import-once (= 1.0.5)
43
+ haml (>= 4.0.5)
44
+ kramdown (~> 1.2)
45
+ middleman-cli (= 4.2.1)
46
+ middleman-core (= 4.2.1)
47
+ sass (>= 3.4.0, < 4.0)
48
+ middleman-autoprefixer (2.7.1)
49
+ autoprefixer-rails (>= 6.5.2, < 7.0.0)
50
+ middleman-core (>= 3.3.3)
51
+ middleman-cli (4.2.1)
52
+ thor (>= 0.17.0, < 2.0)
53
+ middleman-core (4.2.1)
54
+ activesupport (>= 4.2, < 5.1)
55
+ addressable (~> 2.3)
56
+ backports (~> 3.6)
57
+ bundler (~> 1.1)
58
+ contracts (~> 0.13.0)
59
+ dotenv
60
+ erubis
61
+ execjs (~> 2.0)
62
+ fast_blank
63
+ fastimage (~> 2.0)
64
+ hamster (~> 3.0)
65
+ hashie (~> 3.4)
66
+ i18n (~> 0.7.0)
67
+ listen (~> 3.0.0)
68
+ memoist (~> 0.14)
69
+ padrino-helpers (~> 0.13.0)
70
+ parallel
71
+ rack (>= 1.4.5, < 3)
72
+ sass (>= 3.4)
73
+ servolux
74
+ tilt (~> 2.0)
75
+ uglifier (~> 3.0)
76
+ middleman-sprockets (4.1.1)
77
+ middleman-core (~> 4.0)
78
+ sprockets (>= 3.0)
79
+ middleman-syntax (3.0.0)
80
+ middleman-core (>= 3.2)
81
+ rouge (~> 2.0)
82
+ mini_portile2 (2.1.0)
83
+ minitest (5.11.3)
84
+ nokogiri (1.6.8.1)
85
+ mini_portile2 (~> 2.1.0)
86
+ padrino-helpers (0.13.3.4)
87
+ i18n (~> 0.6, >= 0.6.7)
88
+ padrino-support (= 0.13.3.4)
89
+ tilt (>= 1.4.1, < 3)
90
+ padrino-support (0.13.3.4)
91
+ activesupport (>= 3.1)
92
+ parallel (1.12.1)
93
+ public_suffix (3.0.2)
94
+ rack (2.0.5)
95
+ rb-fsevent (0.10.3)
96
+ rb-inotify (0.9.10)
97
+ ffi (>= 0.5.0, < 2)
98
+ redcarpet (3.4.0)
99
+ rouge (2.0.7)
100
+ sass (3.4.25)
101
+ servolux (0.13.0)
102
+ sprockets (3.7.1)
103
+ concurrent-ruby (~> 1.0)
104
+ rack (> 1, < 3)
105
+ temple (0.8.0)
106
+ thor (0.20.0)
107
+ thread_safe (0.3.6)
108
+ tilt (2.0.8)
109
+ tzinfo (1.2.5)
110
+ thread_safe (~> 0.1)
111
+ uglifier (3.2.0)
112
+ execjs (>= 0.3.0, < 3)
113
+
114
+ PLATFORMS
115
+ ruby
116
+
117
+ DEPENDENCIES
118
+ middleman (~> 4.2.1)
119
+ middleman-autoprefixer (~> 2.7.0)
120
+ middleman-sprockets (~> 4.1.0)
121
+ middleman-syntax (~> 3.0.0)
122
+ nokogiri (~> 1.6.8)
123
+ redcarpet (~> 3.4.0)
124
+ rouge (~> 2.0.5)
125
+
126
+ RUBY VERSION
127
+ ruby 2.5.1p57
128
+
129
+ BUNDLED WITH
130
+ 1.16.1
@@ -0,0 +1,13 @@
1
+ Copyright 2008-2013 Concur Technologies, Inc.
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may
4
+ not use this file except in compliance with the License. You may obtain
5
+ a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+ License for the specific language governing permissions and limitations
13
+ under the License.