shipyard-framework 0.5.87 → 0.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/assets/javascripts/{shipyard.es6 → shipyard.js} +0 -0
- data/assets/javascripts/shipyard/{accordion-trigger.es6 → accordion-trigger.js} +0 -0
- data/assets/javascripts/shipyard/{accordion.es6 → accordion.js} +0 -0
- data/assets/javascripts/shipyard/{alert-timer.es6 → alert-timer.js} +0 -0
- data/assets/javascripts/shipyard/{alert.es6 → alert.js} +0 -0
- data/assets/javascripts/shipyard/{core.es6 → core.js} +0 -0
- data/assets/javascripts/shipyard/{hamburger.es6 → hamburger.js} +0 -0
- data/assets/javascripts/shipyard/{modal-trigger.es6 → modal-trigger.js} +0 -0
- data/assets/javascripts/shipyard/{modal.es6 → modal.js} +0 -0
- data/assets/javascripts/shipyard/{scroll.es6 → scroll.js} +0 -0
- data/assets/stylesheets/shipyard/_functions.sass +1 -0
- data/assets/stylesheets/shipyard/components/_tooltips.sass +140 -40
- data/assets/stylesheets/shipyard/core/_reset.sass +5 -1
- data/assets/stylesheets/shipyard/functions/_opposite-direction.sass +9 -0
- data/assets/stylesheets/shipyard/utilities/_typography.sass +2 -1
- data/lib/shipyard-framework/version.rb +1 -1
- metadata +19 -114
- data/.gitignore +0 -13
- data/.rspec +0 -3
- data/.ruby-version +0 -1
- data/.travis.yml +0 -40
- data/Brewfile +0 -4
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -3
- data/LICENSE.txt +0 -21
- data/README.md +0 -46
- data/Rakefile +0 -16
- data/ci/build.rb +0 -5
- data/ci/deploy +0 -31
- data/ci/jekyll +0 -16
- data/ci/percy +0 -16
- data/ci/sass_lint +0 -47
- data/ci/setup +0 -6
- data/shipyard.gemspec +0 -28
- data/spec/helpers/alert_helper_spec.rb +0 -27
- data/spec/helpers/box_helper_spec.rb +0 -27
- data/spec/helpers/button_helper_spec.rb +0 -37
- data/spec/helpers/form_helper_spec.rb +0 -29
- data/spec/helpers/icon_helper_spec.rb +0 -21
- data/spec/helpers/note_helper_spec.rb +0 -19
- data/spec/shipyard_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -104
- data/styleguide/.gitignore +0 -3
- data/styleguide/.nojekyll +0 -0
- data/styleguide/.ruby-version +0 -1
- data/styleguide/Gemfile +0 -9
- data/styleguide/Gemfile.lock +0 -125
- data/styleguide/_assets/css/application.sass +0 -3
- data/styleguide/_assets/css/fonts.sass +0 -2
- data/styleguide/_assets/css/layout.sass +0 -10
- data/styleguide/_assets/css/syntax.css +0 -209
- data/styleguide/_assets/css/vendor.sass +0 -4
- data/styleguide/_assets/css/views.sass +0 -103
- data/styleguide/_assets/img/arrows/down.svg +0 -3
- data/styleguide/_assets/img/checkmark.svg +0 -3
- data/styleguide/_assets/js/application.es6 +0 -6
- data/styleguide/_assets/js/views/components/alert-trigger.es6 +0 -20
- data/styleguide/_assets/js/views/utilities/colors.es6 +0 -14
- data/styleguide/_config.yml +0 -67
- data/styleguide/_data/breakpoints.yml +0 -15
- data/styleguide/_includes/css-stats.html +0 -14
- data/styleguide/_includes/page-heading.html +0 -4
- data/styleguide/_layouts/application.html +0 -45
- data/styleguide/_plugins/color_css_class.rb +0 -13
- data/styleguide/_plugins/component_css_class.rb +0 -9
- data/styleguide/_plugins/css_declarations.rb +0 -16
- data/styleguide/_plugins/css_selectors.rb +0 -16
- data/styleguide/_plugins/css_size.rb +0 -20
- data/styleguide/_plugins/human_size_filter.rb +0 -12
- data/styleguide/_plugins/icon_item.rb +0 -28
- data/styleguide/_plugins/opacity_css_class.rb +0 -12
- data/styleguide/_plugins/sass_generator.rb +0 -55
- data/styleguide/_plugins/sass_output.rb +0 -24
- data/styleguide/components/alerts.md +0 -107
- data/styleguide/components/boxes.md +0 -97
- data/styleguide/components/buttons.md +0 -192
- data/styleguide/components/checkboxes.md +0 -281
- data/styleguide/components/code.html +0 -49
- data/styleguide/components/empty-states.html +0 -12
- data/styleguide/components/forms.md +0 -151
- data/styleguide/components/horizontal-rules.md +0 -82
- data/styleguide/components/icons.md +0 -129
- data/styleguide/components/index.md +0 -18
- data/styleguide/components/modals/_modal.html +0 -100
- data/styleguide/components/modals/example-billing.html +0 -80
- data/styleguide/components/modals/example-downgrade.html +0 -33
- data/styleguide/components/modals/example-small.html +0 -19
- data/styleguide/components/modals/example-survey.html +0 -52
- data/styleguide/components/modals/example-tall.html +0 -6
- data/styleguide/components/modals/index.md +0 -41
- data/styleguide/components/notes.md +0 -67
- data/styleguide/components/radio-buttons.md +0 -195
- data/styleguide/components/statuses.md +0 -324
- data/styleguide/components/tables.md +0 -34
- data/styleguide/components/tooltips.md +0 -16
- data/styleguide/index.md +0 -27
- data/styleguide/stats.md +0 -49
- data/styleguide/utilities/accordion.md +0 -55
- data/styleguide/utilities/border-radius.md +0 -104
- data/styleguide/utilities/colors.md +0 -45
- data/styleguide/utilities/grid.md +0 -256
- data/styleguide/utilities/index.md +0 -19
- data/styleguide/utilities/margin-padding.md +0 -124
- data/styleguide/utilities/opacity.md +0 -28
- data/styleguide/utilities/position.md +0 -24
- data/styleguide/utilities/responsive.md +0 -20
- data/styleguide/utilities/typography.md +0 -74
data/.gitignore
DELETED
data/.rspec
DELETED
data/.ruby-version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.5.0
|
data/.travis.yml
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
language: ruby
|
|
2
|
-
cache: bundler
|
|
3
|
-
rvm:
|
|
4
|
-
- 2.4.1
|
|
5
|
-
before_install:
|
|
6
|
-
- chmod +x ci/setup
|
|
7
|
-
install:
|
|
8
|
-
- "./ci/setup"
|
|
9
|
-
before_script:
|
|
10
|
-
- chmod +x ci/jekyll
|
|
11
|
-
- chmod +x ci/sass_lint
|
|
12
|
-
jobs:
|
|
13
|
-
include:
|
|
14
|
-
# - script: "./ci/jekyll"
|
|
15
|
-
- script: "./ci/sass_lint"
|
|
16
|
-
- script: bundle exec rspec
|
|
17
|
-
- stage: Deploy
|
|
18
|
-
script: skip
|
|
19
|
-
deploy:
|
|
20
|
-
provider: rubygems
|
|
21
|
-
api_key:
|
|
22
|
-
secure: AaMZlXnSGb14LR9Xjo3j+65+U2tRCG8ZgO3iCGksV3riAWg5E0l0maM7HEXCi9+f6GbnQ3z/irEBtQiddU7fEKw1OoUmo7jkDh5juhmZjRa1y0hnn6VISRj6DpP3/KX9w++UDFJ4AWxwRr6h4sB3uhuIedBxlOuIuGlvE408Dzhd154F60EMO8/tYYNzksFBuSTBHZqmFSPnbYY1PN5OOW9VVjDO6D/FukraDqgDY0N475Tk86EpDXddd1ZSI+wJOcQBH/7SAYbAR0eL70fWZlbiBayOw6paPCAzbFZHXdN8j2oiXFwmzDwQvqKq2o1hcMzXq+EZ/KaAOoIS+99prBxyke8QEWB4fsFlkfEuB2t1HUpvQDTITwOTW0g0jI/kgiiOcmI+622ERfTeNOfNznqBEwDnL0BrGRy1Ygz4sJrIphQ9B0BURyQSk3wBR5Vy1CbgDyp1G34gezjUiDszoBasQI0k/47QLbTvtKVa+5xEP7Ud7lyAR8dHNBPIUFWb0xSJ9Nm5Qvnc15A4FikTzu948SQrAvPkDVrw2Up/RYgxHCR+lXh36npeza85/FBQCaKbRVVoVzN8dzbHgbHYMvZeQVCCW6ngFPVLsofW9NACyuSalf4+AsbNi18E9fJzVcfyVUuh+f4TH66msneYqPxk+Pat14VghO7bE3xvEgk=
|
|
23
|
-
gem: shipyard
|
|
24
|
-
on:
|
|
25
|
-
branch: master
|
|
26
|
-
repo: codeship/shipyard
|
|
27
|
-
env:
|
|
28
|
-
global:
|
|
29
|
-
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
|
|
30
|
-
sudo: false
|
|
31
|
-
branches:
|
|
32
|
-
except:
|
|
33
|
-
- gh-pages
|
|
34
|
-
- "/skip-ci(.*)/"
|
|
35
|
-
notifications:
|
|
36
|
-
email: false
|
|
37
|
-
slack:
|
|
38
|
-
on_success: always
|
|
39
|
-
rooms:
|
|
40
|
-
secure: AAXYbqh+QCyhZHHRWUiRa33qFf6ftBCJjVzjvrTZJFTEaTqFB5FwoWfZN15xggglR+42vJyQ9yVVr1XZ/uGiNhXFDi0mPhqjL2+RJ4I3etzFhDWJWp0/BcpOwYx7c0pPAzFhooK9X8cxzRrK/O7viHkM5GQ1mvXv8kld4Y1cZxPaFaoHHwK/BTAlrtZ111aloYe65TAi1qi+LBZ0oeJDBzW3jHvJ0U/4yfgCcnty8KZqzWDTX9eNzmwRdceVu9/rKfVToaNtoh4SGD128MlaXxaRPkJVzF261ZDhx2Fyi1kkzeZXWJtiadVARYmvXogSAQFPkaWfMRIEM4qHWSEYmUud0B3oB1GBTVOMmy+HKo0aRvhJUxPHNUvRejdo/vPYlRjwm66MPOyI9UUqZ3wGQ7NBzWJLB1O+C4sl4eXB5lINm5E85SojIhnStk1ARFgbFZEXiHTEaW11VedP+cA6b9UYy6FVYBokr9Yc8XpbmNiP6A0wwOscvQASslhbkaLZq/2S5IIftCD5I3EcFSP+BIMZnjA9YkBYMA3VOb2+HDETmzmFRG9cUCEoe65BQ9tGcvGg/msJQywWN2MgGu8LpgaDzkSaZ5Q3JTKSL3Sh9lYPpnFL678xTinK0YqmP5IKT5DcwxIYzoTmXnUv2setajvibaA/kBom7uEaXfFQ/yQ=
|
data/Brewfile
DELETED
data/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
-
orientation.
|
|
11
|
-
|
|
12
|
-
## Our Standards
|
|
13
|
-
|
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
|
15
|
-
include:
|
|
16
|
-
|
|
17
|
-
* Using welcoming and inclusive language
|
|
18
|
-
* Being respectful of differing viewpoints and experiences
|
|
19
|
-
* Gracefully accepting constructive criticism
|
|
20
|
-
* Focusing on what is best for the community
|
|
21
|
-
* Showing empathy towards other community members
|
|
22
|
-
|
|
23
|
-
Examples of unacceptable behavior by participants include:
|
|
24
|
-
|
|
25
|
-
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
-
advances
|
|
27
|
-
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
-
* Public or private harassment
|
|
29
|
-
* Publishing others' private information, such as a physical or electronic
|
|
30
|
-
address, without explicit permission
|
|
31
|
-
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
-
professional setting
|
|
33
|
-
|
|
34
|
-
## Our Responsibilities
|
|
35
|
-
|
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
-
response to any instances of unacceptable behavior.
|
|
39
|
-
|
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
-
threatening, offensive, or harmful.
|
|
45
|
-
|
|
46
|
-
## Scope
|
|
47
|
-
|
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
-
when an individual is representing the project or its community. Examples of
|
|
50
|
-
representing a project or community include using an official project e-mail
|
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
|
53
|
-
further defined and clarified by project maintainers.
|
|
54
|
-
|
|
55
|
-
## Enforcement
|
|
56
|
-
|
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
-
reported by contacting the project team at ryanwilke@gmail.com. All
|
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
|
63
|
-
|
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
-
members of the project's leadership.
|
|
67
|
-
|
|
68
|
-
## Attribution
|
|
69
|
-
|
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
-
available at [http://contributor-covenant.org/version/1/4][version]
|
|
72
|
-
|
|
73
|
-
[homepage]: http://contributor-covenant.org
|
|
74
|
-
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
DELETED
data/LICENSE.txt
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2017 Shipyard
|
|
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.
|
data/README.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# Shipyard
|
|
2
|
-
|
|
3
|
-
A light-weight, powerful, front-end framework for faster web development and useful tools for Ruby on Rails and Jekyll enthusiasts.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
Add this line to your application's Gemfile:
|
|
8
|
-
|
|
9
|
-
```ruby
|
|
10
|
-
gem 'shipyard-framework'
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
And then execute:
|
|
14
|
-
|
|
15
|
-
$ bundle
|
|
16
|
-
|
|
17
|
-
Or install it yourself as:
|
|
18
|
-
|
|
19
|
-
$ gem install shipyard-framework
|
|
20
|
-
|
|
21
|
-
Then add this line to your application's CSS file(s):
|
|
22
|
-
|
|
23
|
-
```css
|
|
24
|
-
@import "shipyard"
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
If you're using Jekyll, make sure you add the following the code in your `_config.yml` file:
|
|
28
|
-
```yml
|
|
29
|
-
plugins:
|
|
30
|
-
- shipyard-framework
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Status
|
|
34
|
-
[](https://badge.fury.io/rb/shipyard-framework)
|
|
35
|
-
[](https://app.codeship.com/projects/246808)
|
|
36
|
-
|
|
37
|
-
## Development Workflow
|
|
38
|
-
Shipyard uses [Codeship Basic](https://codeship.com/features/basic) to automate the testing and deployment workflows. If you would like to make a contribution to this project, all tests will need to pass and an administrator will need to approve the changes before they can be merged into master.
|
|
39
|
-
|
|
40
|
-
## Bugs & Feature Requests
|
|
41
|
-
|
|
42
|
-
Have a bug or a feature request? Please first read [the issue guidelines](https://github.com/codeship/shipyard/wiki/issues) and search for [existing and closed issues](https://github.com/codeship/shipyard/issues?utf8=%E2%9C%93&q=is%3Aissue). If your problem or idea is not addressed yet, please [open a new issue](https://github.com/codeship/shipyard/issues/new).
|
|
43
|
-
|
|
44
|
-
## License
|
|
45
|
-
|
|
46
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
require 'bundler/gem_tasks'
|
|
2
|
-
require 'rspec/core/rake_task'
|
|
3
|
-
require 'shipyard-framework'
|
|
4
|
-
require 'shipyard-framework/icons'
|
|
5
|
-
|
|
6
|
-
RSpec::Core::RakeTask.new(:spec)
|
|
7
|
-
task :default => :spec
|
|
8
|
-
|
|
9
|
-
namespace :shipyard do
|
|
10
|
-
desc "Compiles Shipyard and custom icons into an external svg definitions file."
|
|
11
|
-
task :icons, [:icon_directory, :output_directory] do |t, args|
|
|
12
|
-
args.with_defaults(:icon_directory => '/app/assets/icons/', :output_directory => '/public/assets/')
|
|
13
|
-
icons = Shipyard::Icons.new args.icon_directory, args.output_directory
|
|
14
|
-
icons.write
|
|
15
|
-
end
|
|
16
|
-
end
|
data/ci/build.rb
DELETED
data/ci/deploy
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -e # halt script on error
|
|
3
|
-
|
|
4
|
-
echo -e "\n\n************** Git Clone GH-Pages Branch **************"
|
|
5
|
-
if [[ $CI_NAME = "codeship" ]]
|
|
6
|
-
then
|
|
7
|
-
git clone git@github.com:codeship/shipyard.git --branch gh-pages --single-branch styleguide/_site
|
|
8
|
-
else
|
|
9
|
-
git clone https://github.com/codeship/shipyard.git --branch gh-pages --single-branch styleguide/_site
|
|
10
|
-
fi
|
|
11
|
-
|
|
12
|
-
echo -e "\n\n************** Jekyll Build **************"
|
|
13
|
-
cd styleguide
|
|
14
|
-
JEKYLL_ENV=production bundle exec jekyll build --verbose
|
|
15
|
-
|
|
16
|
-
echo -e "\n\n************** Commit & Push to GitHub Pages **************"
|
|
17
|
-
cd _site
|
|
18
|
-
git config user.email "${GITHUB_DEPLOY_USER_EMAIL}"
|
|
19
|
-
git config user.name "${GITHUB_DEPLOY_USER_NAME}"
|
|
20
|
-
git status
|
|
21
|
-
git add --all
|
|
22
|
-
git status
|
|
23
|
-
|
|
24
|
-
if [[ $CI_NAME = "codeship" ]]
|
|
25
|
-
then
|
|
26
|
-
git commit --allow-empty -m "Deploy to GitHub Pages: ${CI_COMMIT_ID} --skip-ci"
|
|
27
|
-
git push origin gh-pages
|
|
28
|
-
else
|
|
29
|
-
git commit --allow-empty -m "Dry Run Deploy: --skip-ci"
|
|
30
|
-
git push --dry-run origin gh-pages
|
|
31
|
-
fi
|
data/ci/jekyll
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -e # halt script on error
|
|
3
|
-
|
|
4
|
-
echo -e "************** Changed to Styleguide Directory **************"
|
|
5
|
-
cd ./styleguide
|
|
6
|
-
pwd
|
|
7
|
-
|
|
8
|
-
echo -e "\n\n************** Jekyll Build **************"
|
|
9
|
-
JEKYLL_ENV=test bundle exec jekyll build --baseurl=''
|
|
10
|
-
|
|
11
|
-
echo -e "\n\n************** Change Back to the Root Directory **************"
|
|
12
|
-
cd ../
|
|
13
|
-
pwd
|
|
14
|
-
|
|
15
|
-
echo -e "\n\n************** HTML Proofer **************"
|
|
16
|
-
bundle exec htmlproofer ./styleguide/_site --disable-external --allow-hash-href --assume-extension --log-level :debug
|
data/ci/percy
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -e # halt script on error
|
|
3
|
-
|
|
4
|
-
echo -e "************** Changed to Styleguide Directory **************"
|
|
5
|
-
cd ./styleguide
|
|
6
|
-
pwd
|
|
7
|
-
|
|
8
|
-
echo -e "\n\n************** Jekyll Build **************"
|
|
9
|
-
JEKYLL_ENV=test bundle exec jekyll build --baseurl=''
|
|
10
|
-
|
|
11
|
-
echo -e "\n\n************** Changed to Root Directory **************"
|
|
12
|
-
cd ../
|
|
13
|
-
pwd
|
|
14
|
-
|
|
15
|
-
echo -e "\n\n************** Percy Snapshot **************"
|
|
16
|
-
bundle exec percy snapshot --widths "375,768,1280" styleguide/_site/
|
data/ci/sass_lint
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
color_start="\033[32m"
|
|
3
|
-
color_end="\033[m"
|
|
4
|
-
if [[ $CI_NAME = "codeship" ]]
|
|
5
|
-
then
|
|
6
|
-
repository="git@github.com:codeship/shipyard.git"
|
|
7
|
-
else
|
|
8
|
-
repository="https://github.com/codeship/shipyard.git"
|
|
9
|
-
fi
|
|
10
|
-
|
|
11
|
-
echo -e "************** Copy Master Branch **************"
|
|
12
|
-
git clone $repository --branch master --single-branch ci/master-tmp
|
|
13
|
-
|
|
14
|
-
echo -e "\n\n************** Compile Sass **************"
|
|
15
|
-
bundle exec sass --no-cache --load-path assets/stylesheets --sourcemap=none --style compact assets/stylesheets/_shipyard.sass ci/master-tmp/branch-compact.css
|
|
16
|
-
bundle exec sass --no-cache --load-path assets/stylesheets --sourcemap=none --style compressed assets/stylesheets/_shipyard.sass ci/master-tmp/branch-compressed.css
|
|
17
|
-
bundle exec sass --no-cache --load-path assets/stylesheets --sourcemap=none --style compact ci/master-tmp/assets/stylesheets/_shipyard.sass ci/master-tmp/master-compact.css
|
|
18
|
-
bundle exec sass --no-cache --load-path assets/stylesheets --sourcemap=none --style compressed ci/master-tmp/assets/stylesheets/_shipyard.sass ci/master-tmp/master-compressed.css
|
|
19
|
-
gzip -kvf ci/master-tmp/branch-compressed.css
|
|
20
|
-
gzip -kvf ci/master-tmp/master-compressed.css
|
|
21
|
-
|
|
22
|
-
echo -e "\n\n************** CSS Output Filesize **************"
|
|
23
|
-
branch_compact=$(ls -lh ci/master-tmp/branch-compact.css | awk '{ printf $5 }')
|
|
24
|
-
master_compact=$(ls -lh ci/master-tmp/master-compact.css | awk '{ printf $5 }')
|
|
25
|
-
branch_compressed=$(ls -lh ci/master-tmp/branch-compressed.css | awk '{ printf $5 }')
|
|
26
|
-
master_compressed=$(ls -lh ci/master-tmp/master-compressed.css | awk '{ printf $5 }')
|
|
27
|
-
branch_gzipped=$(ls -l ci/master-tmp/branch-compressed.css.gz | awk '{ printf $5 }')
|
|
28
|
-
master_gzipped=$(ls -l ci/master-tmp/master-compressed.css.gz | awk '{ printf $5 }')
|
|
29
|
-
branch_gzipped=$(bc -l <<< "scale=1; $branch_gzipped/1000")
|
|
30
|
-
master_gzipped=$(bc -l <<< "scale=1; $master_gzipped/1000")
|
|
31
|
-
branch_compressed_int=${branch_compressed//[a-zA-Z]/}
|
|
32
|
-
master_compressed_int=${master_compressed//[a-zA-Z]/}
|
|
33
|
-
|
|
34
|
-
printf "Branch Compact:$color_start $branch_compact $color_end\n"
|
|
35
|
-
printf "Master Compact:$color_start $master_compact $color_end\n"
|
|
36
|
-
printf "Branch Compressed:$color_start $branch_compressed $color_end\n"
|
|
37
|
-
printf "Master Compressed:$color_start $master_compressed $color_end\n"
|
|
38
|
-
printf "Branch Gzipped:$color_start ${branch_gzipped}kb $color_end\n"
|
|
39
|
-
printf "Master Gzipped:$color_start ${master_gzipped}kb $color_end\n"
|
|
40
|
-
printf "Difference:$color_start $(bc -l <<< "scale=1; $branch_gzipped - $master_gzipped")kb $color_end\n"
|
|
41
|
-
|
|
42
|
-
echo -e "\n\n************** CSS Output Line Count **************"
|
|
43
|
-
branch_lines=$(wc -l ci/master-tmp/branch-compact.css | awk '{ printf $1 }')
|
|
44
|
-
master_lines=$(wc -l ci/master-tmp/master-compact.css | awk '{ printf $1 }')
|
|
45
|
-
printf "Branch:$color_start $branch_lines lines $color_end\n"
|
|
46
|
-
printf "Master:$color_start $master_lines lines $color_end\n"
|
|
47
|
-
printf "Difference:$color_start $(($branch_lines - $master_lines)) lines $color_end\n"
|
data/ci/setup
DELETED
data/shipyard.gemspec
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
lib = File.expand_path('../lib', __FILE__)
|
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
-
require 'shipyard-framework/version'
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name = 'shipyard-framework'
|
|
7
|
-
spec.version = Shipyard::VERSION
|
|
8
|
-
spec.authors = ['Codeship']
|
|
9
|
-
spec.email = ['design@codeship.com']
|
|
10
|
-
spec.summary = 'A lightweight CSS framework for developing mobile-first projects in Ruby on Rails.'
|
|
11
|
-
spec.homepage = 'https://github.com/codeship/shipyard'
|
|
12
|
-
spec.license = 'MIT'
|
|
13
|
-
|
|
14
|
-
# Rails Dependencies
|
|
15
|
-
spec.add_runtime_dependency 'actionview', '~> 5.0'
|
|
16
|
-
spec.add_runtime_dependency 'sprockets-es6', '~> 0.9.2'
|
|
17
|
-
|
|
18
|
-
spec.add_development_dependency 'bundler', '~> 1.15'
|
|
19
|
-
spec.add_development_dependency 'sass', '~> 3.5', '>= 3.5.2'
|
|
20
|
-
spec.add_development_dependency 'rspec', '~> 3.6'
|
|
21
|
-
spec.add_development_dependency 'percy-cli', '~> 1.2', '>= 1.2.9'
|
|
22
|
-
spec.add_development_dependency 'html-proofer', '~> 3.7', '>= 3.7.4'
|
|
23
|
-
spec.add_development_dependency 'jekyll', '~> 3.6'
|
|
24
|
-
spec.add_development_dependency 'jekyll-assets', '~> 2.3'
|
|
25
|
-
|
|
26
|
-
spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
27
|
-
spec.files = `git ls-files`.split("\n")
|
|
28
|
-
end
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
require 'spec_helper'
|
|
2
|
-
|
|
3
|
-
RSpec.describe Shipyard::AlertHelper, type: :helper do
|
|
4
|
-
include Shipyard::AlertHelper
|
|
5
|
-
|
|
6
|
-
it 'should return a default alert' do
|
|
7
|
-
expect(flash_alert { 'test' }).to match(
|
|
8
|
-
%r{<div role="alert" class="alert"><p class="alert-txt">test</p></div>}
|
|
9
|
-
)
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
xit 'should return a dismissible alert' do
|
|
13
|
-
expect(flash_alert(:dismissible) { 'test' }).to match(
|
|
14
|
-
%r{<div role="alert" data-shipyard="alert" class="alert"><p class="alert-txt">test</p></div>}
|
|
15
|
-
)
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
it 'should return all alert types' do
|
|
19
|
-
%w(info success warning error).each do |type|
|
|
20
|
-
expect(flash_alert(type.to_sym) { type }).to match(
|
|
21
|
-
%r{<div role="alert" class="alert alert-#{type}"><p class="alert-txt">#{type}</p></div>}
|
|
22
|
-
)
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
# TODO: Mock the $icons variable for the helper.
|
|
27
|
-
end
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
require 'spec_helper'
|
|
2
|
-
|
|
3
|
-
RSpec.describe Shipyard::BoxHelper, type: :helper do
|
|
4
|
-
include Shipyard::BoxHelper
|
|
5
|
-
|
|
6
|
-
it 'should return a default box' do
|
|
7
|
-
expect(box { 'test' }).to match(%r{<div class="box">test</div>})
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
it 'should return all box types' do
|
|
11
|
-
types = %w(secondary padding link).map(&:to_sym)
|
|
12
|
-
types.each do |type|
|
|
13
|
-
if type == :secondary
|
|
14
|
-
expect(box(type) { 'test' }).to match(%r{<div class="box-#{type}">test</div>})
|
|
15
|
-
else
|
|
16
|
-
expect(box(type) { 'test' }).to match(%r{<div class="box box-#{type}">test</div>})
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
it 'should return all box sizes' do
|
|
22
|
-
sizes = %w(xxs xs sm md lg xl xxl).map(&:to_sym)
|
|
23
|
-
sizes.each do |size|
|
|
24
|
-
expect(box(size) { 'test' }).to match(%r{<div class="box box-#{size}">test</div>})
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|