bootsy 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +79 -0
  3. data/Rakefile +27 -0
  4. data/app/assets/javascripts/bootsy/application.js +4 -0
  5. data/app/assets/javascripts/bootsy/bootstrap-wysihtml5.js +349 -0
  6. data/app/assets/javascripts/bootsy/bootsy.js +61 -0
  7. data/app/assets/javascripts/bootsy/wysihtml5.js +9521 -0
  8. data/app/assets/stylesheets/bootsy/application.css +4 -0
  9. data/app/assets/stylesheets/bootsy/bootstrap-wysihtml5.css +44 -0
  10. data/app/controllers/bootsy/application_controller.rb +4 -0
  11. data/app/controllers/bootsy/images_controller.rb +58 -0
  12. data/app/helpers/bootsy/application_helper.rb +8 -0
  13. data/app/helpers/bootsy/images_helper.rb +4 -0
  14. data/app/models/bootsy/image.rb +11 -0
  15. data/app/models/bootsy/image_gallery.rb +6 -0
  16. data/app/uploaders/image_uploader.rb +39 -0
  17. data/app/views/bootsy/images/_index.html.erb +22 -0
  18. data/app/views/bootsy/images/_modal.html.erb +12 -0
  19. data/app/views/bootsy/images/_new.html.erb +23 -0
  20. data/app/views/bootsy/images/create.js.erb +3 -0
  21. data/app/views/bootsy/images/destroy.js.erb +1 -0
  22. data/app/views/bootsy/images/index.js.erb +2 -0
  23. data/config/bootsy.yml +0 -0
  24. data/config/locales/en.yml +19 -0
  25. data/config/locales/pt-BR.yml +19 -0
  26. data/config/routes.rb +7 -0
  27. data/db/migrate/20120624171333_create_bootsy_images.rb +9 -0
  28. data/db/migrate/20120628124845_create_bootsy_image_galleries.rb +8 -0
  29. data/lib/bootsy.rb +8 -0
  30. data/lib/bootsy/core_ext.rb +34 -0
  31. data/lib/bootsy/engine.rb +16 -0
  32. data/lib/bootsy/media_container.rb +27 -0
  33. data/lib/bootsy/version.rb +3 -0
  34. data/lib/generators/install_generator.rb +27 -0
  35. data/lib/tasks/bootsy_tasks.rake +4 -0
  36. metadata +248 -0
@@ -0,0 +1,27 @@
1
+ module Bootsy
2
+ module Generators
3
+ class InstallGenerator < Rails::Generators::Base
4
+
5
+ desc "Copy Bootsy config and locale files to your application."
6
+
7
+
8
+ def add_routes
9
+ insert_into_file "config/routes.rb", " mount Bootsy::Engine => '/bootsy', as: 'bootsy'\n", after: "Rails.application.routes.draw do\n"
10
+ end
11
+
12
+
13
+ def copy_config
14
+ copy_file "../../config/bootsy.yml", "config/bootsy.yml"
15
+ end
16
+
17
+ def copy_locale
18
+ copy_file "../../config/locales/en.yml", "config/locales/bootsy.en.yml"
19
+ end
20
+
21
+ def add_assets
22
+ insert_into_file "app/assets/javascripts/application.js", "//= require bootsy/application\n", after: "jquery_ujs\n"
23
+ insert_into_file "app/assets/stylesheets/application.css", "*= require bootsy/application\n", after: "require_self\n"
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :bootsy do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,248 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bootsy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Volmer Soares
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-07-13 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.6
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.6
30
+ - !ruby/object:Gem::Dependency
31
+ name: jquery-rails
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: mini_magick
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: carrierwave
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: remotipart
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: sqlite3
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: rspec-rails
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: shoulda-matchers
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ~>
132
+ - !ruby/object:Gem::Version
133
+ version: '1.0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ~>
140
+ - !ruby/object:Gem::Version
141
+ version: '1.0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: factory_girl_rails
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: database_cleaner
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ description: Bootsy is a WYSIWIG editor for Rails applications based on WYSIHTML5
175
+ and Twitter Bootstrap. It integrates images uploads using Carrierwave, as an image
176
+ gallery scoped in models of your application.
177
+ email:
178
+ - lrvolmer@gmail.com
179
+ executables: []
180
+ extensions: []
181
+ extra_rdoc_files: []
182
+ files:
183
+ - app/uploaders/image_uploader.rb
184
+ - app/helpers/bootsy/application_helper.rb
185
+ - app/helpers/bootsy/images_helper.rb
186
+ - app/views/bootsy/images/_index.html.erb
187
+ - app/views/bootsy/images/index.js.erb
188
+ - app/views/bootsy/images/destroy.js.erb
189
+ - app/views/bootsy/images/create.js.erb
190
+ - app/views/bootsy/images/_new.html.erb
191
+ - app/views/bootsy/images/_modal.html.erb
192
+ - app/assets/stylesheets/bootsy/bootstrap-wysihtml5.css
193
+ - app/assets/stylesheets/bootsy/application.css
194
+ - app/assets/javascripts/bootsy/wysihtml5.js
195
+ - app/assets/javascripts/bootsy/application.js
196
+ - app/assets/javascripts/bootsy/bootstrap-wysihtml5.js
197
+ - app/assets/javascripts/bootsy/bootsy.js
198
+ - app/models/bootsy/image.rb
199
+ - app/models/bootsy/image_gallery.rb
200
+ - app/controllers/bootsy/application_controller.rb
201
+ - app/controllers/bootsy/images_controller.rb
202
+ - config/locales/pt-BR.yml
203
+ - config/locales/en.yml
204
+ - config/bootsy.yml
205
+ - config/routes.rb
206
+ - db/migrate/20120624171333_create_bootsy_images.rb
207
+ - db/migrate/20120628124845_create_bootsy_image_galleries.rb
208
+ - lib/generators/install_generator.rb
209
+ - lib/tasks/bootsy_tasks.rake
210
+ - lib/bootsy.rb
211
+ - lib/bootsy/version.rb
212
+ - lib/bootsy/engine.rb
213
+ - lib/bootsy/media_container.rb
214
+ - lib/bootsy/core_ext.rb
215
+ - MIT-LICENSE
216
+ - Rakefile
217
+ - README.md
218
+ homepage: http://github.com/volmer/bootsy
219
+ licenses: []
220
+ post_install_message:
221
+ rdoc_options: []
222
+ require_paths:
223
+ - lib
224
+ required_ruby_version: !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
227
+ - - ! '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ segments:
231
+ - 0
232
+ hash: -2628595835958805564
233
+ required_rubygems_version: !ruby/object:Gem::Requirement
234
+ none: false
235
+ requirements:
236
+ - - ! '>='
237
+ - !ruby/object:Gem::Version
238
+ version: '0'
239
+ segments:
240
+ - 0
241
+ hash: -2628595835958805564
242
+ requirements: []
243
+ rubyforge_project:
244
+ rubygems_version: 1.8.24
245
+ signing_key:
246
+ specification_version: 3
247
+ summary: A beautiful wysiwig editor with image uploads for Rails.
248
+ test_files: []