familiarity 0.2.1 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2dd519d51c98acb014642d12b06e4de9a6f82a1b
4
- data.tar.gz: 0584a4efa27e079b51ab5e2e1dddd7b7187f872f
3
+ metadata.gz: 5dc7f6a35c2b9b452a6088c4fc04fca378fbd0eb
4
+ data.tar.gz: 6a0eb15ae6327b273133c11b75752e9d7d22a6f7
5
5
  SHA512:
6
- metadata.gz: 404901d952f72cb7af44f93413df82792c1c00226e3560bf4553514994f14c1f02f5f8d0d4006f6f14d7fe8b12c2a3c4ad1944a63983f1e4a1835d08630c99f3
7
- data.tar.gz: 55ac357617105be747e9e0f4e708bfdc4bf24136b89360ff0d4ed8ab260aee3e43c82a96fe1364deba99415c9cd723d079e7bd597cbc3ef52fb9a03ec1c42b7f
6
+ metadata.gz: 4fc554629fe5193dcd3d5246f75058b51098f1ab81bac94ec1bf1155be7ee089b017b0a088463186e967dc4d4da5b69144350b47ab337c299dc9d4a2cd879ada
7
+ data.tar.gz: 34e39762ee1de2845872a2e9b111ad775a4981126e458fcadd354625b4771e8a6a835890ff96676b475f1182b1aee0f132e9b033774c9333247c90b33a114997
data/README.rdoc CHANGED
@@ -6,7 +6,7 @@ This gem packages a rails engine which provides an interactive demo of features/
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'familiarity', :git => 'git@github.com:praveenkumarsinha/familiarity.git'
9
+ gem 'familiarity'
10
10
 
11
11
  Then execute:
12
12
 
@@ -2,7 +2,8 @@ module Familiarity
2
2
  module ApplicationHelper
3
3
  def familiaritySwitchBoard
4
4
  content_tag('script') do
5
- raw "$(document).on(\"page:change\", function () {FamiliarityAdmin.familiaritySwitchBoard();});"
5
+ # raw "$(document).on(\"page:change\", function () {FamiliarityAdmin.familiaritySwitchBoard();});"
6
+ raw "FamiliarityAdmin.familiaritySwitchBoard();"
6
7
  end
7
8
  end
8
9
 
@@ -17,7 +18,7 @@ module Familiarity
17
18
  }.merge(options)
18
19
 
19
20
  content_tag('script') do
20
- raw <<END_SQL
21
+ raw <<END_SCRIPT
21
22
  var cn = 'familiarity_' + '#{request.path}'.replace(/\\//g,'A');
22
23
  var familiarity = new Familiarity(#{_options.to_json});
23
24
  if (typeof $.cookie(cn) == "undefined")
@@ -25,7 +26,7 @@ module Familiarity
25
26
  familiarity.familiarityView(true);
26
27
  console.log($.cookie(cn, new Date(), { expires: #{_options[:remember_duration]} }));
27
28
  }
28
- END_SQL
29
+ END_SCRIPT
29
30
  end
30
31
  end
31
32
  end
@@ -1,3 +1,3 @@
1
1
  module Familiarity
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: familiarity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Praveen Kumar Sinha