storytime 2.1.1 → 2.1.2
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 +4 -4
- data/Gemfile +2 -1
- data/Gemfile.lock +62 -65
- data/config/initializers/url_for_patch.rb +3 -10
- data/lib/storytime/engine.rb +3 -1
- data/lib/storytime/version.rb +1 -1
- data/spec/features/dashboard/snippets_spec.rb +17 -15
- data/storytime.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: ee027e1c81f504c22cf953d36a3a16f90d2958f1
|
|
4
|
+
data.tar.gz: 964e746735d689ccc5fd53c77969de52831c3e09
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac0c312c33a145300a1a6cfbdb6aca353a59b4832d0f48a5b3d45f75c6cd0ea391512cf2cc9fcf318ff507ead95b5491bb07d2daaaf36a8fab1bf6e811ba2944
|
|
7
|
+
data.tar.gz: 4f59731bcb9c47b35bc29b65a9e68b88d5314c2d2f064c224ee95b849740dac78a3f1939507666d64e30acacefcbe466022e1f343daf678a8d833429484b95cd
|
data/Gemfile
CHANGED
|
@@ -13,4 +13,5 @@ gemspec
|
|
|
13
13
|
# To use debugger
|
|
14
14
|
# gem 'debugger'
|
|
15
15
|
|
|
16
|
-
gem 'storytime-admin', github: 'flyoverworks/storytime-admin', branch: 'dev'
|
|
16
|
+
# gem 'storytime-admin', github: 'flyoverworks/storytime-admin', branch: 'dev'
|
|
17
|
+
gem 'leather', github: 'CultivateLabs/leather', branch: 'master'
|
data/Gemfile.lock
CHANGED
|
@@ -1,24 +1,19 @@
|
|
|
1
1
|
GIT
|
|
2
|
-
remote: git://github.com/
|
|
3
|
-
revision:
|
|
4
|
-
branch:
|
|
2
|
+
remote: git://github.com/CultivateLabs/leather.git
|
|
3
|
+
revision: 184652b03b02d6691c1538e770624c634499a554
|
|
4
|
+
branch: master
|
|
5
5
|
specs:
|
|
6
|
-
|
|
7
|
-
bootstrap-
|
|
8
|
-
|
|
9
|
-
font-awesome-sass
|
|
6
|
+
leather (3.5.2)
|
|
7
|
+
bootstrap-sass (~> 3.3.7)
|
|
8
|
+
devise
|
|
10
9
|
haml-rails
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
leather
|
|
14
|
-
rails (~> 4.0)
|
|
15
|
-
sass-rails (>= 4.0)
|
|
16
|
-
simple_form
|
|
10
|
+
high_voltage
|
|
11
|
+
rails (>= 4.0, < 5.1)
|
|
17
12
|
|
|
18
13
|
PATH
|
|
19
14
|
remote: .
|
|
20
15
|
specs:
|
|
21
|
-
storytime (2.1.
|
|
16
|
+
storytime (2.1.2)
|
|
22
17
|
acts_as_list
|
|
23
18
|
bootstrap-sass (>= 3.1)
|
|
24
19
|
carrierwave (>= 0.9)
|
|
@@ -40,13 +35,13 @@ PATH
|
|
|
40
35
|
rails (>= 4.0)
|
|
41
36
|
sass-rails (>= 4.0)
|
|
42
37
|
simple_form (>= 3.0)
|
|
43
|
-
storytime-admin (
|
|
38
|
+
storytime-admin (= 0.2.2)
|
|
44
39
|
thor (~> 0.19.1)
|
|
45
40
|
|
|
46
41
|
GEM
|
|
47
42
|
remote: https://rubygems.org/
|
|
48
43
|
specs:
|
|
49
|
-
CFPropertyList (2.3.
|
|
44
|
+
CFPropertyList (2.3.4)
|
|
50
45
|
actionmailer (4.2.6)
|
|
51
46
|
actionpack (= 4.2.6)
|
|
52
47
|
actionview (= 4.2.6)
|
|
@@ -82,11 +77,11 @@ GEM
|
|
|
82
77
|
minitest (~> 5.1)
|
|
83
78
|
thread_safe (~> 0.3, >= 0.3.4)
|
|
84
79
|
tzinfo (~> 1.1)
|
|
85
|
-
acts_as_list (0.
|
|
80
|
+
acts_as_list (0.8.2)
|
|
86
81
|
activerecord (>= 3.0)
|
|
87
82
|
addressable (2.3.8)
|
|
88
83
|
arel (6.0.3)
|
|
89
|
-
autoprefixer-rails (6.
|
|
84
|
+
autoprefixer-rails (6.6.0)
|
|
90
85
|
execjs
|
|
91
86
|
bcrypt (3.1.11)
|
|
92
87
|
better_errors (2.1.1)
|
|
@@ -98,7 +93,7 @@ GEM
|
|
|
98
93
|
bootstrap-kaminari-views (0.0.5)
|
|
99
94
|
kaminari (>= 0.13)
|
|
100
95
|
rails (>= 3.1)
|
|
101
|
-
bootstrap-sass (3.3.
|
|
96
|
+
bootstrap-sass (3.3.7)
|
|
102
97
|
autoprefixer-rails (>= 5.2.1)
|
|
103
98
|
sass (>= 3.3.4)
|
|
104
99
|
builder (3.2.2)
|
|
@@ -108,24 +103,22 @@ GEM
|
|
|
108
103
|
rack (>= 1.0.0)
|
|
109
104
|
rack-test (>= 0.5.4)
|
|
110
105
|
xpath (~> 2.0)
|
|
111
|
-
carrierwave (0.
|
|
112
|
-
activemodel (>=
|
|
113
|
-
activesupport (>=
|
|
114
|
-
json (>= 1.7)
|
|
106
|
+
carrierwave (1.0.0)
|
|
107
|
+
activemodel (>= 4.0.0)
|
|
108
|
+
activesupport (>= 4.0.0)
|
|
115
109
|
mime-types (>= 1.16)
|
|
116
|
-
mimemagic (>= 0.3.0)
|
|
117
110
|
cliver (0.3.2)
|
|
118
111
|
cocoon (1.2.9)
|
|
119
112
|
codemirror-rails (4.13)
|
|
120
113
|
railties (>= 3.0, < 5)
|
|
121
114
|
coderay (1.1.0)
|
|
122
|
-
coffee-rails (4.1.
|
|
115
|
+
coffee-rails (4.1.1)
|
|
123
116
|
coffee-script (>= 2.2.0)
|
|
124
|
-
railties (>= 4.0.0, < 5.
|
|
117
|
+
railties (>= 4.0.0, < 5.1.x)
|
|
125
118
|
coffee-script (2.4.1)
|
|
126
119
|
coffee-script-source
|
|
127
120
|
execjs
|
|
128
|
-
coffee-script-source (1.
|
|
121
|
+
coffee-script-source (1.12.2)
|
|
129
122
|
concurrent-ruby (1.0.2)
|
|
130
123
|
daemons (1.2.3)
|
|
131
124
|
database_cleaner (1.5.1)
|
|
@@ -139,7 +132,7 @@ GEM
|
|
|
139
132
|
diff-lcs (1.2.5)
|
|
140
133
|
erubis (2.7.0)
|
|
141
134
|
eventmachine (1.0.8)
|
|
142
|
-
excon (0.
|
|
135
|
+
excon (0.54.0)
|
|
143
136
|
execjs (2.7.0)
|
|
144
137
|
factory_girl (4.5.0)
|
|
145
138
|
activesupport (>= 3.0.0)
|
|
@@ -186,7 +179,7 @@ GEM
|
|
|
186
179
|
fog-atmos (0.1.0)
|
|
187
180
|
fog-core
|
|
188
181
|
fog-xml
|
|
189
|
-
fog-aws (
|
|
182
|
+
fog-aws (1.1.0)
|
|
190
183
|
fog-core (~> 1.38)
|
|
191
184
|
fog-json (~> 1.0)
|
|
192
185
|
fog-xml (~> 0.1)
|
|
@@ -200,7 +193,7 @@ GEM
|
|
|
200
193
|
fog-json (~> 1.0)
|
|
201
194
|
fog-xml (~> 0.1)
|
|
202
195
|
ipaddress (~> 0.8)
|
|
203
|
-
fog-core (1.
|
|
196
|
+
fog-core (1.43.0)
|
|
204
197
|
builder
|
|
205
198
|
excon (~> 0.49)
|
|
206
199
|
formatador (~> 0.2)
|
|
@@ -218,9 +211,9 @@ GEM
|
|
|
218
211
|
fog-json (1.0.2)
|
|
219
212
|
fog-core (~> 1.0)
|
|
220
213
|
multi_json (~> 1.10)
|
|
221
|
-
fog-local (0.3.
|
|
214
|
+
fog-local (0.3.1)
|
|
222
215
|
fog-core (~> 1.27)
|
|
223
|
-
fog-openstack (0.1.
|
|
216
|
+
fog-openstack (0.1.18)
|
|
224
217
|
fog-core (>= 1.40)
|
|
225
218
|
fog-json (>= 1.0)
|
|
226
219
|
ipaddress (>= 0.8)
|
|
@@ -228,11 +221,10 @@ GEM
|
|
|
228
221
|
fog-core (~> 1.27)
|
|
229
222
|
fog-json (~> 1.0)
|
|
230
223
|
fog-xml (~> 0.1)
|
|
231
|
-
fog-profitbricks (0.0
|
|
232
|
-
fog-core
|
|
233
|
-
fog-
|
|
234
|
-
|
|
235
|
-
fog-rackspace (0.1.1)
|
|
224
|
+
fog-profitbricks (3.0.0)
|
|
225
|
+
fog-core (~> 1.42)
|
|
226
|
+
fog-json (~> 1.0)
|
|
227
|
+
fog-rackspace (0.1.2)
|
|
236
228
|
fog-core (>= 1.35)
|
|
237
229
|
fog-json (>= 1.0)
|
|
238
230
|
fog-xml (>= 0.1)
|
|
@@ -251,7 +243,7 @@ GEM
|
|
|
251
243
|
fog-serverlove (0.1.2)
|
|
252
244
|
fog-core
|
|
253
245
|
fog-json
|
|
254
|
-
fog-softlayer (1.1.
|
|
246
|
+
fog-softlayer (1.1.4)
|
|
255
247
|
fog-core
|
|
256
248
|
fog-json
|
|
257
249
|
fog-storm_on_demand (0.1.1)
|
|
@@ -266,19 +258,19 @@ GEM
|
|
|
266
258
|
fog-voxel (0.1.0)
|
|
267
259
|
fog-core
|
|
268
260
|
fog-xml
|
|
269
|
-
fog-vsphere (
|
|
261
|
+
fog-vsphere (1.5.2)
|
|
270
262
|
fog-core
|
|
271
|
-
rbvmomi (~> 1.
|
|
263
|
+
rbvmomi (~> 1.9)
|
|
272
264
|
fog-xenserver (0.2.3)
|
|
273
265
|
fog-core
|
|
274
266
|
fog-xml
|
|
275
267
|
fog-xml (0.1.2)
|
|
276
268
|
fog-core
|
|
277
269
|
nokogiri (~> 1.5, >= 1.5.11)
|
|
278
|
-
font-awesome-sass (4.
|
|
270
|
+
font-awesome-sass (4.7.0)
|
|
279
271
|
sass (>= 3.2)
|
|
280
272
|
formatador (0.2.5)
|
|
281
|
-
friendly_id (5.
|
|
273
|
+
friendly_id (5.2.0)
|
|
282
274
|
activerecord (>= 4.0.0)
|
|
283
275
|
globalid (0.3.6)
|
|
284
276
|
activesupport (>= 4.1.0)
|
|
@@ -311,27 +303,21 @@ GEM
|
|
|
311
303
|
i18n (0.7.0)
|
|
312
304
|
inflecto (0.0.2)
|
|
313
305
|
ipaddress (0.8.3)
|
|
314
|
-
jbuilder (2.
|
|
306
|
+
jbuilder (2.6.1)
|
|
315
307
|
activesupport (>= 3.0.0, < 5.1)
|
|
316
308
|
multi_json (~> 1.2)
|
|
317
|
-
jquery-rails (4.
|
|
318
|
-
rails-dom-testing (
|
|
309
|
+
jquery-rails (4.1.1)
|
|
310
|
+
rails-dom-testing (>= 1, < 3)
|
|
319
311
|
railties (>= 4.2.0)
|
|
320
312
|
thor (>= 0.14, < 2.0)
|
|
321
313
|
jquery-ui-rails (5.0.5)
|
|
322
314
|
railties (>= 3.2.16)
|
|
323
315
|
json (1.8.3)
|
|
324
|
-
kaminari (0.
|
|
316
|
+
kaminari (0.17.0)
|
|
325
317
|
actionpack (>= 3.0.0)
|
|
326
318
|
activesupport (>= 3.0.0)
|
|
327
319
|
launchy (2.4.3)
|
|
328
320
|
addressable (~> 2.3)
|
|
329
|
-
leather (3.5.1)
|
|
330
|
-
bootstrap-sass (~> 3.3.5)
|
|
331
|
-
devise
|
|
332
|
-
haml-rails
|
|
333
|
-
high_voltage
|
|
334
|
-
rails (>= 4.0)
|
|
335
321
|
listen (3.0.4)
|
|
336
322
|
rb-fsevent (>= 0.9.3)
|
|
337
323
|
rb-inotify (>= 0.9)
|
|
@@ -344,8 +330,7 @@ GEM
|
|
|
344
330
|
mime-types (3.1)
|
|
345
331
|
mime-types-data (~> 3.2015)
|
|
346
332
|
mime-types-data (3.2016.0521)
|
|
347
|
-
|
|
348
|
-
mini_magick (4.5.1)
|
|
333
|
+
mini_magick (4.6.0)
|
|
349
334
|
mini_portile2 (2.1.0)
|
|
350
335
|
minitest (5.9.0)
|
|
351
336
|
multi_json (1.12.1)
|
|
@@ -406,10 +391,11 @@ GEM
|
|
|
406
391
|
rb-fsevent (0.9.6)
|
|
407
392
|
rb-inotify (0.9.5)
|
|
408
393
|
ffi (>= 0.5.0)
|
|
409
|
-
rbvmomi (1.
|
|
410
|
-
builder
|
|
411
|
-
|
|
412
|
-
|
|
394
|
+
rbvmomi (1.9.4)
|
|
395
|
+
builder (~> 3.2)
|
|
396
|
+
json (>= 1.8)
|
|
397
|
+
nokogiri (~> 1.5)
|
|
398
|
+
trollop (~> 2.1)
|
|
413
399
|
responders (2.2.0)
|
|
414
400
|
railties (>= 4.2.0, < 5.1)
|
|
415
401
|
rspec (3.3.0)
|
|
@@ -435,18 +421,18 @@ GEM
|
|
|
435
421
|
rspec-support (3.3.0)
|
|
436
422
|
ruby_parser (3.8.2)
|
|
437
423
|
sexp_processor (~> 4.1)
|
|
438
|
-
sass (3.4.
|
|
439
|
-
sass-rails (5.0.
|
|
440
|
-
railties (>= 4.0.0, <
|
|
424
|
+
sass (3.4.23)
|
|
425
|
+
sass-rails (5.0.6)
|
|
426
|
+
railties (>= 4.0.0, < 6)
|
|
441
427
|
sass (~> 3.1)
|
|
442
428
|
sprockets (>= 2.8, < 4.0)
|
|
443
429
|
sprockets-rails (>= 2.0, < 4.0)
|
|
444
430
|
tilt (>= 1.1, < 3)
|
|
445
431
|
sexp_processor (4.7.0)
|
|
446
432
|
shellany (0.0.1)
|
|
447
|
-
simple_form (3.
|
|
448
|
-
actionpack (
|
|
449
|
-
activemodel (
|
|
433
|
+
simple_form (3.3.1)
|
|
434
|
+
actionpack (> 4, < 5.1)
|
|
435
|
+
activemodel (> 4, < 5.1)
|
|
450
436
|
slop (3.6.0)
|
|
451
437
|
spring (1.1.3)
|
|
452
438
|
spring-commands-rspec (1.0.4)
|
|
@@ -458,6 +444,17 @@ GEM
|
|
|
458
444
|
actionpack (>= 4.0)
|
|
459
445
|
activesupport (>= 4.0)
|
|
460
446
|
sprockets (>= 3.0.0)
|
|
447
|
+
storytime-admin (0.2.2)
|
|
448
|
+
bootstrap-kaminari-views
|
|
449
|
+
coffee-rails (>= 4.0, < 4.2)
|
|
450
|
+
font-awesome-sass
|
|
451
|
+
haml-rails
|
|
452
|
+
jquery-rails (>= 3.0, < 4.2)
|
|
453
|
+
kaminari
|
|
454
|
+
leather
|
|
455
|
+
rails (>= 4.0, < 5.1)
|
|
456
|
+
sass-rails (>= 4.0, <= 5.0.6)
|
|
457
|
+
simple_form
|
|
461
458
|
thin (1.6.4)
|
|
462
459
|
daemons (~> 1.0, >= 1.0.9)
|
|
463
460
|
eventmachine (~> 1.0, >= 1.0.4)
|
|
@@ -488,6 +485,7 @@ DEPENDENCIES
|
|
|
488
485
|
factory_girl_rails
|
|
489
486
|
guard-rspec (~> 4.2.8)
|
|
490
487
|
launchy
|
|
488
|
+
leather!
|
|
491
489
|
pg
|
|
492
490
|
poltergeist (~> 1.5)
|
|
493
491
|
pry-nav
|
|
@@ -497,5 +495,4 @@ DEPENDENCIES
|
|
|
497
495
|
spring (= 1.1.3)
|
|
498
496
|
spring-commands-rspec
|
|
499
497
|
storytime!
|
|
500
|
-
storytime-admin!
|
|
501
498
|
thin
|
|
@@ -2,16 +2,9 @@ module ActionDispatch
|
|
|
2
2
|
module Routing
|
|
3
3
|
class RouteSet
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
url_for_without_storytime(options)
|
|
9
|
-
end
|
|
10
|
-
else
|
|
11
|
-
def url_for_with_storytime(options, route_name = nil, url_strategy = UNKNOWN)
|
|
12
|
-
Storytime::PostUrlHandler.handle_url(options)
|
|
13
|
-
url_for_without_storytime(options, route_name, url_strategy)
|
|
14
|
-
end
|
|
5
|
+
def url_for_with_storytime(options, route_name = nil, url_strategy = UNKNOWN)
|
|
6
|
+
Storytime::PostUrlHandler.handle_url(options)
|
|
7
|
+
url_for_without_storytime(options, route_name, url_strategy)
|
|
15
8
|
end
|
|
16
9
|
|
|
17
10
|
alias_method_chain :url_for, :storytime
|
data/lib/storytime/engine.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require 'active_record'
|
|
2
2
|
require 'bootstrap-sass'
|
|
3
3
|
require 'carrierwave'
|
|
4
|
-
require 'fog/aws
|
|
4
|
+
require 'fog/aws'
|
|
5
5
|
require 'font-awesome-sass'
|
|
6
6
|
require 'friendly_id'
|
|
7
7
|
require 'jbuilder'
|
|
@@ -35,6 +35,8 @@ module Storytime
|
|
|
35
35
|
class Engine < ::Rails::Engine
|
|
36
36
|
isolate_namespace Storytime
|
|
37
37
|
|
|
38
|
+
config.assets.precompile += %w( storytime/storytime-logo-nav.png )
|
|
39
|
+
|
|
38
40
|
initializer "storytime.view_helpers" do
|
|
39
41
|
ActiveSupport.on_load(:action_view) do
|
|
40
42
|
include Storytime::ApplicationHelper
|
data/lib/storytime/version.rb
CHANGED
|
@@ -18,21 +18,23 @@ describe "In the dashboard, Snippets", type: :feature do
|
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
it "creates a snippet", js: true do
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
# it "creates a snippet", js: true, focus: true do
|
|
22
|
+
# visit storytime.dashboard_url
|
|
23
|
+
# find("#snippets-link").trigger('click')
|
|
24
|
+
# click_link "new-snippet-link"
|
|
25
|
+
#
|
|
26
|
+
# within "#storytime-modal" do
|
|
27
|
+
# fill_in "snippet_name", with: "jumbotron-text"
|
|
28
|
+
# find("#snippet_content", visible: false).set("Hooray Writing!")
|
|
29
|
+
# click_button "Save"
|
|
30
|
+
# end
|
|
31
|
+
#
|
|
32
|
+
# within "#storytime-modal" do
|
|
33
|
+
# require "pry"
|
|
34
|
+
# binding.pry
|
|
35
|
+
# expect(page).to have_content "jumbotron-text"
|
|
36
|
+
# end
|
|
37
|
+
# end
|
|
36
38
|
|
|
37
39
|
it "updates a snippet", js: true do
|
|
38
40
|
snippet = FactoryGirl.create(:snippet, site: @current_site, content: "Test")
|
data/storytime.gemspec
CHANGED
|
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
|
|
|
37
37
|
s.add_dependency "thor", "~> 0.19.1"
|
|
38
38
|
s.add_dependency "leather", ">= 3.5"
|
|
39
39
|
s.add_dependency "codemirror-rails", "~> 4.8"
|
|
40
|
-
s.add_dependency "storytime-admin", "
|
|
40
|
+
s.add_dependency "storytime-admin", "0.2.2"
|
|
41
41
|
s.add_dependency "devise", ">= 3.2"
|
|
42
42
|
s.add_dependency "cocoon"
|
|
43
43
|
s.add_dependency "acts_as_list"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: storytime
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ben Roesch, David Van Der Beek, Brandon Robins
|
|
@@ -280,16 +280,16 @@ dependencies:
|
|
|
280
280
|
name: storytime-admin
|
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
|
282
282
|
requirements:
|
|
283
|
-
- -
|
|
283
|
+
- - '='
|
|
284
284
|
- !ruby/object:Gem::Version
|
|
285
|
-
version: 0.2.
|
|
285
|
+
version: 0.2.2
|
|
286
286
|
type: :runtime
|
|
287
287
|
prerelease: false
|
|
288
288
|
version_requirements: !ruby/object:Gem::Requirement
|
|
289
289
|
requirements:
|
|
290
|
-
- -
|
|
290
|
+
- - '='
|
|
291
291
|
- !ruby/object:Gem::Version
|
|
292
|
-
version: 0.2.
|
|
292
|
+
version: 0.2.2
|
|
293
293
|
- !ruby/object:Gem::Dependency
|
|
294
294
|
name: devise
|
|
295
295
|
requirement: !ruby/object:Gem::Requirement
|