exvo_helpers 0.5.3 → 0.6.0

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: fe102799963f4f6307894386e687d2d464b11846
4
+ data.tar.gz: a9d675b50751ee47e3346b82c15ad94bc32e97c4
5
+ SHA512:
6
+ metadata.gz: dfc10b4873a01b9d67244f97d25f892764a2e63fdc26980b48c78e79ffafe5585da7ecd1565fc1139f875d7e5ca68418bc3d493e61a1e03e18ee3a3f14821262
7
+ data.tar.gz: f0e2db14e07a87e95fb3b4e0d9bd2ce39d9158ae3bc8fb0bc32d2cb06acc014a0300286a3bcb8ac9f410a9b01fa847716351ce5b2008ce2b5d183b4fe6ef2b1b
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  Note, that only significant changes are listed.
4
4
 
5
+
6
+ ## 0.6.0 (2013-05-01)
7
+
8
+ * no more protocol-agnostic links ('//themes...'); make them explicit https in production
9
+ * remove 'Store' helpers (Exvo-Store is no more)
10
+ * auth/budget links are SSL-only from now (remove `auth_require_ssl` and `budget_require_ssl` options)
11
+
12
+
5
13
  ## 0.5.3 (2012-12-20)
6
14
 
7
15
  * new `budget_host`, `budget_uri` and `budget_require_ssl` helpers
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright © 2011-2012 Exvo.com Development BV
1
+ Copyright © 2011-2013 Exvo.com Development BV
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -11,7 +11,6 @@ Results are from the 'development' Rails environment:
11
11
 
12
12
  ```ruby
13
13
  Exvo::Helpers.auth_debug => false
14
- Exvo::Helpers.auth_require_ssl => false
15
14
 
16
15
  Exvo::Helpers.auth_client_id => nil
17
16
  Exvo::Helpers.auth_client_secret => nil
@@ -19,8 +18,6 @@ Exvo::Helpers.auth_client_secret => nil
19
18
  Exvo::Helpers.sso_cookie_domain => 'exvo.local'
20
19
  Exvo::Helpers.sso_cookie_secret => 'some secret cookie signing key'
21
20
 
22
- Exvo::Helpers.budget_require_ssl => false
23
-
24
21
  Exvo::Helpers.auth_host => 'auth.exvo.local'
25
22
  Exvo::Helpers.budget_host => 'budget.exvo.local'
26
23
  Exvo::Helpers.cdn_host => 'home.exvo.local'
@@ -33,7 +30,6 @@ Exvo::Helpers.inbox_host => 'inbox.exvo.local'
33
30
  Exvo::Helpers.music_host => 'music.exvo.local'
34
31
  Exvo::Helpers.pics_host => 'pics.exvo.local'
35
32
  Exvo::Helpers.preview_host => 'preview.exvo.local'
36
- Exvo::Helpers.store_host => 'store.exvo.local'
37
33
 
38
34
  Exvo::Helpers.auth_uri => 'http://auth.exvo.local'
39
35
  Exvo::Helpers.budget_uri => 'http://budget.exvo.local'
@@ -47,7 +43,6 @@ Exvo::Helpers.inbox_uri => 'http://inbox.exvo.local'
47
43
  Exvo::Helpers.music_uri => 'http://music.exvo.local'
48
44
  Exvo::Helpers.pics_uri => 'http://pics.exvo.local'
49
45
  Exvo::Helpers.preview_uri => 'http://preview.exvo.local'
50
- Exvo::Helpers.store_uri => 'http://store.exvo.local'
51
46
  ```
52
47
 
53
48
 
