gnawrnip 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/gnawrnip.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency 'capybara', "~> 2.1"
22
- spec.add_dependency 'turnip_formatter', '~> 0.2.0'
22
+ spec.add_dependency 'turnip_formatter', '~> 0.2.2'
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
24
  spec.add_development_dependency "rake"
25
25
  spec.add_development_dependency 'rspec'
@@ -12,15 +12,17 @@ module Gnawrnip::JS
12
12
  end
13
13
 
14
14
  TurnipFormatter::Template.add_js(<<-EOS)
15
- $('.screenshot.animation').each(function() {
16
- var imgs = $(this).children('img');
17
- var frame = 0;
15
+ $(function() {
16
+ $('.screenshot.animation').each(function() {
17
+ var imgs = $(this).children('img');
18
+ var frame = 0;
18
19
 
19
- imgs.hide();
20
- setInterval(function() {
21
- imgs.hide();
22
- imgs.eq(frame).show();
23
- frame = (++frame % imgs.length);
24
- }, #{Gnawrnip.frame_interval.to_s});
20
+ imgs.hide();
21
+ setInterval(function() {
22
+ imgs.hide();
23
+ imgs.eq(frame).show();
24
+ frame = (++frame % imgs.length);
25
+ }, #{Gnawrnip.frame_interval.to_s});
26
+ });
25
27
  });
26
28
  EOS
@@ -1,3 +1,3 @@
1
1
  module Gnawrnip
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gnawrnip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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: 2013-06-29 00:00:00.000000000 Z
12
+ date: 2013-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capybara
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: 0.2.0
37
+ version: 0.2.2
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: 0.2.0
45
+ version: 0.2.2
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: bundler
48
48
  requirement: !ruby/object:Gem::Requirement