trusty-snippets-extension 3.0.1 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -3
- data/Gemfile.lock +66 -67
- data/app/models/snippet.rb +3 -0
- data/lib/trusty-snippets-extension.rb +1 -1
- data/trusty-snippets-extension.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7b70a84cb79b9d39779cdd2a5851760cbdd114b
|
4
|
+
data.tar.gz: d1c080a5066d7655703bccdd1f9d455eeb5729e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f96a11cc34472b9d188f96c89f842abc2f9f652f4d6a0c5da81d5a7ff4cd1e6ef712f25bcd68b69d900c794e71b3027b83cc3d7c70cf494f8d244bb9808f109
|
7
|
+
data.tar.gz: 9daba35a2b799fc81d8c8e5f347f2096f4b122f02f045ea3a6c7f09b14998b8f7166fd7316c043143902c83f56d99efb9715c8a3bc6054c2b380425d7efca304
|
data/Gemfile
CHANGED
@@ -40,8 +40,7 @@ group :development, :test do
|
|
40
40
|
gem 'launchy', '~> 2.4.2'
|
41
41
|
gem 'database_cleaner', '~> 1.3.0'
|
42
42
|
gem 'poltergeist', '~> 1.5.1'
|
43
|
-
gem 'factory_girl_rails', '~> 4.
|
44
|
-
gem 'rails-observers', :git => 'https://github.com/rails/rails-observers'
|
45
|
-
gem "protected_attributes_continued"
|
43
|
+
gem 'factory_girl_rails', '~> 4.6.0'
|
46
44
|
gem "pry-byebug"
|
45
|
+
gem 'rails-observers', :git => 'https://github.com/rails/rails-observers'
|
47
46
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,54 +1,54 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/rails/rails-observers
|
3
|
-
revision:
|
3
|
+
revision: c569dc1525259f5ab82cddf90958777473499997
|
4
4
|
specs:
|
5
|
-
rails-observers (0.
|
6
|
-
activemodel (>= 4.
|
5
|
+
rails-observers (0.2.0)
|
6
|
+
activemodel (>= 4.2)
|
7
7
|
|
8
8
|
PATH
|
9
9
|
remote: .
|
10
10
|
specs:
|
11
|
-
trusty-snippets-extension (3.0
|
11
|
+
trusty-snippets-extension (3.1.0)
|
12
12
|
rake (< 11.0)
|
13
|
-
trusty-cms (~> 3.
|
13
|
+
trusty-cms (~> 3.1.0)
|
14
14
|
|
15
15
|
GEM
|
16
16
|
remote: https://rubygems.org/
|
17
17
|
specs:
|
18
18
|
RedCloth (4.3.2)
|
19
|
-
actioncable (5.
|
20
|
-
actionpack (= 5.
|
21
|
-
nio4r (
|
19
|
+
actioncable (5.1.3)
|
20
|
+
actionpack (= 5.1.3)
|
21
|
+
nio4r (~> 2.0)
|
22
22
|
websocket-driver (~> 0.6.1)
|
23
|
-
actionmailer (5.
|
24
|
-
actionpack (= 5.
|
25
|
-
actionview (= 5.
|
26
|
-
activejob (= 5.
|
23
|
+
actionmailer (5.1.3)
|
24
|
+
actionpack (= 5.1.3)
|
25
|
+
actionview (= 5.1.3)
|
26
|
+
activejob (= 5.1.3)
|
27
27
|
mail (~> 2.5, >= 2.5.4)
|
28
28
|
rails-dom-testing (~> 2.0)
|
29
|
-
actionpack (5.
|
30
|
-
actionview (= 5.
|
31
|
-
activesupport (= 5.
|
29
|
+
actionpack (5.1.3)
|
30
|
+
actionview (= 5.1.3)
|
31
|
+
activesupport (= 5.1.3)
|
32
32
|
rack (~> 2.0)
|
33
33
|
rack-test (~> 0.6.3)
|
34
34
|
rails-dom-testing (~> 2.0)
|
35
35
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
36
|
-
actionview (5.
|
37
|
-
activesupport (= 5.
|
36
|
+
actionview (5.1.3)
|
37
|
+
activesupport (= 5.1.3)
|
38
38
|
builder (~> 3.1)
|
39
|
-
|
39
|
+
erubi (~> 1.4)
|
40
40
|
rails-dom-testing (~> 2.0)
|
41
41
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
42
|
-
activejob (5.
|
43
|
-
activesupport (= 5.
|
42
|
+
activejob (5.1.3)
|
43
|
+
activesupport (= 5.1.3)
|
44
44
|
globalid (>= 0.3.6)
|
45
|
-
activemodel (5.
|
46
|
-
activesupport (= 5.
|
47
|
-
activerecord (5.
|
48
|
-
activemodel (= 5.
|
49
|
-
activesupport (= 5.
|
50
|
-
arel (~>
|
51
|
-
activesupport (5.
|
45
|
+
activemodel (5.1.3)
|
46
|
+
activesupport (= 5.1.3)
|
47
|
+
activerecord (5.1.3)
|
48
|
+
activemodel (= 5.1.3)
|
49
|
+
activesupport (= 5.1.3)
|
50
|
+
arel (~> 8.0)
|
51
|
+
activesupport (5.1.3)
|
52
52
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
53
53
|
i18n (~> 0.7)
|
54
54
|
minitest (~> 5.1)
|
@@ -57,10 +57,10 @@ GEM
|
|
57
57
|
activerecord (>= 3.0.0)
|
58
58
|
addressable (2.5.1)
|
59
59
|
public_suffix (~> 2.0, >= 2.0.2)
|
60
|
-
arel (
|
60
|
+
arel (8.0.0)
|
61
61
|
builder (3.2.3)
|
62
62
|
byebug (9.0.6)
|
63
|
-
capybara (2.14.
|
63
|
+
capybara (2.14.4)
|
64
64
|
addressable
|
65
65
|
mime-types (>= 1.16)
|
66
66
|
nokogiri (>= 1.3.3)
|
@@ -93,25 +93,26 @@ GEM
|
|
93
93
|
sass-rails (< 5.1)
|
94
94
|
sprockets (< 4.0)
|
95
95
|
concurrent-ruby (1.0.5)
|
96
|
-
css_parser (1.
|
96
|
+
css_parser (1.5.0)
|
97
97
|
addressable
|
98
98
|
daemons (1.2.4)
|
99
99
|
database_cleaner (1.3.0)
|
100
100
|
delocalize (0.4.0)
|
101
101
|
rails (>= 3.0)
|
102
102
|
diff-lcs (1.3)
|
103
|
+
erubi (1.6.1)
|
103
104
|
erubis (2.7.0)
|
104
|
-
eventmachine (1.2.
|
105
|
+
eventmachine (1.2.5)
|
105
106
|
execjs (2.7.0)
|
106
107
|
factory_girl (4.5.0)
|
107
108
|
activesupport (>= 3.0.0)
|
108
|
-
factory_girl_rails (4.
|
109
|
+
factory_girl_rails (4.6.0)
|
109
110
|
factory_girl (~> 4.5.0)
|
110
111
|
railties (>= 3.0.0)
|
111
112
|
ffi (1.9.18)
|
112
113
|
globalid (0.4.0)
|
113
114
|
activesupport (>= 4.2.0)
|
114
|
-
haml (5.0.
|
115
|
+
haml (5.0.2)
|
115
116
|
temple (>= 0.8.0)
|
116
117
|
tilt
|
117
118
|
haml-rails (1.0.0)
|
@@ -126,7 +127,7 @@ GEM
|
|
126
127
|
haml (>= 4.0, < 6)
|
127
128
|
nokogiri (>= 1.6.0)
|
128
129
|
ruby_parser (~> 3.5)
|
129
|
-
i18n (0.8.
|
130
|
+
i18n (0.8.6)
|
130
131
|
jquery-rails (4.3.1)
|
131
132
|
rails-dom-testing (>= 1, < 3)
|
132
133
|
railties (>= 4.2.0)
|
@@ -134,6 +135,7 @@ GEM
|
|
134
135
|
launchy (2.4.3)
|
135
136
|
addressable (~> 2.3)
|
136
137
|
libv8 (3.16.14.19)
|
138
|
+
libv8 (3.16.14.19-x86_64-darwin-16)
|
137
139
|
loofah (2.0.3)
|
138
140
|
nokogiri (>= 1.5.9)
|
139
141
|
mail (2.6.6)
|
@@ -142,21 +144,19 @@ GEM
|
|
142
144
|
mime-types (3.1)
|
143
145
|
mime-types-data (~> 3.2015)
|
144
146
|
mime-types-data (3.2016.0521)
|
145
|
-
mini_portile2 (2.
|
146
|
-
minitest (5.10.
|
147
|
+
mini_portile2 (2.2.0)
|
148
|
+
minitest (5.10.3)
|
147
149
|
multi_json (1.12.1)
|
148
|
-
mysql2 (0.4.
|
150
|
+
mysql2 (0.4.8)
|
149
151
|
nio4r (2.1.0)
|
150
|
-
nokogiri (1.
|
151
|
-
mini_portile2 (~> 2.
|
152
|
+
nokogiri (1.8.0)
|
153
|
+
mini_portile2 (~> 2.2.0)
|
152
154
|
orm_adapter (0.5.0)
|
153
155
|
poltergeist (1.5.1)
|
154
156
|
capybara (~> 2.1)
|
155
157
|
cliver (~> 0.3.1)
|
156
158
|
multi_json (~> 1.0)
|
157
159
|
websocket-driver (>= 0.2.0)
|
158
|
-
protected_attributes_continued (1.3.0)
|
159
|
-
activemodel (~> 5.0)
|
160
160
|
pry (0.10.4)
|
161
161
|
coderay (~> 1.1.0)
|
162
162
|
method_source (~> 0.8.1)
|
@@ -165,32 +165,32 @@ GEM
|
|
165
165
|
byebug (~> 9.0)
|
166
166
|
pry (~> 0.10)
|
167
167
|
public_suffix (2.0.5)
|
168
|
-
rack (2.0.
|
169
|
-
rack-cache (1.7.
|
168
|
+
rack (2.0.3)
|
169
|
+
rack-cache (1.7.0)
|
170
170
|
rack (>= 0.4)
|
171
171
|
rack-test (0.6.3)
|
172
172
|
rack (>= 1.0)
|
173
173
|
radius (0.7.4)
|
174
|
-
rails (5.
|
175
|
-
actioncable (= 5.
|
176
|
-
actionmailer (= 5.
|
177
|
-
actionpack (= 5.
|
178
|
-
actionview (= 5.
|
179
|
-
activejob (= 5.
|
180
|
-
activemodel (= 5.
|
181
|
-
activerecord (= 5.
|
182
|
-
activesupport (= 5.
|
183
|
-
bundler (>= 1.3.0
|
184
|
-
railties (= 5.
|
174
|
+
rails (5.1.3)
|
175
|
+
actioncable (= 5.1.3)
|
176
|
+
actionmailer (= 5.1.3)
|
177
|
+
actionpack (= 5.1.3)
|
178
|
+
actionview (= 5.1.3)
|
179
|
+
activejob (= 5.1.3)
|
180
|
+
activemodel (= 5.1.3)
|
181
|
+
activerecord (= 5.1.3)
|
182
|
+
activesupport (= 5.1.3)
|
183
|
+
bundler (>= 1.3.0)
|
184
|
+
railties (= 5.1.3)
|
185
185
|
sprockets-rails (>= 2.0.0)
|
186
|
-
rails-dom-testing (2.0.
|
187
|
-
activesupport (>= 4.2.0
|
188
|
-
nokogiri (
|
186
|
+
rails-dom-testing (2.0.3)
|
187
|
+
activesupport (>= 4.2.0)
|
188
|
+
nokogiri (>= 1.6)
|
189
189
|
rails-html-sanitizer (1.0.3)
|
190
190
|
loofah (~> 2.0)
|
191
|
-
railties (5.
|
192
|
-
actionpack (= 5.
|
193
|
-
activesupport (= 5.
|
191
|
+
railties (5.1.3)
|
192
|
+
actionpack (= 5.1.3)
|
193
|
+
activesupport (= 5.1.3)
|
194
194
|
method_source
|
195
195
|
rake (>= 0.8.7)
|
196
196
|
thor (>= 0.18.1, < 2.0)
|
@@ -237,7 +237,7 @@ GEM
|
|
237
237
|
sprockets (3.7.1)
|
238
238
|
concurrent-ruby (~> 1.0)
|
239
239
|
rack (> 1, < 3)
|
240
|
-
sprockets-rails (3.2.
|
240
|
+
sprockets-rails (3.2.0)
|
241
241
|
actionpack (>= 4.0)
|
242
242
|
activesupport (>= 4.0)
|
243
243
|
sprockets (>= 3.0.0)
|
@@ -253,7 +253,7 @@ GEM
|
|
253
253
|
thor (0.19.4)
|
254
254
|
thread_safe (0.3.6)
|
255
255
|
tilt (2.0.8)
|
256
|
-
trusty-cms (3.0
|
256
|
+
trusty-cms (3.1.0)
|
257
257
|
RedCloth (~> 4.3.2)
|
258
258
|
acts_as_tree (~> 2.6.1)
|
259
259
|
bundler (~> 1.7)
|
@@ -269,7 +269,7 @@ GEM
|
|
269
269
|
rack (~> 2.0.1)
|
270
270
|
rack-cache (~> 1.7)
|
271
271
|
radius (~> 0.7)
|
272
|
-
rails (~> 5.
|
272
|
+
rails (~> 5.1)
|
273
273
|
rake (< 11.0)
|
274
274
|
rdoc (~> 5.1)
|
275
275
|
roadie-rails (~> 1.2.1)
|
@@ -289,7 +289,7 @@ GEM
|
|
289
289
|
websocket-extensions (>= 0.1.0)
|
290
290
|
websocket-extensions (0.1.2)
|
291
291
|
will_paginate (3.1.6)
|
292
|
-
xpath (2.
|
292
|
+
xpath (2.1.0)
|
293
293
|
nokogiri (~> 1.3)
|
294
294
|
|
295
295
|
PLATFORMS
|
@@ -298,10 +298,9 @@ PLATFORMS
|
|
298
298
|
DEPENDENCIES
|
299
299
|
capybara (~> 2.14.0)
|
300
300
|
database_cleaner (~> 1.3.0)
|
301
|
-
factory_girl_rails (~> 4.
|
301
|
+
factory_girl_rails (~> 4.6.0)
|
302
302
|
launchy (~> 2.4.2)
|
303
303
|
poltergeist (~> 1.5.1)
|
304
|
-
protected_attributes_continued
|
305
304
|
pry (~> 0.10.0)
|
306
305
|
pry-byebug
|
307
306
|
rails-observers!
|
@@ -311,4 +310,4 @@ DEPENDENCIES
|
|
311
310
|
trustygems (~> 0.2.0)
|
312
311
|
|
313
312
|
BUNDLED WITH
|
314
|
-
1.
|
313
|
+
1.15.3
|
data/app/models/snippet.rb
CHANGED
@@ -3,6 +3,9 @@ class Snippet < ActiveRecord::Base
|
|
3
3
|
# Default Order
|
4
4
|
default_scope {order('name')}
|
5
5
|
|
6
|
+
# Accessible
|
7
|
+
attr_accessor :lock_version, :name, :content, :site_id
|
8
|
+
|
6
9
|
# Associations
|
7
10
|
belongs_to :created_by, :class_name => 'User'
|
8
11
|
belongs_to :updated_by, :class_name => 'User'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trusty-snippets-extension
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Gay
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-08-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: trusty-cms
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 3.
|
21
|
+
version: 3.1.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 3.
|
28
|
+
version: 3.1.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rake
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
142
|
version: '0'
|
143
143
|
requirements: []
|
144
144
|
rubyforge_project:
|
145
|
-
rubygems_version: 2.6.
|
145
|
+
rubygems_version: 2.6.12
|
146
146
|
signing_key:
|
147
147
|
specification_version: 4
|
148
148
|
summary: Snippets for Trusty CMS
|