arctic-ui 0.1.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.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +36 -0
  3. data/.gitignore +12 -0
  4. data/.rspec +3 -0
  5. data/.travis.yml +5 -0
  6. data/Gemfile +4 -0
  7. data/Gemfile.lock +98 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +28 -0
  10. data/Rakefile +6 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/core-api.gemspec +41 -0
  14. data/documentation/.editorconfig +15 -0
  15. data/documentation/.gitignore +24 -0
  16. data/documentation/.travis.yml +10 -0
  17. data/documentation/CHANGELOG.md +137 -0
  18. data/documentation/CODE_OF_CONDUCT.md +46 -0
  19. data/documentation/Gemfile +11 -0
  20. data/documentation/Gemfile.lock +129 -0
  21. data/documentation/LICENSE +13 -0
  22. data/documentation/Procfile +1 -0
  23. data/documentation/README.md +118 -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 +179 -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 +707 -0
  58. data/lib/arctic/ui.rb +21 -0
  59. data/lib/arctic/ui/api.rb +69 -0
  60. data/lib/arctic/ui/configuration.rb +26 -0
  61. data/lib/arctic/ui/version.rb +5 -0
  62. metadata +288 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 608a2c441f0df311ab9f293f4af5c73523bbf28b63fe7d8574000ac36d213dd1
