lease 0.1.2 → 0.1.3

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: a86858ad2b1be09213786c6cc31a387d9fd221f235c94a4764ab985928c1c63a
4
- data.tar.gz: bc95fa3227d60b838810a8454a2e6c83607e7b73061ccc9d7b33beb75059b309
3
+ metadata.gz: 748867c309b8a1c275156dd4938d688d1faf1724bf6fa783924ea649ad64b5da
4
+ data.tar.gz: f059df7df4087da32b100e694421b97d5635d68e784dbe19f30a8382ddab3df5
5
5
  SHA512:
6
- metadata.gz: eb7f44f7dbc8ad2e79ad09ecb4a1e17b441cf7aac24918bb77e99f47f1e1a92d0ae78d241b3f79134b8e9c13f4d4353d79d63ba19d17a051936d457ce393f9e0
7
- data.tar.gz: 667cf07b65a1f501d956227c2cab3bd99f653a29298377dc253f925629612de583fe430dd959baeba721bb79c57254c7d181695a0fa635ea2753674df74dc213
6
+ metadata.gz: ad9ebe1416e1a754cd158cf861385800de23ebda58eec71956d1db468a1d95657444d54a124c612af995286eb9bd3a0d68f5e58f6c4a4e6aa1c4b84c3129a3cd
7
+ data.tar.gz: bbc421c10f086256b183984fc20ac5958075a93b7b1d855fa762bc539f19aba40859f6b8c05b97e6b91fbb255291f89ae80e23958f3d7997dac84ab2bf87cd82
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lease (0.1.0)
4
+ lease (0.1.3)
5
5
  carrierwave (~> 1.0)
6
6
  rails (~> 5)
7
7
  wicked_pdf (~> 1.1.0)
@@ -10,78 +10,78 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (5.2.3)
14
- actionpack (= 5.2.3)
13
+ actioncable (5.2.4.1)
14
+ actionpack (= 5.2.4.1)
15
15
  nio4r (~> 2.0)
16
16
  websocket-driver (>= 0.6.1)
17
- actionmailer (5.2.3)
18
- actionpack (= 5.2.3)
19
- actionview (= 5.2.3)
20
- activejob (= 5.2.3)
17
+ actionmailer (5.2.4.1)
18
+ actionpack (= 5.2.4.1)
19
+ actionview (= 5.2.4.1)
20
+ activejob (= 5.2.4.1)
21
21
  mail (~> 2.5, >= 2.5.4)
22
22
  rails-dom-testing (~> 2.0)
23
- actionpack (5.2.3)
24
- actionview (= 5.2.3)
25
- activesupport (= 5.2.3)
26
- rack (~> 2.0)
23
+ actionpack (5.2.4.1)
24
+ actionview (= 5.2.4.1)
25
+ activesupport (= 5.2.4.1)
26
+ rack (~> 2.0, >= 2.0.8)
27
27
  rack-test (>= 0.6.3)
28
28
  rails-dom-testing (~> 2.0)
29
29
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
30
- actionview (5.2.3)
31
- activesupport (= 5.2.3)
30
+ actionview (5.2.4.1)
31
+ activesupport (= 5.2.4.1)
32
32
  builder (~> 3.1)
33
33
  erubi (~> 1.4)
34
34
  rails-dom-testing (~> 2.0)
35
35
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
36
- activejob (5.2.3)
37
- activesupport (= 5.2.3)
36
+ activejob (5.2.4.1)
37
+ activesupport (= 5.2.4.1)
38
38
  globalid (>= 0.3.6)
39
- activemodel (5.2.3)
40
- activesupport (= 5.2.3)
41
- activerecord (5.2.3)
42
- activemodel (= 5.2.3)
43
- activesupport (= 5.2.3)
39
+ activemodel (5.2.4.1)
40
+ activesupport (= 5.2.4.1)
41
+ activerecord (5.2.4.1)
42
+ activemodel (= 5.2.4.1)
43
+ activesupport (= 5.2.4.1)
44
44
  arel (>= 9.0)
45
- activestorage (5.2.3)
46
- actionpack (= 5.2.3)
47
- activerecord (= 5.2.3)
45
+ activestorage (5.2.4.1)
46
+ actionpack (= 5.2.4.1)
47
+ activerecord (= 5.2.4.1)
48
48
  marcel (~> 0.3.1)
49
- activesupport (5.2.3)
49
+ activesupport (5.2.4.1)
50
50
  concurrent-ruby (~> 1.0, >= 1.0.2)
51
51
  i18n (>= 0.7, < 2)
52
52
  minitest (~> 5.1)
53
53
  tzinfo (~> 1.1)
54
54
  arel (9.0.0)
55
- builder (3.2.3)
55
+ builder (3.2.4)
56
56
  carrierwave (1.3.1)
57
57
  activemodel (>= 4.0.0)
58
58
  activesupport (>= 4.0.0)
59
59
  mime-types (>= 1.16)
60
60
  coderay (1.1.2)
