jreject-rails 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: 9961e100cd7a0b3ce15c9c09464e64b58dadf849
4
- data.tar.gz: ffd9f1ef0cf7d23287a9377705e09f5f0c3096b8
3
+ metadata.gz: 862796bb3e6e3d6ea9e16a900768eb2bb4c83be9
4
+ data.tar.gz: 1ca57c044524f8c2c76d5c0b85f4551c5d2dce0f
5
5
  SHA512:
6
- metadata.gz: 48644f7acf24d23d7721ce19d77a360701147bb3e87274100de8141df30fdf2d48f895f9a9b931fd02f219d63b6dca2263d68a9adc1f5dd93001c8a2f4319d42
7
- data.tar.gz: b2c0c695f7b18222e252bf4f48dcc277e146d13c347dd03da450f0a28edea939b110fe44fe12fb633c2ae5118992d14a435e91690053a36526a99239f6838a64
6
+ metadata.gz: d8f7480bb29c647a5e5f82ba1ebe67f15e6a1181ecd4abfbde54989713051993bdea81a4c932772a9b2e8be6adcb79fba01a12f6c59449ea892bb5134067b386
7
+ data.tar.gz: a8728003a0e06030a1df225b7fd6e9166afeba750ad90c4421dd6e9c4e3549c80867b93f3b50571ea38a9cc896fe03466b2a6eaeeee04c1b2dd299bb20cf105d
@@ -1,3 +1,3 @@
1
1
  module JReject
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -94,7 +94,8 @@ $.reject = function(options) {
94
94
  },
95
95
 
96
96
  // Path where images are located
97
- imagePath: "<%= image_path('jreject/background_browser.gif').gsub /background_browser\.gif.*/, '' %>",
97
+ assetToken: "<%= image_path('jreject/background_browser.gif').scan(/background_browser([^\.]*)/).flatten.first %>",
98
+ imagePath: "<%= image_path('jreject/background_browser.gif').gsub /background_browser.*/, '' %>",
98
99
  // Background color for overlay
99
100
  overlayBgColor: '#000',
100
101
  // Background transparency (0-1)
@@ -364,7 +365,7 @@ $.reject = function(options) {
364
365
  });
365
366
 
366
367
  element.find('#jr_inner li').css({ // Browser list items (li)
367
- background: 'transparent url("'+opts.imagePath+'background_browser.gif") '+
368
+ background: 'transparent url("'+opts.imagePath+'background_browser' + (opts.assetToken ? "-" + opts.assetToken : "") + '.gif") '+
368
369
  'no-repeat scroll left top'
369
370
  });
370
371
 
@@ -372,7 +373,7 @@ $.reject = function(options) {
372
373
  // Dynamically sets the icon background image
373
374
  var self = $(this);
374
375
  self.css('background','transparent url('+opts.imagePath+'browser_'+
375
- (self.parent('li').attr('id').replace(/jr_/,''))+'.gif)'+
376
+ (self.parent('li').attr('id').replace(/jr_/,''))+ (opts.assetToken ? "-" + opts.assetToken : "") +'.gif)'+
376
377
  ' no-repeat scroll left top');
377
378
 
378
379
  // Send link clicks to openBrowserLinks
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jreject-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rustam Sharshenov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-18 00:00:00.000000000 Z
11
+ date: 2014-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties