locomotivecms_steam 1.0.0.pre.alpha → 1.0.0.pre.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +49 -34
  4. data/bin/steam.rb +1 -1
  5. data/lib/locomotive/steam.rb +8 -6
  6. data/lib/locomotive/steam/adapters/filesystem/simple_cache_store.rb +4 -0
  7. data/lib/locomotive/steam/adapters/filesystem/yaml_loaders/content_type.rb +1 -1
  8. data/lib/locomotive/steam/adapters/filesystem/yaml_loaders/page.rb +32 -10
  9. data/lib/locomotive/steam/adapters/filesystem/yaml_loaders/theme_asset.rb +31 -1
  10. data/lib/locomotive/steam/decorators/i18n_decorator.rb +1 -1
  11. data/lib/locomotive/steam/decorators/template_decorator.rb +1 -0
  12. data/lib/locomotive/steam/entities/content_entry.rb +9 -1
  13. data/lib/locomotive/steam/entities/content_type_field.rb +4 -0
  14. data/lib/locomotive/steam/entities/theme_asset.rb +8 -0
  15. data/lib/locomotive/steam/initializers/sprockets.rb +49 -0
  16. data/lib/locomotive/steam/liquid/filters/base.rb +5 -6
  17. data/lib/locomotive/steam/liquid/tags/editable/base.rb +4 -5
  18. data/lib/locomotive/steam/liquid/tags/extends.rb +1 -36
  19. data/lib/locomotive/steam/liquid/tags/inherited_block.rb +10 -4
  20. data/lib/locomotive/steam/liquid/tags/snippet.rb +8 -9
  21. data/lib/locomotive/steam/middlewares/dynamic_assets.rb +6 -36
  22. data/lib/locomotive/steam/middlewares/helpers.rb +9 -2
  23. data/lib/locomotive/steam/middlewares/site.rb +10 -2
  24. data/lib/locomotive/steam/models/associations/embedded.rb +1 -1
  25. data/lib/locomotive/steam/models/mapper.rb +2 -1
  26. data/lib/locomotive/steam/repositories.rb +1 -1
  27. data/lib/locomotive/steam/repositories/content_type_field_repository.rb +8 -0
  28. data/lib/locomotive/steam/repositories/theme_asset_repository.rb +1 -1
  29. data/lib/locomotive/steam/server.rb +0 -1
  30. data/lib/locomotive/steam/services.rb +7 -3
  31. data/lib/locomotive/steam/services/asset_host_service.rb +1 -3
  32. data/lib/locomotive/steam/services/image_resizer_service.rb +1 -3
  33. data/lib/locomotive/steam/services/liquid_parser_service.rb +1 -2
  34. data/lib/locomotive/steam/services/url_builder_service.rb +18 -1
  35. data/lib/locomotive/steam/version.rb +1 -1
  36. data/locomotivecms_steam.gemspec +9 -11
  37. data/spec/integration/repositories/theme_asset_repository_spec.rb +10 -0
  38. data/spec/support/helpers.rb +1 -0
  39. data/spec/support/liquid.rb +5 -0
  40. data/spec/unit/adapters/filesystem/simple_cache_store_spec.rb +27 -0
  41. data/spec/unit/adapters/filesystem/yaml_loaders/page_spec.rb +2 -0
  42. data/spec/unit/decorators/i18n_decorator_spec.rb +10 -0
  43. data/spec/unit/entities/content_entry_spec.rb +2 -2
  44. data/spec/unit/entities/content_type_field_spec.rb +15 -5
  45. data/spec/unit/entities/snippet_spec.rb +17 -0
  46. data/spec/unit/initializers/sprockets_spec.rb +25 -0
  47. data/spec/unit/liquid/drops/content_entry_collection_spec.rb +2 -0
  48. data/spec/unit/liquid/filters/html_spec.rb +28 -37
  49. data/spec/unit/liquid/tags/editable/control_spec.rb +4 -3
  50. data/spec/unit/liquid/tags/editable/file_spec.rb +7 -4
  51. data/spec/unit/liquid/tags/editable/text_spec.rb +4 -6
  52. data/spec/unit/liquid/tags/extends_spec.rb +3 -3
  53. data/spec/unit/liquid/tags/inherited_block_spec.rb +2 -2
  54. data/spec/unit/liquid/tags/nav_spec.rb +2 -2
  55. data/spec/unit/liquid/tags/snippet_spec.rb +3 -3
  56. data/spec/unit/middlewares/dynamic_assets_spec.rb +18 -9
  57. data/spec/unit/repositories/content_type_field_repository_spec.rb +51 -0
  58. data/spec/unit/services/url_builder_service_spec.rb +20 -3
  59. metadata +39 -56
  60. data/lib/locomotive/steam/core_ext.rb +0 -6
  61. data/lib/locomotive/steam/core_ext/array.rb +0 -3
  62. data/lib/locomotive/steam/core_ext/boolean/false.rb +0 -3
  63. data/lib/locomotive/steam/core_ext/boolean/true.rb +0 -3
  64. data/lib/locomotive/steam/core_ext/hash.rb +0 -39
  65. data/lib/locomotive/steam/core_ext/kernel.rb +0 -14
  66. data/lib/locomotive/steam/core_ext/string.rb +0 -37
  67. data/spec/fixtures/default/app/views/pages/songs.liquid +0 -6
  68. data/spec/unit/core_ext/string_spec.rb +0 -44
