exvo_helpers 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Note, that only significant changes are listed.
4
4
 
5
+ ## 0.5.1 (2012-06-18)
6
+
7
+ * host/uri helpers for store app
8
+
9
+
5
10
  ## 0.5.0 (2012-06-15)
6
11
 
7
12
  * all staging apps now use 'exvo.co' domain
data/README.md CHANGED
@@ -30,6 +30,7 @@ Exvo::Helpers.inbox_host => 'inbox.exvo.local'
30
30
  Exvo::Helpers.music_host => 'music.exvo.local'
31
31
  Exvo::Helpers.pics_host => 'pics.exvo.local'
32
32
  Exvo::Helpers.preview_host => 'preview.exvo.local'
33
+ Exvo::Helpers.store_host => 'store.exvo.local'
33
34
 
34
35
  Exvo::Helpers.auth_uri => 'http://auth.exvo.local'
35
36
  Exvo::Helpers.cdn_uri => 'http://www.exvo.local'
@@ -42,6 +43,7 @@ Exvo::Helpers.inbox_uri => 'http://inbox.exvo.local'
42
43
  Exvo::Helpers.music_uri => 'http://music.exvo.local'
43
44
  Exvo::Helpers.pics_uri => 'http://pics.exvo.local'
44
45
  Exvo::Helpers.preview_uri => 'http://preview.exvo.local'
46
+ Exvo::Helpers.store_uri => 'http://store.exvo.local'
45
47
  ```
46
48
 
47
49
 
@@ -70,6 +72,7 @@ ENV['INBOX_HOST'] = 'test.inbox.exvo.local'
70
72
  ENV['MUSIC_HOST'] = 'test.music.exvo.local'
71
73
  ENV['PICS_HOST'] = 'test.pics.exvo.local'
72
74
  ENV['PREVIEW_HOST'] = 'test.preview.exvo.local'
75
+ ENV['STORE_HOST'] = 'test.store.exvo.local'
73
76
  ```
74
77
 
75
78
  The other one is to set it in the application's config file:
@@ -95,6 +98,7 @@ Exvo::Helpers.inbox_host = 'test.inbox.exvo.local'
95
98
  Exvo::Helpers.music_host = 'test.music.exvo.local'
96
99
  Exvo::Helpers.pics_host = 'test.pics.exvo.local'
97
100
  Exvo::Helpers.preview_host = 'test.preview.exvo.local'
101
+ Exvo::Helpers.store_host = 'test.store.exvo.local'
98
102
  ```
99
103
 
100
104
 
@@ -131,7 +135,7 @@ All examples are for the 'development' environment.
131
135
  Note, that this helper does not support full API of Rails' `stylesheet_link_tag` (works best with only one CSS path as argument).
132
136
 
133
137
  ```ruby
134
- = themes_stylesheet_link_tag "frost/all", :madia => 'all'
138
+ = themes_stylesheet_link_tag "frost/all", :media => 'all'
135
139
  ```
136
140
 
137
141
  =>
@@ -159,7 +163,7 @@ Note, that this helper does not support full API of Rails' `stylesheet_link_tag`
159
163
  Asynchronous Google Analytics javascript snippet to track page views. Note, that it will output the javascript analytics snippet only in production environment.
160
164
 
161
165
  ```ruby