4
+ data.tar.gz: 1a7bb189ce95278adbe0d8f056d2378b36ec2d0fde45915d0c179f22d4530456
5
+ SHA512:
6
+ metadata.gz: ff5ea6c8bae42917ed394365f41842af00bfd4d8b8e0ebe3bd31a2adf26722d059cdf2a823b1d30ea13c70641abb4450aad2f1e6bf5f1ad7f4b934a9a8437849
7
+ data.tar.gz: 588db40caf5135d289bda86fc0e9f2dd09f311e89e3c9c802b25268e7f19a9ddf50d3d0df6bff6112b0fe4c91b9c7bb5d7e80c70a1d866ecac561ef8492df154
@@ -0,0 +1,36 @@
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 "Gemfile.lock" }}
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: bundle install --jobs=4 --retry=3 --path vendor/bundle
27
+
28
+ - save_cache:
29
+ paths:
30
+ - ./vendor/bundle
31
+ key: v1-dependencies-{{ checksum "Gemfile.lock" }}
32
+
33
+ # run tests!
34
+ - run:
35
+ name: Run tests
36
+ command: bundle exec rspec --format progress
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+ *.gem
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.5.0
5
+ before_install: gem install bundler -v 1.16.1
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
+
4
+ gemspec
@@ -0,0 +1,98 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ arctic-ui (0.1.0)
5
+ activesupport (~> 5.1)
6
+ faraday (< 0.13)
7
+ faraday-detailed_logger (~> 2.1)
8
+ faraday-http-cache (~> 2.0)
9
+ faraday_middleware (~> 0.12)
10
+ faraday_middleware-parse_oj (~> 0.3.2)
11
+ oauth2 (~> 1.4)
12
+
13
+ GEM
14
+ remote: https://rubygems.org/
15
+ specs:
16
+ activesupport (5.2.0)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 0.7, < 2)
19
+ minitest (~> 5.1)
20
+ tzinfo (~> 1.1)
21
+ addressable (2.5.2)
22
+ public_suffix (>= 2.0.2, < 4.0)
23
+ coderay (1.1.2)
24
+ concurrent-ruby (1.0.5)
25
+ crack (0.4.3)
26
+ safe_yaml (~> 1.0.0)
27
+ diff-lcs (1.3)
28
+ faraday (0.12.2)
29
+ multipart-post (>= 1.2, < 3)
30
+ faraday-detailed_logger (2.1.2)
31
+ faraday (~> 0.8)
32
+ faraday-http-cache (2.0.0)
33
+ faraday (~> 0.8)
34
+ faraday_middleware (0.12.2)
35
+ faraday (>= 0.7.4, < 1.0)
36
+ faraday_middleware-parse_oj (0.3.2)
37
+ faraday (~> 0.9)
38
+ faraday_middleware (>= 0.9.1, < 1.0)
39
+ oj (>= 2.0, < 4.0)
40
+ hashdiff (0.3.7)
41
+ i18n (1.0.0)
42
+ concurrent-ruby (~> 1.0)
43
+ jwt (1.5.6)
44
+ method_source (0.9.0)
45
+ minitest (5.11.3)
46
+ multi_json (1.13.1)
47
+ multi_xml (0.6.0)
48
+ multipart-post (2.0.0)
49
+ oauth2 (1.4.0)
50
+ faraday (>= 0.8, < 0.13)
51
+ jwt (~> 1.0)
52
+ multi_json (~> 1.3)
53
+ multi_xml (~> 0.5)
54
+ rack (>= 1.2, < 3)
55
+ oj (3.5.1)
56
+ pry (0.11.3)
57
+ coderay (~> 1.1.0)
58
+ method_source (~> 0.9.0)
59
+ public_suffix (3.0.2)
60
+ rack (2.0.4)
61
+ rake (10.5.0)
62
+ rspec (3.7.0)
63
+ rspec-core (~> 3.7.0)
64
+ rspec-expectations (~> 3.7.0)
65
+ rspec-mocks (~> 3.7.0)
66
+ rspec-core (3.7.1)
67
+ rspec-support (~> 3.7.0)
68
+ rspec-expectations (3.7.0)
69
+ diff-lcs (>= 1.2.0, < 2.0)
70
+ rspec-support (~> 3.7.0)
71
+ rspec-mocks (3.7.0)
72
+ diff-lcs (>= 1.2.0, < 2.0)
73
+ rspec-support (~> 3.7.0)
74
+ rspec-support (3.7.1)
75
+ safe_yaml (1.0.4)
76
+ thread_safe (0.3.6)
77
+ tzinfo (1.2.5)
78
+ thread_safe (~> 0.1)
79
+ vcr (4.0.0)
80
+ webmock (3.3.0)
81
+ addressable (>= 2.3.6)
82
+ crack (>= 0.3.2)
83
+ hashdiff
84
+
85
+ PLATFORMS
86
+ ruby
87
+
88
+ DEPENDENCIES
89
+ arctic-ui!
90
+ bundler (~> 1.16)
91
+ pry (~> 0.11)
92
+ rake (~> 10.0)
93
+ rspec (~> 3.0)
94
+ vcr (~> 4.0)
95
+ webmock (~> 3.3)
96
+
97
+ BUNDLED WITH
98
+ 1.16.1
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Emil Kampp
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,28 @@
1
+ # Arctic Core API gem
2
+
3
+ This gem is used by the arctic receivers to interact with and send data to the
4
+ arctic core API.
5
+
6
+ ## Documentation
7
+
8
+ The documentation is generated from the slate-app in the documentation folder, and is available here: https://youweaps.github.io/arctic-gems-ui
9
+
10
+ ### Publishing documentation
11
+
12
+ First make sure that all code is tested and committed to the Github master branch.
13
+
14
+ The deploy the documentation to github pages:
15
+
16
+ ```bash
17
+ cd documentation && ./deploy.sh && cd -
18
+ ```
19
+
20
+ ### Running documentation server locally
21
+
22
+ To run the documentation slate app locally:
23
+
24
+ ```bash
25
+ cd documentation
26
+ bundle install
27
+ bundle exec middleman server # http://localhost:4567
28
+ ```
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "arctic/ui"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,41 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "arctic/ui/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "arctic-ui"
8
+ spec.version = Arctic::UI::VERSION
9
+ spec.authors = ["Emil Kampp"]
10
+ spec.email = ["emil@kampp.me"]
11
+
12
+ spec.summary = "Interact with the Arctic e-shop core API"
13
+ spec.description = <<~STR
14
+ This is a wrapper for http interactions with the Arctic e-shop core API,
15
+ allowing to easily send the arctic api compatible json to the core API.
16
+ STR
17
+ spec.homepage = "https://youweaps.github.io/arctic-gems-ui"
18
+ spec.license = "MIT"
19
+
20
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
21
+ f.match(%r{^(test|spec|features)/})
22
+ end
23
+ spec.bindir = "exe"
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ["lib"]
26
+
27
+ spec.add_development_dependency "bundler", "~> 1.16"
28
+ spec.add_development_dependency "rake", "~> 10.0"
29
+ spec.add_development_dependency "rspec", "~> 3.0"
30
+ spec.add_development_dependency "webmock", '~> 3.3'
31
+ spec.add_development_dependency "vcr", '~> 4.0'
32
+ spec.add_development_dependency "pry", '~> 0.11'
33
+
34
+ spec.add_runtime_dependency 'activesupport', '~> 5.1'
35
+ spec.add_runtime_dependency 'faraday', '< 0.13'
36
+ spec.add_runtime_dependency 'faraday_middleware-parse_oj', '~> 0.3.2'
37
+ spec.add_runtime_dependency 'faraday_middleware', '~> 0.12'
38
+ spec.add_runtime_dependency 'faraday-detailed_logger', '~> 2.1'
39
+ spec.add_runtime_dependency 'oauth2', '~> 1.4'
40
+ spec.add_runtime_dependency 'faraday-http-cache', '~> 2.0'
41
+ end
@@ -0,0 +1,15 @@
1
+ # EditorConfig is awesome: http://EditorConfig.org
2
+
3
+ # Top-most EditorConfig file
4
+ root = true
5
+
6
+ # Unix-style newlines with a newline ending every file
7
+ [*]
8
+ end_of_line = lf
9
+ insert_final_newline = true
10
+ indent_style = space
11
+ indent_size = 2
12
+ trim_trailing_whitespace = true
13
+
14
+ [*.rb]
15
+ charset = utf-8
@@ -0,0 +1,24 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ coverage
6
+ InstalledFiles
7
+ lib/bundler/man
8
+ pkg
9
+ rdoc
10
+ spec/reports
11
+ test/tmp
12
+ test/version_tmp
13
+ tmp
14
+ *.DS_STORE
15
+ build/
16
+ .cache
17
+ .vagrant
18
+ .sass-cache
19
+
20
+ # YARD artifacts
21
+ .yardoc
22
+ _yardoc
23
+ doc/
24
+ .idea/
@@ -0,0 +1,10 @@
1
+ sudo: false
2
+
3
+ language: ruby
4
+
5
+ rvm:
6
+ - 2.3.3
7
+ - 2.4.0
8
+
9
+ cache: bundler
10
+ script: bundle exec middleman build
@@ -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