@@ -3,8 +3,8 @@ require 'spec_helper'
3
3
  describe Locomotive::Steam::Liquid::Tags::Editable::Control do
4
4
 
5
5
  let(:page) { instance_double('Page') }
6
- let(:listener) { Liquid::SimpleEventsListener.new }
7
- let(:options) { { events_listener: listener, page: page } }
6
+ let!(:listener) { Liquid::SimpleEventsListener.new }
7
+ let(:options) { { page: page } }
8
8
 
9
9
  let(:source) { "{% editable_control menu, hint: 'some text', options: 'true=Yes,false=No' %}false{% endeditable_control %}" }
10
10
 
@@ -47,7 +47,7 @@ describe Locomotive::Steam::Liquid::Tags::Editable::Control do
47
47
  subject { listener.events.first.first }
48
48
 
49
49
  it 'records the name of the event' do
50
- is_expected.to eq :editable_control
50
+ is_expected.to eq "steam.parse.editable.editable_control"
51
51
  end
52
52
 
53
53
  describe 'attributes' do
@@ -55,6 +55,7 @@ describe Locomotive::Steam::Liquid::Tags::Editable::Control do
55
55
  subject { listener.events.first.last[:attributes] }
56
56
 
57
57
  it { is_expected.to include(block: nil) }
58
+ it { is_expected.to include(type: :editable_control) }
58
59
  it { is_expected.to include(slug: 'menu') }
59
60
  it { is_expected.to include(options: 'true=Yes,false=No') }
60
61
  it { is_expected.to include(hint: 'some text') }
@@ -3,8 +3,8 @@ require 'spec_helper'
3
3
  describe Locomotive::Steam::Liquid::Tags::Editable::File do
4
4
 
5
5
  let(:page) { instance_double('Page', updated_at: DateTime.parse('2007-06-29 21:00:00')) }
6
- let(:listener) { Liquid::SimpleEventsListener.new }
7
- let(:options) { { events_listener: listener, page: page } }
6
+ let!(:listener) { Liquid::SimpleEventsListener.new }
7
+ let(:options) { { page: page } }
8
8
 
9
9
  let(:source) { "{% editable_file banner, hint: 'some text' %}http://www.placehold.it/500x500{% endeditable_file %}" }
10
10
 
@@ -47,7 +47,7 @@ describe Locomotive::Steam::Liquid::Tags::Editable::File do
47
47
  subject { listener.events.first.first }
48
48
 
49
49
  it 'records the name of the event' do
50
- is_expected.to eq :editable_file
50
+ is_expected.to eq 'steam.parse.editable.editable_file'
51
51
  end
52
52
 
53
53
  describe 'attributes' do
@@ -55,6 +55,7 @@ describe Locomotive::Steam::Liquid::Tags::Editable::File do
55
55
  subject { listener.events.first.last[:attributes] }
56
56
 
57
57
  it { is_expected.to include(block: nil) }
58
+ it { is_expected.to include(type: :editable_file) }
58
59
  it { is_expected.to include(slug: 'banner') }
59
60
  it { is_expected.to include(hint: 'some text') }
60
61
  it { is_expected.to include(default_source_url: 'http://www.placehold.it/500x500') }
@@ -71,9 +72,11 @@ describe Locomotive::Steam::Liquid::Tags::Editable::File do
71
72
 