162
- = google_analytics('UA-2491324-1', :domain => 'none', :track_hash_changes => true)
166
+ = google_analytics('UA-XXXXXXX-X', :domain => 'none', :track_hash_changes => true)
163
167
  ```
164
168
 
165
169
  =>
@@ -5,7 +5,7 @@ module Exvo
5
5
  # Dynamically define class methods
6
6
  class << self
7
7
 
8
- %w(auth cdn cfs desktop themes blog contacts inbox music pics preview).each do |service|
8
+ %w(auth cdn cfs desktop themes blog contacts inbox music pics preview store).each do |service|
9
9
 
10
10
  # def self.cdn_uri
11
11
  # protocol = 'http://'
@@ -199,7 +199,8 @@ module Exvo
199
199
  :inbox_host => 'inbox.exvo.com',
200
200
  :music_host => 'music.exvo.com',
201
201
  :pics_host => 'pics.exvo.com',
202
- :preview_host => 'preview.exvo.com'
202
+ :preview_host => 'preview.exvo.com',
203
+ :store_host => 'store.exvo.com'
203
204
  },
204
205
  :staging => {
205
206
  :auth_debug => false,
@@ -215,7 +216,8 @@ module Exvo
215
216
  :inbox_host => 'inbox.exvo.co',
216
217
  :music_host => 'music.exvo.co',
217
218
  :pics_host => 'pics.exvo.co',
218
- :preview_host => 'preview.exvo.co'
219
+ :preview_host => 'preview.exvo.co',
220
+ :store_host => 'store.exvo.co'
219
221
  },
220
222
  :development => {
221
223
  :auth_debug => false,
@@ -231,7 +233,8 @@ module Exvo
231
233
  :inbox_host => 'inbox.exvo.local',
232
234
  :music_host => 'music.exvo.local',
233
235
  :pics_host => 'pics.exvo.local',
234
- :preview_host => 'preview.exvo.local'
236
+ :preview_host => 'preview.exvo.local',
237
+ :store_host => 'store.exvo.local'
235
238
  },
236
239
  :test => {
237
240
  :auth_debug => false,
@@ -247,7 +250,8 @@ module Exvo
247
250
  :inbox_host => 'inbox.exvo.local',
248
251
  :music_host => 'music.exvo.local',
249
252
  :pics_host => 'pics.exvo.local',
250
- :preview_host => 'preview.exvo.local'
253
+ :preview_host => 'preview.exvo.local',
254
+ :store_host => 'store.exvo.local'
251
255
  }
252
256
  }
253
257
  end
@@ -1,5 +1,5 @@
1
1
  module Exvo
2
2
  module Helpers
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
@@ -42,6 +42,7 @@ describe Exvo::Helpers do
42
42
  specify { Exvo::Helpers.music_uri.should match('music.exvo.com') }
43
43
  specify { Exvo::Helpers.pics_uri.should match('pics.exvo.com') }
44
44
  specify { Exvo::Helpers.preview_uri.should match('preview.exvo.com') }
45
+ specify { Exvo::Helpers.store_uri.should match('store.exvo.com') }
45
46
  end
46
47
 
47
48
  describe "host methods in production environment" do
@@ -56,6 +57,7 @@ describe Exvo::Helpers do
56
57
  specify { Exvo::Helpers.music_host.should eql('music.exvo.com') }
57
58
  specify { Exvo::Helpers.pics_host.should eql('pics.exvo.com') }
58
59
  specify { Exvo::Helpers.preview_host.should eql('preview.exvo.com') }
60
+ specify { Exvo::Helpers.store_host.should eql('store.exvo.com') }
59
61
  end
60
62
 
61
63
  describe "host methods in staging environment" do
@@ -74,6 +76,7 @@ describe Exvo::Helpers do
74
76
  specify { Exvo::Helpers.music_host.should eql('music.exvo.co') }
75
77
  specify { Exvo::Helpers.pics_host.should eql('pics.exvo.co') }
76
78
  specify { Exvo::Helpers.preview_host.should eql('preview.exvo.co') }
79
+ specify { Exvo::Helpers.store_host.should eql('store.exvo.co') }
77
80
  end
78
81
 
79
82
  describe "#auth_debug by default for production env" do
@@ -163,6 +166,7 @@ describe Exvo::Helpers do
163
166
  Exvo::Helpers.music_host = nil
164
167
  Exvo::Helpers.pics_host = nil
165
168
  Exvo::Helpers.preview_host = nil
169
+ Exvo::Helpers.store_host = nil
166
170
 
167
171
  ENV.delete("RACK_ENV")
168
172
  ENV.delete("CDN_HOST")
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.0
4
+ version: 0.5.1
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-06-15 00:00:00.000000000 Z
12
+ date: 2012-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake