beyond_canvas 0.6.3.pre → 0.6.4.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c3084d43396d4fa957f874374cc4248a6480ef1bccf8594b8deeed20ff870b80
4
- data.tar.gz: 9fa25549a424dbe10e81a92c2bf2ba38b766a4397b3dd4b83686470229b86bd7
3
+ metadata.gz: 69b9311ccfa66b8ff9b358476c40005dae8084848abb4408d1deecfacfd485eb
4
+ data.tar.gz: 2a5ac1f10b54e41f04f997e88b58f37ef52c85a0d63507d0b1a06f053b322ffd
5
5
  SHA512:
6
- metadata.gz: edc4b271eac2780182729ab41d11e40c853efbbb124d6fbc0a027b20e2a7111892da96ee0ec15cc498e2562b9991eb9962642928c05f2d4a80ed17231ae2d60b
7
- data.tar.gz: e1046a986e36093f4c513236258699babeb3d40ba0222d80e0356d16748bcebe34fd8e8887a0f82f13b72048d07a877e6c3d0290128512cc9b75dd0520cd19e7
6
+ metadata.gz: a214821f18cfd0e7ef9be448f6a7a9b44f0bae9b5e4da1d9154c10f989da2005c7f40ab4b2e7002058b4595a59bf7f8df408ff25bb346a23a1bfa3eebe3b2aa6
7
+ data.tar.gz: 45a919581e32011b4a64838237601ec2004d327776d861b264551d35442ff0e51202abe9ae1ecc441d7aaad23501a392dda6eefedf54bbb0e06ac0df6dd1d245
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### v0.6.4.pre
2
+
3
+ * bug-fixes
4
+ * Fix requiting to create the `_head.html.*` on the project instead of the gem itself
5
+
1
6
  ### v0.6.3.pre
2
7
 
3
8
  * bug-fixes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- beyond_canvas (0.6.3.pre)
4
+ beyond_canvas (0.6.4.pre)
5
5
  bourbon (~> 5.1)
6
6
  inline_svg (~> 1.5)
7
7
  sassc-rails (~> 2.1)
data/README.md CHANGED
@@ -1,35 +1,92 @@
1
- # BeyondCanvas
1
+ # Beyond Canvas
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/beyond_canvas`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ ![Gem Version](https://img.shields.io/gem/v/beyond_canvas?label=gem%20version)
4
+ ![License](https://img.shields.io/github/license/ePages-de/beyond_canvas)
6
5
 
7
6
  ## Installation
8
7
 
9
- Add this line to your application's Gemfile:
8
+ 1. Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem "beyond_canvas"
12
+ ```
13
+
14
+ 1. Then execute:
15
+
16
+ ```bash
17
+ $ bundle install
18
+ ```
19
+
20
+ 1. Restart your server and rename `application.css` to `application.scss` or `application.sass` (in case you prefer to use `sass` syntax):
21
+
22
+ ```bash
23
+ $ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.scss
24
+ ```
25
+
26
+ 1. Delete _all_ Sprockets directives in `application.scss` (`require`, `require_tree` and `require_self`) and use Sass’s native `@import` instead ([why?](https://content.pivotal.io/blog/structure-your-sass-files-with-import)).
27
+
28
+ 1. Import Beyond Canvas at the beginning of `application.scss`. Any other styles must be imported after Beyond Canvas to avoid issues:
29
+
30
+ ```scss
31
+ @import 'beyond_canvas'
32
+ ```
33
+
34
+ 1. Add the following to `application.js`:
35
+
36
+ ```js
37
+ //= require beyond_canvas
38
+ ```
10
39
 
11
- ```ruby
12
- gem 'beyond_canvas'
13
- ```
40
+ 1. Run the generator:
14
41
 
15
- And then execute:
42
+ ```bash
43
+ $ rails g beyond_canvas:install
44
+ ```
16
45
 
17
- $ bundle
46
+ This will generate 2 new files:
18
47
 
19
- Or install it yourself as:
48
+ 1. `config/initializers/beyond_canvas.rb`, used for general Beyond Canvas configuration and
49
+ 2. `config/initializers/beyond_canvas_form_utils.rb`, needed for changing the form generation behavior
20
50
 
21
- $ gem install beyond_canvas
51
+ ## Style Customization
22
52
 
23
- ## Usage
53
+ Beyond Canvas comes with _out-of-the-box_ styles to make your app look as a Beyond integrated one. If you want to customize the gem styles, follow these instructions:
24
54
 
25
- TODO: Write usage instructions here
55
+ 1. Run the custom style generator:
26
56
 
27
- ## Development
57
+ ```bash
58
+ $ rails g beyond_canvas:custom_styles
59
+ ```
28
60
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
61
+ This command will generate a file (`app/assets/stylesheets/_beyond_canvas_custom_styles.sass`) that contains all variables you can customize.
30
62
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
63
+ 1. Import the custom styles **before** Beyond Canvas itself (to override the default styles) on `application.scss`:
64
+
65
+ ```scss
66
+ @import 'beyond_canvas_custom_styles'
67
+ @import 'beyond_canvas'
68
+ ```
69
+
70
+ ## Documentation
71
+
72
+ TBD
32
73
 
33
74
  ## Contributing
34
75
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/beyond_canvas.
76
+ Please see [CONTRIBUTING](https://github.com/ePages-de/beyond_canvas/blob/master/CONTRIBUTING.md).
77
+
78
+ ## Changelog
79
+
80
+ Beyond Canvas's changelog is available [here](https://github.com/ePages-de/beyond_canvas/blob/master/CHANGELOG.md).
81
+
82
+ ## License
83
+
84
+ beyond_canvas is Copyright © 2019 ePages GmbH. It is free software, and may be redistributed under the terms specified in the [LICENSE](https://github.com/ePages-de/beyond_canvas/blob/master/LICENSE) file.
85
+
86
+ ## About ePages
87
+
88
+ As the largest independent provider of online shop software in Europe, ePages specialises in high-performance ecommerce solutions for small and medium-sized businesses.
89
+ Today, 100,000 companies in 70 countries operate professional online shops with ePages software in the cloud.
90
+
91
+ And we love open source software!
92
+ Check out our [other projects](https://github.com/ePages-de), or [become part of our team](https://developer.epages.com/devjobs/) and develop great ecommerce software with us!
@@ -0,0 +1,12 @@
1
+ head
2
+ = csrf_meta_tags
3
+ meta content='width=device-width, initial-scale=1.0' name='viewport' /
4
+ link crossorigin="anonymous" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" rel="stylesheet" /
5
+ script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"
6
+ - if defined? Turbolinks
7
+ = stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
8
+ = javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
9
+ - else
10
+ = stylesheet_link_tag 'application'
11
+ = javascript_include_tag 'application'
12
+ = render 'beyond_canvas/custom/public_head'
@@ -0,0 +1,2 @@
1
+ - logo = BeyondCanvas.configuration.public_logo
2
+ = logo_image_tag(logo) unless logo.nil?
@@ -1,17 +1,11 @@
1
1
  doctype html
2
2
 
3
3
  html
4
- head
5
- = csrf_meta_tags
6
- meta content='width=device-width, initial-scale=1.0' name='viewport' /
7
- link crossorigin="anonymous" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" rel="stylesheet" /
8
- script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"
9
- = render 'beyond_canvas/custom/public_head'
4
+ = render 'beyond_canvas/shared/head'
10
5
 
11
6
  body.body--public
12
7
  main.main class=("#{params[:controller].gsub(/[\/_]/, "-")}--#{params[:action]}")
13
- = render 'beyond_canvas/flash'
8
+ = render 'beyond_canvas/shared/flash'
14
9
  .main-wrapper
15
- - logo = BeyondCanvas.configuration.public_logo
16
- = logo_image_tag(logo) unless logo.nil?
10
+ = render 'beyond_canvas/shared/logo'
17
11
  = yield
@@ -1,3 +1,3 @@
1
1
  module BeyondCanvas
2
- VERSION = "0.6.3.pre".freeze
2
+ VERSION = "0.6.4.pre".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beyond_canvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3.pre
4
+ version: 0.6.4.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Unai Abrisketa
@@ -118,10 +118,11 @@ files:
118
118
  - app/assets/stylesheets/utilities/_mixins.sass
119
119
  - app/form_builders/beyond_form_builder.rb
120
120
  - app/helpers/beyond_canvas_helper.rb
121
- - app/views/beyond_canvas/_flash.html.slim
122
121
  - app/views/beyond_canvas/custom/_public_head.html.slim
122
+ - app/views/beyond_canvas/shared/_flash.html.slim
123
+ - app/views/beyond_canvas/shared/_head.html.slim
124
+ - app/views/beyond_canvas/shared/_logo.html.slim
123
125
  - app/views/layouts/beyond_canvas/public.html.slim
124
- - app/views/layouts/beyond_canvas/single_page.html.slim
125
126
  - beyond_canvas.gemspec
126
127
  - lib/beyond_canvas.rb
127
128
  - lib/beyond_canvas/version.rb
@@ -1,20 +0,0 @@
1
- doctype html
2
-
3
- html
4
- head
5
- = csrf_meta_tags
6
- meta content='width=device-width, initial-scale=1.0' name='viewport' /
7
- link crossorigin="anonymous" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" rel="stylesheet" /
8
- script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"
9
- = render 'beyond_canvas/custom/public_head'
10
-
11
- body.body--single-page
12
- main.main class=("#{params[:controller].gsub(/[\/_]/, "-")}--#{params[:action]}")
13
- .main-wrapper
14
- - logo = Dir["app/assets/images/logo.*"].first
15
- - unless logo.nil?
16
- - if File.extname(logo) == '.svg'
17
- = inline_svg File.basename(logo), class: 'logo'
18
- - else
19
- = image_tag File.basename(logo), class: 'logo'
20
- = yield