72
73
  let(:page) { instance_double('Page', fullpath: 'hello-world', updated_at: DateTime.parse('2007-06-29 21:00:00')) }
73
74
  let(:element) { instance_double('EditableFile', id: 42, default_source_url: nil, source?: false, source: nil, base_url: '') }
74
- let(:services) { Locomotive::Steam::Services.build_instance(nil) }
75
+ let(:services) { Locomotive::Steam::Services.build_instance }
75
76
  let(:context) { ::Liquid::Context.new({}, {}, { page: page, services: services }) }
76
77
 
78
+ before { allow(services).to receive(:current_site).and_return(nil) }
79
+
77
80
  before { allow(services.editable_element).to receive(:find).and_return(element) }
78
81
 
79
82
  subject { render_template(source, context, options) }
@@ -3,8 +3,8 @@ require 'spec_helper'
3
3
  describe Locomotive::Steam::Liquid::Tags::Editable::Text do
4
4
 
5
5
  let(:page) { instance_double('Page') }
6
- let(:listener) { Liquid::SimpleEventsListener.new }
7
- let(:options) { { events_listener: listener, page: page } }
6
+ let!(:listener) { Liquid::SimpleEventsListener.new }
7
+ let(:options) { { page: page } }
8
8
 
9
9
  let(:source) { "{% editable_text title, hint: 'Simple short text' %}Hello world{% endeditable_text %}" }
10
10
 
@@ -47,7 +47,7 @@ describe Locomotive::Steam::Liquid::Tags::Editable::Text do
47
47
  subject { listener.events.first.first }
48
48
 
49
49
  it 'records the name of the event' do
50
- is_expected.to eq :editable_text
50
+ is_expected.to eq 'steam.parse.editable.editable_text'
51
51
  end
52
52
 
53
53
  describe 'attributes' do
@@ -55,6 +55,7 @@ describe Locomotive::Steam::Liquid::Tags::Editable::Text do
55
55
  subject { listener.events.first.last[:attributes] }
56
56
 
57
57
  it { is_expected.to include(block: nil) }
58
+ it { is_expected.to include(type: :editable_text) }
58
59
  it { is_expected.to include(slug: 'title') }
59
60
  it { is_expected.to include(hint: 'Simple short text') }
60
61
  it { is_expected.to include(format: 'html') }
@@ -115,9 +116,6 @@ describe Locomotive::Steam::Liquid::Tags::Editable::Text do
115
116
 
116
117
  describe 'deprecated elements' do
117
118
 
118
- let(:listener) { Liquid::SimpleEventsListener.new }
119
- let(:options) { { events_listener: listener } }
120
-
121
119
  describe 'deprecated editable_long_text' do
122
120
 
123
121
  let(:source) { "{% editable_long_text body %}Hello world{% endeditable_long_text %}" }
@@ -5,10 +5,10 @@ describe Locomotive::Steam::Liquid::Tags::Extends do
5
5
  let(:source) { '{% extends parent %} ' }
6
6
  let(:page) { instance_double('Page', title: 'About us') }
7
7
  let(:site) { instance_double('Site', default_locale: :en) }
8
- let(:listener) { Liquid::SimpleEventsListener.new }
8
+ let!(:listener) { Liquid::SimpleEventsListener.new }
9
9
  let(:finder) { Locomotive::Steam::ParentFinderService.new(instance_double('PageRepository', site: site, locale: :en)) }
10
10
  let(:parser) { Locomotive::Steam::LiquidParserService.new }
11
- let(:options) { { events_listener: listener, parent_finder: finder, page: page, parser: parser } }
11
+ let(:options) { { parent_finder: finder, page: page, parser: parser } }
12
12
 
13
13
  before do
14
14
  expect(finder.repository).to receive(:parent_of).with(page).and_return(parent)
@@ -29,7 +29,7 @@ describe Locomotive::Steam::Liquid::Tags::Extends do
29
29
 
30
30
  let(:parent) { instance_double('Index', localized_attributes: { source: true, template: true }, source: { en: 'Hello world!' }, template: { en: nil }) }
31
31
 
32
- it { expect(listener.event_names.first).to eq :extends }
32
+ it { expect(listener.event_names.first).to eq 'steam.parse.extends' }
33
33
  it { expect(template.render).to eq 'Hello world!' }
34
34
  it { expect(options[:page]).to eq page }
35
35
 
@@ -7,9 +7,9 @@ describe Locomotive::Steam::Liquid::Tags::InheritedBlock do
7
7
  let(:source) { '{% extends parent %}{% block product %}Skis{% endblock %}' }
