exvo_helpers 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -16,6 +16,7 @@ Exvo::Helpers.contacts_host => 'contacts.exvo.local'
16
16
  Exvo::Helpers.inbox_host => 'inbox.exvo.local'
17
17
  Exvo::Helpers.music_host => 'music.exvo.local'
18
18
  Exvo::Helpers.pics_host => 'pics.exvo.local'
19
+ Exvo::Helpers.preview_host => 'preview.exvo.local'
19
20
 
20
21
  Exvo::Helpers.cdn_uri => 'http://www.exvo.local'
21
22
  Exvo::Helpers.cfs_uri => 'http://cfs.exvo.local'
@@ -26,6 +27,7 @@ Exvo::Helpers.contacts_uri => 'http://contacts.exvo.local'
26
27
  Exvo::Helpers.inbox_uri => 'http://inbox.exvo.local'
27
28
  Exvo::Helpers.music_uri => 'http://music.exvo.local'
28
29
  Exvo::Helpers.pics_uri => 'http://pics.exvo.local'
30
+ Exvo::Helpers.preview_uri => 'http://preview.exvo.local'
29
31
  ```
30
32
 
31
33
  For consistency, there are also read-only `auth_host/auth_uri` methods, that just pass execution to the [exvo-auth](https://github.com/Exvo/Auth) gem (so it's required that exvo-auth gem is available when using them):
@@ -50,12 +52,13 @@ ENV['CONTACTS_HOST'] = 'test.contacts.exvo.local'
50
52
  ENV['INBOX_HOST'] = 'test.inbox.exvo.local'
51
53
  ENV['MUSIC_HOST'] = 'test.music.exvo.local'
52
54
  ENV['PICS_HOST'] = 'test.pics.exvo.local'
55
+ ENV['PREVIEW_HOST'] = 'test.preview.exvo.local'
53
56
  ```
54
57
 
55
58
  The other one is to set it in the application's config file:
56
59
 
57
60
  ```ruby
58
- Exvo::Helpers.cdn_host = 'test.cfs.exvo.com'
61
+ Exvo::Helpers.cdn_host = 'test.cdn.exvo.com'
59
62
  Exvo::Helpers.cfs_host = 'test.cfs.exvo.com'
60
63
  Exvo::Helpers.desktop_host = 'test.exvo.com'
61
64
  Exvo::Helpers.themes_host = 'test.themes.exvo.com'
@@ -64,6 +67,7 @@ Exvo::Helpers.contacts_host = 'test.contacts.exvo.local'
64
67
  Exvo::Helpers.inbox_host = 'test.inbox.exvo.local'
65
68
  Exvo::Helpers.music_host = 'test.music.exvo.local'
66
69
  Exvo::Helpers.pics_host = 'test.pics.exvo.local'
70
+ Exvo::Helpers.preview_host = 'test.preview.exvo.local'
67
71
  ```
68
72
 
69
73
 
@@ -5,7 +5,7 @@ module Exvo
5
5
  # Dynamically define class methods
6
6
  class << self
7
7
 
8
- %w(cdn cfs desktop themes blog contacts inbox music pics).each do |service|
8
+ %w(cdn cfs desktop themes blog contacts inbox music pics preview).each do |service|
9
9
 
10
10
  # def self.cdn_uri
11
11
  # "http://#{cdn_host}"
@@ -85,7 +85,8 @@ module Exvo
85
85
  :contacts_host => 'contacts.exvo.com',
86
86
  :inbox_host => 'inbox.exvo.com',
87
87
  :music_host => 'music.exvo.com',
88
- :pics_host => 'pics.exvo.com'
88
+ :pics_host => 'pics.exvo.com',
89
+ :preview_host => 'preview.exvo.com'
89
90
  },
90
91
  :staging => {
91
92
  :cdn_host => 'staging.cdn.exvo.com',
@@ -96,7 +97,8 @@ module Exvo
96
97
  :contacts_host => 'exvo-contacts-staging.heroku.com',
97
98
  :inbox_host => 'exvo-inbox-staging.heroku.com',
98
99
  :music_host => 'exvo-music-staging.heroku.com',
99
- :pics_host => 'exvo-pictures-staging.heroku.com'
100
+ :pics_host => 'exvo-pictures-staging.heroku.com',
101
+ :preview_host => 'staging.preview.exvo.com'
100
102
  },
101
103
  :development => {
102
104
  :cdn_host => 'www.exvo.local',
@@ -107,7 +109,8 @@ module Exvo
107
109
  :contacts_host => 'contacts.exvo.local',
108
110
  :inbox_host => 'inbox.exvo.local',
109
111
  :music_host => 'music.exvo.local',
110
- :pics_host => 'pics.exvo.local'
112
+ :pics_host => 'pics.exvo.local',
113
+ :preview_host => 'preview.exvo.local'
111
114
  },
112
115
  :test => {
113
116
  :cdn_host => 'www.exvo.local',
@@ -118,7 +121,8 @@ module Exvo
118
121
  :contacts_host => 'contacts.exvo.local',
119
122
  :inbox_host => 'inbox.exvo.local',
120
123
  :music_host => 'music.exvo.local',
121
- :pics_host => 'pics.exvo.local'
124
+ :pics_host => 'pics.exvo.local',
125
+ :preview_host => 'preview.exvo.local'
122
126
  }
123
127
  }
124
128
  end
@@ -1,3 +1,3 @@
1
1
  module ExvoHelpers
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -30,6 +30,7 @@ describe Exvo::Helpers do
30
30
  specify { Exvo::Helpers.inbox_uri.should match('inbox.exvo.com') }
31
31
  specify { Exvo::Helpers.music_uri.should match('music.exvo.com') }
32
32
  specify { Exvo::Helpers.pics_uri.should match('pics.exvo.com') }
33
+ specify { Exvo::Helpers.preview_uri.should match('preview.exvo.com') }
33
34
  end
34
35
 
35
36
  describe "host methods in production environment" do
@@ -46,6 +47,7 @@ describe Exvo::Helpers do
46
47
  specify { Exvo::Helpers.inbox_host.should eql('inbox.exvo.com') }
47
48
  specify { Exvo::Helpers.music_host.should eql('music.exvo.com') }
48
49
  specify { Exvo::Helpers.pics_host.should eql('pics.exvo.com') }
50
+ specify { Exvo::Helpers.preview_host.should eql('preview.exvo.com') }
49
51
  end
50
52
 
51
53
  describe "ENV setting overrides the defaults" do
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.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-24 00:00:00.000000000Z
12
+ date: 2011-12-08 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &74228700 !ruby/object:Gem::Requirement
16
+ requirement: &83106290 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.7'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *74228700
24
+ version_requirements: *83106290
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: guard
27
- requirement: &74228440 !ruby/object:Gem::Requirement
27
+ requirement: &83105480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.8.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *74228440
35
+ version_requirements: *83105480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: guard-rspec
38
- requirement: &74228200 !ruby/object:Gem::Requirement
38
+ requirement: &83103730 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.4.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *74228200
46
+ version_requirements: *83103730
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rb-fsevent
49
- requirement: &74228010 !ruby/object:Gem::Requirement
49
+ requirement: &83102830 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *74228010
57
+ version_requirements: *83102830
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rb-inotify
60
- requirement: &74227780 !ruby/object:Gem::Requirement
60
+ requirement: &83101560 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *74227780
68
+ version_requirements: *83101560
69
69
  description: Ruby gem providing helper *_uri/*_host methods for Exvo services/apps
70
70
  like DESKTOP/CFS/AUTH/THEMES.
71
71
  email: