locomotivecms_wagon 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +1 -0
- data/README.md +11 -23
- data/lib/locomotive/wagon/liquid/drops/site.rb +1 -1
- data/lib/locomotive/wagon/liquid/filters/translate.rb +1 -1
- data/lib/locomotive/wagon/misc/dragonfly.rb +0 -1
- data/lib/locomotive/wagon/server.rb +3 -4
- data/lib/locomotive/wagon/server/entry_submission.rb +5 -1
- data/lib/locomotive/wagon/server/middleware.rb +3 -1
- data/lib/locomotive/wagon/version.rb +1 -1
- data/locales/en.yml +1 -1
- data/locomotivecms_wagon.gemspec +2 -3
- data/spec/fixtures/default/README +0 -0
- data/spec/fixtures/default/app/content_types/bands.yml +19 -0
- data/spec/fixtures/default/app/content_types/events.yml +19 -0
- data/spec/fixtures/default/app/content_types/messages.yml +17 -0
- data/spec/fixtures/default/app/content_types/songs.yml +25 -0
- data/spec/fixtures/default/app/content_types/updates.yml +33 -0
- data/spec/fixtures/default/app/views/pages/404.liquid.haml +10 -0
- data/spec/fixtures/default/app/views/pages/about_us.fr.liquid.haml +7 -0
- data/spec/fixtures/default/app/views/pages/about_us.liquid.haml +20 -0
- data/spec/fixtures/default/app/views/pages/about_us.nb.liquid.haml +4 -0
- data/spec/fixtures/default/app/views/pages/about_us/jane_doe.liquid.haml +4 -0
- data/spec/fixtures/default/app/views/pages/about_us/john_doe.fr.liquid.haml +5 -0
- data/spec/fixtures/default/app/views/pages/about_us/john_doe.liquid.haml +4 -0
- data/spec/fixtures/default/app/views/pages/all.liquid.haml +13 -0
- data/spec/fixtures/default/app/views/pages/archives/news.liquid.haml +7 -0
- data/spec/fixtures/default/app/views/pages/contact.liquid.haml +54 -0
- data/spec/fixtures/default/app/views/pages/events.liquid.haml +29 -0
- data/spec/fixtures/default/app/views/pages/index.fr.liquid.haml +3 -0
- data/spec/fixtures/default/app/views/pages/index.liquid.haml +96 -0
- data/spec/fixtures/default/app/views/pages/music.liquid.haml +28 -0
- data/spec/fixtures/default/app/views/pages/songs/template.liquid.haml +13 -0
- data/spec/fixtures/default/app/views/pages/store.fr.liquid.haml +5 -0
- data/spec/fixtures/default/app/views/pages/store.liquid +5 -0
- data/spec/fixtures/default/app/views/snippets/header.liquid.haml +1 -0
- data/spec/fixtures/default/app/views/snippets/song.fr.liquid.haml +8 -0
- data/spec/fixtures/default/app/views/snippets/song.liquid +12 -0
- data/spec/fixtures/default/config/deploy.yml +12 -0
- data/spec/fixtures/default/config/deploy_example.yml +12 -0
- data/spec/fixtures/default/config/site.yml +15 -0
- data/spec/fixtures/default/config/translations.yml +3 -0
- data/spec/fixtures/default/data/bands.yml +10 -0
- data/spec/fixtures/default/data/events.yml +49 -0
- data/spec/fixtures/default/data/songs.yml +46 -0
- data/spec/fixtures/default/data/updates.yml +48 -0
- data/spec/fixtures/default/public/fonts/chunkfive-webfont.eot +0 -0
- data/spec/fixtures/default/public/fonts/chunkfive-webfont.svg +213 -0
- data/spec/fixtures/default/public/fonts/chunkfive-webfont.ttf +0 -0
- data/spec/fixtures/default/public/fonts/chunkfive-webfont.woff +0 -0
- data/spec/fixtures/default/public/fonts/chunkfive.css +8 -0
- data/spec/fixtures/default/public/fonts/chunkfive.otf +0 -0
- data/spec/fixtures/default/public/images/nav_on.png +0 -0
- data/spec/fixtures/default/public/images/photo_frame.png +0 -0
- data/spec/fixtures/default/public/images/sep.png +0 -0
- data/spec/fixtures/default/public/images/top.jpg +0 -0
- data/spec/fixtures/default/public/javascripts/application.js.coffee +2 -0
- data/spec/fixtures/default/public/javascripts/common.js +1 -0
- data/spec/fixtures/default/public/samples/asset_collections/cover.jpg +0 -0
- data/spec/fixtures/default/public/samples/photo.jpg +0 -0
- data/spec/fixtures/default/public/samples/photo_2.jpg +0 -0
- data/spec/fixtures/default/public/stylesheets/application.css +64 -0
- data/spec/fixtures/default/public/stylesheets/other/extra.css.less +8 -0
- data/spec/fixtures/default/public/stylesheets/other/style.css.scss +13 -0
- data/spec/fixtures/default/public/stylesheets/reboot.css +82 -0
- data/spec/integration/cassettes/push.yml +4 -4
- data/spec/integration/server/basic_spec.rb +53 -0
- data/spec/integration/server/contact_form_spec.rb +111 -0
- data/spec/spec_helper.rb +1 -0
- data/spec/support/helpers.rb +14 -0
- data/spec/support/matchers.rb +5 -0
- metadata +120 -26
- data/spec/integration/server_spec.rb +0 -38
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: locomotivecms_wagon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Didier Lafforgue
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-04-
|
13
|
+
date: 2013-04-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
type: :runtime
|
@@ -162,22 +162,6 @@ dependencies:
|
|
162
162
|
none: false
|
163
163
|
requirements:
|
164
164
|
- - '='
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: 2.12.2
|
167
|
-
name: rmagick
|
168
|
-
prerelease: false
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
none: false
|
171
|
-
requirements:
|
172
|
-
- - '='
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
version: 2.12.2
|
175
|
-
- !ruby/object:Gem::Dependency
|
176
|
-
type: :runtime
|
177
|
-
version_requirements: !ruby/object:Gem::Requirement
|
178
|
-
none: false
|
179
|
-
requirements:
|
180
|
-
- - ~>
|
181
165
|
- !ruby/object:Gem::Version
|
182
166
|
version: 0.3.8
|
183
167
|
name: httmultiparty
|
@@ -185,7 +169,7 @@ dependencies:
|
|
185
169
|
requirement: !ruby/object:Gem::Requirement
|
186
170
|
none: false
|
187
171
|
requirements:
|
188
|
-
- -
|
172
|
+
- - '='
|
189
173
|
- !ruby/object:Gem::Version
|
190
174
|
version: 0.3.8
|
191
175
|
- !ruby/object:Gem::Dependency
|
@@ -211,7 +195,7 @@ dependencies:
|
|
211
195
|
requirements:
|
212
196
|
- - '='
|
213
197
|
- !ruby/object:Gem::Version
|
214
|
-
version: 1.0.
|
198
|
+
version: 1.0.2
|
215
199
|
name: locomotivecms_mounter
|
216
200
|
prerelease: false
|
217
201
|
requirement: !ruby/object:Gem::Requirement
|
@@ -219,7 +203,7 @@ dependencies:
|
|
219
203
|
requirements:
|
220
204
|
- - '='
|
221
205
|
- !ruby/object:Gem::Version
|
222
|
-
version: 1.0.
|
206
|
+
version: 1.0.2
|
223
207
|
- !ruby/object:Gem::Dependency
|
224
208
|
type: :runtime
|
225
209
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -495,13 +479,68 @@ files:
|
|
495
479
|
- locales/pt-BR.yml
|
496
480
|
- locales/ru.yml
|
497
481
|
- locomotivecms_wagon.gemspec
|
482
|
+
- spec/fixtures/default/README
|
483
|
+
- spec/fixtures/default/app/content_types/bands.yml
|
484
|
+
- spec/fixtures/default/app/content_types/events.yml
|
485
|
+
- spec/fixtures/default/app/content_types/messages.yml
|
486
|
+
- spec/fixtures/default/app/content_types/songs.yml
|
487
|
+
- spec/fixtures/default/app/content_types/updates.yml
|
488
|
+
- spec/fixtures/default/app/views/pages/404.liquid.haml
|
489
|
+
- spec/fixtures/default/app/views/pages/about_us.fr.liquid.haml
|
490
|
+
- spec/fixtures/default/app/views/pages/about_us.liquid.haml
|
491
|
+
- spec/fixtures/default/app/views/pages/about_us.nb.liquid.haml
|
492
|
+
- spec/fixtures/default/app/views/pages/about_us/jane_doe.liquid.haml
|
493
|
+
- spec/fixtures/default/app/views/pages/about_us/john_doe.fr.liquid.haml
|
494
|
+
- spec/fixtures/default/app/views/pages/about_us/john_doe.liquid.haml
|
495
|
+
- spec/fixtures/default/app/views/pages/all.liquid.haml
|
496
|
+
- spec/fixtures/default/app/views/pages/archives/news.liquid.haml
|
497
|
+
- spec/fixtures/default/app/views/pages/contact.liquid.haml
|
498
|
+
- spec/fixtures/default/app/views/pages/events.liquid.haml
|
499
|
+
- spec/fixtures/default/app/views/pages/index.fr.liquid.haml
|
500
|
+
- spec/fixtures/default/app/views/pages/index.liquid.haml
|
501
|
+
- spec/fixtures/default/app/views/pages/music.liquid.haml
|
502
|
+
- spec/fixtures/default/app/views/pages/songs/template.liquid.haml
|
503
|
+
- spec/fixtures/default/app/views/pages/store.fr.liquid.haml
|
504
|
+
- spec/fixtures/default/app/views/pages/store.liquid
|
505
|
+
- spec/fixtures/default/app/views/snippets/header.liquid.haml
|
506
|
+
- spec/fixtures/default/app/views/snippets/song.fr.liquid.haml
|
507
|
+
- spec/fixtures/default/app/views/snippets/song.liquid
|
508
|
+
- spec/fixtures/default/config/deploy.yml
|
509
|
+
- spec/fixtures/default/config/deploy_example.yml
|
510
|
+
- spec/fixtures/default/config/site.yml
|
511
|
+
- spec/fixtures/default/config/translations.yml
|
512
|
+
- spec/fixtures/default/data/bands.yml
|
513
|
+
- spec/fixtures/default/data/events.yml
|
514
|
+
- spec/fixtures/default/data/songs.yml
|
515
|
+
- spec/fixtures/default/data/updates.yml
|
516
|
+
- spec/fixtures/default/public/fonts/chunkfive-webfont.eot
|
517
|
+
- spec/fixtures/default/public/fonts/chunkfive-webfont.svg
|
518
|
+
- spec/fixtures/default/public/fonts/chunkfive-webfont.ttf
|
519
|
+
- spec/fixtures/default/public/fonts/chunkfive-webfont.woff
|
520
|
+
- spec/fixtures/default/public/fonts/chunkfive.css
|
521
|
+
- spec/fixtures/default/public/fonts/chunkfive.otf
|
522
|
+
- spec/fixtures/default/public/images/nav_on.png
|
523
|
+
- spec/fixtures/default/public/images/photo_frame.png
|
524
|
+
- spec/fixtures/default/public/images/sep.png
|
525
|
+
- spec/fixtures/default/public/images/top.jpg
|
526
|
+
- spec/fixtures/default/public/javascripts/application.js.coffee
|
527
|
+
- spec/fixtures/default/public/javascripts/common.js
|
528
|
+
- spec/fixtures/default/public/samples/asset_collections/cover.jpg
|
529
|
+
- spec/fixtures/default/public/samples/photo.jpg
|
530
|
+
- spec/fixtures/default/public/samples/photo_2.jpg
|
531
|
+
- spec/fixtures/default/public/stylesheets/application.css
|
532
|
+
- spec/fixtures/default/public/stylesheets/other/extra.css.less
|
533
|
+
- spec/fixtures/default/public/stylesheets/other/style.css.scss
|
534
|
+
- spec/fixtures/default/public/stylesheets/reboot.css
|
498
535
|
- spec/integration/cassettes/pull.yml
|
499
536
|
- spec/integration/cassettes/push.yml
|
500
537
|
- spec/integration/integration_helper.rb
|
501
|
-
- spec/integration/
|
538
|
+
- spec/integration/server/basic_spec.rb
|
539
|
+
- spec/integration/server/contact_form_spec.rb
|
502
540
|
- spec/integration/sites_spec.rb
|
503
541
|
- spec/spec_helper.rb
|
504
542
|
- spec/support/helpers.rb
|
543
|
+
- spec/support/matchers.rb
|
505
544
|
homepage: http://www.locomotivecms.com
|
506
545
|
licenses: []
|
507
546
|
post_install_message:
|
@@ -515,7 +554,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
515
554
|
- !ruby/object:Gem::Version
|
516
555
|
segments:
|
517
556
|
- 0
|
518
|
-
hash: -
|
557
|
+
hash: -716651243683008420
|
519
558
|
version: '0'
|
520
559
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
521
560
|
none: false
|
@@ -524,21 +563,76 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
524
563
|
- !ruby/object:Gem::Version
|
525
564
|
segments:
|
526
565
|
- 0
|
527
|
-
hash: -
|
566
|
+
hash: -716651243683008420
|
528
567
|
version: '0'
|
529
568
|
requirements: []
|
530
569
|
rubyforge_project:
|
531
|
-
rubygems_version: 1.8.
|
570
|
+
rubygems_version: 1.8.25
|
532
571
|
signing_key:
|
533
572
|
specification_version: 3
|
534
573
|
summary: The LocomotiveCMS wagon is a site generator for the LocomotiveCMS engine
|
535
574
|
powered by all the efficient and modern HTML development tools (Haml, SASS, Compass,
|
536
575
|
Less).
|
537
576
|
test_files:
|
577
|
+
- spec/fixtures/default/README
|
578
|
+
- spec/fixtures/default/app/content_types/bands.yml
|
579
|
+
- spec/fixtures/default/app/content_types/events.yml
|
580
|
+
- spec/fixtures/default/app/content_types/messages.yml
|
581
|
+
- spec/fixtures/default/app/content_types/songs.yml
|
582
|
+
- spec/fixtures/default/app/content_types/updates.yml
|
583
|
+
- spec/fixtures/default/app/views/pages/404.liquid.haml
|
584
|
+
- spec/fixtures/default/app/views/pages/about_us.fr.liquid.haml
|
585
|
+
- spec/fixtures/default/app/views/pages/about_us.liquid.haml
|
586
|
+
- spec/fixtures/default/app/views/pages/about_us.nb.liquid.haml
|
587
|
+
- spec/fixtures/default/app/views/pages/about_us/jane_doe.liquid.haml
|
588
|
+
- spec/fixtures/default/app/views/pages/about_us/john_doe.fr.liquid.haml
|
589
|
+
- spec/fixtures/default/app/views/pages/about_us/john_doe.liquid.haml
|
590
|
+
- spec/fixtures/default/app/views/pages/all.liquid.haml
|
591
|
+
- spec/fixtures/default/app/views/pages/archives/news.liquid.haml
|
592
|
+
- spec/fixtures/default/app/views/pages/contact.liquid.haml
|
593
|
+
- spec/fixtures/default/app/views/pages/events.liquid.haml
|
594
|
+
- spec/fixtures/default/app/views/pages/index.fr.liquid.haml
|
595
|
+
- spec/fixtures/default/app/views/pages/index.liquid.haml
|
596
|
+
- spec/fixtures/default/app/views/pages/music.liquid.haml
|
597
|
+
- spec/fixtures/default/app/views/pages/songs/template.liquid.haml
|
598
|
+
- spec/fixtures/default/app/views/pages/store.fr.liquid.haml
|
599
|
+
- spec/fixtures/default/app/views/pages/store.liquid
|
600
|
+
- spec/fixtures/default/app/views/snippets/header.liquid.haml
|
601
|
+
- spec/fixtures/default/app/views/snippets/song.fr.liquid.haml
|
602
|
+
- spec/fixtures/default/app/views/snippets/song.liquid
|
603
|
+
- spec/fixtures/default/config/deploy.yml
|
604
|
+
- spec/fixtures/default/config/deploy_example.yml
|
605
|
+
- spec/fixtures/default/config/site.yml
|
606
|
+
- spec/fixtures/default/config/translations.yml
|
607
|
+
- spec/fixtures/default/data/bands.yml
|
608
|
+
- spec/fixtures/default/data/events.yml
|
609
|
+
- spec/fixtures/default/data/songs.yml
|
610
|
+
- spec/fixtures/default/data/updates.yml
|
611
|
+
- spec/fixtures/default/public/fonts/chunkfive-webfont.eot
|
612
|
+
- spec/fixtures/default/public/fonts/chunkfive-webfont.svg
|
613
|
+
- spec/fixtures/default/public/fonts/chunkfive-webfont.ttf
|
614
|
+
- spec/fixtures/default/public/fonts/chunkfive-webfont.woff
|
615
|
+
- spec/fixtures/default/public/fonts/chunkfive.css
|
616
|
+
- spec/fixtures/default/public/fonts/chunkfive.otf
|
617
|
+
- spec/fixtures/default/public/images/nav_on.png
|
618
|
+
- spec/fixtures/default/public/images/photo_frame.png
|
619
|
+
- spec/fixtures/default/public/images/sep.png
|
620
|
+
- spec/fixtures/default/public/images/top.jpg
|
621
|
+
- spec/fixtures/default/public/javascripts/application.js.coffee
|
622
|
+
- spec/fixtures/default/public/javascripts/common.js
|
623
|
+
- spec/fixtures/default/public/samples/asset_collections/cover.jpg
|
624
|
+
- spec/fixtures/default/public/samples/photo.jpg
|
625
|
+
- spec/fixtures/default/public/samples/photo_2.jpg
|
626
|
+
- spec/fixtures/default/public/stylesheets/application.css
|
627
|
+
- spec/fixtures/default/public/stylesheets/other/extra.css.less
|
628
|
+
- spec/fixtures/default/public/stylesheets/other/style.css.scss
|
629
|
+
- spec/fixtures/default/public/stylesheets/reboot.css
|
538
630
|
- spec/integration/cassettes/pull.yml
|
539
631
|
- spec/integration/cassettes/push.yml
|
540
632
|
- spec/integration/integration_helper.rb
|
541
|
-
- spec/integration/
|
633
|
+
- spec/integration/server/basic_spec.rb
|
634
|
+
- spec/integration/server/contact_form_spec.rb
|
542
635
|
- spec/integration/sites_spec.rb
|
543
636
|
- spec/spec_helper.rb
|
544
637
|
- spec/support/helpers.rb
|
638
|
+
- spec/support/matchers.rb
|
@@ -1,38 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
require File.dirname(__FILE__) + '/integration_helper'
|
4
|
-
require 'locomotive/wagon/server'
|
5
|
-
require 'rack/test'
|
6
|
-
|
7
|
-
describe Locomotive::Wagon::Server do
|
8
|
-
include Rack::Test::Methods
|
9
|
-
|
10
|
-
def app
|
11
|
-
clone_site
|
12
|
-
reader = Locomotive::Mounter::Reader::FileSystem.instance
|
13
|
-
reader.run!(path: 'site')
|
14
|
-
Locomotive::Wagon::Server.new(reader)
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'shows the index page' do
|
18
|
-
get '/'
|
19
|
-
last_response.body.should =~ /Content of the home page/
|
20
|
-
end
|
21
|
-
|
22
|
-
it 'shows the 404 page' do
|
23
|
-
get '/void'
|
24
|
-
last_response.body.should =~ /Content of the 404 page/
|
25
|
-
end
|
26
|
-
|
27
|
-
it 'shows content' do
|
28
|
-
get '/products/latest'
|
29
|
-
last_response.body.should =~ /The name of the latest product is: Useless stuff/
|
30
|
-
end
|
31
|
-
|
32
|
-
it 'translates strings' do
|
33
|
-
get '/en/translated'
|
34
|
-
last_response.body.force_encoding('utf-8').should =~ /Hello world!/
|
35
|
-
get '/es/translated'
|
36
|
-
last_response.body.force_encoding('utf-8').should =~ /¡Hola, Mundo!/
|
37
|
-
end
|
38
|
-
end
|