8
8
  let(:page) { instance_double('Page') }
9
9
 
10
- let(:listener) { Liquid::SimpleEventsListener.new }
10
+ let!(:listener) { Liquid::SimpleEventsListener.new }
11
11
  let(:finder) { instance_double('Finder', find: parent) }
12
- let(:options) { { page: page, events_listener: listener, parent_finder: finder, parser: Locomotive::Steam::LiquidParserService.new } }
12
+ let(:options) { { page: page, parent_finder: finder, parser: Locomotive::Steam::LiquidParserService.new } }
13
13
 
14
14
  let!(:template) { parse_template(source, options) }
15
15
 
@@ -22,7 +22,7 @@ describe 'Locomotive::Steam::Liquid::Tags::Nav' do
22
22
  let(:source) { '{% nav site %}' }
23
23
  let(:site) { instance_double('Site', name: 'My portfolio', default_locale: 'en') }
24
24
  let(:page) { index }
25
- let(:services) { Locomotive::Steam::Services.build_instance(nil) }
25
+ let(:services) { Locomotive::Steam::Services.build_instance }
26
26
  let(:repository) { services.repositories.page }
27
27
  let(:assigns) { {} }
28
28
  let(:registers) { { services: services, site: site, page: page } }
@@ -31,7 +31,7 @@ describe 'Locomotive::Steam::Liquid::Tags::Nav' do
31
31
 
32
32
  let(:output) { render_template(source, context, options) }
33
33
 
34
- before { services.repositories.current_site = site }
34
+ before { allow(services).to receive(:current_site).and_return(site) }
35
35
 
36
36
  describe 'rendering' do
37
37
 
@@ -12,12 +12,12 @@ describe Locomotive::Steam::Liquid::Tags::Snippet do
12
12
  describe 'parsing' do
13
13
 
14
14
  let(:page) { instance_double('Page') }
15
- let(:listener) { Liquid::SimpleEventsListener.new }
16
- let(:options) { { events_listener: listener, page: page, snippet_finder: finder, parser: services.liquid_parser } }
15
+ let!(:listener) { Liquid::SimpleEventsListener.new }
16
+ let(:options) { { page: page, snippet_finder: finder, parser: services.liquid_parser } }
17
17
 
18
18
  let!(:template) { parse_template(source, options) }
19
19
 
20
- it { expect(listener.event_names.first).to eq :include }
20
+ it { expect(listener.event_names.first).to eq 'steam.parse.include' }
21
21
 
22
22
  # describe 'with an editable_element inside', pending: true do
23
23
 
@@ -1,24 +1,33 @@
1
1
  require 'spec_helper'
2
2
 
3
- require 'sprockets'
4
3
  require_relative '../../../lib/locomotive/steam/middlewares/dynamic_assets'
5
4
 
6
5
  describe Locomotive::Steam::Middlewares::DynamicAssets do
7
6
 
8
- let(:app) { ->(env) { [200, env, 'app'] }}
9
- let(:options) { { root: File.dirname(__FILE__), minify: true } }
7
+ let(:app) { ->(env) { [200, env, 'app'] }}
8
+ let(:options) { { root: File.dirname(__FILE__), minify: true } }
9
+ let(:middleware) { described_class.new(app, options) }
10
10
 
11
- let(:middleware) { Locomotive::Steam::Middlewares::DynamicAssets.new(app, options) }
11
+ describe '#call' do
12
12
 
13
- describe 'java not installed' do
13
+ let(:env) { { 'PATH_INFO' => '/stylesheets/application.css' } }
14
+ subject { middleware.call(env) }
14
15
 
15
- let(:sprockets) { instance_double('Sprockets') }
16
+ it 'calls sprockets to process the asset' do
17
+ expect(middleware.assets).to receive(:call).with(env).and_return(true)
18
+ is_expected.to eq true
19
+ end
16
20
 
17
- before { allow(middleware).to receive(:is_java_installed?).and_return(false) }
21
+ context 'not an asset' do
18
22
 
19
- subject { middleware.send(:install_yui_compressor, sprockets, options) }
23
+ let(:env) { { 'PATH_INFO' => '/index' } }
20
24
 
21
- it { is_expected.to eq(false) }
25
+ it 'bypasses sprockets' do
26
+ expect(middleware.assets).not_to receive(:call)
27
+ is_expected.not_to eq nil
28
+ end
29
+
30
+ end
22
31
 