61
- concurrent-ruby (1.1.5)
62
- coveralls (0.8.22)
61
+ concurrent-ruby (1.1.6)
62
+ coveralls (0.8.23)
63
63
  json (>= 1.8, < 3)
64
64
  simplecov (~> 0.16.1)
65
65
  term-ansicolor (~> 1.3)
66
- thor (~> 0.19.4)
66
+ thor (>= 0.19.4, < 2.0)
67
67
  tins (~> 1.6)
68
- crass (1.0.4)
68
+ crass (1.0.6)
69
69
  diff-lcs (1.3)
70
- docile (1.3.1)
71
- erubi (1.8.0)
70
+ docile (1.3.2)
71
+ erubi (1.9.0)
72
72
  factory_bot (4.11.1)
73
73
  activesupport (>= 3.0.0)
74
74
  factory_bot_rails (4.11.1)
75
75
  factory_bot (~> 4.11.1)
76
76
  railties (>= 3.0.0)
77
- faker (1.9.3)
78
- i18n (>= 0.7)
77
+ faker (2.10.2)
78
+ i18n (>= 1.6, < 2)
79
79
  globalid (0.4.2)
80
80
  activesupport (>= 4.2.0)
81
- i18n (1.6.0)
81
+ i18n (1.8.2)
82
82
  concurrent-ruby (~> 1.0)
83
- json (2.2.0)
84
- loofah (2.2.3)
83
+ json (2.3.0)
84
+ loofah (2.4.0)
85
85
  crass (~> 1.0.2)
86
86
  nokogiri (>= 1.5.9)
87
87
  mail (2.7.1)
@@ -89,91 +89,93 @@ GEM
89
89
  marcel (0.3.3)
90
90
  mimemagic (~> 0.3.2)
91
91
  method_source (0.9.2)
92
- mime-types (3.2.2)
92
+ mime-types (3.3.1)
93
93
  mime-types-data (~> 3.2015)
94
- mime-types-data (3.2019.0331)
95
- mimemagic (0.3.3)
96
- mini_mime (1.0.1)
94
+ mime-types-data (3.2019.1009)
95
+ mimemagic (0.3.4)
96
+ mini_mime (1.0.2)
97
97
  mini_portile2 (2.4.0)
98
- minitest (5.11.3)
99
- nio4r (2.3.1)
100
- nokogiri (1.10.3)
98
+ minitest (5.14.0)
99
+ nio4r (2.5.2)
100
+ nokogiri (1.10.9)
101
101
  mini_portile2 (~> 2.4.0)
102
- pry (0.11.3)
102
+ pry (0.12.2)
103
103
  coderay (~> 1.1.0)
104
104
  method_source (~> 0.9.0)
105
- rack (2.0.7)
105
+ rack (2.2.2)
106
106
  rack-test (1.1.0)
107
107
  rack (>= 1.0, < 3)
108
- rails (5.2.3)
109
- actioncable (= 5.2.3)
110
- actionmailer (= 5.2.3)
111
- actionpack (= 5.2.3)
112
- actionview (= 5.2.3)
113
- activejob (= 5.2.3)
114
- activemodel (= 5.2.3)
115
- activerecord (= 5.2.3)
116
- activestorage (= 5.2.3)
117
- activesupport (= 5.2.3)
108
+ rails (5.2.4.1)
109
+ actioncable (= 5.2.4.1)
110
+ actionmailer (= 5.2.4.1)
111
+ actionpack (= 5.2.4.1)
112
+ actionview (= 5.2.4.1)
113
+ activejob (= 5.2.4.1)
114
+ activemodel (= 5.2.4.1)
115
+ activerecord (= 5.2.4.1)
116
+ activestorage (= 5.2.4.1)
117
+ activesupport (= 5.2.4.1)
118
118
  bundler (>= 1.3.0)
119
- railties (= 5.2.3)
119
+ railties (= 5.2.4.1)
120
120
  sprockets-rails (>= 2.0.0)
121
121
  rails-dom-testing (2.0.3)
122
122
  activesupport (>= 4.2.0)
123
123
  nokogiri (>= 1.6)
124
- rails-html-sanitizer (1.0.4)
125
- loofah (~> 2.2, >= 2.2.2)
126
- railties (5.2.3)
127
- actionpack (= 5.2.3)
128
- activesupport (= 5.2.3)
124
+ rails-html-sanitizer (1.3.0)
125
+ loofah (~> 2.3)
126
+ railties (5.2.4.1)
127
+ actionpack (= 5.2.4.1)
128
+ activesupport (= 5.2.4.1)
129
129
  method_source
130
130
  rake (>= 0.8.7)
131
131
  thor (>= 0.19.0, < 2.0)
132
- rake (12.3.2)
133
- rspec (3.8.0)
134
- rspec-core (~> 3.8.0)
135
- rspec-expectations (~> 3.8.0)
136
- rspec-mocks (~> 3.8.0)
137
- rspec-core (3.8.0)
138
- rspec-support (~> 3.8.0)
139
- rspec-expectations (3.8.3)
132
+ rake (13.0.1)
133
+ rspec (3.9.0)
134
+ rspec-core (~> 3.9.0)
135
+ rspec-expectations (~> 3.9.0)
136
+ rspec-mocks (~> 3.9.0)
137
+ rspec-core (3.9.1)
138
+ rspec-support (~> 3.9.1)
139
+ rspec-expectations (3.9.0)
140
140
  diff-lcs (>= 1.2.0, < 2.0)
