trusty-cms 3.3.0 → 3.3.1

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
- SHA1:
3
- metadata.gz: '08f5e8a4af024687fbd7b3254c2b59c20d5f33e3'
4
- data.tar.gz: 89474a5f5fa76618a79704889210b170a2584be5
2
+ SHA256:
3
+ metadata.gz: 2e373d392203b28442ebf17a3b2174a282c43357f4a89351056aacf7b400f505
4
+ data.tar.gz: e0f34c90b48af63d7de0788795a4373638f2426d5c926ba5f4067eec58bf5eb9
5
5
  SHA512:
6
- metadata.gz: 871dcea0008cb217654ade4a262dc0421b1abaaf4ea10e70523a819a45186e9ce6a6584be3f3b305208204a502879114af031cded53a026717eeaeb8d049ff4c
7
- data.tar.gz: 8f3028f2224bad2539abc7f4fb9beef0838e13200e4055871a4e44f121d4b768949a3eb489aba4cebb4110b07bfadf8a0616dc0750b83b1f64400820d98d7dbc
6
+ metadata.gz: 5076487c7701af146ecf07dccad04ce4c1c4f5951522781d4ccf327f6a3bc0cf963ee3a54ab02dbc7f45a26cae9488f4a20e57aa674519c2c175d0855d3292c9
7
+ data.tar.gz: 339e7be449be6161b6baff53c7e7533424a7d4ed327320b31f5a2a28d8f976f124971727493d0bb3a1ff45f8ab88065149fbab6037ac22eb7daab796e50a2831
data/Gemfile CHANGED
@@ -13,12 +13,11 @@ gemspec
13
13
 
14
14
  group :development, :test do
15
15
  gem 'acts_as_list'
16
- gem 'cocaine'
17
16
  gem 'codeclimate-test-reporter'
18
17
  gem 'database_cleaner'
19
18
  gem 'factory_bot_rails'
20
19
  gem 'launchy', '~> 2.4.2'
21
- gem 'mysql2', '~> 0.4.2'
20
+ gem 'mysql2'
22
21
  gem 'poltergeist', '~> 1.14.0'
23
22
  gem 'pry-byebug'
24
23
  gem 'rails-observers'
data/Gemfile.lock CHANGED
@@ -1,13 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (3.3.0)
4
+ trusty-cms (3.3.1)
5
5
  RedCloth (= 4.3.2)
6
6
  acts_as_list (~> 0.9.5)
7
7
  acts_as_tree (~> 2.6.1)
8
8
  bundler (~> 1.7)
9
9
  ckeditor (~> 4.2.2)
10
- cocaine (~> 0.5.8)
11
10
  compass-rails (~> 3.0.2)
12
11
  delocalize (~> 0.2)
13
12
  execjs (~> 2.7)
@@ -15,15 +14,15 @@ PATH
15
14
  haml-rails (~> 1.0.0)
16
15
  highline (~> 1.7.8)
17
16
  kraken-io
18
- mysql2 (~> 0.4.2)
17
+ mysql2
19
18
  paperclip (> 5.2)
20
19
  rack (~> 2.0.1)
21
20
  rack-cache (~> 1.7)
22
21
  radius (~> 0.7)
23
- rails (~> 5.2.0.rc2)
22
+ rails (~> 5.2.0)
24
23
  rake (< 11.0)
25
24
  rdoc (~> 5.1)
26
- roadie-rails (~> 1.2.1)
25
+ roadie-rails
27
26
  stringex (~> 2.7.1)
28
27
  therubyracer (~> 0.12.3)
29
28
  tzinfo (~> 1.2.3)
@@ -35,43 +34,43 @@ GEM
35
34
  remote: https://rubygems.org/
36
35
  specs:
37
36
  RedCloth (4.3.2)
38
- actioncable (5.2.0.rc2)
39
- actionpack (= 5.2.0.rc2)
37
+ actioncable (5.2.0)
38
+ actionpack (= 5.2.0)
40
39
  nio4r (~> 2.0)
41
40
  websocket-driver (>= 0.6.1)
42
- actionmailer (5.2.0.rc2)
43
- actionpack (= 5.2.0.rc2)
44
- actionview (= 5.2.0.rc2)
45
- activejob (= 5.2.0.rc2)
41
+ actionmailer (5.2.0)
42
+ actionpack (= 5.2.0)
43
+ actionview (= 5.2.0)
44
+ activejob (= 5.2.0)
46
45
  mail (~> 2.5, >= 2.5.4)
