lasha 0.2.5 → 0.2.6

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: 4ab27f8003cdc41c6b993553160462e0159a4c8aace65109905a1bcef545444e
4
- data.tar.gz: 6a9c564ec9b76857660ce86f62d4468277301c8a96d5e9cce1851fbc5fd568ab
3
+ metadata.gz: ad04444d034b66f3cec747f25ded2198df2b3a4975daff4cb00b430b79a2f4b4
4
+ data.tar.gz: ba6b70fc5ed4dd13e1cd99737f058b7e48ef8ba7a6db2abe24697359993ff7ca
5
5
  SHA512:
6
- metadata.gz: dbb6c791ffdeba8ffb9cc770b45bab9ac37fda819583a3127801a7fa8e2d370a10279ad22722632ed1d20cccbd285278e40858f54b924c4498a56c332b180ea9
7
- data.tar.gz: c3f140510674723659f56e5ed93134ff0238f80e06d60d9b7042a43695cbe9b85c186f9aa625cd59a0632f939e45a05c9f10143682388fc68ba4e89d95571653
6
+ metadata.gz: e3515341339965949b13462ef8e4c452f57c567f06b07f3dc7baa6330450910ea320d5923773b273851b434b65b6cc282970057ac4c2810db2e38c1fa039bb87
7
+ data.tar.gz: 0c80a65bfa2ea480d4c0b94dc4dec22f4b96efdb630d520382b79b6727a6153694e7c6f19d09ca54db7f78494176b58dc8a1341a2d7efede0f6bd2293edf4138
@@ -0,0 +1,107 @@
1
+ @media (min-width: 576px)
2
+ .container
3
+ max-width: 540px
4
+ .col-sm-12
5
+ flex: 0 0 100%
6
+ max-width: 100%
7
+
8
+ @media (min-width: 768px)
9
+ .container
10
+ max-width: 720px
11
+
12
+ @media (min-width: 992px)
13
+ .container
14
+ max-width: 960px
15
+
16
+ @media (min-width: 1200px)
17
+ .container
18
+ max-width: 1140px
19
+
20
+ body
21
+ box-sizing: border-box
22
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
23
+ font-size: 1em
24
+ font-weight: 400
25
+ line-height: 1.5
26
+ background-color: #fff
27
+ color: #23384d
28
+ text-align: left
29
+ text-shadow: none !important
30
+ box-shadow: none !important
31
+ min-width: 992px !important
32
+ -webkit-user-select: none
33
+ -moz-user-select: none
34
+ -ms-user-select: none
35
+ user-select: none
36
+ height: 100%
37
+ margin: 0
38
+
39
+ .container
40
+ box-sizing: border-box
41
+ width: 100%
42
+ margin-right: auto
43
+ margin-left: auto
44
+ text-shadow: none !important
45
+ box-shadow: none !important
46
+ min-width: 992px !important
47
+ padding: 3rem
48
+
49
+ .row
50
+ box-sizing: border-box
51
+ display: flex
52
+ flex-wrap: wrap
53
+ margin-right: -15px
54
+ margin-left: -15px
55
+ text-shadow: none !important
56
+ box-shadow: none !important
57
+
58
+ .col-sm-12
59
+ box-sizing: border-box
60
+ position: relative
61
+ width: 100%
62
+ padding-right: 15px
63
+ padding-left: 15px
64
+ text-shadow: none !important
65
+ box-shadow: none !important
66
+
67
+ .card
68
+ box-sizing: border-box
69
+ position: relative
70
+ display: flex
71
+ flex-direction: column
72
+ min-width: 0
73
+ word-wrap: break-word
74
+ background-color: #fff
75
+ background-clip: border-box
76
+ border-radius: 0.25rem
77
+ text-shadow: none !important
78
+ box-shadow: none !important
79
+ border: 1px solid rgba(0,0,0,0.125)
80
+
81
+ .card-header
82
+ box-sizing: border-box
83
+ margin-bottom: 0
84
+ background-color: rgba(0, 0, 0, 0.03)
85
+ border-bottom-width: 1px
86
+ border-bottom-color: rgba(0, 0, 0, 0.125)
87
+ border-bottom-style: solid
88
+ border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0
89
+ text-shadow: none !important
90
+ box-shadow: none !important
91
+ padding: 0.75rem 1.25rem
92
+
93
+ .card-body
94
+ box-sizing: border-box
95
+ flex: 1 1 auto
96
+ text-shadow: none !important
97
+ box-shadow: none !important
98
+ padding: 1.25rem
99
+
100
+ p.card-text
101
+ box-sizing: border-box
102
+ text-shadow: none !important
103
+ box-shadow: none !important
104
+ orphans: 3
105
+ widows: 3
106
+ line-height: 1.6
107
+ margin: 0
@@ -1,3 +1,112 @@
1
+ @media (min-width: 576px)
2
+ .container
3
+ max-width: 540px
4
+ .col-sm-12
5
+ flex: 0 0 100%
6
+ max-width: 100%
7
+
8
+ @media (min-width: 768px)
9
+ .container
10
+ max-width: 720px
11
+
12
+ @media (min-width: 992px)
13
+ .container
14
+ max-width: 960px
15
+
16
+ @media (min-width: 1200px)
17
+ .container
18
+ max-width: 1140px
19
+
20
+ body
21
+ box-sizing: border-box
22
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
23
+ font-size: 1em
24
+ font-weight: 400
25
+ line-height: 1.5
26
+ background-color: #fff
27
+ color: #23384d
28
+ text-align: left
29
+ text-shadow: none !important
30
+ box-shadow: none !important
31
+ min-width: 992px !important
32
+ -webkit-user-select: none
33
+ -moz-user-select: none
34
+ -ms-user-select: none
35
+ user-select: none
36
+ height: 100%
37
+ margin: 0
38
+
39
+ .container
40
+ box-sizing: border-box
41
+ width: 100%
42
+ margin-right: auto
43
+ margin-left: auto
44
+ text-shadow: none !important
45
+ box-shadow: none !important
46
+ min-width: 992px !important
47
+ padding: 3rem
48
+
49
+ .row
50
+ box-sizing: border-box
51
+ display: flex
52
+ flex-wrap: wrap
53
+ margin-right: -15px
54
+ margin-left: -15px
55
+ text-shadow: none !important
56
+ box-shadow: none !important
57
+
58
+ .col-sm-12
59
+ box-sizing: border-box
60
+ position: relative
61
+ width: 100%
62
+ padding-right: 15px
63
+ padding-left: 15px
64
+ text-shadow: none !important
65
+ box-shadow: none !important
66
+
67
+ .card
68
+ box-sizing: border-box
69
+ position: relative
70
+ display: flex
71
+ flex-direction: column
72
+ min-width: 0
73
+ word-wrap: break-word
74
+ background-color: #fff
75
+ background-clip: border-box
76
+ border-radius: 0.25rem
77
+ text-shadow: none !important
78
+ box-shadow: none !important
79
+ border: 1px solid rgba(0,0,0,0.125)
80
+
81
+ .card-header
82
+ box-sizing: border-box
83
+ margin-bottom: 0
84
+ background-color: rgba(0, 0, 0, 0.03)
85
+ border-bottom-width: 1px
86
+ border-bottom-color: rgba(0, 0, 0, 0.125)
87
+ border-bottom-style: solid
88
+ border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0
89
+ text-shadow: none !important
90
+ box-shadow: none !important
91
+ padding: 0.75rem 1.25rem
92
+
93
+ .card-body
94
+ box-sizing: border-box
95
+ flex: 1 1 auto
96
+ text-shadow: none !important
97
+ box-shadow: none !important
98
+ padding: 1.25rem
99
+
100
+ p.card-text
101
+ box-sizing: border-box
102
+ text-shadow: none !important
103
+ box-shadow: none !important
104
+ orphans: 3
105
+ widows: 3
106
+ line-height: 1.6
107
+ margin: 0
108
+
109
+
1
110
  .btn-group-xs > .btn, .btn-xs
