locomotivecms_steam 1.3.0.rc2 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -5
- data/Gemfile.lock +84 -82
- data/config/locales/de.yml +7 -5
- data/config/locales/el.yml +154 -0
- data/config/locales/en.yml +6 -1
- data/config/locales/es.yml +7 -1
- data/config/locales/et.yml +4 -0
- data/config/locales/fr.yml +6 -1
- data/config/locales/it.yml +7 -1
- data/config/locales/nb.yml +5 -1
- data/config/locales/nl.yml +8 -0
- data/config/locales/pl.yml +8 -0
- data/config/locales/pt-BR.yml +6 -0
- data/config/locales/ru.yml +9 -1
- data/lib/locomotive/steam/adapters/filesystem/sanitizers/content_entry.rb +1 -1
- data/lib/locomotive/steam/decorators/template_decorator.rb +1 -1
- data/lib/locomotive/steam/entities/content_entry.rb +4 -0
- data/lib/locomotive/steam/entities/content_type.rb +4 -0
- data/lib/locomotive/steam/entities/site.rb +2 -1
- data/lib/locomotive/steam/liquid/drops/content_entry.rb +1 -1
- data/lib/locomotive/steam/liquid/drops/site.rb +1 -1
- data/lib/locomotive/steam/middlewares/auth.rb +29 -3
- data/lib/locomotive/steam/models/concerns/validation.rb +7 -8
- data/lib/locomotive/steam/models/i18n_field.rb +4 -2
- data/lib/locomotive/steam/repositories/content_entry_repository.rb +9 -1
- data/lib/locomotive/steam/services.rb +1 -1
- data/lib/locomotive/steam/services/asset_host_service.rb +21 -17
- data/lib/locomotive/steam/services/auth_service.rb +93 -9
- data/lib/locomotive/steam/services/content_entry_service.rb +4 -1
- data/lib/locomotive/steam/version.rb +1 -1
- data/locomotivecms_steam.gemspec +10 -10
- data/spec/fixtures/default/app/content_types/accounts.yml +2 -1
- data/spec/fixtures/default/app/content_types/songs.yml +2 -2
- data/spec/fixtures/default/app/views/pages/account/sign_up.liquid +52 -0
- data/spec/fixtures/default/config/translations.yml +4 -0
- data/spec/fixtures/default/data/accounts.yml +1 -1
- data/spec/fixtures/default/data/songs.yml +1 -0
- data/spec/fixtures/mongodb/locomotive_accounts.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_accounts.metadata.json +1 -1
- data/spec/fixtures/mongodb/locomotive_activities.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_activities.metadata.json +1 -1
- data/spec/fixtures/mongodb/locomotive_content_assets.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_content_assets.metadata.json +1 -1
- data/spec/fixtures/mongodb/locomotive_content_entries.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_content_entries.metadata.json +1 -1
- data/spec/fixtures/mongodb/locomotive_content_types.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_content_types.metadata.json +1 -1
- data/spec/fixtures/mongodb/locomotive_pages.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_pages.metadata.json +1 -1
- data/spec/fixtures/mongodb/locomotive_sites.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_sites.metadata.json +1 -1
- data/spec/fixtures/mongodb/locomotive_snippets.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_snippets.metadata.json +1 -1
- data/spec/fixtures/mongodb/locomotive_theme_assets.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_theme_assets.metadata.json +1 -1
- data/spec/fixtures/mongodb/locomotive_translations.bson +0 -0
- data/spec/fixtures/mongodb/locomotive_translations.metadata.json +1 -1
- data/spec/integration/repositories/content_entry_repository_spec.rb +1 -1
- data/spec/integration/repositories/page_repository_spec.rb +2 -2
- data/spec/integration/repositories/theme_asset_repository_spec.rb +1 -1
- data/spec/integration/repositories/translation_repository_spec.rb +1 -1
- data/spec/integration/server/assets_spec.rb +1 -1
- data/spec/integration/server/auth_spec.rb +70 -0
- data/spec/integration/services/content_entry_service_spec.rb +1 -1
- data/spec/support/helpers.rb +1 -1
- data/spec/unit/adapters/filesystem/yaml_loaders/content_entry_spec.rb +1 -1
- data/spec/unit/adapters/filesystem/yaml_loaders/page_spec.rb +7 -7
- data/spec/unit/adapters/filesystem/yaml_loaders/translation_spec.rb +1 -1
- data/spec/unit/entities/content_entry_spec.rb +9 -0
- data/spec/unit/entities/content_type_spec.rb +7 -0
- data/spec/unit/entities/site_spec.rb +15 -0
- data/spec/unit/liquid/drops/content_entry_spec.rb +41 -2
- data/spec/unit/liquid/drops/site_spec.rb +2 -1
- data/spec/unit/liquid/filters/html_spec.rb +58 -1
- data/spec/unit/models/i18n_field_spec.rb +8 -0
- data/spec/unit/repositories/content_entry_repository_spec.rb +13 -0
- data/spec/unit/services/asset_host_service_spec.rb +27 -3
- data/spec/unit/services/auth_service_spec.rb +134 -8
- data/spec/unit/services/content_entry_service_spec.rb +1 -1
- metadata +27 -24
@@ -48,7 +48,7 @@ describe Locomotive::Steam::ContentEntryService do
|
|
48
48
|
|
49
49
|
before do
|
50
50
|
allow(entry_repository).to receive(:exists?).with(title: 'Hello world').and_return(true)
|
51
|
-
expect(entry.errors).to receive(:add).with(:title, :
|
51
|
+
expect(entry.errors).to receive(:add).with(:title, :taken).and_return(true)
|
52
52
|
end
|
53
53
|
|
54
54
|
it { is_expected.to eq false }
|
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.3.0
|
4
|
+
version: 1.3.0
|
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:
|
14
|
+
date: 2018-01-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -47,56 +47,56 @@ dependencies:
|
|
47
47
|
requirements:
|
48
48
|
- - "~>"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 2.4.
|
50
|
+
version: 2.4.3
|
51
51
|
type: :development
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - "~>"
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: 2.4.
|
57
|
+
version: 2.4.3
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: origin
|
60
60
|
requirement: !ruby/object:Gem::Requirement
|
61
61
|
requirements:
|
62
62
|
- - "~>"
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: 2.3.
|
64
|
+
version: 2.3.1
|
65
65
|
type: :development
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
69
|
- - "~>"
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version: 2.3.
|
71
|
+
version: 2.3.1
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
73
|
name: nokogiri
|
74
74
|
requirement: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
76
|
- - "~>"
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: 1.
|
78
|
+
version: 1.8.1
|
79
79
|
type: :runtime
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
83
|
- - "~>"
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: 1.
|
85
|
+
version: 1.8.1
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: sanitize
|
88
88
|
requirement: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
90
|
- - "~>"
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: 4.
|
92
|
+
version: 4.5.0
|
93
93
|
type: :runtime
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
97
|
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: 4.
|
99
|
+
version: 4.5.0
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
101
|
name: morphine
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,14 +117,14 @@ dependencies:
|
|
117
117
|
requirements:
|
118
118
|
- - "~>"
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: 0.
|
120
|
+
version: 0.15.6
|
121
121
|
type: :runtime
|
122
122
|
prerelease: false
|
123
123
|
version_requirements: !ruby/object:Gem::Requirement
|
124
124
|
requirements:
|
125
125
|
- - "~>"
|
126
126
|
- !ruby/object:Gem::Version
|
127
|
-
version: 0.
|
127
|
+
version: 0.15.6
|
128
128
|
- !ruby/object:Gem::Dependency
|
129
129
|
name: chronic
|
130
130
|
requirement: !ruby/object:Gem::Requirement
|
@@ -201,14 +201,14 @@ dependencies:
|
|
201
201
|
requirements:
|
202
202
|
- - "~>"
|
203
203
|
- !ruby/object:Gem::Version
|
204
|
-
version: 1.1.
|
204
|
+
version: 1.1.4
|
205
205
|
type: :runtime
|
206
206
|
prerelease: false
|
207
207
|
version_requirements: !ruby/object:Gem::Requirement
|
208
208
|
requirements:
|
209
209
|
- - "~>"
|
210
210
|
- !ruby/object:Gem::Version
|
211
|
-
version: 1.1.
|
211
|
+
version: 1.1.4
|
212
212
|
- !ruby/object:Gem::Dependency
|
213
213
|
name: moneta
|
214
214
|
requirement: !ruby/object:Gem::Requirement
|
@@ -243,28 +243,28 @@ dependencies:
|
|
243
243
|
requirements:
|
244
244
|
- - "~>"
|
245
245
|
- !ruby/object:Gem::Version
|
246
|
-
version: 3.4.
|
246
|
+
version: 3.4.25
|
247
247
|
type: :runtime
|
248
248
|
prerelease: false
|
249
249
|
version_requirements: !ruby/object:Gem::Requirement
|
250
250
|
requirements:
|
251
251
|
- - "~>"
|
252
252
|
- !ruby/object:Gem::Version
|
253
|
-
version: 3.4.
|
253
|
+
version: 3.4.25
|
254
254
|
- !ruby/object:Gem::Dependency
|
255
255
|
name: uglifier
|
256
256
|
requirement: !ruby/object:Gem::Requirement
|
257
257
|
requirements:
|
258
258
|
- - "~>"
|
259
259
|
- !ruby/object:Gem::Version
|
260
|
-
version:
|
260
|
+
version: 4.1.3
|
261
261
|
type: :runtime
|
262
262
|
prerelease: false
|
263
263
|
version_requirements: !ruby/object:Gem::Requirement
|
264
264
|
requirements:
|
265
265
|
- - "~>"
|
266
266
|
- !ruby/object:Gem::Version
|
267
|
-
version:
|
267
|
+
version: 4.1.3
|
268
268
|
- !ruby/object:Gem::Dependency
|
269
269
|
name: coffee-script
|
270
270
|
requirement: !ruby/object:Gem::Requirement
|
@@ -313,14 +313,14 @@ dependencies:
|
|
313
313
|
requirements:
|
314
314
|
- - "~>"
|
315
315
|
- !ruby/object:Gem::Version
|
316
|
-
version: 1.
|
316
|
+
version: 1.16.2
|
317
317
|
type: :runtime
|
318
318
|
prerelease: false
|
319
319
|
version_requirements: !ruby/object:Gem::Requirement
|
320
320
|
requirements:
|
321
321
|
- - "~>"
|
322
322
|
- !ruby/object:Gem::Version
|
323
|
-
version: 1.
|
323
|
+
version: 1.16.2
|
324
324
|
- !ruby/object:Gem::Dependency
|
325
325
|
name: RedCloth
|
326
326
|
requirement: !ruby/object:Gem::Requirement
|
@@ -383,14 +383,14 @@ dependencies:
|
|
383
383
|
requirements:
|
384
384
|
- - "~>"
|
385
385
|
- !ruby/object:Gem::Version
|
386
|
-
version: '1.
|
386
|
+
version: '1.12'
|
387
387
|
type: :runtime
|
388
388
|
prerelease: false
|
389
389
|
version_requirements: !ruby/object:Gem::Requirement
|
390
390
|
requirements:
|
391
391
|
- - "~>"
|
392
392
|
- !ruby/object:Gem::Version
|
393
|
-
version: '1.
|
393
|
+
version: '1.12'
|
394
394
|
- !ruby/object:Gem::Dependency
|
395
395
|
name: locomotivecms-solid
|
396
396
|
requirement: !ruby/object:Gem::Requirement
|
@@ -440,6 +440,7 @@ files:
|
|
440
440
|
- Rakefile
|
441
441
|
- bin/steam.rb
|
442
442
|
- config/locales/de.yml
|
443
|
+
- config/locales/el.yml
|
443
444
|
- config/locales/en.yml
|
444
445
|
- config/locales/es.yml
|
445
446
|
- config/locales/et.yml
|
@@ -645,6 +646,7 @@ files:
|
|
645
646
|
- spec/fixtures/default/app/views/pages/account/me.liquid
|
646
647
|
- spec/fixtures/default/app/views/pages/account/reset_password.liquid
|
647
648
|
- spec/fixtures/default/app/views/pages/account/sign_in.liquid
|
649
|
+
- spec/fixtures/default/app/views/pages/account/sign_up.liquid
|
648
650
|
- spec/fixtures/default/app/views/pages/all.liquid.haml
|
649
651
|
- spec/fixtures/default/app/views/pages/archives.liquid.haml
|
650
652
|
- spec/fixtures/default/app/views/pages/archives/news.liquid.haml
|
@@ -891,9 +893,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
891
893
|
version: '2.0'
|
892
894
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
893
895
|
requirements:
|
894
|
-
- - "
|
896
|
+
- - ">="
|
895
897
|
- !ruby/object:Gem::Version
|
896
|
-
version:
|
898
|
+
version: '0'
|
897
899
|
requirements: []
|
898
900
|
rubyforge_project:
|
899
901
|
rubygems_version: 2.5.2
|
@@ -920,6 +922,7 @@ test_files:
|
|
920
922
|
- spec/fixtures/default/app/views/pages/account/me.liquid
|
921
923
|
- spec/fixtures/default/app/views/pages/account/reset_password.liquid
|
922
924
|
- spec/fixtures/default/app/views/pages/account/sign_in.liquid
|
925
|
+
- spec/fixtures/default/app/views/pages/account/sign_up.liquid
|
923
926
|
- spec/fixtures/default/app/views/pages/all.liquid.haml
|
924
927
|
- spec/fixtures/default/app/views/pages/archives.liquid.haml
|
925
928
|
- spec/fixtures/default/app/views/pages/archives/news.liquid.haml
|