locomotivecms_steam 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be08a6c057a0d05663e1564b6c1ef395d389d7d070a87e1a242a86d0200c1552
|
4
|
+
data.tar.gz: 69000665df92a36611e86e5b9187a4e61bfc28f8d115f61db9cdb4f815dddb28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93b8824303d4a8b3aff815393c24a7acd206c0725dfea17653204371b05024e7613fadec33d93fb54ee20069fc918fd8bf513a1b30e6631680a7666e2d444f0a
|
7
|
+
data.tar.gz: '018d6823e5f6aeb95fda7e37e79a4cd798c2446816289d43d94c5aa9cf0a711eaaffcaf2c811d5273201d16b164a047d7d848e69d7db7018e92f4317f9cbb933'
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
locomotivecms_steam (1.4.
|
4
|
+
locomotivecms_steam (1.4.1)
|
5
5
|
RedCloth (~> 4.3.2)
|
6
6
|
autoprefixer-rails (~> 8.0.0)
|
7
7
|
bcrypt (~> 3.1.11)
|
@@ -86,7 +86,8 @@ GEM
|
|
86
86
|
haml (5.0.4)
|
87
87
|
temple (>= 0.8.0)
|
88
88
|
tilt
|
89
|
-
httparty (0.16.
|
89
|
+
httparty (0.16.3)
|
90
|
+
mime-types (~> 3.0)
|
90
91
|
multi_xml (>= 0.5.2)
|
91
92
|
i18n (0.9.5)
|
92
93
|
concurrent-ruby (~> 1.0)
|
@@ -107,7 +108,7 @@ GEM
|
|
107
108
|
attr_extras (~> 5.2.0)
|
108
109
|
colorize
|
109
110
|
stringex (~> 2.8.2)
|
110
|
-
mail (2.7.
|
111
|
+
mail (2.7.1)
|
111
112
|
mini_mime (>= 0.1.1)
|
112
113
|
memory_profiler (0.9.10)
|
113
114
|
mime-types (3.1)
|
@@ -123,7 +124,7 @@ GEM
|
|
123
124
|
morphine (0.1.1)
|
124
125
|
multi_json (1.13.1)
|
125
126
|
multi_xml (0.6.0)
|
126
|
-
nokogiri (1.8.
|
127
|
+
nokogiri (1.8.5)
|
127
128
|
mini_portile2 (~> 2.3.0)
|
128
129
|
nokogumbo (1.5.0)
|
129
130
|
nokogiri
|
@@ -173,7 +174,7 @@ GEM
|
|
173
174
|
concurrent-ruby (~> 1.0)
|
174
175
|
rack (> 1, < 3)
|
175
176
|
stackprof (0.2.11)
|
176
|
-
stringex (2.8.
|
177
|
+
stringex (2.8.5)
|
177
178
|
temple (0.8.0)
|
178
179
|
term-ansicolor (1.6.0)
|
179
180
|
tins (~> 1.0)
|
@@ -89,7 +89,6 @@ module Locomotive::Steam
|
|
89
89
|
'page' => page.to_liquid,
|
90
90
|
'models' => Locomotive::Steam::Liquid::Drops::ContentTypes.new,
|
91
91
|
'contents' => Locomotive::Steam::Liquid::Drops::ContentTypes.new,
|
92
|
-
'current_user' => {},
|
93
92
|
'session' => Locomotive::Steam::Liquid::Drops::SessionProxy.new,
|
94
93
|
}.merge(env['steam.liquid_assigns'])
|
95
94
|
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.4.
|
4
|
+
version: 1.4.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: 2018-
|
14
|
+
date: 2018-11-15 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: bundler
|
@@ -503,7 +503,6 @@ files:
|
|
503
503
|
- lib/locomotive/steam/liquid/drops/content_entry.rb
|
504
504
|
- lib/locomotive/steam/liquid/drops/content_entry_collection.rb
|
505
505
|
- lib/locomotive/steam/liquid/drops/content_types.rb
|
506
|
-
- lib/locomotive/steam/liquid/drops/current_user.rb
|
507
506
|
- lib/locomotive/steam/liquid/drops/i18n_base.rb
|
508
507
|
- lib/locomotive/steam/liquid/drops/metafields.rb
|
509
508
|
- lib/locomotive/steam/liquid/drops/page.rb
|
@@ -799,7 +798,6 @@ files:
|
|
799
798
|
- spec/unit/liquid/drops/content_entry_collection_spec.rb
|
800
799
|
- spec/unit/liquid/drops/content_entry_spec.rb
|
801
800
|
- spec/unit/liquid/drops/content_types_spec.rb
|
802
|
-
- spec/unit/liquid/drops/current_user_spec.rb
|
803
801
|
- spec/unit/liquid/drops/metafields_spec.rb
|
804
802
|
- spec/unit/liquid/drops/page_spec.rb
|
805
803
|
- spec/unit/liquid/drops/session_proxy_spec.rb
|
@@ -1077,7 +1075,6 @@ test_files:
|
|
1077
1075
|
- spec/unit/liquid/drops/content_entry_collection_spec.rb
|
1078
1076
|
- spec/unit/liquid/drops/content_entry_spec.rb
|
1079
1077
|
- spec/unit/liquid/drops/content_types_spec.rb
|
1080
|
-
- spec/unit/liquid/drops/current_user_spec.rb
|
1081
1078
|
- spec/unit/liquid/drops/metafields_spec.rb
|
1082
1079
|
- spec/unit/liquid/drops/page_spec.rb
|
1083
1080
|
- spec/unit/liquid/drops/session_proxy_spec.rb
|
@@ -1,23 +0,0 @@
|
|
1
|
-
module Locomotive
|
2
|
-
module Steam
|
3
|
-
module Liquid
|
4
|
-
module Drops
|
5
|
-
class CurrentUser < Base
|
6
|
-
|
7
|
-
def logged_in?
|
8
|
-
@_source.present?
|
9
|
-
end
|
10
|
-
|
11
|
-
def name
|
12
|
-
@_source.name if logged_in?
|
13
|
-
end
|
14
|
-
|
15
|
-
def email
|
16
|
-
@_source.email if logged_in?
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe Locomotive::Steam::Liquid::Drops::CurrentUser do
|
4
|
-
|
5
|
-
let(:drop) { described_class.new(user) }
|
6
|
-
|
7
|
-
subject { drop }
|
8
|
-
|
9
|
-
context 'not logged in' do
|
10
|
-
|
11
|
-
let(:user) { nil }
|
12
|
-
|
13
|
-
describe '#logged_in?' do
|
14
|
-
it { expect(subject.logged_in?).to eq false }
|
15
|
-
end
|
16
|
-
|
17
|
-
describe '#name' do
|
18
|
-
it { expect(subject.name).to eq nil }
|
19
|
-
end
|
20
|
-
|
21
|
-
describe '#email' do
|
22
|
-
it { expect(subject.email).to eq nil }
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
26
|
-
|
27
|
-
context 'logged in' do
|
28
|
-
|
29
|
-
let(:user) { instance_double('User', name: 'John', email: 'john@doe.net') }
|
30
|
-
|
31
|
-
describe '#logged_in?' do
|
32
|
-
it { expect(subject.logged_in?).to eq true }
|
33
|
-
end
|
34
|
-
|
35
|
-
describe '#name' do
|
36
|
-
it { expect(subject.name).to eq 'John' }
|
37
|
-
end
|
38
|
-
|
39
|
-
describe '#email' do
|
40
|
-
it { expect(subject.email).to eq 'john@doe.net' }
|
41
|
-
end
|
42
|
-
|
43
|
-
end
|
44
|
-
|
45
|
-
end
|