23
32
  end
24
33
 
@@ -0,0 +1,51 @@
1
+ require 'spec_helper'
2
+
3
+ require_relative '../../../lib/locomotive/steam/adapters/memory.rb'
4
+
5
+ describe Locomotive::Steam::ContentTypeFieldRepository do
6
+
7
+ let(:collection) { [{ name: 'title', type: 'string' }, { name: 'body', type: 'text' }] }
8
+ let(:adapter) { Locomotive::Steam::MemoryAdapter.new(nil) }
9
+ let(:repository) { described_class.new(adapter) }
10
+
11
+ before { allow(adapter).to receive(:collection).and_return(collection) }
12
+
13
+ describe '#by_name' do
14
+
15
+ let(:name) { nil }
16
+
17
+ subject { repository.by_name(name) }
18
+
19
+ it { expect(subject).to eq nil }
20
+
21
+ context 'with an existing name' do
22
+
23
+ let(:name) { 'title' }
24
+ it { expect(subject.type).to eq :string }
25
+
26
+ end
27
+
28
+ end
29
+
30
+ describe '#no_associations' do
31
+
32
+ let(:collection) { [{ name: 'title', type: 'string' }, { name: 'author', type: 'belongs_to' }] }
33
+
34
+ subject { repository.no_associations }
35
+
36
+ it { expect(subject.size).to eq 1 }
37
+ it { expect(subject.size).to eq 1 }
38
+
39
+ end
40
+
41
+ describe '#unique' do
42
+
43
+ let(:collection) { [{ name: 'name', type: 'string' }, { name: 'email', type: 'email', unique: true }] }
44
+
45
+ subject { repository.unique }
46
+
47
+ it { expect(subject.keys).to eq ['email'] }
48
+
49
+ end
50
+
51
+ end
@@ -2,9 +2,11 @@ require 'spec_helper'
2
2
 
3
3
  describe Locomotive::Steam::UrlBuilderService do
4
4
 
5
- let(:site) { instance_double('Site', default_locale: 'en') }
6
- let(:locale) { 'en' }
7
- let(:service) { described_class.new(site, locale) }
5
+ let(:mounted_on) { nil }
6
+ let(:request) { instance_double('Request', env: { 'steam.mounted_on' => mounted_on }) }
7
+ let(:site) { instance_double('Site', default_locale: 'en') }
8
+ let(:locale) { 'en' }
9
+ let(:service) { described_class.new(site, locale, request) }
8
10
 
9
11
  describe '#url_for' do
10
12
 
@@ -19,6 +21,11 @@ describe Locomotive::Steam::UrlBuilderService do
19
21
  let(:locale) { 'fr' }
20
22
  it { is_expected.to eq '/fr/about-us' }
21
23
 
24
+ context 'with a prefix' do
25
+ let(:mounted_on) { '/foo' }
26
+ it { is_expected.to eq '/foo/fr/about-us' }
27
+ end
28
+
22
29
  end
23
30
 
24
31
  describe 'no need to put the index slug' do
@@ -31,6 +38,11 @@ describe Locomotive::Steam::UrlBuilderService do
31
38
  let(:locale) { 'fr' }
32
39
  it { is_expected.to eq '/fr' }
33
40
 
41
+ context 'with a prefix' do
42
+ let(:mounted_on) { '/foo' }
43
+ it { is_expected.to eq '/foo/fr' }
44
+ end
45
+
34
46
  end
35
47
 
36
48
  end
@@ -41,6 +53,11 @@ describe Locomotive::Steam::UrlBuilderService do
41
53
  let(:page) { instance_double('Template', fullpath: 'articles/content_type_template', templatized?: true, content_entry: article) }
42
54
  it { is_expected.to eq '/articles/hello-world' }
43
55
 
56
+ context 'with a prefix' do
57
+ let(:mounted_on) { '/foo' }
58
+ it { is_expected.to eq '/foo/articles/hello-world' }
59
+ end
60
+
44
61
  end
45
62
 
46
63
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotivecms_steam
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.alpha
4
+ version: 1.0.0.pre.alpha.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didier Lafforgue
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-03-28 00:00:00.000000000 Z
14
+ date: 2015-05-18 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -69,48 +69,20 @@ dependencies:
69
69
  - - "~>"
70
70
  - !ruby/object:Gem::Version
