ecm_lightbox 0.0.1.pre
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/MIT-LICENSE +20 -0
- data/README.rdoc +13 -0
- data/Rakefile +27 -0
- data/app/assets/javascripts/ecm_lightbox.js +2 -0
- data/app/assets/stylesheets/ecm/lightbox/modal.css +12 -0
- data/app/assets/stylesheets/ecm_lightbox.css +4 -0
- data/app/helpers/ecm/lightbox_helper.rb +7 -0
- data/app/views/ecm/lightbox/_modal_gallery.html.erb +15 -0
- data/config/locales/de.yml +8 -0
- data/config/locales/en.yml +8 -0
- data/lib/ecm/lightbox/configuration.rb +16 -0
- data/lib/ecm/lightbox/engine.rb +12 -0
- data/lib/ecm/lightbox/routing.rb +12 -0
- data/lib/ecm/lightbox/version.rb +5 -0
- data/lib/ecm_lightbox.rb +11 -0
- data/lib/generators/ecm/lightbox/install/install_generator.rb +15 -0
- data/lib/generators/ecm/lightbox/install/templates/ecm_lightbox.rb +3 -0
- data/lib/generators/ecm/lightbox/locales/locales_generator.rb +17 -0
- data/lib/tasks/ecm_lightbox_tasks.rake +4 -0
- metadata +372 -0
data/MIT-LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright 2013 Roberto Vasquez Angel
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
data/Rakefile
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
begin
|
3
|
+
require 'bundler/setup'
|
4
|
+
rescue LoadError
|
5
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
6
|
+
end
|
7
|
+
begin
|
8
|
+
require 'rdoc/task'
|
9
|
+
rescue LoadError
|
10
|
+
require 'rdoc/rdoc'
|
11
|
+
require 'rake/rdoctask'
|
12
|
+
RDoc::Task = Rake::RDocTask
|
13
|
+
end
|
14
|
+
|
15
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
16
|
+
rdoc.rdoc_dir = 'rdoc'
|
17
|
+
rdoc.title = 'EcmLightbox'
|
18
|
+
rdoc.options << '--line-numbers'
|
19
|
+
rdoc.rdoc_files.include('README.rdoc')
|
20
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
Bundler::GemHelper.install_tasks
|
27
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<!-- modal-gallery is the modal dialog used for the image gallery -->
|
2
|
+
<div id="modal-gallery" class="modal modal-gallery hide fade" tabindex="-1">
|
3
|
+
<div class="modal-header">
|
4
|
+
<a class="close" data-dismiss="modal">×</a>
|
5
|
+
<h3 class="modal-title"></h3>
|
6
|
+
</div>
|
7
|
+
<div class="modal-body"><div class="modal-image"></div></div>
|
8
|
+
<div class="modal-footer">
|
9
|
+
<a class="btn btn-info modal-prev"><i class="icon-arrow-left icon-white"></i> <%= I18n.t('ecm.lightbox.actions.previous') %></a>
|
10
|
+
<a class="btn btn-success modal-play modal-slideshow" data-slideshow="5000"><i class="icon-play icon-white"></i> <%= I18n.t('ecm.lightbox.actions.slideshow') %></a>
|
11
|
+
<a class="btn modal-download" target="_blank"><i class="icon-download"></i> <%= I18n.t('ecm.lightbox.actions.download') %></a>
|
12
|
+
<a class="btn btn-primary modal-next"><%= I18n.t('ecm.lightbox.actions.next') %> <i class="icon-arrow-right icon-white"></i></a>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'active_support/core_ext/module/delegation'
|
2
|
+
require 'active_support/core_ext/module/attribute_accessors'
|
3
|
+
require 'active_support/hash_with_indifferent_access'
|
4
|
+
|
5
|
+
module Ecm
|
6
|
+
module Lightbox
|
7
|
+
module Configuration
|
8
|
+
def configure
|
9
|
+
yield self
|
10
|
+
end
|
11
|
+
|
12
|
+
# mattr_accessor :foo
|
13
|
+
# @@foo = nil
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Lightbox
|
3
|
+
class Engine < ::Rails::Engine
|
4
|
+
# active admin
|
5
|
+
initializer :ecm_lightbox_engine do
|
6
|
+
::ActiveAdmin.setup do |active_admin_config|
|
7
|
+
active_admin_config.load_paths += Dir[File.dirname(__FILE__) + '/active_admin']
|
8
|
+
end
|
9
|
+
end if defined?(::ActiveAdmin)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/lib/ecm_lightbox.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Lightbox
|
3
|
+
module Generators
|
4
|
+
class InstallGenerator < Rails::Generators::Base
|
5
|
+
desc "Generates the intializer"
|
6
|
+
|
7
|
+
source_root File.expand_path('../templates', __FILE__)
|
8
|
+
|
9
|
+
def generate_intializer
|
10
|
+
copy_file "ecm_lightbox.rb", "config/initializers/ecm_lightbox.rb"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Ecm
|
2
|
+
module Lightbox
|
3
|
+
module Generators
|
4
|
+
class LocalesGenerator < Rails::Generators::Base
|
5
|
+
desc "Copies the locale files to your application"
|
6
|
+
|
7
|
+
source_root File.expand_path('../../../../../../config/locales', __FILE__)
|
8
|
+
|
9
|
+
def generate_locales
|
10
|
+
copy_file "en.yml", "config/locales/ecm.lightbox.en.yml"
|
11
|
+
copy_file "de.yml", "config/locales/ecm.lightbox.de.yml"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
metadata
ADDED
@@ -0,0 +1,372 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ecm_lightbox
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 961915968
|
5
|
+
prerelease: 6
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1
|
10
|
+
- pre
|
11
|
+
version: 0.0.1.pre
|
12
|
+
platform: ruby
|
13
|
+
authors:
|
14
|
+
- Roberto Vasquez Angel
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2013-03-24 00:00:00 Z
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rails
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 21
|
30
|
+
segments:
|
31
|
+
- 3
|
32
|
+
- 2
|
33
|
+
- 13
|
34
|
+
version: 3.2.13
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: bootstrap-addons-rails
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 3
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
version: "0"
|
49
|
+
type: :runtime
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: sqlite3
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 3
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
version: "0"
|
63
|
+
type: :development
|
64
|
+
version_requirements: *id003
|
65
|
+
- !ruby/object:Gem::Dependency
|
66
|
+
name: thin
|
67
|
+
prerelease: false
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
70
|
+
requirements:
|
71
|
+
- - ">="
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
76
|
+
version: "0"
|
77
|
+
type: :development
|
78
|
+
version_requirements: *id004
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: yard
|
81
|
+
prerelease: false
|
82
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
hash: 3
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
version: "0"
|
91
|
+
type: :development
|
92
|
+
version_requirements: *id005
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: activeadmin
|
95
|
+
prerelease: false
|
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
|
+
type: :development
|
106
|
+
version_requirements: *id006
|
107
|
+
- !ruby/object:Gem::Dependency
|
108
|
+
name: sass-rails
|
109
|
+
prerelease: false
|
110
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
112
|
+
requirements:
|
113
|
+
- - ">="
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
hash: 3
|
116
|
+
segments:
|
117
|
+
- 0
|
118
|
+
version: "0"
|
119
|
+
type: :development
|
120
|
+
version_requirements: *id007
|
121
|
+
- !ruby/object:Gem::Dependency
|
122
|
+
name: coffee-rails
|
123
|
+
prerelease: false
|
124
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
125
|
+
none: false
|
126
|
+
requirements:
|
127
|
+
- - ">="
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
hash: 3
|
130
|
+
segments:
|
131
|
+
- 0
|
132
|
+
version: "0"
|
133
|
+
type: :development
|
134
|
+
version_requirements: *id008
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: i18n_routing
|
137
|
+
prerelease: false
|
138
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
hash: 3
|
144
|
+
segments:
|
145
|
+
- 0
|
146
|
+
version: "0"
|
147
|
+
type: :development
|
148
|
+
version_requirements: *id009
|
149
|
+
- !ruby/object:Gem::Dependency
|
150
|
+
name: therubyracer
|
151
|
+
prerelease: false
|
152
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
hash: 3
|
158
|
+
segments:
|
159
|
+
- 0
|
160
|
+
version: "0"
|
161
|
+
type: :development
|
162
|
+
version_requirements: *id010
|
163
|
+
- !ruby/object:Gem::Dependency
|
164
|
+
name: less-rails
|
165
|
+
prerelease: false
|
166
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
167
|
+
none: false
|
168
|
+
requirements:
|
169
|
+
- - ">="
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
hash: 3
|
172
|
+
segments:
|
173
|
+
- 0
|
174
|
+
version: "0"
|
175
|
+
type: :development
|
176
|
+
version_requirements: *id011
|
177
|
+
- !ruby/object:Gem::Dependency
|
178
|
+
name: twitter-bootstrap-rails
|
179
|
+
prerelease: false
|
180
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
181
|
+
none: false
|
182
|
+
requirements:
|
183
|
+
- - ">="
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
hash: 3
|
186
|
+
segments:
|
187
|
+
- 0
|
188
|
+
version: "0"
|
189
|
+
type: :development
|
190
|
+
version_requirements: *id012
|
191
|
+
- !ruby/object:Gem::Dependency
|
192
|
+
name: localeapp
|
193
|
+
prerelease: false
|
194
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
195
|
+
none: false
|
196
|
+
requirements:
|
197
|
+
- - ">="
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
hash: 3
|
200
|
+
segments:
|
201
|
+
- 0
|
202
|
+
version: "0"
|
203
|
+
type: :development
|
204
|
+
version_requirements: *id013
|
205
|
+
- !ruby/object:Gem::Dependency
|
206
|
+
name: capybara
|
207
|
+
prerelease: false
|
208
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
209
|
+
none: false
|
210
|
+
requirements:
|
211
|
+
- - ">="
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
hash: 3
|
214
|
+
segments:
|
215
|
+
- 0
|
216
|
+
version: "0"
|
217
|
+
type: :development
|
218
|
+
version_requirements: *id014
|
219
|
+
- !ruby/object:Gem::Dependency
|
220
|
+
name: rspec-rails
|
221
|
+
prerelease: false
|
222
|
+
requirement: &id015 !ruby/object:Gem::Requirement
|
223
|
+
none: false
|
224
|
+
requirements:
|
225
|
+
- - ~>
|
226
|
+
- !ruby/object:Gem::Version
|
227
|
+
hash: 3
|
228
|
+
segments:
|
229
|
+
- 2
|
230
|
+
- 0
|
231
|
+
version: "2.0"
|
232
|
+
type: :development
|
233
|
+
version_requirements: *id015
|
234
|
+
- !ruby/object:Gem::Dependency
|
235
|
+
name: shoulda-matchers
|
236
|
+
prerelease: false
|
237
|
+
requirement: &id016 !ruby/object:Gem::Requirement
|
238
|
+
none: false
|
239
|
+
requirements:
|
240
|
+
- - ">="
|
241
|
+
- !ruby/object:Gem::Version
|
242
|
+
hash: 3
|
243
|
+
segments:
|
244
|
+
- 0
|
245
|
+
version: "0"
|
246
|
+
type: :development
|
247
|
+
version_requirements: *id016
|
248
|
+
- !ruby/object:Gem::Dependency
|
249
|
+
name: factory_girl_rails
|
250
|
+
prerelease: false
|
251
|
+
requirement: &id017 !ruby/object:Gem::Requirement
|
252
|
+
none: false
|
253
|
+
requirements:
|
254
|
+
- - ~>
|
255
|
+
- !ruby/object:Gem::Version
|
256
|
+
hash: 15
|
257
|
+
segments:
|
258
|
+
- 1
|
259
|
+
- 0
|
260
|
+
version: "1.0"
|
261
|
+
type: :development
|
262
|
+
version_requirements: *id017
|
263
|
+
- !ruby/object:Gem::Dependency
|
264
|
+
name: rb-inotify
|
265
|
+
prerelease: false
|
266
|
+
requirement: &id018 !ruby/object:Gem::Requirement
|
267
|
+
none: false
|
268
|
+
requirements:
|
269
|
+
- - ~>
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
hash: 25
|
272
|
+
segments:
|
273
|
+
- 0
|
274
|
+
- 9
|
275
|
+
version: "0.9"
|
276
|
+
type: :development
|
277
|
+
version_requirements: *id018
|
278
|
+
- !ruby/object:Gem::Dependency
|
279
|
+
name: guard-rspec
|
280
|
+
prerelease: false
|
281
|
+
requirement: &id019 !ruby/object:Gem::Requirement
|
282
|
+
none: false
|
283
|
+
requirements:
|
284
|
+
- - ">="
|
285
|
+
- !ruby/object:Gem::Version
|
286
|
+
hash: 3
|
287
|
+
segments:
|
288
|
+
- 0
|
289
|
+
version: "0"
|
290
|
+
type: :development
|
291
|
+
version_requirements: *id019
|
292
|
+
- !ruby/object:Gem::Dependency
|
293
|
+
name: guard-bundler
|
294
|
+
prerelease: false
|
295
|
+
requirement: &id020 !ruby/object:Gem::Requirement
|
296
|
+
none: false
|
297
|
+
requirements:
|
298
|
+
- - ">="
|
299
|
+
- !ruby/object:Gem::Version
|
300
|
+
hash: 3
|
301
|
+
segments:
|
302
|
+
- 0
|
303
|
+
version: "0"
|
304
|
+
type: :development
|
305
|
+
version_requirements: *id020
|
306
|
+
description: ECM Lightbox Module
|
307
|
+
email:
|
308
|
+
- roberto@vasquez-angel.de
|
309
|
+
executables: []
|
310
|
+
|
311
|
+
extensions: []
|
312
|
+
|
313
|
+
extra_rdoc_files: []
|
314
|
+
|
315
|
+
files:
|
316
|
+
- app/helpers/ecm/lightbox_helper.rb
|
317
|
+
- app/views/ecm/lightbox/_modal_gallery.html.erb
|
318
|
+
- app/assets/stylesheets/ecm_lightbox.css
|
319
|
+
- app/assets/stylesheets/ecm/lightbox/modal.css
|
320
|
+
- app/assets/javascripts/ecm_lightbox.js
|
321
|
+
- config/locales/de.yml
|
322
|
+
- config/locales/en.yml
|
323
|
+
- lib/ecm_lightbox.rb
|
324
|
+
- lib/generators/ecm/lightbox/locales/locales_generator.rb
|
325
|
+
- lib/generators/ecm/lightbox/install/install_generator.rb
|
326
|
+
- lib/generators/ecm/lightbox/install/templates/ecm_lightbox.rb
|
327
|
+
- lib/tasks/ecm_lightbox_tasks.rake
|
328
|
+
- lib/ecm/lightbox/engine.rb
|
329
|
+
- lib/ecm/lightbox/version.rb
|
330
|
+
- lib/ecm/lightbox/routing.rb
|
331
|
+
- lib/ecm/lightbox/configuration.rb
|
332
|
+
- MIT-LICENSE
|
333
|
+
- Rakefile
|
334
|
+
- README.rdoc
|
335
|
+
homepage: https://github.com/robotex82/ecm_lightbox
|
336
|
+
licenses: []
|
337
|
+
|
338
|
+
post_install_message:
|
339
|
+
rdoc_options: []
|
340
|
+
|
341
|
+
require_paths:
|
342
|
+
- lib
|
343
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
344
|
+
none: false
|
345
|
+
requirements:
|
346
|
+
- - ">="
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
hash: 3
|
349
|
+
segments:
|
350
|
+
- 0
|
351
|
+
version: "0"
|
352
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
353
|
+
none: false
|
354
|
+
requirements:
|
355
|
+
- - ">"
|
356
|
+
- !ruby/object:Gem::Version
|
357
|
+
hash: 25
|
358
|
+
segments:
|
359
|
+
- 1
|
360
|
+
- 3
|
361
|
+
- 1
|
362
|
+
version: 1.3.1
|
363
|
+
requirements: []
|
364
|
+
|
365
|
+
rubyforge_project:
|
366
|
+
rubygems_version: 1.8.24
|
367
|
+
signing_key:
|
368
|
+
specification_version: 3
|
369
|
+
summary: ECM Lightbox Module
|
370
|
+
test_files: []
|
371
|
+
|
372
|
+
has_rdoc:
|