lasha 0.3.4 → 0.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3022570c58d0d6655e67be7d29c947890ace0d8e7eabcb5e717c823c042517a2
4
- data.tar.gz: 7ab0ec6f51549dee7f9ca7a4ff6608e9c1d6a8447e08d0fe1347708a89a48f9c
3
+ metadata.gz: '08c700978802f66f799eb783fd06d7a37c79c98a93e5a8052abdeb705547b107'
4
+ data.tar.gz: f1385b578a030f583eb34e9f9ad372dfef6a95f6eceee6f23781c83116a24a31
5
5
  SHA512:
6
- metadata.gz: b0f621a4624f57e3c6361ac3cd9538a998701f07d0ff25440a97e320d57ab9505430bd2b3dc3bb29263ad8643d53ed120e0decc5d2a1492c499e99a0c2063b5c
7
- data.tar.gz: 4aa56ce76bacc72dbf15c224f0a998bf79aea2ff28f06dfa15847c660b962f399851bbecac162af40266ec13f0e8c2d181ca41801dfe0767e466de23f7eb1396
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: "shared/index_generator", locals: { data: @data }
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
data/lib/lasha/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lasha
2
- VERSION = "0.3.4"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.4
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-05 00:00:00.000000000 Z
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