cucumber-cinema 0.6.2 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +1 -29
- data/README.rdoc +4 -1
- data/VERSION +1 -1
- data/cucumber-cinema.gemspec +18 -6
- data/lib/cucumber-cinema.rb +19 -7
- data/lib/cucumber_cinema/camera.rb +7 -3
- data/lib/cucumber_cinema/view_strategy.rb +18 -3
- data/public/images/gang.JPG +0 -0
- data/public/images/gang_thumb.jpg +0 -0
- data/public/index.html +111 -0
- data/public/javascripts/cucumber_cinema.js +32 -0
- data/public/javascripts/jquery-ui.min.js +406 -0
- data/public/javascripts/jquery.fileupload-ui.js +642 -0
- data/public/javascripts/jquery.fileupload.js +711 -0
- data/public/javascripts/jquery.iframe-transport.js +133 -0
- data/public/javascripts/jquery.min.js +18 -0
- data/public/javascripts/jquery.tmpl.min.js +1 -0
- data/public/stylesheets/jquery-ui.css +576 -0
- data/public/stylesheets/jquery.fileupload-ui.css +100 -0
- data/public/test.json +1 -0
- metadata +19 -7
- data/public/index.html.erb +0 -30
@@ -0,0 +1,100 @@
|
|
1
|
+
@charset 'UTF-8';
|
2
|
+
/*
|
3
|
+
* jQuery File Upload UI Plugin CSS 5.0.5
|
4
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
5
|
+
*
|
6
|
+
* Copyright 2010, Sebastian Tschan
|
7
|
+
* https://blueimp.net
|
8
|
+
*
|
9
|
+
* Licensed under the MIT license:
|
10
|
+
* http://creativecommons.org/licenses/MIT/
|
11
|
+
*/
|
12
|
+
|
13
|
+
.ui-button input {
|
14
|
+
position: absolute;
|
15
|
+
top: 0;
|
16
|
+
right: 0;
|
17
|
+
margin: 0;
|
18
|
+
border: solid transparent;
|
19
|
+
border-width: 0 0 100px 200px;
|
20
|
+
opacity: 0;
|
21
|
+
filter: alpha(opacity=0);
|
22
|
+
-o-transform: translate(250px, -50px) scale(1);
|
23
|
+
-moz-transform: translate(-300px, 0) scale(4);
|
24
|
+
direction: ltr;
|
25
|
+
cursor: pointer;
|
26
|
+
}
|
27
|
+
|
28
|
+
.fileinput-button {
|
29
|
+
overflow: hidden;
|
30
|
+
}
|
31
|
+
|
32
|
+
/* Fix for IE 6: */
|
33
|
+
*html .fileinput-button {
|
34
|
+
padding: 2px 0;
|
35
|
+
}
|
36
|
+
|
37
|
+
/* Fix for IE 7: */
|
38
|
+
*+html .fileinput-button {
|
39
|
+
padding: 2px 0;
|
40
|
+
}
|
41
|
+
|
42
|
+
.fileupload-buttonbar {
|
43
|
+
padding: 0.2em 0.4em;
|
44
|
+
}
|
45
|
+
|
46
|
+
.fileupload-buttonbar .ui-button {
|
47
|
+
vertical-align: middle;
|
48
|
+
}
|
49
|
+
|
50
|
+
.fileupload-content {
|
51
|
+
padding: 0.2em 0.4em;
|
52
|
+
border-top-width: 0;
|
53
|
+
}
|
54
|
+
|
55
|
+
.ui-progressbar {
|
56
|
+
width: 200px;
|
57
|
+
height: 20px;
|
58
|
+
}
|
59
|
+
|
60
|
+
.ui-progressbar-value {
|
61
|
+
background: url("/images/pbar-ani.gif");
|
62
|
+
}
|
63
|
+
|
64
|
+
.fileupload-progressbar {
|
65
|
+
width: 400px;
|
66
|
+
margin: 10px 0;
|
67
|
+
}
|
68
|
+
|
69
|
+
.files {
|
70
|
+
margin: 10px 0;
|
71
|
+
border-collapse: collapse;
|
72
|
+
}
|
73
|
+
|
74
|
+
.files td {
|
75
|
+
padding: 5px;
|
76
|
+
border-spacing: 5px;
|
77
|
+
}
|
78
|
+
|
79
|
+
.files img {
|
80
|
+
border: none;
|
81
|
+
}
|
82
|
+
|
83
|
+
.files .name {
|
84
|
+
padding: 0 10px;
|
85
|
+
}
|
86
|
+
|
87
|
+
.files .size {
|
88
|
+
padding: 0 10px 0 0;
|
89
|
+
text-align: right;
|
90
|
+
white-space: nowrap;
|
91
|
+
}
|
92
|
+
|
93
|
+
.ui-state-disabled .ui-state-disabled {
|
94
|
+
opacity: 1;
|
95
|
+
filter: alpha(opacity=100);
|
96
|
+
}
|
97
|
+
|
98
|
+
.ui-state-disabled input {
|
99
|
+
cursor: default;
|
100
|
+
}
|
data/public/test.json
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
[{"thumbnail_url":"images/gang_thumb.jpg","url":"images/gang.jpg","name":"gang.jpg"},{"thumbnail_url":"images/gang_thumb.jpg","url":"images/gang.jpg","name":"gang.jpg"}]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-cinema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 7
|
9
|
+
- 1
|
10
|
+
version: 0.7.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ilya Katz
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-08-
|
18
|
+
date: 2011-08-27 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
- 0
|
44
44
|
version: "0"
|
45
45
|
prerelease: false
|
46
|
-
name: cucumber
|
46
|
+
name: cucumber
|
47
47
|
version_requirements: *id002
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
type: :development
|
@@ -135,7 +135,19 @@ files:
|
|
135
135
|
- public/galleria/themes/classic/galleria.classic.css
|
136
136
|
- public/galleria/themes/classic/galleria.classic.js
|
137
137
|
- public/galleria/themes/classic/galleria.classic.min.js
|
138
|
-
- public/
|
138
|
+
- public/images/gang.JPG
|
139
|
+
- public/images/gang_thumb.jpg
|
140
|
+
- public/index.html
|
141
|
+
- public/javascripts/cucumber_cinema.js
|
142
|
+
- public/javascripts/jquery-ui.min.js
|
143
|
+
- public/javascripts/jquery.fileupload-ui.js
|
144
|
+
- public/javascripts/jquery.fileupload.js
|
145
|
+
- public/javascripts/jquery.iframe-transport.js
|
146
|
+
- public/javascripts/jquery.min.js
|
147
|
+
- public/javascripts/jquery.tmpl.min.js
|
148
|
+
- public/stylesheets/jquery-ui.css
|
149
|
+
- public/stylesheets/jquery.fileupload-ui.css
|
150
|
+
- public/test.json
|
139
151
|
- test/helper.rb
|
140
152
|
- test/test_cucumber-cinema.rb
|
141
153
|
homepage: http://github.com/ilyakatz/cucumber-cinema
|
data/public/index.html.erb
DELETED
@@ -1,30 +0,0 @@
|
|
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
|
-
|