47
46
  rails-dom-testing (~> 2.0)
48
- actionpack (5.2.0.rc2)
49
- actionview (= 5.2.0.rc2)
50
- activesupport (= 5.2.0.rc2)
47
+ actionpack (5.2.0)
48
+ actionview (= 5.2.0)
49
+ activesupport (= 5.2.0)
51
50
  rack (~> 2.0)
52
51
  rack-test (>= 0.6.3)
53
52
  rails-dom-testing (~> 2.0)
54
53
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
55
- actionview (5.2.0.rc2)
56
- activesupport (= 5.2.0.rc2)
54
+ actionview (5.2.0)
55
+ activesupport (= 5.2.0)
57
56
  builder (~> 3.1)
58
57
  erubi (~> 1.4)
59
58
  rails-dom-testing (~> 2.0)
60
59
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
61
- activejob (5.2.0.rc2)
62
- activesupport (= 5.2.0.rc2)
60
+ activejob (5.2.0)
61
+ activesupport (= 5.2.0)
63
62
  globalid (>= 0.3.6)
64
- activemodel (5.2.0.rc2)
65
- activesupport (= 5.2.0.rc2)
66
- activerecord (5.2.0.rc2)
67
- activemodel (= 5.2.0.rc2)
68
- activesupport (= 5.2.0.rc2)
63
+ activemodel (5.2.0)
64
+ activesupport (= 5.2.0)
65
+ activerecord (5.2.0)
66
+ activemodel (= 5.2.0)
67
+ activesupport (= 5.2.0)
69
68
  arel (>= 9.0)
70
- activestorage (5.2.0.rc2)
71
- actionpack (= 5.2.0.rc2)
72
- activerecord (= 5.2.0.rc2)
69
+ activestorage (5.2.0)
70
+ actionpack (= 5.2.0)
71
+ activerecord (= 5.2.0)
73
72
  marcel (~> 0.3.1)
74
- activesupport (5.2.0.rc2)
73
+ activesupport (5.2.0)
75
74
  concurrent-ruby (~> 1.0, >= 1.0.2)
76
75
  i18n (>= 0.7, < 2)
77
76
  minitest (~> 5.1)
@@ -98,8 +97,8 @@ GEM
98
97
  orm_adapter (~> 0.5.0)
99
98
  climate_control (0.2.0)
100
99
  cliver (0.3.2)
101
- cocaine (0.5.8)
102
- climate_control (>= 0.0.3, < 1.0)
100
+ cocaine (0.6.0)
101
+ terrapin (= 0.6.0)
103
102
  codeclimate-test-reporter (1.0.8)
104
103
  simplecov (<= 0.13)
105
104
  coderay (1.1.2)
@@ -120,10 +119,10 @@ GEM
120
119
  sass-rails (< 5.1)
121
120
  sprockets (< 4.0)
122
121
  concurrent-ruby (1.0.5)
123
- crass (1.0.3)
122
+ crass (1.0.4)
124
123
  css_parser (1.6.0)
125
124
  addressable
126
- database_cleaner (1.6.2)
125
+ database_cleaner (1.7.0)
127
126
  delocalize (0.4.0)
128
127
  rails (>= 3.0)
129
128
  diff-lcs (1.3)
@@ -156,7 +155,7 @@ GEM
156
155
  ruby_parser (~> 3.5)
157
156
  httparty (0.16.2)
158
157
  multi_xml (>= 0.5.2)
159
- i18n (1.0.0)
158
+ i18n (1.0.1)
160
159
  concurrent-ruby (~> 1.0)
161
160
  json (2.1.0)
162
161
  kraken-io (0.1.3)
@@ -185,7 +184,7 @@ GEM
185
184
  multi_json (1.13.1)
186
185
  multi_xml (0.6.0)
187
186
  multipart-post (2.0.0)
188
- mysql2 (0.4.10)
187
+ mysql2 (0.5.1)
189
188
  nio4r (2.3.0)
190
189
  nokogiri (1.8.2)
191
190
  mini_portile2 (~> 2.3.0)
@@ -207,24 +206,24 @@ GEM
207
206
  byebug (~> 10.0)
208
207
  pry (~> 0.10)
209
208
  public_suffix (3.0.2)
