lasha 0.3.4 → 0.4.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08c700978802f66f799eb783fd06d7a37c79c98a93e5a8052abdeb705547b107'
|
4
|
+
data.tar.gz: f1385b578a030f583eb34e9f9ad372dfef6a95f6eceee6f23781c83116a24a31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4aee4e9d0e7bf5771742171428bbb1b564bcec2b5131b9afe2f22519b9ec90fe931bdbe0148dbbe69313e8f2476f78c585dc01a5b319869663dc064acb3e783
|
7
|
+
data.tar.gz: cc273c39881f8a93e9db8ad0a7d4ee065cef8e8a609dbaf418a07a188a805196ab939a14a1174148884275115c8933c68e0af71d99e0aa006055dd05350b75e8
|
data/README.md
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
|
2
|
+
|
2
3
|
# Lasha
|
3
4
|
This rails plugin aims to be a general helper gem for as many rails apps as possible.
|
4
5
|
It will to be a collection of features and helpers that many rails apps would need.
|
@@ -7,6 +8,7 @@ Potential of this gem is endless, please fork and add more features!
|
|
7
8
|
## Features
|
8
9
|
#### Helpers
|
9
10
|
* [Index Table Generator](#index-table-generator)
|
11
|
+
* [Bootstrap 4 Styles](#bootstrap-4-styles)
|
10
12
|
* [Mailer helper](#mailer-helper)
|
11
13
|
|
12
14
|
## Usage
|
@@ -34,8 +36,17 @@ actions---: (optional) derive from controller, can contain %i[new show edit dest
|
|
34
36
|
|
35
37
|
index view `index.html.slim`
|
36
38
|
```
|
37
|
-
= render partial: "
|
39
|
+
= render partial: "lasha/index_generator", locals: { data: @data }
|
40
|
+
```
|
41
|
+
|
42
|
+
#### Bootstrap 4 Styles
|
43
|
+
All the views from lasha come styled with bootstrap 4 classes, in order for them to work, you need to add bootstrap 4 to your yarn dependencies. This step is optional.
|
44
|
+
|
45
|
+
```
|
46
|
+
yarn add bootstrap@4
|
38
47
|
```
|
48
|
+
lasha handles import of `bootstrap.scss` stylesheet itself, just do the following:
|
49
|
+
insert `@import lasha_application` in your `application.sass`
|
39
50
|
|
40
51
|
#### Mailer helper
|
41
52
|
Mail helper uses its own partial, just invoke:
|
@@ -63,6 +74,9 @@ $ gem install lasha
|
|
63
74
|
## Dependencies
|
64
75
|
* rails (5+)
|
65
76
|
* sassc-rails
|
77
|
+
* slim-rails
|
78
|
+
* rspec-rails
|
79
|
+
* factory_bot_rails
|
66
80
|
|
67
81
|
## Development Helpers
|
68
82
|
Snippet for quickly rebuilding gem
|
File without changes
|
File without changes
|
data/lib/lasha/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lasha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lasha Abulashvili
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -189,14 +189,14 @@ files:
|
|
189
189
|
- README.md
|
190
190
|
- Rakefile
|
191
191
|
- app/assets/config/lasha_manifest.js
|
192
|
-
- app/assets/stylesheets/lasha.sass
|
193
192
|
- app/assets/stylesheets/lasha/mailer.sass
|
193
|
+
- app/assets/stylesheets/lasha_application.sass
|
194
194
|
- app/helpers/lasha_application_helper.rb
|
195
195
|
- app/mailers/lasha_application_mailer.rb
|
196
196
|
- app/mailers/lasha_mailer.rb
|
197
|
+
- app/views/lasha/_index_generator.html.slim
|
197
198
|
- app/views/layouts/lasha_mailer_layout.html.slim
|
198
199
|
- app/views/mailers/lasha/notify.html.slim
|
199
|
-
- app/views/shared/_index_generator.html.slim
|
200
200
|
- config/initializers/lasha_assets.rb
|
201
201
|
- config/routes.rb
|
202
202
|
- lib/lasha.rb
|