71
71
  version: 2.1.1
72
- - !ruby/object:Gem::Dependency
73
- name: activesupport
74
- requirement: !ruby/object:Gem::Requirement
75
- requirements:
76
- - - "~>"
77
- - !ruby/object:Gem::Version
78
- version: 4.2.1
79
- type: :runtime
80
- prerelease: false
81
- version_requirements: !ruby/object:Gem::Requirement
82
- requirements:
83
- - - "~>"
84
- - !ruby/object:Gem::Version
85
- version: 4.2.1
86
- - !ruby/object:Gem::Dependency
87
- name: stringex
88
- requirement: !ruby/object:Gem::Requirement
89
- requirements:
90
- - - "~>"
91
- - !ruby/object:Gem::Version
92
- version: 2.5.2
93
- type: :runtime
94
- prerelease: false
95
- version_requirements: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - "~>"
98
- - !ruby/object:Gem::Version
99
- version: 2.5.2
100
72
  - !ruby/object:Gem::Dependency
101
73
  name: sanitize
102
74
  requirement: !ruby/object:Gem::Requirement
103
75
  requirements:
104
76
  - - "~>"
105
77
  - !ruby/object:Gem::Version
106
- version: 3.1.2
78
+ version: 4.0.0
107
79
  type: :runtime
108
80
  prerelease: false
109
81
  version_requirements: !ruby/object:Gem::Requirement
110
82
  requirements:
111
83
  - - "~>"
112
84
  - !ruby/object:Gem::Version
113
- version: 3.1.2
85
+ version: 4.0.0
114
86
  - !ruby/object:Gem::Dependency
115
87
  name: morphine
116
88
  requirement: !ruby/object:Gem::Requirement
@@ -187,14 +159,14 @@ dependencies:
187
159
  requirements:
188
160
  - - "~>"
189
161
  - !ruby/object:Gem::Version
190
- version: 1.0.7
162
+ version: 1.0.9
191
163
  type: :runtime
192
164
  prerelease: false
193
165
  version_requirements: !ruby/object:Gem::Requirement
194
166
  requirements:
195
167
  - - "~>"
196
168
  - !ruby/object:Gem::Version
197
- version: 1.0.7
169
+ version: 1.0.9
198
170
  - !ruby/object:Gem::Dependency
199
171
  name: moneta
200
172
  requirement: !ruby/object:Gem::Requirement
@@ -251,20 +223,34 @@ dependencies:
251
223
  - - "~>"
252
224
  - !ruby/object:Gem::Version
253
225
  version: 1.3.1
226
+ - !ruby/object:Gem::Dependency
227
+ name: sprockets-less
228
+ requirement: !ruby/object:Gem::Requirement
229
+ requirements:
230
+ - - "~>"
231
+ - !ruby/object:Gem::Version
232
+ version: 0.6.1
233
+ type: :runtime
234
+ prerelease: false
235
+ version_requirements: !ruby/object:Gem::Requirement
236
+ requirements:
237
+ - - "~>"
238
+ - !ruby/object:Gem::Version
239
+ version: 0.6.1
254
240
  - !ruby/object:Gem::Dependency
255
241
  name: coffee-script
256
242
  requirement: !ruby/object:Gem::Requirement
257
243
  requirements:
258
244
  - - "~>"
259
245
  - !ruby/object:Gem::Version
260
- version: 2.3.0
246
+ version: 2.4.1
261
247
  type: :runtime
262
248
  prerelease: false
263
249
  version_requirements: !ruby/object:Gem::Requirement
264
250
  requirements:
265
251
  - - "~>"
266
252
  - !ruby/object:Gem::Version
267
- version: 2.3.0
253
+ version: 2.4.1
268
254
  - !ruby/object:Gem::Dependency
269
255
  name: compass
270
256
  requirement: !ruby/object:Gem::Requirement
@@ -285,14 +271,14 @@ dependencies:
285
271
  requirements:
286
272
  - - "~>"
287
273
  - !ruby/object:Gem::Version
288
- version: 1.6.0
274
+ version: 1.7.0
289
275
  type: :runtime
290
276
  prerelease: false
291
277
  version_requirements: !ruby/object:Gem::Requirement
292
278
  requirements:
293
279
  - - "~>"
294
280
  - !ruby/object:Gem::Version
295
- version: 1.6.0
281
+ version: 1.7.0
296
282
  - !ruby/object:Gem::Dependency
297
283
  name: RedCloth