@@ -57,7 +52,6 @@ There are two ways to do it. One is by the means of ENV variables (the preferred
57
52
 
58
53
  ```ruby
59
54
  ENV['AUTH_DEBUG'] = 'true'
60
- ENV['AUTH_REQUIRE_SSL'] = 'true'
61
55
 
62
56
  ENV['AUTH_CLIENT_ID'] = '123'
63
57
  ENV['AUTH_CLIENT_SECRET'] = 'abc'
@@ -65,8 +59,6 @@ ENV['AUTH_CLIENT_SECRET'] = 'abc'
65
59
  ENV['SSO_COOKIE_DOMAIN'] = 'exvo.dev'
66
60
  ENV['SSO_COOKIE_SECRET'] = 'exvo.dev'
67
61
 
68
- ENV['BUDGET_REQUIRE_SSL'] = 'true'
69
-
70
62
  ENV['AUTH_HOST'] = 'test.auth.exvo.com'
71
63
  ENV['BUDGET_HOST'] = 'test.budget.exvo.com'
72
64
  ENV['CDN_HOST'] = 'test.cdn.exvo.com'
@@ -79,14 +71,12 @@ ENV['INBOX_HOST'] = 'test.inbox.exvo.local'
79
71
  ENV['MUSIC_HOST'] = 'test.music.exvo.local'
80
72
  ENV['PICS_HOST'] = 'test.pics.exvo.local'
81
73
  ENV['PREVIEW_HOST'] = 'test.preview.exvo.local'
82
- ENV['STORE_HOST'] = 'test.store.exvo.local'
83
74
  ```
84
75
 
85
76
  The other one is to set it in the application's config file:
86
77
 
87
78
  ```ruby
88
79
  Exvo::Helpers.auth_debug = true
89
- Exvo::Helpers.auth_require_ssl = true
90
80
 
91
81
  Exvo::Helpers.auth_client_id = '123'
92
82
  Exvo::Helpers.auth_client_secret = 'abc'
@@ -94,8 +84,6 @@ Exvo::Helpers.auth_client_secret = 'abc'
94
84
  Exvo::Helpers.sso_cookie_domain = 'exvo.dev'
95
85
  Exvo::Helpers.sso_cookie_key = 'some secret key'
96
86
 
97
- Exvo::Helpers.budget_require_ssl = true
98
-
99
87
  Exvo::Helpers.auth_host = 'test.auth.exvo.com'
100
88
  Exvo::Helpers.budget_host = 'test.budget.exvo.com'
101
89
  Exvo::Helpers.cdn_host = 'test.cdn.exvo.com'
@@ -108,7 +96,6 @@ Exvo::Helpers.inbox_host = 'test.inbox.exvo.local'
108
96
  Exvo::Helpers.music_host = 'test.music.exvo.local'
109
97
  Exvo::Helpers.pics_host = 'test.pics.exvo.local'
110
98
  Exvo::Helpers.preview_host = 'test.preview.exvo.local'
111
- Exvo::Helpers.store_host = 'test.store.exvo.local'
112
99
  ```
113
100
 
114
101
 
@@ -206,4 +193,4 @@ KISSmetrics javascript snippet to track users. Note, that you need to have `ENV[
206
193
 
207
194
 
208
195
 
209
- Copyright © 2011-2012 Exvo.com Development BV, released under the MIT license
196
+ Copyright © 2011-2013 Exvo.com Development BV, released under the MIT license
data/exvo_helpers.gemspec CHANGED
@@ -9,7 +9,8 @@ Gem::Specification.new do |gem|
9
9
  gem.email = ["pawel.goscicki@gmail.com"]
10
10
  gem.homepage = "https://github.com/Exvo/exvo_helpers/"
11
11
  gem.summary = %q{Collection of helper methods for various Exvo related apps/services}
12
- gem.description = %q{Ruby gem providing various helper methods, like auth_host, auth_uri, auth_require_ssl, cdn_host, etc.}
12
+ gem.description = %q{Ruby gem providing various helper methods, like auth_host, auth_uri, cdn_host, etc.}
13
+ gem.license = "MIT"
13
14
 
14
15
  gem.files = `git ls-files`.split("\n")
15
16
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -23,6 +24,4 @@ Gem::Specification.new do |gem|
23
24
  gem.add_development_dependency 'guard-rspec', ['>= 0.6.0']
24
25
  gem.add_development_dependency "rb-fsevent"
25
26
  gem.add_development_dependency "rb-inotify"
26
- gem.add_development_dependency "simplecov"
27
- gem.add_development_dependency "simplecov-rcov"
28
27
  end
@@ -5,24 +5,19 @@ module Exvo
5
5
  # Dynamically define class methods
6
6
  class << self
7
7
 
8
- %w(auth budget cdn cfs desktop themes blog contacts inbox music pics preview store).each do |service|
8
+ %w(auth budget cdn cfs desktop themes blog contacts inbox music pics preview).each do |service|
9
9
 
10
10
  # def self.cdn_uri
11
11
  # protocol = 'http://'
12
- # protocol = 'https://' if (service == "auth" && auth_require_ssl) || (service == "budget" && budget_require_ssl)
13
- # protocol = '//' if ["cdn", "cfs", "themes"].include?(service) && env.to_sym == :production
12
+ # protocol = 'https://' if %w(auth budget cdn cfs themes).include?(service) && env.to_sym == :production
14
13
  # suffix = '/blog' if service == "blog"
15
14
  # protocol + cdn_host + suffix.to_s
16
15
  # end
17
16
  define_method "#{service}_uri" do
18
17
  protocol = 'http://'
19
18
 
20
- # explicit https for auth & budget
21
- protocol = 'https://' if (service == "auth" && send(:auth_require_ssl)) || (service == "budget" && send(:budget_require_ssl))
22
-
23
- # special link starting with '//' in production so that the webserver can choose between HTTP and HTTPS
24
- # but only for those apps/services that have proper SSL support (i.e. valid certificates)
25
- protocol = '//' if ["cdn", "cfs", "themes"].include?(service) && env.to_sym == :production
19
+ # explicit https
20
+ protocol = 'https://' if %w(auth budget cdn cfs themes).include?(service) && env.to_sym == :production
26
21
 
27
22
  # blog now lives at http://www.exvo.com/blog, so adding '/blog' suffix is required
28
23
  suffix = '/blog' if service == "blog"
@@ -60,7 +55,7 @@ module Exvo
60
55
  # Dynamically define class methods
61
56
  class << self
62
57
 
63
- %w(debug require_ssl).each do |option|
58
+ %w(debug).each do |option|
64
59
 
65
60
  # def self.auth_debug
66
61
  # return @@auth_debug if defined?(@@auth_debug) && !@@auth_debug.nil?
@@ -169,43 +164,6 @@ module Exvo
169
164
  end
170
165
 
171
166
 
172
- # BUDGET
173
-
174
- # Dynamically define class methods
175
- class << self
176
-
177
- %w(require_ssl).each do |option|
178
-
179
- # def self.budget_require_ssl
180
- # return @@budget_require_ssl if defined?(@@budget_require_ssl) && !@@budget_require_ssl.nil?
181
- # value = true if ENV["BUDGET_REQUIRE_SSL"] =~ /true/i
182
- # value = false if ENV["BUDGET_REQUIRE_SSL"] =~ /false/i
183
- # value = default_opts[env.to_sym]["budget_require_ssl".to_sym] if value.nil?
184
- # @@budget_require_ssl = value
185
- # end
186
- define_method "budget_#{option}" do
187
- if class_variable_defined?("@@budget_#{option}") and !class_variable_get("@@budget_#{option}").nil?
188
- class_variable_get("@@budget_#{option}")
189
- else
190
- value = true if ENV["BUDGET_#{option.upcase}"] =~ /true/i
191
- value = false if ENV["BUDGET_#{option.upcase}"] =~ /false/i
192
- value = default_opts[env.to_sym]["budget_#{option}".to_sym] if value.nil?
193
- class_variable_set("@@budget_#{option}", value)
194
- end
195
- end
196
-
197
- # def self.budget_require_ssl=(debug)
198
- # @@budget_require_ssl = debug
199
- # end
200
- define_method "budget_#{option}=" do |value|
201
- class_variable_set("@@budget_#{option}", value)
202
- end
203
-
204
- end
205
-
206
- end
207
-
208
-
209
167
  # ENV
210
168
 
211
169
  # by default fall back to production; this way the omniauth-exvo's gem specs can pass
@@ -229,10 +187,8 @@ module Exvo
229
187
  :production => {
230
188
  :auth_debug => false,
231
189
  :auth_host => 'auth.exvo.com',
232
- :auth_require_ssl => true,
233
190
  :sso_cookie_domain => 'exvo.com',
234
191
  :budget_host => 'budget.exvo.com',
235
- :budget_require_ssl => true,
236
192
  :cdn_host => 'd33gjlr95u9pgf.cloudfront.net', # cloudfront.net so we can use https (cdn.exvo.com via https does not work properly)
237
193
  :cfs_host => 'cfs.exvo.com',
238
194
  :desktop_host => 'home.exvo.com',
@@ -242,16 +198,13 @@ module Exvo
242
198
  :inbox_host => 'inbox.exvo.com',
243
199
  :music_host => 'music.exvo.com',
244
200
  :pics_host => 'pics.exvo.com',
245
- :preview_host => 'preview.exvo.com',
246
- :store_host => 'store.exvo.com'
201
+ :preview_host => 'preview.exvo.com'
247
202
  },
248
203
  :staging => {
249
204
  :auth_debug => false,
250
205
  :auth_host => 'auth.exvo.co',
251
- :auth_require_ssl => false,
252
206
  :sso_cookie_domain => 'exvo.co',
253
207
  :budget_host => 'budget.exvo.co',
254
- :budget_require_ssl => false,
255
208
  :cdn_host => 'd1by559a994699.cloudfront.net',
256
209
  :cfs_host => 'cfs.exvo.co',
257
210
  :desktop_host => 'home.exvo.co',
@@ -261,16 +214,13 @@ module Exvo
261
214
  :inbox_host => 'inbox.exvo.co',
262
215
  :music_host => 'music.exvo.co',
263
216
  :pics_host => 'pics.exvo.co',
264
- :preview_host => 'preview.exvo.co',
265
- :store_host => 'store.exvo.co'
217
+ :preview_host => 'preview.exvo.co'
266
218
  },
267
219
  :development => {
268
220
  :auth_debug => false,
269
221
  :auth_host => 'auth.exvo.local',
270
- :auth_require_ssl => false,
271
222
  :sso_cookie_domain => 'exvo.local',
272
223
  :budget_host => 'budget.exvo.local',
273
- :budget_require_ssl => false,
274
224
  :cdn_host => 'home.exvo.local',
275
225
  :cfs_host => 'cfs.exvo.local',
276
226
  :desktop_host => 'home.exvo.local',
@@ -280,16 +230,13 @@ module Exvo
280
230
  :inbox_host => 'inbox.exvo.local',
281
231
  :music_host => 'music.exvo.local',
282
232
  :pics_host => 'pics.exvo.local',
283
- :preview_host => 'preview.exvo.local',
284
- :store_host => 'store.exvo.local'
233
+ :preview_host => 'preview.exvo.local'
285
234
  },
286
235
  :test => {
287
236
  :auth_debug => false,
288
237
  :auth_host => 'auth.exvo.local',
289
- :auth_require_ssl => false,
290
238
  :sso_cookie_domain => 'exvo.local',
291
239
  :budget_host => 'budget.exvo.local',
292
- :budget_require_ssl => false,
293
240
  :cdn_host => 'home.exvo.local',
294
241
  :cfs_host => 'cfs.exvo.local',
295
242
  :desktop_host => 'home.exvo.local',
@@ -299,8 +246,7 @@ module Exvo
299
246
  :inbox_host => 'inbox.exvo.local',
300
247
  :music_host => 'music.exvo.local',
301
248
  :pics_host => 'pics.exvo.local',
302
- :preview_host => 'preview.exvo.local',
303
- :store_host => 'store.exvo.local'
249
+ :preview_host => 'preview.exvo.local'
304
250
  }
305
251
  }
306
252
  end
@@ -1,5 +1,5 @@
1
1
  module Exvo
2
2
  module Helpers
3
- VERSION = "0.5.3"
3
+ VERSION = '0.6.0'
4
4
  end
5
5
  end
@@ -33,17 +33,16 @@ describe Exvo::Helpers do
33
33
  describe "uri methods in production environment" do
34
34
  specify { Exvo::Helpers.auth_uri.should match(/\Ahttps:\/\/auth.exvo.com\Z/) }
35
35
  specify { Exvo::Helpers.budget_uri.should match(/\Ahttps:\/\/budget.exvo.com\Z/) }
36
- specify { Exvo::Helpers.cdn_uri.should match(/\A\/\/d33gjlr95u9pgf.cloudfront.net\Z/) }
37
- specify { Exvo::Helpers.cfs_uri.should match(/\A\/\/cfs.exvo.com\Z/) }
36
+ specify { Exvo::Helpers.cdn_uri.should match(/\Ahttps:\/\/d33gjlr95u9pgf.cloudfront.net\Z/) }
37
+ specify { Exvo::Helpers.cfs_uri.should match(/\Ahttps:\/\/cfs.exvo.com\Z/) }
38
38
  specify { Exvo::Helpers.desktop_uri.should match('home.exvo.com') }
39
- specify { Exvo::Helpers.themes_uri.should match(/\A\/\/themes.exvo.com\Z/) }
39
+ specify { Exvo::Helpers.themes_uri.should match(/\Ahttps:\/\/themes.exvo.com\Z/) }
40
40
  specify { Exvo::Helpers.blog_uri.should match('www.exvo.com/blog') }
41
41
  specify { Exvo::Helpers.contacts_uri.should match('contacts.exvo.com') }
42
42
  specify { Exvo::Helpers.inbox_uri.should match('inbox.exvo.com') }
43
43
  specify { Exvo::Helpers.music_uri.should match('music.exvo.com') }
44
44
  specify { Exvo::Helpers.pics_uri.should match('pics.exvo.com') }
45
45
  specify { Exvo::Helpers.preview_uri.should match('preview.exvo.com') }
46
- specify { Exvo::Helpers.store_uri.should match('store.exvo.com') }
47
46
  end
48
47
 
49
48
  describe "host methods in production environment" do
@@ -59,7 +58,6 @@ describe Exvo::Helpers do
59
58
  specify { Exvo::Helpers.music_host.should eql('music.exvo.com') }
60
59
  specify { Exvo::Helpers.pics_host.should eql('pics.exvo.com') }
61
60
  specify { Exvo::Helpers.preview_host.should eql('preview.exvo.com') }
62
- specify { Exvo::Helpers.store_host.should eql('store.exvo.com') }
63
61
  end
64
62
 
65
63
  describe "host methods in staging environment" do
@@ -79,31 +77,21 @@ describe Exvo::Helpers do
79
77
  specify { Exvo::Helpers.music_host.should eql('music.exvo.co') }
80
78
  specify { Exvo::Helpers.pics_host.should eql('pics.exvo.co') }
81
79
  specify { Exvo::Helpers.preview_host.should eql('preview.exvo.co') }
82
- specify { Exvo::Helpers.store_host.should eql('store.exvo.co') }
83
80
  end
84
81
 
85
82
  describe "#auth_debug by default for production env" do
86
83
  specify { Exvo::Helpers.auth_debug.should be_false }
87
84
  end
88
85
 
89
- describe "#auth_require_ssl by default for production env" do
90
- specify { Exvo::Helpers.auth_require_ssl.should be_true }
91
- end
92
-
93
86
  describe "#sso_cookie_domain by default for production env" do
94
87
  specify { Exvo::Helpers.sso_cookie_domain.should eq("exvo.com") }
95
88
  end
96
89
 
97
- describe "#budget_require_ssl by default for production env" do
98
- specify { Exvo::Helpers.budget_require_ssl.should be_true }
99
- end
100
-
101
90
  describe "ENV settings override the defaults" do
102
91
  # all *host* methods are defined the same using metaprogramming, only testing for 1 is enough
103
92
  let(:cdn_host) { "test.cdn.exvo.com" }
104
93
  let(:auth_client_id) { '123' }
105
94
  let(:auth_client_secret) { 'abc' }
106
- let(:auth_require_ssl) { 'false' }
107
95
  let(:sso_cookie_domain) { "exvo.dev" }
108
96
  let(:sso_cookie_secret) { "secret" }
109
97
 
@@ -112,7 +100,6 @@ describe Exvo::Helpers do
112
100
  ENV["CDN_HOST"] = cdn_host
113
101
  ENV["AUTH_CLIENT_ID"] = auth_client_id
114
102
  ENV["AUTH_CLIENT_SECRET"] = auth_client_secret
115
- ENV["AUTH_REQUIRE_SSL"] = auth_require_ssl
116
103
  ENV["SSO_COOKIE_DOMAIN"] = sso_cookie_domain
117
104
  ENV["SSO_COOKIE_SECRET"] = sso_cookie_secret
118
105
  end
@@ -120,7 +107,6 @@ describe Exvo::Helpers do
120
107
  specify { Exvo::Helpers.cdn_host.should eql(cdn_host) }
121
108
  specify { Exvo::Helpers.auth_client_id.should eq(auth_client_id) }
122
109
  specify { Exvo::Helpers.auth_client_secret.should eq(auth_client_secret) }
123
- specify { Exvo::Helpers.auth_uri.should match(/http:\/\//) }
124
110
  specify { Exvo::Helpers.sso_cookie_domain.should eql(sso_cookie_domain) }
125
111
  specify { Exvo::Helpers.sso_cookie_secret.should eql(sso_cookie_secret) }
126
112
  end
@@ -130,7 +116,6 @@ describe Exvo::Helpers do
130
116
  let(:cdn_host) { "new.cdn.exvo.com" }
131
117
  let(:auth_client_id) { '123' }
132
118
  let(:auth_client_secret) { 'abc' }
133
- let(:auth_require_ssl) { false }
134
119
  let(:sso_cookie_domain) { "exvo.new" }
135
120
  let(:sso_cookie_secret) { "abc" }
136
121
 
@@ -138,7 +123,6 @@ describe Exvo::Helpers do
138
123
  Exvo::Helpers.cdn_host = cdn_host
139
124
  Exvo::Helpers.auth_client_id = auth_client_id
140
125
  Exvo::Helpers.auth_client_secret = auth_client_secret
141
- Exvo::Helpers.auth_require_ssl = auth_require_ssl
142
126
  Exvo::Helpers.sso_cookie_domain = sso_cookie_domain
143
127
  Exvo::Helpers.sso_cookie_secret = sso_cookie_secret
144
128
  end
@@ -146,7 +130,6 @@ describe Exvo::Helpers do
146
130
  specify { Exvo::Helpers.cdn_host.should eql(cdn_host) }
147
131
  specify { Exvo::Helpers.auth_client_id.should eq(auth_client_id) }
148
132
  specify { Exvo::Helpers.auth_client_secret.should eq(auth_client_secret) }
149
- specify { Exvo::Helpers.auth_uri.should match(/http:\/\//) }
150
133
  specify { Exvo::Helpers.sso_cookie_domain.should eql(sso_cookie_domain) }
151
134
  specify { Exvo::Helpers.sso_cookie_secret.should eql(sso_cookie_secret) }
152
135
  end
@@ -156,7 +139,6 @@ describe Exvo::Helpers do
156
139
  Exvo::Helpers.env = nil
157
140
 
158
141
  Exvo::Helpers.auth_debug = nil
159
- Exvo::Helpers.auth_require_ssl = nil
160
142
  Exvo::Helpers.auth_client_id = nil
161
143
  Exvo::Helpers.auth_client_secret = nil
162
144
  Exvo::Helpers.sso_cookie_domain = nil
@@ -174,14 +156,12 @@ describe Exvo::Helpers do
174
156
  Exvo::Helpers.music_host = nil
175
157
  Exvo::Helpers.pics_host = nil
176
158
  Exvo::Helpers.preview_host = nil
177
- Exvo::Helpers.store_host = nil
178
159
 
179
160
  ENV.delete("RACK_ENV")
180
161
  ENV.delete("CDN_HOST")
181
162
  ENV.delete("AUTH_DEBUG")
182
163
  ENV.delete("AUTH_CLIENT_ID")
183
164
  ENV.delete("AUTH_CLIENT_SECRET")
184
- ENV.delete("AUTH_REQUIRE_SSL")
185
165
  ENV.delete("SSO_COOKIE_DOMAIN")
186
166
  ENV.delete("SSO_COOKIE_SECRET")
187
167
  end
@@ -10,21 +10,21 @@ describe Exvo::ViewHelpers do
10
10
 
11
11
  describe "#javascript_bundle_include_tag" do
12
12
  it "returns a javascript_include_tag based on env" do
13
- view_helper.should_receive(:javascript_include_tag).with("//d33gjlr95u9pgf.cloudfront.net/javascripts/plugins.js")
13
+ view_helper.should_receive(:javascript_include_tag).with("https://d33gjlr95u9pgf.cloudfront.net/javascripts/plugins.js")
14
14
  view_helper.javascript_bundle_include_tag("plugins")
15
15
  end
16
16
  end
17
17
 
18
18
  describe "#themes_stylesheet_link_tag" do
19
19
  it "returns a stylesheet_link_tag based on env" do
20
- view_helper.should_receive(:stylesheet_link_tag).with("//themes.exvo.com/stylesheets/themes/frost/all.css", { :media => 'all' })
20
+ view_helper.should_receive(:stylesheet_link_tag).with("https://themes.exvo.com/stylesheets/themes/frost/all.css", { :media => 'all' })
21
21
  view_helper.themes_stylesheet_link_tag("frost/all", :media => 'all')
22
22
  end
23
23
  end
24
24
 
25
25
  describe "#themes_image_tag" do
26
26
  it "returns an image_tag based on env" do
27
- view_helper.should_receive(:image_tag).with("//themes.exvo.com/stylesheets/images/icons/exvo.png", { :alt => 'Exvo' })
27
+ view_helper.should_receive(:image_tag).with("https://themes.exvo.com/stylesheets/images/icons/exvo.png", { :alt => 'Exvo' })
28
28
  view_helper.themes_image_tag("icons/exvo.png", :alt => 'Exvo')
29
29
  end
30
30
  end
data/spec/spec_helper.rb CHANGED
@@ -1,8 +1,3 @@
1
- require 'simplecov'
2
- require 'simplecov-rcov'
3
- SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
4
- SimpleCov.start
5
-
6
1
  $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
7
2
  $:.unshift(File.dirname(__FILE__))
8
3
 
metadata CHANGED
@@ -1,162 +1,115 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exvo_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
5
- prerelease:
4
+ version: 0.6.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Paweł Gościcki
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-12-21 00:00:00.000000000 Z
11
+ date: 2013-05-01 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- type: :development
14
+ name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
- - - ! '>='
17
+ - - '>='
19
18
  - !ruby/object:Gem::Version
20
19
  version: '0'
21
- none: false
20
+ type: :development
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
23
  requirements:
25
- - - ! '>='
24
+ - - '>='
26
25
  - !ruby/object:Gem::Version
27
26
  version: '0'
28
- none: false
29
- name: rake
30
27
  - !ruby/object:Gem::Dependency
31
- type: :development
28
+ name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
30
  requirements:
34
- - - ! '>='
31
+ - - '>='
35
32
  - !ruby/object:Gem::Version
36
33
  version: '2.8'
37
- none: false
34
+ type: :development
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - ! '>='
38
+ - - '>='
42
39
  - !ruby/object:Gem::Version
43
40
  version: '2.8'
44
- none: false
45
- name: rspec
46
41
  - !ruby/object:Gem::Dependency
47
- type: :development
42
+ name: guard
48
43
  requirement: !ruby/object:Gem::Requirement
49
44
  requirements:
50
- - - ! '>='
45
+ - - '>='
51
46
  - !ruby/object:Gem::Version
52
47
  version: 0.10.0
53
- none: false
48
+ type: :development
54
49
  prerelease: false
55
50
  version_requirements: !ruby/object:Gem::Requirement
56
51
  requirements:
57
- - - ! '>='
52
+ - - '>='
58
53
  - !ruby/object:Gem::Version
59
54
  version: 0.10.0
60
- none: false
61
- name: guard
62
55
  - !ruby/object:Gem::Dependency
63
- type: :development
56
+ name: guard-bundler
64
57
  requirement: !ruby/object:Gem::Requirement
65
58
  requirements:
66
- - - ! '>='
59
+ - - '>='
67
60
  - !ruby/object:Gem::Version
68
61
  version: '0'
69
- none: false
62
+ type: :development
70
63
  prerelease: false
71
64
  version_requirements: !ruby/object:Gem::Requirement
72
65
  requirements:
73
- - - ! '>='
66
+ - - '>='
74
67
  - !ruby/object:Gem::Version
75
68
  version: '0'
76
- none: false
77
- name: guard-bundler
78
69
  - !ruby/object:Gem::Dependency
79
- type: :development
70
+ name: guard-rspec
80
71
  requirement: !ruby/object:Gem::Requirement
81
72
  requirements:
82
- - - ! '>='
73
+ - - '>='
83
74
  - !ruby/object:Gem::Version
84
75
  version: 0.6.0
85
- none: false
76
+ type: :development
86
77
  prerelease: false
87
78
  version_requirements: !ruby/object:Gem::Requirement
88
79
  requirements:
89
- - - ! '>='
80
+ - - '>='
90
81
  - !ruby/object:Gem::Version
91
82
  version: 0.6.0
92
- none: false
93
- name: guard-rspec
94
83
  - !ruby/object:Gem::Dependency
95
- type: :development
96
- requirement: !ruby/object:Gem::Requirement
97
- requirements:
98
- - - ! '>='
99
- - !ruby/object:Gem::Version
100
- version: '0'
101
- none: false
102
- prerelease: false
103
- version_requirements: !ruby/object:Gem::Requirement
104
- requirements:
105
- - - ! '>='
106
- - !ruby/object:Gem::Version
107
- version: '0'
108
- none: false
109
84
  name: rb-fsevent
110
- - !ruby/object:Gem::Dependency
111
- type: :development
112
85
  requirement: !ruby/object:Gem::Requirement
113
86
  requirements:
114
- - - ! '>='
87
+ - - '>='
115
88
  - !ruby/object:Gem::Version
116
89
  version: '0'
117
- none: false
118
- prerelease: false
119
- version_requirements: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - ! '>='
122
- - !ruby/object:Gem::Version
123
- version: '0'
124
- none: false
125
- name: rb-inotify
126
- - !ruby/object:Gem::Dependency
127
90
  type: :development
128
- requirement: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - ! '>='
131
- - !ruby/object:Gem::Version
132
- version: '0'
133
- none: false
134
91
  prerelease: false
135
92
  version_requirements: !ruby/object:Gem::Requirement
136
93
  requirements:
137
- - - ! '>='
94
+ - - '>='
138
95
  - !ruby/object:Gem::Version
139
96
  version: '0'
140
- none: false
141
- name: simplecov
142
97
  - !ruby/object:Gem::Dependency
143
- type: :development
98
+ name: rb-inotify
144
99
  requirement: !ruby/object:Gem::Requirement
145
100
  requirements:
146
- - - ! '>='
101
+ - - '>='
147
102
  - !ruby/object:Gem::Version
148
103
  version: '0'
149
- none: false
104
+ type: :development
150
105
  prerelease: false
151
106
  version_requirements: !ruby/object:Gem::Requirement
152
107
  requirements:
153
- - - ! '>='
108
+ - - '>='
154
109
  - !ruby/object:Gem::Version
155
110
  version: '0'
156
- none: false
157
- name: simplecov-rcov
158
111
  description: Ruby gem providing various helper methods, like auth_host, auth_uri,
159
- auth_require_ssl, cdn_host, etc.
112
+ cdn_host, etc.
160
113
  email:
161
114
  - pawel.goscicki@gmail.com
162
115
  executables: []
@@ -179,27 +132,27 @@ files:
179
132
  - spec/exvo_helpers/view_helpers_spec.rb
180
133
  - spec/spec_helper.rb
181
134
  homepage: https://github.com/Exvo/exvo_helpers/
182
- licenses: []
135
+ licenses:
136
+ - MIT
137
+ metadata: {}
183
138
  post_install_message:
184
139
  rdoc_options: []
185
140
  require_paths:
186
141
  - lib
187
142
  required_ruby_version: !ruby/object:Gem::Requirement
188
143
  requirements:
189
- - - ! '>='
144
+ - - '>='
190
145
  - !ruby/object:Gem::Version
191
146
  version: '0'
192
- none: false
193
147
  required_rubygems_version: !ruby/object:Gem::Requirement
194
148
  requirements:
195
- - - ! '>='
149
+ - - '>='
196
150
  - !ruby/object:Gem::Version
197
151
  version: '0'
198
- none: false
199
152
  requirements: []
200
153
  rubyforge_project:
201
- rubygems_version: 1.8.24
154
+ rubygems_version: 2.0.3
202
155
  signing_key:
203
- specification_version: 3
156
+ specification_version: 4
204
157
  summary: Collection of helper methods for various Exvo related apps/services
205
158
  test_files: []