cucumber-cinema 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile +16 -0
- data/Gemfile.lock +63 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +49 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/cucumber-cinema.gemspec +77 -0
- data/lib/cucumber-cinema.rb +32 -0
- data/lib/cucumber_cinema/camera.rb +41 -0
- data/lib/cucumber_cinema/path_strategy.rb +23 -0
- data/public/galleria/LICENSE +21 -0
- data/public/galleria/galleria-1.2.5.js +4993 -0
- data/public/galleria/galleria-1.2.5.min.js +102 -0
- data/public/galleria/themes/classic/classic-demo.html +97 -0
- data/public/galleria/themes/classic/classic-loader.gif +0 -0
- data/public/galleria/themes/classic/classic-map.png +0 -0
- data/public/galleria/themes/classic/galleria.classic.css +219 -0
- data/public/galleria/themes/classic/galleria.classic.js +94 -0
- data/public/galleria/themes/classic/galleria.classic.min.js +11 -0
- data/public/index.html.erb +30 -0
- data/test/helper.rb +18 -0
- data/test/test_cucumber-cinema.rb +7 -0
- metadata +175 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
/*
|
2
|
+
Galleria Classic Theme 2011-08-01
|
3
|
+
http://galleria.aino.se
|
4
|
+
|
5
|
+
Copyright (c) 2011, Aino
|
6
|
+
Licensed under the MIT license.
|
7
|
+
*/
|
8
|
+
Galleria.requires(1.25,"This version of Classic theme requires Galleria 1.2.5 or later");
|
9
|
+
(function(b){Galleria.addTheme({name:"classic",author:"Galleria",css:"galleria.classic.css",defaults:{transition:"slide",thumbCrop:"height",_toggleInfo:!0},init:function(e){this.addElement("info-link","info-close");this.append({info:["info-link","info-close"]});var c=this.$("info-link,info-close,info-text"),d=Galleria.TOUCH,f=d?"touchstart":"click";this.$("loader,counter").show().css("opacity",0.4);d||(this.addIdleState(this.get("image-nav-left"),{left:-50}),this.addIdleState(this.get("image-nav-right"),
|
10
|
+
{right:-50}),this.addIdleState(this.get("counter"),{opacity:0}));e._toggleInfo===!0?c.bind(f,function(){c.toggle()}):(c.show(),this.$("info-link, info-close").hide());this.bind("thumbnail",function(a){d?b(a.thumbTarget).css("opacity",this.getIndex()?1:0.6):(b(a.thumbTarget).css("opacity",0.6).parent().hover(function(){b(this).not(".active").children().stop().fadeTo(100,1)},function(){b(this).not(".active").children().stop().fadeTo(400,0.6)}),a.index===this.getIndex()&&b(a.thumbTarget).css("opacity",
|
11
|
+
1))});this.bind("loadstart",function(a){a.cached||this.$("loader").show().fadeTo(200,0.4);this.$("info").toggle(this.hasInfo());b(a.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",0.6)});this.bind("loadfinish",function(){this.$("loader").fadeOut(200)})}})})(jQuery);
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>Cucumber Cinema</title>
|
4
|
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
|
5
|
+
<script src="galleria/galleria-1.2.5.min.js"></script>
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<div id="gallery">
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<script>
|
12
|
+
Galleria.loadTheme('galleria/themes/classic/galleria.classic.min.js');
|
13
|
+
var data = [
|
14
|
+
<%@files.each do |file|%>
|
15
|
+
{ image: "<%=file%>" }
|
16
|
+
<%=end%>
|
17
|
+
|
18
|
+
];
|
19
|
+
|
20
|
+
$('#gallery').galleria({
|
21
|
+
dataSource: data,
|
22
|
+
width: 1000,
|
23
|
+
height: 500
|
24
|
+
});
|
25
|
+
|
26
|
+
</script>
|
27
|
+
|
28
|
+
</body>
|
29
|
+
</html>
|
30
|
+
|
data/test/helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
require 'shoulda'
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
+
require 'cucumber-cinema'
|
16
|
+
|
17
|
+
class Test::Unit::TestCase
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,175 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cucumber-cinema
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 11
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 4
|
9
|
+
- 2
|
10
|
+
version: 0.4.2
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Ilya Katz
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2011-08-04 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
type: :runtime
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
|
+
none: false
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
hash: 3
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
version: "0"
|
31
|
+
prerelease: false
|
32
|
+
name: imgkit
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
type: :runtime
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
37
|
+
none: false
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
hash: 3
|
42
|
+
segments:
|
43
|
+
- 0
|
44
|
+
version: "0"
|
45
|
+
prerelease: false
|
46
|
+
name: cucumber-rails
|
47
|
+
version_requirements: *id002
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
type: :development
|
50
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
hash: 3
|
56
|
+
segments:
|
57
|
+
- 0
|
58
|
+
version: "0"
|
59
|
+
prerelease: false
|
60
|
+
name: shoulda
|
61
|
+
version_requirements: *id003
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
type: :development
|
64
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
hash: 23
|
70
|
+
segments:
|
71
|
+
- 1
|
72
|
+
- 0
|
73
|
+
- 0
|
74
|
+
version: 1.0.0
|
75
|
+
prerelease: false
|
76
|
+
name: bundler
|
77
|
+
version_requirements: *id004
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
type: :development
|
80
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
hash: 11
|
86
|
+
segments:
|
87
|
+
- 1
|
88
|
+
- 6
|
89
|
+
- 2
|
90
|
+
version: 1.6.2
|
91
|
+
prerelease: false
|
92
|
+
name: jeweler
|
93
|
+
version_requirements: *id005
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
type: :development
|
96
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
hash: 3
|
102
|
+
segments:
|
103
|
+
- 0
|
104
|
+
version: "0"
|
105
|
+
prerelease: false
|
106
|
+
name: rcov
|
107
|
+
version_requirements: *id006
|
108
|
+
description: Take a series of screenshots while running your cucumber test suite
|
109
|
+
email: ilyakatz@gmail.com
|
110
|
+
executables: []
|
111
|
+
|
112
|
+
extensions: []
|
113
|
+
|
114
|
+
extra_rdoc_files:
|
115
|
+
- LICENSE.txt
|
116
|
+
- README.rdoc
|
117
|
+
files:
|
118
|
+
- .document
|
119
|
+
- Gemfile
|
120
|
+
- Gemfile.lock
|
121
|
+
- LICENSE.txt
|
122
|
+
- README.rdoc
|
123
|
+
- Rakefile
|
124
|
+
- VERSION
|
125
|
+
- cucumber-cinema.gemspec
|
126
|
+
- lib/cucumber-cinema.rb
|
127
|
+
- lib/cucumber_cinema/camera.rb
|
128
|
+
- lib/cucumber_cinema/path_strategy.rb
|
129
|
+
- public/galleria/LICENSE
|
130
|
+
- public/galleria/galleria-1.2.5.js
|
131
|
+
- public/galleria/galleria-1.2.5.min.js
|
132
|
+
- public/galleria/themes/classic/classic-demo.html
|
133
|
+
- public/galleria/themes/classic/classic-loader.gif
|
134
|
+
- public/galleria/themes/classic/classic-map.png
|
135
|
+
- public/galleria/themes/classic/galleria.classic.css
|
136
|
+
- public/galleria/themes/classic/galleria.classic.js
|
137
|
+
- public/galleria/themes/classic/galleria.classic.min.js
|
138
|
+
- public/index.html.erb
|
139
|
+
- test/helper.rb
|
140
|
+
- test/test_cucumber-cinema.rb
|
141
|
+
homepage: http://github.com/ilyakatz/cucumber-cinema
|
142
|
+
licenses:
|
143
|
+
- MIT
|
144
|
+
post_install_message:
|
145
|
+
rdoc_options: []
|
146
|
+
|
147
|
+
require_paths:
|
148
|
+
- lib
|
149
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
150
|
+
none: false
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
hash: 3
|
155
|
+
segments:
|
156
|
+
- 0
|
157
|
+
version: "0"
|
158
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
|
+
none: false
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
hash: 3
|
164
|
+
segments:
|
165
|
+
- 0
|
166
|
+
version: "0"
|
167
|
+
requirements: []
|
168
|
+
|
169
|
+
rubyforge_project:
|
170
|
+
rubygems_version: 1.8.5
|
171
|
+
signing_key:
|
172
|
+
specification_version: 3
|
173
|
+
summary: Take a series of screenshots while running your cucumber test suite
|
174
|
+
test_files: []
|
175
|
+
|