210
- rack (2.0.4)
209
+ rack (2.0.5)
211
210
  rack-cache (1.7.1)
212
211
  rack (>= 0.4)
213
212
  rack-test (1.0.0)
214
213
  rack (>= 1.0, < 3)
215
214
  radius (0.7.4)
216
- rails (5.2.0.rc2)
217
- actioncable (= 5.2.0.rc2)
218
- actionmailer (= 5.2.0.rc2)
219
- actionpack (= 5.2.0.rc2)
220
- actionview (= 5.2.0.rc2)
221
- activejob (= 5.2.0.rc2)
222
- activemodel (= 5.2.0.rc2)
223
- activerecord (= 5.2.0.rc2)
224
- activestorage (= 5.2.0.rc2)
225
- activesupport (= 5.2.0.rc2)
215
+ rails (5.2.0)
216
+ actioncable (= 5.2.0)
217
+ actionmailer (= 5.2.0)
218
+ actionpack (= 5.2.0)
219
+ actionview (= 5.2.0)
220
+ activejob (= 5.2.0)
221
+ activemodel (= 5.2.0)
222
+ activerecord (= 5.2.0)
223
+ activestorage (= 5.2.0)
224
+ activesupport (= 5.2.0)
226
225
  bundler (>= 1.3.0)
227
- railties (= 5.2.0.rc2)
226
+ railties (= 5.2.0)
228
227
  sprockets-rails (>= 2.0.0)
229
228
  rails-dom-testing (2.0.3)
230
229
  activesupport (>= 4.2.0)
@@ -233,9 +232,9 @@ GEM
233
232
  loofah (~> 2.2, >= 2.2.2)
234
233
  rails-observers (0.1.5)
235
234
  activemodel (>= 4.0)
236
- railties (5.2.0.rc2)
237
- actionpack (= 5.2.0.rc2)
238
- activesupport (= 5.2.0.rc2)
235
+ railties (5.2.0)
236
+ actionpack (= 5.2.0)
237
+ activesupport (= 5.2.0)
239
238
  method_source
240
239
  rake (>= 0.8.7)
241
240
  thor (>= 0.18.1, < 2.0)
@@ -245,11 +244,11 @@ GEM
245
244
  ffi (>= 0.5.0, < 2)
246
245
  rdoc (5.1.0)
247
246
  ref (2.0.0)
248
- roadie (3.2.2)
247
+ roadie (3.3.0)
249
248
  css_parser (~> 1.4)
250
249
  nokogiri (~> 1.5)
251
- roadie-rails (1.2.1)
252
- railties (>= 3.0, < 5.2)
250
+ roadie-rails (1.3.0)
251
+ railties (>= 3.0, < 5.3)
253
252
  roadie (~> 3.1)
254
253
  rspec-core (3.7.1)
255
254
  rspec-support (~> 3.7.0)
@@ -277,7 +276,7 @@ GEM
277
276
  sprockets (>= 2.8, < 4.0)
278
277
  sprockets-rails (>= 2.0, < 4.0)
279
278
  tilt (>= 1.1, < 3)
280
- sexp_processor (4.10.1)
279
+ sexp_processor (4.11.0)
281
280
  simplecov (0.13.0)
282
281
  docile (~> 1.1.0)
283
282
  json (>= 1.8, < 3)
@@ -319,12 +318,11 @@ PLATFORMS
319
318
 
320
319
  DEPENDENCIES
321
320
  acts_as_list
322
- cocaine
323
321
  codeclimate-test-reporter
324
322
  database_cleaner
325
323
  factory_bot_rails
326
324
  launchy (~> 2.4.2)
327
- mysql2 (~> 0.4.2)
325
+ mysql2
328
326
  poltergeist (~> 1.14.0)
329
327
  pry-byebug
330
328
  rails-observers
data/app/models/asset.rb CHANGED
@@ -56,7 +56,7 @@ class Asset < ActiveRecord::Base
56
56
  #'Expires' => 1.month.from_now.httpdate
57
57
  }
58
58
 
59
- validates_attachment_content_type :asset, :content_type => ["image/jpg", "image/jpeg", "image/png", "image/gif", "application/pdf", "application/javascript", "text/javascript", "text/css"]
59
+ validates_attachment_content_type :asset, :content_type => ["application/zip", "image/jpg", "image/jpeg", "image/png", "image/gif", "application/pdf", "application/javascript", "text/javascript", "text/css"]
60
60
 
