photoviewer 1.1.0
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.
- data/LICENSE +842 -0
- data/README +33 -0
- data/Rakefile +38 -0
- data/app/controllers/application.rb +28 -0
- data/app/controllers/list_controller.rb +86 -0
- data/app/helpers/application_helper.rb +20 -0
- data/app/helpers/list_helper.rb +19 -0
- data/app/models/list.rb +19 -0
- data/app/views/list/banner.html.erb +148 -0
- data/app/views/list/images.xml +8 -0
- data/app/views/list/index.html.erb +46 -0
- data/app/views/list/promo.html.erb +89 -0
- data/app/views/list/response.xml +1 -0
- data/app/views/list/set_index.html.erb +77 -0
- data/app/views/list/view.html.erb +150 -0
- data/catalog.xml +4 -0
- data/config/boot.rb +109 -0
- data/config/database.yml +24 -0
- data/config/environment.rb +62 -0
- data/config/environments/development.rb +18 -0
- data/config/environments/production.rb +19 -0
- data/config/environments/test.rb +22 -0
- data/config/initializers/inflections.rb +10 -0
- data/config/initializers/mime_types.rb +5 -0
- data/config/rmobio.yml +10 -0
- data/config/routes.rb +37 -0
- data/coverage/app-controllers-application_rb.html +659 -0
- data/coverage/app-controllers-list_controller_rb.html +717 -0
- data/coverage/app-helpers-application_helper_rb.html +651 -0
- data/coverage/app-helpers-list_helper_rb.html +650 -0
- data/coverage/index.html +390 -0
- data/db/schema.rb +14 -0
- data/doc/README_FOR_APP +2 -0
- data/log/development.log +675 -0
- data/log/test.log +630 -0
- data/public/404.html +30 -0
- data/public/422.html +30 -0
- data/public/500.html +30 -0
- data/public/dispatch.cgi +10 -0
- data/public/dispatch.fcgi +24 -0
- data/public/dispatch.rb +10 -0
- data/public/favicon.ico +0 -0
- data/public/images/bn/afp.png +0 -0
- data/public/images/bn/airtel.png +0 -0
- data/public/images/bn/bpl.png +0 -0
- data/public/images/bn/imobizo.png +0 -0
- data/public/images/bn/toi.png +0 -0
- data/public/images/bn/trivia.png +0 -0
- data/public/images/cricket.png +0 -0
- data/public/images/default_state_icon.png +0 -0
- data/public/images/mobio_small.png +0 -0
- data/public/images/rails.png +0 -0
- data/public/images/time_small.png +0 -0
- data/public/images/title_icon.png +0 -0
- data/public/index.html +277 -0
- data/public/javascripts/application.js +2 -0
- data/public/javascripts/controls.js +963 -0
- data/public/javascripts/dragdrop.js +972 -0
- data/public/javascripts/effects.js +1120 -0
- data/public/javascripts/prototype.js +4225 -0
- data/public/robots.txt +5 -0
- data/public/stylesheets/scaffold.css +74 -0
- data/script/about +3 -0
- data/script/console +3 -0
- data/script/destroy +3 -0
- data/script/generate +3 -0
- data/script/performance/benchmarker +3 -0
- data/script/performance/profiler +3 -0
- data/script/performance/request +3 -0
- data/script/plugin +3 -0
- data/script/process/inspector +3 -0
- data/script/process/reaper +3 -0
- data/script/process/spawner +3 -0
- data/script/runner +3 -0
- data/script/server +3 -0
- data/test/functional/list_controller_test.rb +25 -0
- data/test/test_helper.rb +55 -0
- data/test/unit/list_test.rb +25 -0
- metadata +184 -0
data/public/robots.txt
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
body { background-color: #fff; color: #333; }
|
2
|
+
|
3
|
+
body, p, ol, ul, td {
|
4
|
+
font-family: verdana, arial, helvetica, sans-serif;
|
5
|
+
font-size: 13px;
|
6
|
+
line-height: 18px;
|
7
|
+
}
|
8
|
+
|
9
|
+
pre {
|
10
|
+
background-color: #eee;
|
11
|
+
padding: 10px;
|
12
|
+
font-size: 11px;
|
13
|
+
}
|
14
|
+
|
15
|
+
a { color: #000; }
|
16
|
+
a:visited { color: #666; }
|
17
|
+
a:hover { color: #fff; background-color:#000; }
|
18
|
+
|
19
|
+
.fieldWithErrors {
|
20
|
+
padding: 2px;
|
21
|
+
background-color: red;
|
22
|
+
display: table;
|
23
|
+
}
|
24
|
+
|
25
|
+
#errorExplanation {
|
26
|
+
width: 400px;
|
27
|
+
border: 2px solid red;
|
28
|
+
padding: 7px;
|
29
|
+
padding-bottom: 12px;
|
30
|
+
margin-bottom: 20px;
|
31
|
+
background-color: #f0f0f0;
|
32
|
+
}
|
33
|
+
|
34
|
+
#errorExplanation h2 {
|
35
|
+
text-align: left;
|
36
|
+
font-weight: bold;
|
37
|
+
padding: 5px 5px 5px 15px;
|
38
|
+
font-size: 12px;
|
39
|
+
margin: -7px;
|
40
|
+
background-color: #c00;
|
41
|
+
color: #fff;
|
42
|
+
}
|
43
|
+
|
44
|
+
#errorExplanation p {
|
45
|
+
color: #333;
|
46
|
+
margin-bottom: 0;
|
47
|
+
padding: 5px;
|
48
|
+
}
|
49
|
+
|
50
|
+
#errorExplanation ul li {
|
51
|
+
font-size: 12px;
|
52
|
+
list-style: square;
|
53
|
+
}
|
54
|
+
|
55
|
+
div.uploadStatus {
|
56
|
+
margin: 5px;
|
57
|
+
}
|
58
|
+
|
59
|
+
div.progressBar {
|
60
|
+
margin: 5px;
|
61
|
+
}
|
62
|
+
|
63
|
+
div.progressBar div.border {
|
64
|
+
background-color: #fff;
|
65
|
+
border: 1px solid gray;
|
66
|
+
width: 100%;
|
67
|
+
}
|
68
|
+
|
69
|
+
div.progressBar div.background {
|
70
|
+
background-color: #333;
|
71
|
+
height: 18px;
|
72
|
+
width: 0%;
|
73
|
+
}
|
74
|
+
|
data/script/about
ADDED
data/script/console
ADDED
data/script/destroy
ADDED
data/script/generate
ADDED
data/script/plugin
ADDED
data/script/runner
ADDED
data/script/server
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (C) 2007 Mobio Networks, Inc.
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
16
|
+
#
|
17
|
+
|
18
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
19
|
+
|
20
|
+
class ListControllerTest < ActionController::TestCase
|
21
|
+
# Replace this with your real tests.
|
22
|
+
def test_truth
|
23
|
+
assert true
|
24
|
+
end
|
25
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (C) 2007 Mobio Networks, Inc.
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
16
|
+
#
|
17
|
+
|
18
|
+
ENV["RAILS_ENV"] = "test"
|
19
|
+
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
20
|
+
require 'test_help'
|
21
|
+
|
22
|
+
class Test::Unit::TestCase
|
23
|
+
# Transactional fixtures accelerate your tests by wrapping each test method
|
24
|
+
# in a transaction that's rolled back on completion. This ensures that the
|
25
|
+
# test database remains unchanged so your fixtures don't have to be reloaded
|
26
|
+
# between every test method. Fewer database queries means faster tests.
|
27
|
+
#
|
28
|
+
# Read Mike Clark's excellent walkthrough at
|
29
|
+
# http://clarkware.com/cgi/blosxom/2005/10/24#Rails10FastTesting
|
30
|
+
#
|
31
|
+
# Every Active Record database supports transactions except MyISAM tables
|
32
|
+
# in MySQL. Turn off transactional fixtures in this case; however, if you
|
33
|
+
# don't care one way or the other, switching from MyISAM to InnoDB tables
|
34
|
+
# is recommended.
|
35
|
+
#
|
36
|
+
# The only drawback to using transactional fixtures is when you actually
|
37
|
+
# need to test transactions. Since your test is bracketed by a transaction,
|
38
|
+
# any transactions started in your code will be automatically rolled back.
|
39
|
+
self.use_transactional_fixtures = true
|
40
|
+
|
41
|
+
# Instantiated fixtures are slow, but give you @david where otherwise you
|
42
|
+
# would need people(:david). If you don't want to migrate your existing
|
43
|
+
# test cases which use the @david style and don't mind the speed hit (each
|
44
|
+
# instantiated fixtures translates to a database query per test method),
|
45
|
+
# then set this back to true.
|
46
|
+
self.use_instantiated_fixtures = false
|
47
|
+
|
48
|
+
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
49
|
+
#
|
50
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
51
|
+
# -- they do not yet inherit this setting
|
52
|
+
fixtures :all
|
53
|
+
|
54
|
+
# Add more helper methods to be used by all tests here...
|
55
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
#
|
2
|
+
# Copyright (C) 2007 Mobio Networks, Inc.
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
7
|
+
# (at your option) any later version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
# GNU General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU General Public License
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
16
|
+
#
|
17
|
+
|
18
|
+
require File.dirname(__FILE__) + '/../test_helper'
|
19
|
+
|
20
|
+
class ListTest < ActiveSupport::TestCase
|
21
|
+
# Replace this with your real tests.
|
22
|
+
def test_truth
|
23
|
+
assert true
|
24
|
+
end
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,184 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: photoviewer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jenny Chang
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-03-14 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: rmobio
|
17
|
+
version_requirement:
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.1.0
|
23
|
+
version:
|
24
|
+
- !ruby/object:Gem::Dependency
|
25
|
+
name: hpricot
|
26
|
+
version_requirement:
|
27
|
+
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: "0.6"
|
32
|
+
version:
|
33
|
+
description: ""
|
34
|
+
email:
|
35
|
+
- jchang@getmobio.com
|
36
|
+
executables: []
|
37
|
+
|
38
|
+
extensions: []
|
39
|
+
|
40
|
+
extra_rdoc_files: []
|
41
|
+
|
42
|
+
files:
|
43
|
+
- db
|
44
|
+
- README
|
45
|
+
- test
|
46
|
+
- script
|
47
|
+
- Rakefile
|
48
|
+
- coverage
|
49
|
+
- public
|
50
|
+
- catalog.xml
|
51
|
+
- doc
|
52
|
+
- lib
|
53
|
+
- app
|
54
|
+
- vendor
|
55
|
+
- LICENSE
|
56
|
+
- config
|
57
|
+
- tmp
|
58
|
+
- log
|
59
|
+
- pkg
|
60
|
+
- db/schema.rb
|
61
|
+
- test/test_helper.rb
|
62
|
+
- test/unit
|
63
|
+
- test/fixtures
|
64
|
+
- test/functional
|
65
|
+
- test/integration
|
66
|
+
- test/mocks
|
67
|
+
- test/unit/list_test.rb
|
68
|
+
- test/functional/list_controller_test.rb
|
69
|
+
- test/mocks/test
|
70
|
+
- test/mocks/development
|
71
|
+
- script/runner
|
72
|
+
- script/process
|
73
|
+
- script/generate
|
74
|
+
- script/about
|
75
|
+
- script/console
|
76
|
+
- script/server
|
77
|
+
- script/plugin
|
78
|
+
- script/performance
|
79
|
+
- script/destroy
|
80
|
+
- script/process/spawner
|
81
|
+
- script/process/reaper
|
82
|
+
- script/process/inspector
|
83
|
+
- script/performance/request
|
84
|
+
- script/performance/benchmarker
|
85
|
+
- script/performance/profiler
|
86
|
+
- coverage/app-helpers-list_helper_rb.html
|
87
|
+
- coverage/index.html
|
88
|
+
- coverage/app-helpers-application_helper_rb.html
|
89
|
+
- coverage/app-controllers-list_controller_rb.html
|
90
|
+
- coverage/app-controllers-application_rb.html
|
91
|
+
- public/dispatch.rb
|
92
|
+
- public/500.html
|
93
|
+
- public/robots.txt
|
94
|
+
- public/index.html
|
95
|
+
- public/dispatch.fcgi
|
96
|
+
- public/422.html
|
97
|
+
- public/images
|
98
|
+
- public/404.html
|
99
|
+
- public/favicon.ico
|
100
|
+
- public/dispatch.cgi
|
101
|
+
- public/javascripts
|
102
|
+
- public/stylesheets
|
103
|
+
- public/images/title_icon.png
|
104
|
+
- public/images/mobio_small.png
|
105
|
+
- public/images/cricket.png
|
106
|
+
- public/images/bn
|
107
|
+
- public/images/default_state_icon.png
|
108
|
+
- public/images/rails.png
|
109
|
+
- public/images/time_small.png
|
110
|
+
- public/images/bn/imobizo.png
|
111
|
+
- public/images/bn/bpl.png
|
112
|
+
- public/images/bn/toi.png
|
113
|
+
- public/images/bn/afp.png
|
114
|
+
- public/images/bn/airtel.png
|
115
|
+
- public/images/bn/trivia.png
|
116
|
+
- public/javascripts/dragdrop.js
|
117
|
+
- public/javascripts/effects.js
|
118
|
+
- public/javascripts/application.js
|
119
|
+
- public/javascripts/prototype.js
|
120
|
+
- public/javascripts/controls.js
|
121
|
+
- public/stylesheets/scaffold.css
|
122
|
+
- doc/README_FOR_APP
|
123
|
+
- lib/tasks
|
124
|
+
- app/views
|
125
|
+
- app/controllers
|
126
|
+
- app/models
|
127
|
+
- app/helpers
|
128
|
+
- app/views/list
|
129
|
+
- app/views/layouts
|
130
|
+
- app/views/list/set_index.html.erb
|
131
|
+
- app/views/list/index.html.erb
|
132
|
+
- app/views/list/images.xml
|
133
|
+
- app/views/list/view.html.erb
|
134
|
+
- app/views/list/banner.html.erb
|
135
|
+
- app/views/list/promo.html.erb
|
136
|
+
- app/views/list/response.xml
|
137
|
+
- app/controllers/list_controller.rb
|
138
|
+
- app/controllers/application.rb
|
139
|
+
- app/models/list.rb
|
140
|
+
- app/helpers/application_helper.rb
|
141
|
+
- app/helpers/list_helper.rb
|
142
|
+
- vendor/plugins
|
143
|
+
- config/database.yml
|
144
|
+
- config/rmobio.yml
|
145
|
+
- config/initializers
|
146
|
+
- config/environments
|
147
|
+
- config/environment.rb
|
148
|
+
- config/routes.rb
|
149
|
+
- config/boot.rb
|
150
|
+
- config/initializers/inflections.rb
|
151
|
+
- config/initializers/mime_types.rb
|
152
|
+
- config/environments/development.rb
|
153
|
+
- config/environments/test.rb
|
154
|
+
- config/environments/production.rb
|
155
|
+
- log/development.log
|
156
|
+
- log/test.log
|
157
|
+
has_rdoc: false
|
158
|
+
homepage: ""
|
159
|
+
post_install_message:
|
160
|
+
rdoc_options: []
|
161
|
+
|
162
|
+
require_paths:
|
163
|
+
- lib
|
164
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: "0"
|
169
|
+
version:
|
170
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: "0"
|
175
|
+
version:
|
176
|
+
requirements: []
|
177
|
+
|
178
|
+
rubyforge_project:
|
179
|
+
rubygems_version: 1.0.1
|
180
|
+
signing_key:
|
181
|
+
specification_version: 2
|
182
|
+
summary: PhotoViewer Sample Application
|
183
|
+
test_files: []
|
184
|
+
|