2
111
  padding: .25em .4em
3
112
  font-size: .875em
@@ -0,0 +1,3 @@
1
+ class LashaApplicationMailer < ActionMailer::Base
2
+ layout "lasha_mailer_layout"
3
+ end
@@ -0,0 +1,11 @@
1
+ class LashaMailer < LashaApplicationMailer
2
+ def notify(destination_email, subject, body)
3
+ @data = { subject: subject, body: body }
4
+ mail(
5
+ to: destination_email,
6
+ subject: subject,
7
+ template_path: "mailers/lasha",
8
+ # template_name: "notify"
9
+ )
10
+ end
11
+ end
@@ -0,0 +1,8 @@
1
+ html
2
+ head
3
+ meta http-equiv="Content-Type" content="text/html; charset=utf-8"
4
+
5
+ = stylesheet_link_tag "lasha/mailer"
6
+
7
+ body
8
+ = yield
@@ -0,0 +1,9 @@
1
+ .container.p-5
2
+ .row
3
+ .col-sm-12
4
+ .card
5
+ .card-header = @data[:subject]
6
+ .card-body
7
+ / h5.card-title
8
+ p.card-text = @data[:body]
9
+ / a.card-link href="#" Card link
@@ -0,0 +1 @@
1
+ Rails.application.config.assets.precompile += %w[lasha/mailer.css]
data/lib/lasha/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lasha
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
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.2.5
4
+ version: 0.2.6
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-07-23 00:00:00.000000000 Z
11
+ date: 2019-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 5.2.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: sassc-rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: sqlite3
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -50,7 +64,13 @@ files:
50
64
  - Rakefile
51
65
  - app/assets/config/lasha_manifest.js
52
66
  - app/assets/stylesheets/lasha.sass
67
+ - app/assets/stylesheets/lasha/mailer.sass
68
+ - app/mailers/lasha_application_mailer.rb
69
+ - app/mailers/lasha_mailer.rb
70
+ - app/views/layouts/lasha_mailer_layout.html.slim
71
+ - app/views/mailers/lasha/notify.html.slim
53
72
  - app/views/shared/_index_generator.html.slim
73
+ - config/initializers/lasha_assets.rb
54
74
  - config/routes.rb
55
75
  - lib/lasha.rb
56
76
  - lib/lasha/engine.rb