locomotivecms_steam 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +21 -0
  3. data/.travis.yml +4 -0
  4. data/CHANGELOG.md +19 -0
  5. data/Gemfile +8 -0
  6. data/Gemfile.lock +188 -0
  7. data/LICENSE +20 -0
  8. data/README.md +36 -0
  9. data/Rakefile +17 -0
  10. data/bin/publish +28 -0
  11. data/config/locales/de.yml +157 -0
  12. data/config/locales/en.yml +189 -0
  13. data/config/locales/es.yml +133 -0
  14. data/config/locales/et.yml +154 -0
  15. data/config/locales/fr.yml +148 -0
  16. data/config/locales/it.yml +155 -0
  17. data/config/locales/nb.yml +191 -0
  18. data/config/locales/nl.yml +160 -0
  19. data/config/locales/pl.yml +203 -0
  20. data/config/locales/pt-BR.yml +139 -0
  21. data/config/locales/ru.yml +224 -0
  22. data/lib/locomotive/steam/core_ext.rb +5 -0
  23. data/lib/locomotive/steam/core_ext/array.rb +3 -0
  24. data/lib/locomotive/steam/core_ext/boolean/false.rb +3 -0
  25. data/lib/locomotive/steam/core_ext/boolean/true.rb +3 -0
  26. data/lib/locomotive/steam/core_ext/hash.rb +27 -0
  27. data/lib/locomotive/steam/core_ext/string.rb +8 -0
  28. data/lib/locomotive/steam/exceptions.rb +62 -0
  29. data/lib/locomotive/steam/initializers.rb +5 -0
  30. data/lib/locomotive/steam/initializers/i18n.rb +3 -0
  31. data/lib/locomotive/steam/initializers/markdown.rb +27 -0
  32. data/lib/locomotive/steam/initializers/will_paginate.rb +16 -0
  33. data/lib/locomotive/steam/liquid.rb +22 -0
  34. data/lib/locomotive/steam/liquid/drops/base.rb +46 -0
  35. data/lib/locomotive/steam/liquid/drops/content_entry.rb +48 -0
  36. data/lib/locomotive/steam/liquid/drops/content_types.rb +117 -0
  37. data/lib/locomotive/steam/liquid/drops/page.rb +28 -0
  38. data/lib/locomotive/steam/liquid/drops/session_proxy.rb +18 -0
  39. data/lib/locomotive/steam/liquid/drops/site.rb +26 -0
  40. data/lib/locomotive/steam/liquid/errors.rb +17 -0
  41. data/lib/locomotive/steam/liquid/filters/date.rb +136 -0
  42. data/lib/locomotive/steam/liquid/filters/html.rb +188 -0
  43. data/lib/locomotive/steam/liquid/filters/misc.rb +49 -0
  44. data/lib/locomotive/steam/liquid/filters/resize.rb +18 -0
  45. data/lib/locomotive/steam/liquid/filters/text.rb +55 -0
  46. data/lib/locomotive/steam/liquid/filters/translate.rb +28 -0
  47. data/lib/locomotive/steam/liquid/patches.rb +47 -0
  48. data/lib/locomotive/steam/liquid/scopeable.rb +149 -0
  49. data/lib/locomotive/steam/liquid/tags/consume.rb +97 -0
  50. data/lib/locomotive/steam/liquid/tags/csrf.rb +34 -0
  51. data/lib/locomotive/steam/liquid/tags/editable.rb +6 -0
  52. data/lib/locomotive/steam/liquid/tags/editable/base.rb +50 -0
  53. data/lib/locomotive/steam/liquid/tags/editable/control.rb +19 -0
  54. data/lib/locomotive/steam/liquid/tags/editable/file.rb +15 -0
  55. data/lib/locomotive/steam/liquid/tags/editable/long_text.rb +15 -0
  56. data/lib/locomotive/steam/liquid/tags/editable/short_text.rb +20 -0
  57. data/lib/locomotive/steam/liquid/tags/editable/text.rb +15 -0
  58. data/lib/locomotive/steam/liquid/tags/extends.rb +25 -0
  59. data/lib/locomotive/steam/liquid/tags/google_analytics.rb +28 -0
  60. data/lib/locomotive/steam/liquid/tags/hybrid.rb +27 -0
  61. data/lib/locomotive/steam/liquid/tags/inline_editor.rb +16 -0
  62. data/lib/locomotive/steam/liquid/tags/link_to.rb +56 -0
  63. data/lib/locomotive/steam/liquid/tags/locale_switcher.rb +106 -0
  64. data/lib/locomotive/steam/liquid/tags/nav.rb +287 -0
  65. data/lib/locomotive/steam/liquid/tags/paginate.rb +105 -0
  66. data/lib/locomotive/steam/liquid/tags/path_helper.rb +98 -0
  67. data/lib/locomotive/steam/liquid/tags/path_to.rb +36 -0
  68. data/lib/locomotive/steam/liquid/tags/seo.rb +74 -0
  69. data/lib/locomotive/steam/liquid/tags/session_assign.rb +41 -0
  70. data/lib/locomotive/steam/liquid/tags/snippet.rb +63 -0
  71. data/lib/locomotive/steam/liquid/tags/with_scope.rb +44 -0
  72. data/lib/locomotive/steam/listen.rb +64 -0
  73. data/lib/locomotive/steam/logger.rb +54 -0
  74. data/lib/locomotive/steam/monkey_patches.rb +5 -0
  75. data/lib/locomotive/steam/monkey_patches/better_errors.rb +70 -0
  76. data/lib/locomotive/steam/monkey_patches/dragonfly.rb +79 -0
  77. data/lib/locomotive/steam/monkey_patches/haml.rb +15 -0
  78. data/lib/locomotive/steam/monkey_patches/httparty.rb +46 -0
  79. data/lib/locomotive/steam/monkey_patches/mounter.rb +32 -0
  80. data/lib/locomotive/steam/server.rb +81 -0
  81. data/lib/locomotive/steam/server/dynamic_assets.rb +33 -0
  82. data/lib/locomotive/steam/server/entry_submission.rb +120 -0
  83. data/lib/locomotive/steam/server/favicon.rb +18 -0
  84. data/lib/locomotive/steam/server/locale.rb +42 -0
  85. data/lib/locomotive/steam/server/logging.rb +32 -0
  86. data/lib/locomotive/steam/server/middleware.rb +61 -0
  87. data/lib/locomotive/steam/server/page.rb +69 -0
  88. data/lib/locomotive/steam/server/path.rb +34 -0
  89. data/lib/locomotive/steam/server/renderer.rb +118 -0
  90. data/lib/locomotive/steam/server/templatized_page.rb +32 -0
  91. data/lib/locomotive/steam/server/timezone.rb +18 -0
  92. data/lib/locomotive/steam/standalone_server.rb +33 -0
  93. data/lib/locomotive/steam/version.rb +5 -0
  94. data/lib/steam.rb +4 -0
  95. data/locomotivecms_steam.gemspec +42 -0
  96. data/spec/fixtures/default/README +0 -0
  97. data/spec/fixtures/default/app/content_types/bands.yml +19 -0
  98. data/spec/fixtures/default/app/content_types/events.yml +25 -0
  99. data/spec/fixtures/default/app/content_types/messages.yml +17 -0
  100. data/spec/fixtures/default/app/content_types/songs.yml +25 -0
  101. data/spec/fixtures/default/app/content_types/updates.yml +33 -0
  102. data/spec/fixtures/default/app/views/pages/404.liquid.haml +10 -0
  103. data/spec/fixtures/default/app/views/pages/about_us.fr.liquid.haml +7 -0
  104. data/spec/fixtures/default/app/views/pages/about_us.liquid.haml +21 -0
  105. data/spec/fixtures/default/app/views/pages/about_us.nb.liquid.haml +4 -0
  106. data/spec/fixtures/default/app/views/pages/about_us/jane_doe.liquid.haml +4 -0
  107. data/spec/fixtures/default/app/views/pages/about_us/john_doe.fr.liquid.haml +5 -0
  108. data/spec/fixtures/default/app/views/pages/about_us/john_doe.liquid.haml +6 -0
  109. data/spec/fixtures/default/app/views/pages/all.liquid.haml +13 -0
  110. data/spec/fixtures/default/app/views/pages/archives/news.liquid.haml +10 -0
  111. data/spec/fixtures/default/app/views/pages/contact.liquid.haml +54 -0
  112. data/spec/fixtures/default/app/views/pages/contest.liquid.haml +18 -0
  113. data/spec/fixtures/default/app/views/pages/events.liquid.haml +42 -0
  114. data/spec/fixtures/default/app/views/pages/filtered.liquid.haml +10 -0
  115. data/spec/fixtures/default/app/views/pages/grunge_bands.liquid.haml +8 -0
  116. data/spec/fixtures/default/app/views/pages/index.fr.liquid.haml +3 -0
  117. data/spec/fixtures/default/app/views/pages/index.liquid.haml +100 -0
  118. data/spec/fixtures/default/app/views/pages/music.fr.liquid.haml +4 -0
  119. data/spec/fixtures/default/app/views/pages/music.liquid.haml +42 -0
  120. data/spec/fixtures/default/app/views/pages/songs/template.fr.liquid.haml +16 -0
  121. data/spec/fixtures/default/app/views/pages/songs/template.liquid.haml +18 -0
  122. data/spec/fixtures/default/app/views/pages/songs/template/band.liquid.haml +16 -0
  123. data/spec/fixtures/default/app/views/pages/store.fr.liquid.haml +5 -0
  124. data/spec/fixtures/default/app/views/pages/store.liquid +5 -0
  125. data/spec/fixtures/default/app/views/pages/tags/nav.liquid.haml +6 -0
  126. data/spec/fixtures/default/app/views/pages/tags/nav_in_deep.liquid.haml +6 -0
  127. data/spec/fixtures/default/app/views/pages/unlisted_pages.liquid.haml +9 -0
  128. data/spec/fixtures/default/app/views/snippets/A_Complicated-one.liquid.haml +1 -0
  129. data/spec/fixtures/default/app/views/snippets/footer.liquid.haml +6 -0
  130. data/spec/fixtures/default/app/views/snippets/header.liquid.haml +1 -0
  131. data/spec/fixtures/default/app/views/snippets/song.fr.liquid.haml +8 -0
  132. data/spec/fixtures/default/app/views/snippets/song.liquid +12 -0
  133. data/spec/fixtures/default/config/deploy.yml +12 -0
  134. data/spec/fixtures/default/config/deploy_example.yml +12 -0
  135. data/spec/fixtures/default/config/site.yml +15 -0
  136. data/spec/fixtures/default/config/translations.yml +3 -0
  137. data/spec/fixtures/default/data/bands.yml +10 -0
  138. data/spec/fixtures/default/data/events.yml +53 -0
  139. data/spec/fixtures/default/data/songs.yml +46 -0
  140. data/spec/fixtures/default/data/updates.yml +48 -0
  141. data/spec/fixtures/default/public/fonts/chunkfive-webfont.eot +0 -0
  142. data/spec/fixtures/default/public/fonts/chunkfive-webfont.svg +213 -0
  143. data/spec/fixtures/default/public/fonts/chunkfive-webfont.ttf +0 -0
  144. data/spec/fixtures/default/public/fonts/chunkfive-webfont.woff +0 -0
  145. data/spec/fixtures/default/public/fonts/chunkfive.css +8 -0
  146. data/spec/fixtures/default/public/fonts/chunkfive.otf +0 -0
  147. data/spec/fixtures/default/public/images/nav_on.png +0 -0
  148. data/spec/fixtures/default/public/images/photo_frame.png +0 -0
  149. data/spec/fixtures/default/public/images/sep.png +0 -0
  150. data/spec/fixtures/default/public/images/top.jpg +0 -0
  151. data/spec/fixtures/default/public/javascripts/application.js.coffee +2 -0
  152. data/spec/fixtures/default/public/javascripts/common.js +1 -0
  153. data/spec/fixtures/default/public/samples/asset_collections/cover.jpg +0 -0
  154. data/spec/fixtures/default/public/samples/photo.jpg +0 -0
  155. data/spec/fixtures/default/public/samples/photo_2.jpg +0 -0
  156. data/spec/fixtures/default/public/stylesheets/application.css +64 -0
  157. data/spec/fixtures/default/public/stylesheets/other/extra.css.less +8 -0
  158. data/spec/fixtures/default/public/stylesheets/other/style.css.scss +13 -0
  159. data/spec/fixtures/default/public/stylesheets/reboot.css +82 -0
  160. data/spec/integration/integration_helper.rb +15 -0
  161. data/spec/integration/server/basic_spec.rb +170 -0
  162. data/spec/integration/server/contact_form_spec.rb +111 -0
  163. data/spec/integration/server/liquid_spec.rb +91 -0
  164. data/spec/integration/server/with_scope_spec.rb +20 -0
  165. data/spec/locales/locales_spec.rb +22 -0
  166. data/spec/spec_helper.rb +21 -0
  167. data/spec/support.rb +4 -0
  168. data/spec/support/examples/locale_file.rb +14 -0
  169. data/spec/support/examples/matching_locale.rb +8 -0
  170. data/spec/support/helpers.rb +22 -0
  171. data/spec/support/matchers/hash.rb +5 -0
  172. metadata +564 -0
