exvo_helpers 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +6 -0
- data/README.md +13 -13
- data/lib/exvo_helpers/helpers.rb +16 -12
- data/lib/exvo_helpers/version.rb +1 -1
- data/spec/exvo_helpers/helpers_spec.rb +6 -6
- metadata +2 -2
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -20,11 +20,11 @@ Exvo::Helpers.sso_cookie_domain => 'exvo.local'
|
|
20
20
|
Exvo::Helpers.sso_cookie_secret => 'some secret cookie signing key'
|
21
21
|
|
22
22
|
Exvo::Helpers.auth_host => 'auth.exvo.local'
|
23
|
-
Exvo::Helpers.cdn_host => '
|
23
|
+
Exvo::Helpers.cdn_host => 'home.exvo.local'
|
24
24
|
Exvo::Helpers.cfs_host => 'cfs.exvo.local'
|
25
|
-
Exvo::Helpers.desktop_host => '
|
25
|
+
Exvo::Helpers.desktop_host => 'home.exvo.local'
|
26
26
|
Exvo::Helpers.themes_host => 'themes.exvo.local'
|
27
|
-
Exvo::Helpers.blog_host => '
|
27
|
+
Exvo::Helpers.blog_host => 'www.exvo.local'
|
28
28
|
Exvo::Helpers.contacts_host => 'contacts.exvo.local'
|
29
29
|
Exvo::Helpers.inbox_host => 'inbox.exvo.local'
|
30
30
|
Exvo::Helpers.music_host => 'music.exvo.local'
|
@@ -33,11 +33,11 @@ Exvo::Helpers.preview_host => 'preview.exvo.local'
|
|
33
33
|
Exvo::Helpers.store_host => 'store.exvo.local'
|
34
34
|
|
35
35
|
Exvo::Helpers.auth_uri => 'http://auth.exvo.local'
|
36
|
-
Exvo::Helpers.cdn_uri => 'http://
|
36
|
+
Exvo::Helpers.cdn_uri => 'http://home.exvo.local'
|
37
37
|
Exvo::Helpers.cfs_uri => 'http://cfs.exvo.local'
|
38
|
-
Exvo::Helpers.desktop_uri => 'http://
|
38
|
+
Exvo::Helpers.desktop_uri => 'http://home.exvo.local'
|
39
39
|
Exvo::Helpers.themes_uri => 'http://themes.exvo.local'
|
40
|
-
Exvo::Helpers.blog_uri => 'http://
|
40
|
+
Exvo::Helpers.blog_uri => 'http://www.exvo.local/blog'
|
41
41
|
Exvo::Helpers.contacts_uri => 'http://contacts.exvo.local'
|
42
42
|
Exvo::Helpers.inbox_uri => 'http://inbox.exvo.local'
|
43
43
|
Exvo::Helpers.music_uri => 'http://music.exvo.local'
|
@@ -66,7 +66,7 @@ ENV['CDN_HOST'] = 'test.cdn.exvo.com'
|
|
66
66
|
ENV['CFS_HOST'] = 'test.cfs.exvo.com'
|
67
67
|
ENV['DESKTOP_HOST'] = 'test.exvo.com'
|
68
68
|
ENV['THEMES_HOST'] = 'test.themes.exvo.com'
|
69
|
-
ENV['BLOG_HOST'] = 'test.
|
69
|
+
ENV['BLOG_HOST'] = 'test.www.exvo.local'
|
70
70
|
ENV['CONTACTS_HOST'] = 'test.contacts.exvo.local'
|
71
71
|
ENV['INBOX_HOST'] = 'test.inbox.exvo.local'
|
72
72
|
ENV['MUSIC_HOST'] = 'test.music.exvo.local'
|
@@ -92,7 +92,7 @@ Exvo::Helpers.cdn_host = 'test.cdn.exvo.com'
|
|
92
92
|
Exvo::Helpers.cfs_host = 'test.cfs.exvo.com'
|
93
93
|
Exvo::Helpers.desktop_host = 'test.exvo.com'
|
94
94
|
Exvo::Helpers.themes_host = 'test.themes.exvo.com'
|
95
|
-
Exvo::Helpers.blog_host = 'test.
|
95
|
+
Exvo::Helpers.blog_host = 'test.www.exvo.local'
|
96
96
|
Exvo::Helpers.contacts_host = 'test.contacts.exvo.local'
|
97
97
|
Exvo::Helpers.inbox_host = 'test.inbox.exvo.local'
|
98
98
|
Exvo::Helpers.music_host = 'test.music.exvo.local'
|
@@ -122,11 +122,11 @@ All examples are for the 'development' environment.
|
|
122
122
|
=>
|
123
123
|
|
124
124
|
```html
|
125
|
-
<script src="http://
|
126
|
-
<script src="http://
|
127
|
-
<script src="http://
|
128
|
-
<script src="http://
|
129
|
-
<script src="http://
|
125
|
+
<script src="http://home.exvo.local/javascripts/bundles/plugins.js" type="text/javascript"></script>
|
126
|
+
<script src="http://home.exvo.local/javascripts/bundles/utils.js" type="text/javascript"></script>
|
127
|
+
<script src="http://home.exvo.local/javascripts/bundles/widgets.js" type="text/javascript"></script>
|
128
|
+
<script src="http://home.exvo.local/javascripts/bundles/dock.js" type="text/javascript"></script>
|
129
|
+
<script src="http://home.exvo.local/javascripts/bundles/uploader.js" type="text/javascript"></script>
|
130
130
|
```
|
131
131
|
|
132
132
|
|
data/lib/exvo_helpers/helpers.rb
CHANGED
@@ -11,7 +11,8 @@ module Exvo
|
|
11
11
|
# protocol = 'http://'
|
12
12
|
# protocol = 'https://' if service == "auth" && auth_require_ssl
|
13
13
|
# protocol = '//' if ["cdn", "cfs", "themes"].include?(service) && env.to_sym == :production
|
14
|
-
#
|
14
|
+
# suffix = '/blog' if service == "blog"
|
15
|
+
# protocol + cdn_host + suffix.to_s
|
15
16
|
# end
|
16
17
|
define_method "#{service}_uri" do
|
17
18
|
protocol = 'http://'
|
@@ -23,7 +24,10 @@ module Exvo
|
|
23
24
|
# but only for those apps/services that have proper SSL support (i.e. valid certificates)
|
24
25
|
protocol = '//' if ["cdn", "cfs", "themes"].include?(service) && env.to_sym == :production
|
25
26
|
|
26
|
-
|
27
|
+
# blog now lives at http://www.exvo.com/blog, so adding '/blog' suffix is required
|
28
|
+
suffix = '/blog' if service == "blog"
|
29
|
+
|
30
|
+
protocol + send("#{service}_host") + suffix.to_s
|
27
31
|
end
|
28
32
|
|
29
33
|
# def self.cdn_host
|
@@ -192,9 +196,9 @@ module Exvo
|
|
192
196
|
:sso_cookie_domain => 'exvo.com',
|
193
197
|
:cdn_host => 'd33gjlr95u9pgf.cloudfront.net', # cloudfront.net so we can use https (cdn.exvo.com via https does not work properly)
|
194
198
|
:cfs_host => 'cfs.exvo.com',
|
195
|
-
:desktop_host => '
|
199
|
+
:desktop_host => 'home.exvo.com',
|
196
200
|
:themes_host => 'themes.exvo.com',
|
197
|
-
:blog_host => '
|
201
|
+
:blog_host => 'www.exvo.com',
|
198
202
|
:contacts_host => 'contacts.exvo.com',
|
199
203
|
:inbox_host => 'inbox.exvo.com',
|
200
204
|
:music_host => 'music.exvo.com',
|
@@ -209,9 +213,9 @@ module Exvo
|
|
209
213
|
:sso_cookie_domain => 'exvo.co',
|
210
214
|
:cdn_host => 'd1by559a994699.cloudfront.net',
|
211
215
|
:cfs_host => 'cfs.exvo.co',
|
212
|
-
:desktop_host => '
|
216
|
+
:desktop_host => 'home.exvo.co',
|
213
217
|
:themes_host => 'themes.exvo.co',
|
214
|
-
:blog_host => '
|
218
|
+
:blog_host => 'www.exvo.co',
|
215
219
|
:contacts_host => 'contacts.exvo.co',
|
216
220
|
:inbox_host => 'inbox.exvo.co',
|
217
221
|
:music_host => 'music.exvo.co',
|
@@ -224,11 +228,11 @@ module Exvo
|
|
224
228
|
:auth_host => 'auth.exvo.local',
|
225
229
|
:auth_require_ssl => false,
|
226
230
|
:sso_cookie_domain => 'exvo.local',
|
227
|
-
:cdn_host => '
|
231
|
+
:cdn_host => 'home.exvo.local',
|
228
232
|
:cfs_host => 'cfs.exvo.local',
|
229
|
-
:desktop_host => '
|
233
|
+
:desktop_host => 'home.exvo.local',
|
230
234
|
:themes_host => 'themes.exvo.local',
|
231
|
-
:blog_host => '
|
235
|
+
:blog_host => 'www.exvo.local',
|
232
236
|
:contacts_host => 'contacts.exvo.local',
|
233
237
|
:inbox_host => 'inbox.exvo.local',
|
234
238
|
:music_host => 'music.exvo.local',
|
@@ -241,11 +245,11 @@ module Exvo
|
|
241
245
|
:auth_host => 'auth.exvo.local',
|
242
246
|
:auth_require_ssl => false,
|
243
247
|
:sso_cookie_domain => 'exvo.local',
|
244
|
-
:cdn_host => '
|
248
|
+
:cdn_host => 'home.exvo.local',
|
245
249
|
:cfs_host => 'cfs.exvo.local',
|
246
|
-
:desktop_host => '
|
250
|
+
:desktop_host => 'home.exvo.local',
|
247
251
|
:themes_host => 'themes.exvo.local',
|
248
|
-
:blog_host => '
|
252
|
+
:blog_host => 'www.exvo.local',
|
249
253
|
:contacts_host => 'contacts.exvo.local',
|
250
254
|
:inbox_host => 'inbox.exvo.local',
|
251
255
|
:music_host => 'music.exvo.local',
|
data/lib/exvo_helpers/version.rb
CHANGED
@@ -34,9 +34,9 @@ describe Exvo::Helpers do
|
|
34
34
|
specify { Exvo::Helpers.auth_uri.should match('auth.exvo.com') }
|
35
35
|
specify { Exvo::Helpers.cdn_uri.should match('d33gjlr95u9pgf.cloudfront.net') }
|
36
36
|
specify { Exvo::Helpers.cfs_uri.should match('cfs.exvo.com') }
|
37
|
-
specify { Exvo::Helpers.desktop_uri.should match('
|
37
|
+
specify { Exvo::Helpers.desktop_uri.should match('home.exvo.com') }
|
38
38
|
specify { Exvo::Helpers.themes_uri.should match('themes.exvo.com') }
|
39
|
-
specify { Exvo::Helpers.blog_uri.should match('
|
39
|
+
specify { Exvo::Helpers.blog_uri.should match('www.exvo.com/blog') }
|
40
40
|
specify { Exvo::Helpers.contacts_uri.should match('contacts.exvo.com') }
|
41
41
|
specify { Exvo::Helpers.inbox_uri.should match('inbox.exvo.com') }
|
42
42
|
specify { Exvo::Helpers.music_uri.should match('music.exvo.com') }
|
@@ -49,9 +49,9 @@ describe Exvo::Helpers do
|
|
49
49
|
specify { Exvo::Helpers.auth_host.should match('auth.exvo.com') }
|
50
50
|
specify { Exvo::Helpers.cdn_host.should eql('d33gjlr95u9pgf.cloudfront.net') }
|
51
51
|
specify { Exvo::Helpers.cfs_host.should eql('cfs.exvo.com') }
|
52
|
-
specify { Exvo::Helpers.desktop_host.should eql('
|
52
|
+
specify { Exvo::Helpers.desktop_host.should eql('home.exvo.com') }
|
53
53
|
specify { Exvo::Helpers.themes_host.should eql('themes.exvo.com') }
|
54
|
-
specify { Exvo::Helpers.blog_host.should eql('
|
54
|
+
specify { Exvo::Helpers.blog_host.should eql('www.exvo.com') }
|
55
55
|
specify { Exvo::Helpers.contacts_host.should eql('contacts.exvo.com') }
|
56
56
|
specify { Exvo::Helpers.inbox_host.should eql('inbox.exvo.com') }
|
57
57
|
specify { Exvo::Helpers.music_host.should eql('music.exvo.com') }
|
@@ -68,9 +68,9 @@ describe Exvo::Helpers do
|
|
68
68
|
specify { Exvo::Helpers.auth_host.should match('auth.exvo.co') }
|
69
69
|
specify { Exvo::Helpers.cdn_host.should eql('d1by559a994699.cloudfront.net') }
|
70
70
|
specify { Exvo::Helpers.cfs_host.should eql('cfs.exvo.co') }
|
71
|
-
specify { Exvo::Helpers.desktop_host.should eql('
|
71
|
+
specify { Exvo::Helpers.desktop_host.should eql('home.exvo.co') }
|
72
72
|
specify { Exvo::Helpers.themes_host.should eql('themes.exvo.co') }
|
73
|
-
specify { Exvo::Helpers.blog_host.should eql('
|
73
|
+
specify { Exvo::Helpers.blog_host.should eql('www.exvo.co') }
|
74
74
|
specify { Exvo::Helpers.contacts_host.should eql('contacts.exvo.co') }
|
75
75
|
specify { Exvo::Helpers.inbox_host.should eql('inbox.exvo.co') }
|
76
76
|
specify { Exvo::Helpers.music_host.should eql('music.exvo.co') }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exvo_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|