298
284
  requirement: !ruby/object:Gem::Requirement
@@ -341,14 +327,14 @@ dependencies:
341
327
  requirements:
342
328
  - - "~>"
343
329
  - !ruby/object:Gem::Version
344
- version: 2.4.3
330
+ version: 2.5.0
345
331
  type: :runtime
346
332
  prerelease: false
347
333
  version_requirements: !ruby/object:Gem::Requirement
348
334
  requirements:
349
335
  - - "~>"
350
336
  - !ruby/object:Gem::Version
351
- version: 2.4.3
337
+ version: 2.5.0
352
338
  - !ruby/object:Gem::Dependency
353
339
  name: locomotivecms-solid
354
340
  requirement: !ruby/object:Gem::Requirement
@@ -369,15 +355,16 @@ dependencies:
369
355
  requirements:
370
356
  - - "~>"
371
357
  - !ruby/object:Gem::Version
372
- version: 0.0.2
358
+ version: 0.0.4
373
359
  type: :runtime
374
360
  prerelease: false
375
361
  version_requirements: !ruby/object:Gem::Requirement
376
362
  requirements:
377
363
  - - "~>"
378
364
  - !ruby/object:Gem::Version
379
- version: 0.0.2
380
- description: The LocomotiveCMS steam is a front end server LocomotiveCMS libraries
365
+ version: 0.0.4
366
+ description: The LocomotiveCMS Steam is the rendering stack used by both Wagon and
367
+ Engine
381
368
  email:
382
369
  - did@locomotivecms.com
383
370
  - papipo@gmail.com
@@ -436,13 +423,6 @@ files:
436
423
  - lib/locomotive/steam/adapters/mongodb/origin.rb
437
424
  - lib/locomotive/steam/adapters/mongodb/query.rb
438
425
  - lib/locomotive/steam/configuration.rb
439
- - lib/locomotive/steam/core_ext.rb
440
- - lib/locomotive/steam/core_ext/array.rb
441
- - lib/locomotive/steam/core_ext/boolean/false.rb
442
- - lib/locomotive/steam/core_ext/boolean/true.rb
443
- - lib/locomotive/steam/core_ext/hash.rb
444
- - lib/locomotive/steam/core_ext/kernel.rb
445
- - lib/locomotive/steam/core_ext/string.rb
446
426
  - lib/locomotive/steam/decorators/i18n_decorator.rb
447
427
  - lib/locomotive/steam/decorators/template_decorator.rb
448
428
  - lib/locomotive/steam/entities/content_entry.rb
@@ -597,7 +577,6 @@ files:
597
577
  - spec/fixtures/default/app/views/pages/index.liquid.haml
598
578
  - spec/fixtures/default/app/views/pages/music.fr.liquid.haml
599
579
  - spec/fixtures/default/app/views/pages/music.liquid.haml
600
- - spec/fixtures/default/app/views/pages/songs.liquid
601
580
  - spec/fixtures/default/app/views/pages/songs/song-number-1.liquid.haml
602
581
  - spec/fixtures/default/app/views/pages/songs/template.fr.liquid.haml
603
582
  - spec/fixtures/default/app/views/pages/songs/template.liquid.haml
@@ -690,6 +669,7 @@ files:
690
669
  - spec/support/matchers/hash.rb
691
670
  - spec/support/pry.rb
692
671
  - spec/support/time.rb
672
+ - spec/unit/adapters/filesystem/simple_cache_store_spec.rb
693
673
  - spec/unit/adapters/filesystem/yaml_loaders/content_entry_spec.rb
694
674
  - spec/unit/adapters/filesystem/yaml_loaders/content_type_spec.rb
695
675
  - spec/unit/adapters/filesystem/yaml_loaders/page_spec.rb
@@ -705,14 +685,15 @@ files:
705
685
  - spec/unit/adapters/mongodb/query_spec.rb
706
686
  - spec/unit/adapters/mongodb_adapter_spec.rb
707
687
  - spec/unit/configuration_spec.rb
708
- - spec/unit/core_ext/string_spec.rb
709
688
  - spec/unit/decorators/i18n_decorator_spec.rb
710
689
  - spec/unit/entities/content_entry_spec.rb
711
690
  - spec/unit/entities/content_type_field_spec.rb
712
691
  - spec/unit/entities/content_type_spec.rb
713
692
  - spec/unit/entities/page_spec.rb