@@ -0,0 +1,91 @@
1
+ # encoding: utf-8
2
+
3
+ require File.dirname(__FILE__) + '/../integration_helper'
4
+ require 'locomotive/steam/server'
5
+ require 'rack/test'
6
+
7
+ describe Locomotive::Steam::Server do
8
+
9
+ include Rack::Test::Methods
10
+
11
+ def app
12
+ run_server
13
+ end
14
+
15
+ it "converts {{ page.templatized? }} => true on templatized page" do
16
+ get '/songs/song-number-1'
17
+ last_response.body.should =~ /templatized=.true./
18
+ end
19
+
20
+ it "converts {{ page.templatized? }} => false on regular page" do
21
+ get '/index'
22
+ last_response.body.should =~ /templatized=.false./
23
+ end
24
+
25
+ it "converts {{ page.listed? }} => true on listed page" do
26
+ get '/music'
27
+ last_response.body.should =~ /listed=.true./
28
+ end
29
+
30
+ it "provides an access to page's content_type collection" do
31
+ get '/songs/song-number-1'
32
+ last_response.body.should =~ /content_type_size=.8./
33
+ end
34
+
35
+ it "provides count alias on collections" do
36
+ get '/songs/song-number-1'
37
+ last_response.body.should =~ /content_type_count=.8./
38
+ end
39
+
40
+ describe '.link_to' do
41
+
42
+ it "writes a link to a page" do
43
+ get '/events'
44
+ last_response.body.should =~ /Discover: <a href="\/music">Music<\/a>/
45
+ end
46
+
47
+ it "writes a localized a link" do
48
+ get '/events'
49
+ last_response.body.should =~ /Plus à notre sujet: <a href="\/fr\/a-notre-sujet">Qui sommes nous \?<\/a>/
50
+ end
51
+
52
+ it "writes a link to a page with a custom label" do
53
+ get '/events'
54
+ last_response.body.should =~ /More about us: <a href="\/about-us">Who are we \?<\/a>/
55
+ end
56
+
57
+ it "writes a link to a templatized page" do
58
+ get '/events'
59
+ last_response.body.should =~ /<a href="\/songs\/song-number-1">Song #1<\/a>/
60
+ end
61
+
62
+ it "writes a link to a templatized page with a different handle" do
63
+ get '/events'
64
+ last_response.body.should =~ /<a href="\/songs\/song-number-8">Song #8<\/a>/
65
+ end
66
+
67
+ end
68
+
69
+ describe 'scope & assigns' do
70
+
71
+ it "evaluates collection when called all inside of scope" do
72
+ get '/music'
73
+ last_response.body.should =~ /<p class=.scoped_song.>Song #3/
74
+ last_response.body.should =~ /<p class=.scoped_song_link.>\s+<a href=.\/songs\/song-number-3.>Song #3/m
75
+ end
76
+
77
+ it "size of evaluated unscoped collection equal to unevaluated one" do
78
+ get '/music'
79
+ last_response.body.should =~ /class=.collection_equality.>8=8/
80
+ end
81
+
82
+ end
83
+
84
+ describe 'html helpers' do
85
+ it 'bypass url for css resource' do
86
+ get '/'
87
+ last_response.body.should =~ /<link href=("|')http:\/\/fonts\.googleapis\.com\/css\?family=Open\+Sans:400,700("|')/
88
+ end
89
+ end
90
+
91
+ end
@@ -0,0 +1,20 @@
1
+ # encoding: utf-8
2
+
3
+ require File.dirname(__FILE__) + '/../integration_helper'
4
+ require 'locomotive/steam/server'
5
+ require 'rack/test'
6
+
7
+ describe 'Complex with_scope conditions' do
8
+
9
+ include Rack::Test::Methods
10
+
11
+ def app
12
+ run_server
13
+ end
14
+
15
+ it 'returns the right number of events' do
16
+ get '/filtered'
17
+ last_response.body.should =~ /events=1./
18
+ end
19
+
20
+ end
@@ -0,0 +1,22 @@
1
+ require 'spec_helper'
2
+
3
+ describe "#locales" do
4
+
5
+ Dir.glob('config/locales/**/*.yml').each do |locale_file|
6
+ describe "#{locale_file}" do
7
+ it_behaves_like 'my valid locale file' do
8
+ let(:locale_file) { locale_file }
9
+ end
10
+ end
11
+
12
+ unless locale_file == 'config/locales/en.yml'
13
+ describe "#{locale_file}", pending: 'need to be fixed' do
14
+ it_behaves_like 'complete translation of' do
15
+ let(:locale_target) { locale_file }
16
+ end
17
+ end
18
+ end
19
+
20
+ end
21
+
22
+ end
@@ -0,0 +1,21 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
4
+ require 'i18n-spec'
5
+ require 'coveralls'
6
+
7
+ require_relative '../lib/steam'
8
+ require_relative 'support'
9
+
10
+ Coveralls.wear!
11
+
12
+ RSpec.configure do |config|
13
+ config.include Spec::Helpers
14
+
15
+ config.filter_run focused: true
16
+ config.run_all_when_everything_filtered = true
17
+
18
+ config.before(:all) { remove_logs }
19
+ config.before { reset! }
20
+ config.after { reset! }
21
+ end
data/spec/support.rb ADDED
@@ -0,0 +1,4 @@
1
+ require_relative 'support/helpers'
2
+ require_relative 'support/matchers/hash'
3
+ require_relative 'support/examples/matching_locale'
4
+ require_relative 'support/examples/locale_file'
@@ -0,0 +1,14 @@
1
+ shared_examples_for 'my valid locale file' do
2
+ let(:local_file) { 'config/locales/app/en.yml' }
3
+
4
+ subject { locale_file }
5
+
6
+ it { should be_parseable }
7
+ it { should have_a_valid_locale }
8
+
9
+ # it { should have_valid_pluralization_keys }
10
+ # it { should_not have_missing_pluralization_keys }
11
+ # it { should have_one_top_level_namespace }
12
+ # it { should be_named_like_top_level_namespace }
13
+ # it { should_not have_legacy_interpolations }
14
+ end
@@ -0,0 +1,8 @@
1
+ shared_examples_for 'complete translation of' do
2
+ let(:locale_source) { 'config/locales/en.yml' }
3
+ let(:locale_target) { 'config/locales/fr.yml' }
4
+
5
+ subject { locale_source }
6
+
7
+ it { should be_a_complete_translation_of locale_target }
8
+ end
@@ -0,0 +1,22 @@
1
+ module Spec
2
+ module Helpers
3
+
4
+ def reset!
5
+ FileUtils.rm_rf(File.expand_path('../../../site', __FILE__))
6
+ end
7
+
8
+ def remove_logs
9
+ FileUtils.rm_rf(File.expand_path('../../fixtures/default/log', __FILE__))
10
+ end
11
+
12
+ def run_server
13
+ path = 'spec/fixtures/default'
14
+ Locomotive::Steam::Logger.setup(path, false)
15
+ reader = Locomotive::Mounter::Reader::FileSystem.instance
16
+ reader.run!(path: path)
17
+
18
+ Locomotive::Steam::Server.new(reader, disable_listen: true)
19
+ end
20
+
21
+ end
22
+ end
@@ -0,0 +1,5 @@
1
+ RSpec::Matchers.define :have_key_with_value do |key, expected|
2
+ match do |actual|
3
+ actual[key] == expected
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,564 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: locomotivecms_steam
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Didier Lafforgue
8
+ - Rodrigo Alvarez
9
+ - Arnaud Sellenet
10
+ - Joel Azemar
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+ date: 2014-04-01 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: bundler
18
+ requirement: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: '1.5'
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.5'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rake
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - "~>"
35
+ - !ruby/object:Gem::Version
36
+ version: '10.1'
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "~>"
42
+ - !ruby/object:Gem::Version
43
+ version: '10.1'
44
+ - !ruby/object:Gem::Dependency
45
+ name: rspec
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - "~>"
49
+ - !ruby/object:Gem::Version
50
+ version: '2.14'
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '2.14'
58
+ - !ruby/object:Gem::Dependency
59
+ name: launchy
60
+ requirement: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
65
+ type: :development
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ - !ruby/object:Gem::Dependency
73
+ name: vcr
74
+ requirement: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ - !ruby/object:Gem::Dependency
87
+ name: webmock
88
+ requirement: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ type: :development
94
+ prerelease: false
95
+ version_requirements: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
100
+ - !ruby/object:Gem::Dependency
101
+ name: rack-test
102
+ requirement: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ type: :development
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ - !ruby/object:Gem::Dependency
115
+ name: i18n-spec
116
+ requirement: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ type: :development
122
+ prerelease: false
123
+ version_requirements: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ - !ruby/object:Gem::Dependency
129
+ name: rack-cache
130
+ requirement: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - "~>"
133
+ - !ruby/object:Gem::Version
134
+ version: '1.1'
135
+ type: :runtime
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - "~>"
140
+ - !ruby/object:Gem::Version
141
+ version: '1.1'
142
+ - !ruby/object:Gem::Dependency
143
+ name: sprockets
144
+ requirement: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - "~>"
147
+ - !ruby/object:Gem::Version
148
+ version: '2.0'
149
+ type: :runtime
150
+ prerelease: false
151
+ version_requirements: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - "~>"
154
+ - !ruby/object:Gem::Version
155
+ version: '2.0'
156
+ - !ruby/object:Gem::Dependency
157
+ name: sprockets-sass
158
+ requirement: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - "~>"
161
+ - !ruby/object:Gem::Version
162
+ version: '1.0'
163
+ type: :runtime
164
+ prerelease: false
165
+ version_requirements: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - "~>"
168
+ - !ruby/object:Gem::Version
169
+ version: '1.0'
170
+ - !ruby/object:Gem::Dependency
171
+ name: better_errors
172
+ requirement: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - "~>"
175
+ - !ruby/object:Gem::Version
176
+ version: '1.0'
177
+ type: :runtime
178
+ prerelease: false
179
+ version_requirements: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - "~>"
182
+ - !ruby/object:Gem::Version
183
+ version: '1.0'
184
+ - !ruby/object:Gem::Dependency
185
+ name: dragonfly
186
+ requirement: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - "~>"
189
+ - !ruby/object:Gem::Version
190
+ version: '0.9'
191
+ type: :runtime
192
+ prerelease: false
193
+ version_requirements: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - "~>"
196
+ - !ruby/object:Gem::Version
197
+ version: '0.9'
198
+ - !ruby/object:Gem::Dependency
199
+ name: activesupport
200
+ requirement: !ruby/object:Gem::Requirement
201
+ requirements:
202
+ - - "~>"
203
+ - !ruby/object:Gem::Version
204
+ version: '3.2'
205
+ type: :runtime
206
+ prerelease: false
207
+ version_requirements: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - "~>"
210
+ - !ruby/object:Gem::Version
211
+ version: '3.2'
212
+ - !ruby/object:Gem::Dependency
213
+ name: listen
214
+ requirement: !ruby/object:Gem::Requirement
215
+ requirements:
216
+ - - "~>"
217
+ - !ruby/object:Gem::Version
218
+ version: '2.7'
219
+ type: :runtime
220
+ prerelease: false
221
+ version_requirements: !ruby/object:Gem::Requirement
222
+ requirements:
223
+ - - "~>"
224
+ - !ruby/object:Gem::Version
225
+ version: '2.7'
226
+ - !ruby/object:Gem::Dependency
227
+ name: will_paginate
228
+ requirement: !ruby/object:Gem::Requirement
229
+ requirements:
230
+ - - "~>"
231
+ - !ruby/object:Gem::Version
232
+ version: '3.0'
233
+ type: :runtime
234
+ prerelease: false
235
+ version_requirements: !ruby/object:Gem::Requirement
236
+ requirements:
237
+ - - "~>"
238
+ - !ruby/object:Gem::Version
239
+ version: '3.0'
240
+ - !ruby/object:Gem::Dependency
241
+ name: redcarpet
242
+ requirement: !ruby/object:Gem::Requirement
243
+ requirements:
244
+ - - "~>"
245
+ - !ruby/object:Gem::Version
246
+ version: '3.1'
247
+ type: :runtime
248
+ prerelease: false
249
+ version_requirements: !ruby/object:Gem::Requirement
250
+ requirements:
251
+ - - "~>"
252
+ - !ruby/object:Gem::Version
253
+ version: '3.1'
254
+ - !ruby/object:Gem::Dependency
255
+ name: locomotivecms_mounter
256
+ requirement: !ruby/object:Gem::Requirement
257
+ requirements:
258
+ - - ">="
259
+ - !ruby/object:Gem::Version
260
+ version: '0'
261
+ type: :runtime
262
+ prerelease: false
263
+ version_requirements: !ruby/object:Gem::Requirement
264
+ requirements:
265
+ - - ">="
266
+ - !ruby/object:Gem::Version
267
+ version: '0'
268
+ - !ruby/object:Gem::Dependency
269
+ name: locomotivecms-solid
270
+ requirement: !ruby/object:Gem::Requirement
271
+ requirements:
272
+ - - ">="
273
+ - !ruby/object:Gem::Version
274
+ version: '0'
275
+ type: :runtime
276
+ prerelease: false
277
+ version_requirements: !ruby/object:Gem::Requirement
278
+ requirements:
279
+ - - ">="
280
+ - !ruby/object:Gem::Version
281
+ version: '0'
282
+ description: The LocomotiveCMS steam is a front end server LocomotiveCMS libraries
283
+ email:
284
+ - did@locomotivecms.com
285
+ - papipo@gmail.com
286
+ - arnaud@sellenet.fr
287
+ - joel.azemar@gmail.com
288
+ executables:
289
+ - publish
290
+ extensions: []
291
+ extra_rdoc_files: []
292
+ files:
293
+ - ".gitignore"
294
+ - ".travis.yml"
295
+ - CHANGELOG.md
296
+ - Gemfile
297
+ - Gemfile.lock
298
+ - LICENSE
299
+ - README.md
300
+ - Rakefile
301
+ - bin/publish
302
+ - config/locales/de.yml
303
+ - config/locales/en.yml
304
+ - config/locales/es.yml
305
+ - config/locales/et.yml
306
+ - config/locales/fr.yml
307
+ - config/locales/it.yml
308
+ - config/locales/nb.yml
309
+ - config/locales/nl.yml
310
+ - config/locales/pl.yml
311
+ - config/locales/pt-BR.yml
312
+ - config/locales/ru.yml
313
+ - lib/locomotive/steam/core_ext.rb
314
+ - lib/locomotive/steam/core_ext/array.rb
315
+ - lib/locomotive/steam/core_ext/boolean/false.rb
316
+ - lib/locomotive/steam/core_ext/boolean/true.rb
317
+ - lib/locomotive/steam/core_ext/hash.rb
318
+ - lib/locomotive/steam/core_ext/string.rb
319
+ - lib/locomotive/steam/exceptions.rb
320
+ - lib/locomotive/steam/initializers.rb
321
+ - lib/locomotive/steam/initializers/i18n.rb
322
+ - lib/locomotive/steam/initializers/markdown.rb
323
+ - lib/locomotive/steam/initializers/will_paginate.rb
324
+ - lib/locomotive/steam/liquid.rb
325
+ - lib/locomotive/steam/liquid/drops/base.rb
326
+ - lib/locomotive/steam/liquid/drops/content_entry.rb
327
+ - lib/locomotive/steam/liquid/drops/content_types.rb
328
+ - lib/locomotive/steam/liquid/drops/page.rb
329
+ - lib/locomotive/steam/liquid/drops/session_proxy.rb
330
+ - lib/locomotive/steam/liquid/drops/site.rb
331
+ - lib/locomotive/steam/liquid/errors.rb
332
+ - lib/locomotive/steam/liquid/filters/date.rb
333
+ - lib/locomotive/steam/liquid/filters/html.rb
334
+ - lib/locomotive/steam/liquid/filters/misc.rb
335
+ - lib/locomotive/steam/liquid/filters/resize.rb
336
+ - lib/locomotive/steam/liquid/filters/text.rb
337
+ - lib/locomotive/steam/liquid/filters/translate.rb
338
+ - lib/locomotive/steam/liquid/patches.rb
339
+ - lib/locomotive/steam/liquid/scopeable.rb
340
+ - lib/locomotive/steam/liquid/tags/consume.rb
341
+ - lib/locomotive/steam/liquid/tags/csrf.rb
342
+ - lib/locomotive/steam/liquid/tags/editable.rb
343
+ - lib/locomotive/steam/liquid/tags/editable/base.rb
344
+ - lib/locomotive/steam/liquid/tags/editable/control.rb
345
+ - lib/locomotive/steam/liquid/tags/editable/file.rb
346
+ - lib/locomotive/steam/liquid/tags/editable/long_text.rb
347
+ - lib/locomotive/steam/liquid/tags/editable/short_text.rb
348
+ - lib/locomotive/steam/liquid/tags/editable/text.rb
349
+ - lib/locomotive/steam/liquid/tags/extends.rb
350
+ - lib/locomotive/steam/liquid/tags/google_analytics.rb
351
+ - lib/locomotive/steam/liquid/tags/hybrid.rb
352
+ - lib/locomotive/steam/liquid/tags/inline_editor.rb
353
+ - lib/locomotive/steam/liquid/tags/link_to.rb
354
+ - lib/locomotive/steam/liquid/tags/locale_switcher.rb
355
+ - lib/locomotive/steam/liquid/tags/nav.rb
356
+ - lib/locomotive/steam/liquid/tags/paginate.rb
357
+ - lib/locomotive/steam/liquid/tags/path_helper.rb
358
+ - lib/locomotive/steam/liquid/tags/path_to.rb
359
+ - lib/locomotive/steam/liquid/tags/seo.rb
360
+ - lib/locomotive/steam/liquid/tags/session_assign.rb
361
+ - lib/locomotive/steam/liquid/tags/snippet.rb
362
+ - lib/locomotive/steam/liquid/tags/with_scope.rb
363
+ - lib/locomotive/steam/listen.rb
364
+ - lib/locomotive/steam/logger.rb
365
+ - lib/locomotive/steam/monkey_patches.rb
366
+ - lib/locomotive/steam/monkey_patches/better_errors.rb
367
+ - lib/locomotive/steam/monkey_patches/dragonfly.rb
368
+ - lib/locomotive/steam/monkey_patches/haml.rb
369
+ - lib/locomotive/steam/monkey_patches/httparty.rb
370
+ - lib/locomotive/steam/monkey_patches/mounter.rb
371
+ - lib/locomotive/steam/server.rb
372
+ - lib/locomotive/steam/server/dynamic_assets.rb
373
+ - lib/locomotive/steam/server/entry_submission.rb
374
+ - lib/locomotive/steam/server/favicon.rb
375
+ - lib/locomotive/steam/server/locale.rb
376
+ - lib/locomotive/steam/server/logging.rb
377
+ - lib/locomotive/steam/server/middleware.rb
378
+ - lib/locomotive/steam/server/page.rb
379
+ - lib/locomotive/steam/server/path.rb
380
+ - lib/locomotive/steam/server/renderer.rb
381
+ - lib/locomotive/steam/server/templatized_page.rb
382
+ - lib/locomotive/steam/server/timezone.rb
383
+ - lib/locomotive/steam/standalone_server.rb
384
+ - lib/locomotive/steam/version.rb
385
+ - lib/steam.rb
386
+ - locomotivecms_steam.gemspec
387
+ - spec/fixtures/default/README
388
+ - spec/fixtures/default/app/content_types/bands.yml
389
+ - spec/fixtures/default/app/content_types/events.yml
390
+ - spec/fixtures/default/app/content_types/messages.yml
391
+ - spec/fixtures/default/app/content_types/songs.yml
392
+ - spec/fixtures/default/app/content_types/updates.yml
393
+ - spec/fixtures/default/app/views/pages/404.liquid.haml
394
+ - spec/fixtures/default/app/views/pages/about_us.fr.liquid.haml
395
+ - spec/fixtures/default/app/views/pages/about_us.liquid.haml
396
+ - spec/fixtures/default/app/views/pages/about_us.nb.liquid.haml
397
+ - spec/fixtures/default/app/views/pages/about_us/jane_doe.liquid.haml
398
+ - spec/fixtures/default/app/views/pages/about_us/john_doe.fr.liquid.haml
399
+ - spec/fixtures/default/app/views/pages/about_us/john_doe.liquid.haml
400
+ - spec/fixtures/default/app/views/pages/all.liquid.haml
401
+ - spec/fixtures/default/app/views/pages/archives/news.liquid.haml
402
+ - spec/fixtures/default/app/views/pages/contact.liquid.haml
403
+ - spec/fixtures/default/app/views/pages/contest.liquid.haml
404
+ - spec/fixtures/default/app/views/pages/events.liquid.haml
405
+ - spec/fixtures/default/app/views/pages/filtered.liquid.haml
406
+ - spec/fixtures/default/app/views/pages/grunge_bands.liquid.haml
407
+ - spec/fixtures/default/app/views/pages/index.fr.liquid.haml
408
+ - spec/fixtures/default/app/views/pages/index.liquid.haml
409
+ - spec/fixtures/default/app/views/pages/music.fr.liquid.haml
410
+ - spec/fixtures/default/app/views/pages/music.liquid.haml
411
+ - spec/fixtures/default/app/views/pages/songs/template.fr.liquid.haml
412
+ - spec/fixtures/default/app/views/pages/songs/template.liquid.haml
413
+ - spec/fixtures/default/app/views/pages/songs/template/band.liquid.haml
414
+ - spec/fixtures/default/app/views/pages/store.fr.liquid.haml
415
+ - spec/fixtures/default/app/views/pages/store.liquid
416
+ - spec/fixtures/default/app/views/pages/tags/nav.liquid.haml
417
+ - spec/fixtures/default/app/views/pages/tags/nav_in_deep.liquid.haml
418
+ - spec/fixtures/default/app/views/pages/unlisted_pages.liquid.haml
419
+ - spec/fixtures/default/app/views/snippets/A_Complicated-one.liquid.haml
420
+ - spec/fixtures/default/app/views/snippets/footer.liquid.haml
421
+ - spec/fixtures/default/app/views/snippets/header.liquid.haml
422
+ - spec/fixtures/default/app/views/snippets/song.fr.liquid.haml
423
+ - spec/fixtures/default/app/views/snippets/song.liquid
424
+ - spec/fixtures/default/config/deploy.yml
425
+ - spec/fixtures/default/config/deploy_example.yml
426
+ - spec/fixtures/default/config/site.yml
427
+ - spec/fixtures/default/config/translations.yml
428
+ - spec/fixtures/default/data/bands.yml
429
+ - spec/fixtures/default/data/events.yml
430
+ - spec/fixtures/default/data/songs.yml
431
+ - spec/fixtures/default/data/updates.yml
432
+ - spec/fixtures/default/public/fonts/chunkfive-webfont.eot
433
+ - spec/fixtures/default/public/fonts/chunkfive-webfont.svg
434
+ - spec/fixtures/default/public/fonts/chunkfive-webfont.ttf
435
+ - spec/fixtures/default/public/fonts/chunkfive-webfont.woff
436
+ - spec/fixtures/default/public/fonts/chunkfive.css
437
+ - spec/fixtures/default/public/fonts/chunkfive.otf
438
+ - spec/fixtures/default/public/images/nav_on.png
439
+ - spec/fixtures/default/public/images/photo_frame.png
440
+ - spec/fixtures/default/public/images/sep.png
441
+ - spec/fixtures/default/public/images/top.jpg
442
+ - spec/fixtures/default/public/javascripts/application.js.coffee
443
+ - spec/fixtures/default/public/javascripts/common.js
444
+ - spec/fixtures/default/public/samples/asset_collections/cover.jpg
445
+ - spec/fixtures/default/public/samples/photo.jpg
446
+ - spec/fixtures/default/public/samples/photo_2.jpg
447
+ - spec/fixtures/default/public/stylesheets/application.css
448
+ - spec/fixtures/default/public/stylesheets/other/extra.css.less
449
+ - spec/fixtures/default/public/stylesheets/other/style.css.scss
450
+ - spec/fixtures/default/public/stylesheets/reboot.css
451
+ - spec/integration/integration_helper.rb
452
+ - spec/integration/server/basic_spec.rb
453
+ - spec/integration/server/contact_form_spec.rb
454
+ - spec/integration/server/liquid_spec.rb
455
+ - spec/integration/server/with_scope_spec.rb
456
+ - spec/locales/locales_spec.rb
457
+ - spec/spec_helper.rb
458
+ - spec/support.rb
459
+ - spec/support/examples/locale_file.rb
460
+ - spec/support/examples/matching_locale.rb
461
+ - spec/support/helpers.rb
462
+ - spec/support/matchers/hash.rb
463
+ homepage: https://github.com/locomotivecms/steam
464
+ licenses:
465
+ - MIT
466
+ metadata: {}
467
+ post_install_message:
468
+ rdoc_options: []
469
+ require_paths:
470
+ - lib
471
+ required_ruby_version: !ruby/object:Gem::Requirement
472
+ requirements:
473
+ - - "~>"
474
+ - !ruby/object:Gem::Version
475
+ version: '2.0'
476
+ required_rubygems_version: !ruby/object:Gem::Requirement
477
+ requirements:
478
+ - - ">="
479
+ - !ruby/object:Gem::Version
480
+ version: '0'
481
+ requirements: []
482
+ rubyforge_project:
483
+ rubygems_version: 2.1.11
484
+ signing_key:
485
+ specification_version: 4
486
+ summary: The LocomotiveCMS steam is a technical piece for compiled and steam front
487
+ end stuff for LocomotiveCMS libraries
488
+ test_files:
489
+ - spec/fixtures/default/README
490
+ - spec/fixtures/default/app/content_types/bands.yml
491
+ - spec/fixtures/default/app/content_types/events.yml
492
+ - spec/fixtures/default/app/content_types/messages.yml
493
+ - spec/fixtures/default/app/content_types/songs.yml
494
+ - spec/fixtures/default/app/content_types/updates.yml
495
+ - spec/fixtures/default/app/views/pages/404.liquid.haml
496
+ - spec/fixtures/default/app/views/pages/about_us.fr.liquid.haml
497
+ - spec/fixtures/default/app/views/pages/about_us.liquid.haml
498
+ - spec/fixtures/default/app/views/pages/about_us.nb.liquid.haml
499
+ - spec/fixtures/default/app/views/pages/about_us/jane_doe.liquid.haml
500
+ - spec/fixtures/default/app/views/pages/about_us/john_doe.fr.liquid.haml
501
+ - spec/fixtures/default/app/views/pages/about_us/john_doe.liquid.haml
502
+ - spec/fixtures/default/app/views/pages/all.liquid.haml
503
+ - spec/fixtures/default/app/views/pages/archives/news.liquid.haml
504
+ - spec/fixtures/default/app/views/pages/contact.liquid.haml
505
+ - spec/fixtures/default/app/views/pages/contest.liquid.haml
506
+ - spec/fixtures/default/app/views/pages/events.liquid.haml
507
+ - spec/fixtures/default/app/views/pages/filtered.liquid.haml
508
+ - spec/fixtures/default/app/views/pages/grunge_bands.liquid.haml
509
+ - spec/fixtures/default/app/views/pages/index.fr.liquid.haml
510
+ - spec/fixtures/default/app/views/pages/index.liquid.haml
511
+ - spec/fixtures/default/app/views/pages/music.fr.liquid.haml
512
+ - spec/fixtures/default/app/views/pages/music.liquid.haml
513
+ - spec/fixtures/default/app/views/pages/songs/template.fr.liquid.haml
514
+ - spec/fixtures/default/app/views/pages/songs/template.liquid.haml
515
+ - spec/fixtures/default/app/views/pages/songs/template/band.liquid.haml
516
+ - spec/fixtures/default/app/views/pages/store.fr.liquid.haml
517
+ - spec/fixtures/default/app/views/pages/store.liquid
518
+ - spec/fixtures/default/app/views/pages/tags/nav.liquid.haml
519
+ - spec/fixtures/default/app/views/pages/tags/nav_in_deep.liquid.haml
520
+ - spec/fixtures/default/app/views/pages/unlisted_pages.liquid.haml
521
+ - spec/fixtures/default/app/views/snippets/A_Complicated-one.liquid.haml
522
+ - spec/fixtures/default/app/views/snippets/footer.liquid.haml
523
+ - spec/fixtures/default/app/views/snippets/header.liquid.haml
524
+ - spec/fixtures/default/app/views/snippets/song.fr.liquid.haml
525
+ - spec/fixtures/default/app/views/snippets/song.liquid
526
+ - spec/fixtures/default/config/deploy.yml
527
+ - spec/fixtures/default/config/deploy_example.yml
528
+ - spec/fixtures/default/config/site.yml
529
+ - spec/fixtures/default/config/translations.yml
530
+ - spec/fixtures/default/data/bands.yml
531
+ - spec/fixtures/default/data/events.yml
532
+ - spec/fixtures/default/data/songs.yml
533
+ - spec/fixtures/default/data/updates.yml
534
+ - spec/fixtures/default/public/fonts/chunkfive-webfont.eot
535
+ - spec/fixtures/default/public/fonts/chunkfive-webfont.svg
536
+ - spec/fixtures/default/public/fonts/chunkfive-webfont.ttf
537
+ - spec/fixtures/default/public/fonts/chunkfive-webfont.woff
538
+ - spec/fixtures/default/public/fonts/chunkfive.css
539
+ - spec/fixtures/default/public/fonts/chunkfive.otf
540
+ - spec/fixtures/default/public/images/nav_on.png
541
+ - spec/fixtures/default/public/images/photo_frame.png
542
+ - spec/fixtures/default/public/images/sep.png
543
+ - spec/fixtures/default/public/images/top.jpg
544
+ - spec/fixtures/default/public/javascripts/application.js.coffee
545
+ - spec/fixtures/default/public/javascripts/common.js
546
+ - spec/fixtures/default/public/samples/asset_collections/cover.jpg
547
+ - spec/fixtures/default/public/samples/photo.jpg
548
+ - spec/fixtures/default/public/samples/photo_2.jpg
549
+ - spec/fixtures/default/public/stylesheets/application.css
550
+ - spec/fixtures/default/public/stylesheets/other/extra.css.less
551
+ - spec/fixtures/default/public/stylesheets/other/style.css.scss
552
+ - spec/fixtures/default/public/stylesheets/reboot.css
553
+ - spec/integration/integration_helper.rb
554
+ - spec/integration/server/basic_spec.rb
555
+ - spec/integration/server/contact_form_spec.rb
556
+ - spec/integration/server/liquid_spec.rb
557
+ - spec/integration/server/with_scope_spec.rb
558
+ - spec/locales/locales_spec.rb
559
+ - spec/spec_helper.rb
560
+ - spec/support.rb
561
+ - spec/support/examples/locale_file.rb
562
+ - spec/support/examples/matching_locale.rb
563
+ - spec/support/helpers.rb
564
+ - spec/support/matchers/hash.rb