141
- rspec-support (~> 3.8.0)
142
- rspec-mocks (3.8.0)
141
+ rspec-support (~> 3.9.0)
142
+ rspec-mocks (3.9.1)
143
143
  diff-lcs (>= 1.2.0, < 2.0)
144
- rspec-support (~> 3.8.0)
145
- rspec-rails (3.8.2)
144
+ rspec-support (~> 3.9.0)
145
+ rspec-rails (3.9.1)
146
146
  actionpack (>= 3.0)
147
147
  activesupport (>= 3.0)
148
148
  railties (>= 3.0)
149
- rspec-core (~> 3.8.0)
150
- rspec-expectations (~> 3.8.0)
151
- rspec-mocks (~> 3.8.0)
152
- rspec-support (~> 3.8.0)
153
- rspec-support (3.8.0)
149
+ rspec-core (~> 3.9.0)
150
+ rspec-expectations (~> 3.9.0)
151
+ rspec-mocks (~> 3.9.0)
152
+ rspec-support (~> 3.9.0)
153
+ rspec-support (3.9.2)
154
154
  simplecov (0.16.1)
155
155
  docile (~> 1.1)
156
156
  json (>= 1.8, < 3)
157
157
  simplecov-html (~> 0.10.0)
158
158
  simplecov-html (0.10.2)
159
- sprockets (3.7.2)
159
+ sprockets (4.0.0)
160
160
  concurrent-ruby (~> 1.0)
161
161
  rack (> 1, < 3)
162
162
  sprockets-rails (3.2.1)
163
163
  actionpack (>= 4.0)
164
164
  activesupport (>= 4.0)
165
165
  sprockets (>= 3.0.0)
166
- sqlite3 (1.4.0)
166
+ sqlite3 (1.4.2)
167
+ sync (0.5.0)
167
168
  term-ansicolor (1.7.1)
168
169
  tins (~> 1.0)
169
- thor (0.19.4)
170
+ thor (1.0.1)
170
171
  thread_safe (0.3.6)
171
- tins (1.20.2)
172
- tzinfo (1.2.5)
172
+ tins (1.24.1)
173
+ sync
174
+ tzinfo (1.2.6)
173
175
  thread_safe (~> 0.1)
174
- websocket-driver (0.7.0)
176
+ websocket-driver (0.7.1)
175
177
  websocket-extensions (>= 0.1.0)
176
- websocket-extensions (0.1.3)
178
+ websocket-extensions (0.1.4)
177
179
  wicked_pdf (1.1.0)
178
180
  wkhtmltopdf-binary (0.12.3.1)
179
181
 
@@ -187,7 +189,7 @@ DEPENDENCIES
187
189
  faker
188
190
  lease!
189
191
  pry
190
- rake (~> 12.3)
192
+ rake (~> 13.0)
191
193
  rspec (~> 3.7)
192
194
  rspec-rails (~> 3.7)
193
195
  sqlite3 (~> 1)
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Lease
2
-
2
+ [![Gem Version](https://badge.fury.io/rb/lease.svg)](https://badge.fury.io/rb/lease)
3
3
  Simplify the lease pdf/html management. Specially designed for a real estate self-storage project.
4
4
 
5
5
  ## Usage
@@ -49,7 +49,7 @@ module Lease
49
49
  spans = page.css("[id=\"#{dom_id}\"]")
50
50
  if spans.present?
51
51
  spans.each do |span|
52
- span.content = value
52
+ span.inner_html = value&.to_s&.html_safe || ""
53
53
  end
54
54
  else
55
55
  Rails.logger.info "Lease Envelope #{self.id}: dom id #{dom_id} not found in template"
data/lease.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency 'wkhtmltopdf-binary', '~> 0.12.3.1'
27
27
 
28
28
  spec.add_development_dependency 'bundler', '~> 1.17.3'
29
- spec.add_development_dependency 'rake', '~> 12.3'
29
+ spec.add_development_dependency 'rake', '~> 13.0'
30
30
  spec.add_development_dependency 'rspec', '~> 3.7'
31
31
  spec.add_development_dependency 'rspec-rails', '~> 3.7'
32
32
  spec.add_development_dependency 'factory_bot_rails', '~> 4.8'
data/lib/lease/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lease
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lease
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ninja Rails
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-06 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '12.3'
89
+ version: '13.0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '12.3'
96
+ version: '13.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -199,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  - !ruby/object:Gem::Version
200
200
  version: '0'
201
201
  requirements: []
202
- rubygems_version: 3.0.2
202
+ rubygems_version: 3.0.3
203
203
  signing_key:
204
204
  specification_version: 4
205
205
  summary: Lease templates and envelopes