61
61
  before_save :assign_title
62
62
  before_save :assign_uuid
@@ -189,7 +189,7 @@ private
189
189
  end
190
190
 
191
191
  def assign_title
192
- self.title = self.asset_file_name.sub(self.original_extension, "").sub(".", "")
192
+ self.title = self.asset_file_name.downcase.sub(self.original_extension, "").sub(".", "")
193
193
  end
194
194
 
195
195
  def assign_uuid
data/coverage/index.html CHANGED
@@ -14,7 +14,7 @@
14
14
  <img src="./assets/0.10.2/loading.gif" alt="loading"/>
15
15
  </div>
16
16
  <div id="wrapper" style="display:none;">
17
- <div class="timestamp">Generated <abbr class="timeago" title="2018-04-04T12:30:29-04:00">2018-04-04T12:30:29-04:00</abbr></div>
17
+ <div class="timestamp">Generated <abbr class="timeago" title="2018-04-24T10:24:00-04:00">2018-04-24T10:24:00-04:00</abbr></div>
18
18
  <ul class="group_tabs"></ul>
19
19
 
20
20
  <div id="content">
@@ -4388,7 +4388,7 @@
4388
4388
  <code class="ruby"> value = t(&quot;desc.#{tag_name.gsub(&#39;:&#39;,&#39;-&#39;)}&quot;).match(&#39;desc&#39;) ? description : t(&quot;desc.#{tag_name.gsub(&#39;:&#39;,&#39;-&#39;)}&quot;)</code>
4389
4389
  </li>
4390
4390
 
4391
- <li class="never" data-hits="" data-linenumber="8">
4391
+ <li class="missed" data-hits="0" data-linenumber="8">
4392
4392
 
4393
4393
 
4394
4394
  <code class="ruby"> output &lt;&lt; render(:partial =&gt; &quot;admin/references/tag_reference.haml&quot;,</code>
@@ -4406,7 +4406,7 @@
4406
4406
  <code class="ruby"> :description =&gt; RedCloth.new(TrustyCms::Taggable::Util.strip_leading_whitespace(value)).to_html</code>
4407
4407
  </li>
4408
4408
 
4409
- <li class="missed" data-hits="0" data-linenumber="11">
4409
+ <li class="never" data-hits="" data-linenumber="11">
4410
4410
 
4411
4411
 
4412
4412
  <code class="ruby"> })</code>
@@ -4568,7 +4568,7 @@
4568
4568
  <code class="ruby"> def filter</code>
4569
4569
  </li>
4570
4570
 
4571
- <li class="never" data-hits="" data-linenumber="38">
4571
+ <li class="missed" data-hits="0" data-linenumber="38">
4572
4572
 
4573
4573
 
4574
4574
  <code class="ruby"> @filter ||= begin</code>
@@ -4580,7 +4580,7 @@
4580
4580
  <code class="ruby"> TextFilter.find_descendant(params[:filter_name])</code>
4581
4581
  </li>
4582
4582
 
4583
- <li class="missed" data-hits="0" data-linenumber="40">
4583
+ <li class="never" data-hits="" data-linenumber="40">
4584
4584
 
4585
4585
 
4586
4586
  <code class="ruby"> end</code>
@@ -7540,7 +7540,7 @@
7540
7540
  <code class="ruby"> def pagination_parameters</code>
7541
7541
  </li>
7542
7542
 
7543
- <li class="never" data-hits="" data-linenumber="19">
7543
+ <li class="missed" data-hits="0" data-linenumber="19">
7544
7544
 
7545
7545
 
7546
7546
  <code class="ruby"> {</code>
@@ -7558,7 +7558,7 @@
7558
7558
  <code class="ruby"> :per_page =&gt; params[WillPaginate::ViewHelpers.pagination_options[:per_page_param_name]] || TrustyCms::Config[&#39;pagination.per_page&#39;] || 20</code>
7559
7559
  </li>
7560
7560
 
7561
- <li class="missed" data-hits="0" data-linenumber="22">
7561
+ <li class="never" data-hits="" data-linenumber="22">
7562
7562
 
7563
7563
 
7564
7564
  <code class="ruby"> }</code>
data/lib/trusty_cms.rb CHANGED
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), "..")) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = '3.3.0'
5
+ VERSION = '3.3.1'
6
6
  end
7
7
  end
File without changes