31 | 32 | 37 |
├── spec ├── dummy │ ├── log │ │ └── .gitkeep │ ├── app │ │ ├── mailers │ │ │ └── .gitkeep │ │ ├── models │ │ │ ├── .gitkeep │ │ │ ├── comment.rb │ │ │ └── post.rb │ │ ├── helpers │ │ │ ├── posts_helper.rb │ │ │ ├── comments_helper.rb │ │ │ └── application_helper.rb │ │ ├── assets │ │ │ ├── stylesheets │ │ │ │ ├── application.scss │ │ │ │ └── main.scss │ │ │ └── javascripts │ │ │ │ ├── remote_posts.js │ │ │ │ ├── comments.js │ │ │ │ └── application.js │ │ ├── controllers │ │ │ ├── application_controller.rb │ │ │ ├── simple_form_posts_controller.rb │ │ │ ├── comments_controller.rb │ │ │ └── posts_controller.rb │ │ └── views │ │ │ ├── posts │ │ │ ├── new.html.erb │ │ │ ├── show.html.erb │ │ │ ├── _post.html.erb │ │ │ ├── edit.html.erb │ │ │ ├── index.html.erb │ │ │ ├── _form.html.erb │ │ │ └── new_with_comment.html.erb │ │ │ ├── simple_form_posts │ │ │ ├── new.html.erb │ │ │ └── _form.html.erb │ │ │ ├── comments │ │ │ ├── _index.html.erb │ │ │ ├── _new.html.erb │ │ │ └── _show.html.erb │ │ │ ├── remote_posts │ │ │ └── _form.html.erb │ │ │ └── layouts │ │ │ └── application.html.erb │ ├── public │ │ ├── favicon.ico │ │ ├── test.fake │ │ ├── test.jpg │ │ ├── 500.html │ │ ├── 422.html │ │ └── 404.html │ ├── config.ru │ ├── config │ │ ├── initializers │ │ │ ├── cookies_serializer.rb │ │ │ ├── session_store.rb │ │ │ ├── wrap_parameters.rb │ │ │ ├── new_framework_defaults.rb │ │ │ ├── simple_form_bootstrap.rb │ │ │ └── simple_form.rb │ │ ├── environment.rb │ │ ├── boot.rb │ │ ├── routes.rb │ │ ├── secrets.yml │ │ ├── database.yml │ │ ├── locales │ │ │ └── simple_form.en.yml │ │ ├── environments │ │ │ ├── development.rb │ │ │ ├── test.rb │ │ │ └── production.rb │ │ └── application.rb │ ├── db │ │ ├── migrate │ │ │ ├── 20120624163943_create_posts.rb │ │ │ ├── 20120710181942_create_comments.rb │ │ │ ├── 20120628174731_create_bootsy_images.bootsy.rb │ │ │ └── 20120628174732_create_bootsy_image_galleries.bootsy.rb │ │ └── schema.rb │ ├── Rakefile │ ├── script │ │ └── rails │ ├── lib │ │ └── templates │ │ │ └── erb │ │ │ └── scaffold │ │ │ └── _form.html.erb │ └── README.rdoc ├── lib │ ├── engine_spec.rb │ ├── core_ext_spec.rb │ ├── form_builder_spec.rb │ ├── bootsy_spec.rb │ ├── contaier_spec.rb │ ├── simple_form │ │ └── bootsy_input_spec.rb │ └── form_helper_spec.rb ├── factories │ ├── image_factory.rb │ └── image_gallery_factory.rb ├── models │ └── bootsy │ │ ├── image_spec.rb │ │ └── image_gallery_spec.rb ├── features │ ├── simple_form_spec.rb │ ├── unsaved_changes_prompt.rb │ ├── youtube_support_spec.rb │ ├── nested_attributes_spec.rb │ ├── remote_form_spec.rb │ ├── image_gallery_modal_spec.rb │ ├── hidden_editor_spec.rb │ ├── image_deletion_spec.rb │ ├── foreign_gallery_spec.rb │ ├── image_insertion_spec.rb │ ├── editor_customization_spec.rb │ └── image_upload_spec.rb ├── helpers │ └── application_helper_spec.rb ├── uploaders │ └── image_uploader_spec.rb ├── rails_helper.rb └── spec_helper.rb ├── .rspec ├── db ├── .rubocop.yml └── migrate │ ├── 20120624171333_create_bootsy_images.rb │ └── 20120628124845_create_bootsy_image_galleries.rb ├── lib ├── .rubocop.yml ├── bootsy │ ├── version.rb │ ├── core_ext.rb │ ├── activerecord │ │ ├── image.rb │ │ └── image_gallery.rb │ ├── form_builder.rb │ ├── simple_form │ │ └── bootsy_input.rb │ ├── engine.rb │ ├── container.rb │ └── form_helper.rb └── bootsy.rb ├── app ├── .rubocop.yml ├── controllers │ └── bootsy │ │ ├── application_controller.rb │ │ └── images_controller.rb ├── assets │ ├── javascripts │ │ ├── bootsy.js │ │ └── bootsy │ │ │ ├── image_template.js │ │ │ ├── init.js │ │ │ ├── vendor │ │ │ ├── polyfill.js │ │ │ ├── bootstrap.file-input.js │ │ │ └── bootstrap-wysihtml5.js │ │ │ ├── editor_options.js │ │ │ ├── locales │ │ │ ├── en.js │ │ │ └── pt-BR.js │ │ │ ├── area.js │ │ │ └── modal.js │ └── stylesheets │ │ └── bootsy.css ├── helpers │ └── bootsy │ │ └── application_helper.rb ├── views │ └── bootsy │ │ └── images │ │ ├── _new.html.erb │ │ ├── _modal.html.erb │ │ ├── _image.html.erb │ │ └── _loader.html.erb └── uploaders │ └── bootsy │ └── image_uploader.rb ├── .travis.yml ├── .gitignore ├── .rubocop.yml ├── Rakefile ├── config ├── routes.rb ├── locales │ ├── bootsy.en.yml │ └── bootsy.pt-BR.yml └── initializers │ └── bootsy.rb ├── Gemfile ├── bootsy.gemspec ├── MIT-LICENSE ├── README.md ├── CHANGELOG.md └── Gemfile.lock /spec/dummy/log/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/dummy/app/mailers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/dummy/app/models/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/dummy/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color 2 | --format documentation 3 | -------------------------------------------------------------------------------- /db/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: 2 | - ../app/.rubocop.yml 3 | -------------------------------------------------------------------------------- /spec/dummy/app/helpers/posts_helper.rb: -------------------------------------------------------------------------------- 1 | module PostsHelper 2 | end 3 | -------------------------------------------------------------------------------- /spec/dummy/app/helpers/comments_helper.rb: -------------------------------------------------------------------------------- 1 | module CommentsHelper 2 | end 3 | -------------------------------------------------------------------------------- /spec/dummy/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /spec/dummy/public/test.fake: -------------------------------------------------------------------------------- 1 | This file is used for testing invalid image uploads. 2 | -------------------------------------------------------------------------------- /lib/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: 2 | - ../.rubocop.yml 3 | Style/ClassVars: 4 | Enabled: false 5 | -------------------------------------------------------------------------------- /app/.rubocop.yml: -------------------------------------------------------------------------------- 1 | inherit_from: 2 | - ../.rubocop.yml 3 | Style/Documentation: 4 | Enabled: false 5 | -------------------------------------------------------------------------------- /lib/bootsy/version.rb: -------------------------------------------------------------------------------- 1 | # Public: The gem version 2 | module Bootsy 3 | VERSION = '2.3.1'.freeze 4 | end 5 | -------------------------------------------------------------------------------- /spec/dummy/public/test.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TrevorHinesley/bootsy/master/spec/dummy/public/test.jpg -------------------------------------------------------------------------------- /spec/dummy/app/assets/stylesheets/application.scss: -------------------------------------------------------------------------------- 1 | @import 'bootstrap-sprockets'; 2 | @import 'bootstrap'; 3 | @import 'main'; 4 | @import 'bootsy'; 5 | -------------------------------------------------------------------------------- /spec/dummy/app/controllers/application_controller.rb: -------------------------------------------------------------------------------- 1 | class ApplicationController < ActionController::Base 2 | protect_from_forgery 3 | 4 | end 5 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: ruby 2 | rvm: 3 | - 2.3.1 4 | before_script: 5 | - 'cd spec/dummy' 6 | - 'RAILS_ENV=test bundle exec rails db:migrate' 7 | - 'cd ../..' 8 | -------------------------------------------------------------------------------- /spec/dummy/config.ru: -------------------------------------------------------------------------------- 1 | # This file is used by Rack-based servers to start the application. 2 | 3 | require ::File.expand_path('../config/environment', __FILE__) 4 | run Dummy::Application 5 | -------------------------------------------------------------------------------- /spec/dummy/config/initializers/cookies_serializer.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | Rails.application.config.action_dispatch.cookies_serializer = :hybrid 4 | -------------------------------------------------------------------------------- /spec/dummy/config/environment.rb: -------------------------------------------------------------------------------- 1 | # Load the rails application 2 | require File.expand_path('../application', __FILE__) 3 | 4 | # Initialize the rails application 5 | Dummy::Application.initialize! 6 | -------------------------------------------------------------------------------- /lib/bootsy/core_ext.rb: -------------------------------------------------------------------------------- 1 | # Extend and include Bootsy in proper scopes. 2 | 3 | ActionView::Base.send(:include, Bootsy::FormHelper) 4 | ActionView::Helpers::FormBuilder.send(:include, Bootsy::FormBuilder) 5 | -------------------------------------------------------------------------------- /spec/dummy/app/views/posts/new.html.erb: -------------------------------------------------------------------------------- 1 |
Maybe you tried to change something you didn't have access to.
24 |You may have mistyped the address or the page may have moved.
24 |
5 | <%= raw comment.content %> 6 |
7 | 8 | <%= link_to 'Edit comment', '#edit' %> 9 |