714
693
  - spec/unit/entities/site_spec.rb
694
+ - spec/unit/entities/snippet_spec.rb
715
695
  - spec/unit/initializers/dragonfly_spec.rb
696
+ - spec/unit/initializers/sprockets_spec.rb
716
697
  - spec/unit/liquid/drops/content_entry_collection_spec.rb
717
698
  - spec/unit/liquid/drops/content_entry_spec.rb
718
699
  - spec/unit/liquid/drops/content_types_spec.rb
@@ -756,6 +737,7 @@ files:
756
737
  - spec/unit/models/repository_spec.rb
757
738
  - spec/unit/models/scope_spec.rb
758
739
  - spec/unit/repositories/content_entry_repository_spec.rb
740
+ - spec/unit/repositories/content_type_field_repository_spec.rb
759
741
  - spec/unit/repositories/content_type_repository_spec.rb
760
742
  - spec/unit/repositories/page_repository_spec.rb
761
743
  - spec/unit/repositories/site_repository_spec.rb
@@ -795,8 +777,7 @@ rubyforge_project:
795
777
  rubygems_version: 2.4.5
796
778
  signing_key:
797
779
  specification_version: 4
798
- summary: The LocomotiveCMS steam is a technical piece for compiled and steam front
799
- end stuff for LocomotiveCMS libraries
780
+ summary: The LocomotiveCMS Steam is the rendering stack used by both Wagon and Engine
800
781
  test_files:
801
782
  - spec/fixtures/default/README
802
783
  - spec/fixtures/default/app/content_types/bands.yml
@@ -825,7 +806,6 @@ test_files:
825
806
  - spec/fixtures/default/app/views/pages/index.liquid.haml
826
807
  - spec/fixtures/default/app/views/pages/music.fr.liquid.haml
827
808
  - spec/fixtures/default/app/views/pages/music.liquid.haml
828
- - spec/fixtures/default/app/views/pages/songs.liquid
829
809
  - spec/fixtures/default/app/views/pages/songs/song-number-1.liquid.haml
830
810
  - spec/fixtures/default/app/views/pages/songs/template.fr.liquid.haml
831
811
  - spec/fixtures/default/app/views/pages/songs/template.liquid.haml
@@ -918,6 +898,7 @@ test_files:
918
898
  - spec/support/matchers/hash.rb
919
899
  - spec/support/pry.rb
920
900
  - spec/support/time.rb
901
+ - spec/unit/adapters/filesystem/simple_cache_store_spec.rb
921
902
  - spec/unit/adapters/filesystem/yaml_loaders/content_entry_spec.rb
922
903
  - spec/unit/adapters/filesystem/yaml_loaders/content_type_spec.rb
923
904
  - spec/unit/adapters/filesystem/yaml_loaders/page_spec.rb
@@ -933,14 +914,15 @@ test_files:
933
914
  - spec/unit/adapters/mongodb/query_spec.rb
934
915
  - spec/unit/adapters/mongodb_adapter_spec.rb
935
916
  - spec/unit/configuration_spec.rb
936
- - spec/unit/core_ext/string_spec.rb
937
917
  - spec/unit/decorators/i18n_decorator_spec.rb
938
918
  - spec/unit/entities/content_entry_spec.rb
939
919
  - spec/unit/entities/content_type_field_spec.rb
940
920
  - spec/unit/entities/content_type_spec.rb
941
921
  - spec/unit/entities/page_spec.rb
942
922
  - spec/unit/entities/site_spec.rb
923
+ - spec/unit/entities/snippet_spec.rb
943
924
  - spec/unit/initializers/dragonfly_spec.rb
925
+ - spec/unit/initializers/sprockets_spec.rb
944
926
  - spec/unit/liquid/drops/content_entry_collection_spec.rb
945
927
  - spec/unit/liquid/drops/content_entry_spec.rb
946
928
  - spec/unit/liquid/drops/content_types_spec.rb
@@ -984,6 +966,7 @@ test_files:
984
966
  - spec/unit/models/repository_spec.rb
985
967
  - spec/unit/models/scope_spec.rb
986
968
  - spec/unit/repositories/content_entry_repository_spec.rb
969
+ - spec/unit/repositories/content_type_field_repository_spec.rb
987
970
  - spec/unit/repositories/content_type_repository_spec.rb
988
971
  - spec/unit/repositories/page_repository_spec.rb
989
972
  - spec/unit/repositories/site_repository_spec.rb