├── .gitignore ├── .travis.yml ├── CHANGELOG ├── Gemfile ├── LICENSE.txt ├── README.md ├── Rakefile ├── app └── views │ └── sir_trevor │ ├── _sir_trevor_block_array.html.erb │ └── blocks │ ├── _heading_block.html.erb │ ├── _image_block.html.erb │ ├── _list_block.html.erb │ ├── _quote_block.html.erb │ ├── _text_block.html.erb │ ├── _tweet_block.html.erb │ └── videos │ ├── _vimeo.html.erb │ └── _youtube.html.erb ├── config.ru ├── config └── initializers │ └── validators.rb ├── lib ├── generators │ └── sir_trevor_rails │ │ ├── block │ │ ├── block_generator.rb │ │ └── templates │ │ │ ├── _block.html.erb │ │ │ ├── _block.js.erb │ │ │ └── _block.rb.erb │ │ └── views │ │ └── views_generator.rb ├── sir_trevor_rails.rb └── sir_trevor_rails │ ├── block.rb │ ├── block_array.rb │ ├── blocks │ ├── tweet_block.rb │ └── video_block.rb │ ├── engine.rb │ ├── has_sir_trevor_content.rb │ ├── helpers │ └── view_helper.rb │ ├── version.rb │ └── view_resolver.rb ├── sir_trevor_rails.gemspec └── spec ├── fixtures └── blocks │ ├── custom.json │ ├── heading_html.json │ ├── heading_markdown.json │ ├── image.json │ ├── list_html.json │ ├── list_markdown.json │ ├── quote_html.json │ ├── quote_markdown.json │ ├── text_html.json │ ├── text_markdown.json │ └── tweet.json ├── integration ├── editing_spec.rb └── rendering_spec.rb ├── internal ├── app │ ├── controllers │ │ └── posts_controller.rb │ ├── models │ │ ├── custom_block.rb │ │ └── post.rb │ └── views │ │ └── posts │ │ ├── _form.html.erb │ │ ├── edit.html.erb │ │ ├── new.html.erb │ │ └── show.html.erb ├── config │ ├── database.yml │ └── routes.rb ├── db │ └── schema.rb ├── log │ └── .gitignore └── public │ └── favicon.ico ├── spec_helper.rb └── unit ├── block_array_spec.rb ├── block_spec.rb ├── custom_block_spec.rb ├── has_sir_trevor_content_spec.rb └── helpers_spec.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/CHANGELOG -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/Rakefile -------------------------------------------------------------------------------- /app/views/sir_trevor/_sir_trevor_block_array.html.erb: -------------------------------------------------------------------------------- 1 | <%= render sir_trevor_block_array.to_a %> -------------------------------------------------------------------------------- /app/views/sir_trevor/blocks/_heading_block.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/app/views/sir_trevor/blocks/_heading_block.html.erb -------------------------------------------------------------------------------- /app/views/sir_trevor/blocks/_image_block.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/app/views/sir_trevor/blocks/_image_block.html.erb -------------------------------------------------------------------------------- /app/views/sir_trevor/blocks/_list_block.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/app/views/sir_trevor/blocks/_list_block.html.erb -------------------------------------------------------------------------------- /app/views/sir_trevor/blocks/_quote_block.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/app/views/sir_trevor/blocks/_quote_block.html.erb -------------------------------------------------------------------------------- /app/views/sir_trevor/blocks/_text_block.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/app/views/sir_trevor/blocks/_text_block.html.erb -------------------------------------------------------------------------------- /app/views/sir_trevor/blocks/_tweet_block.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/app/views/sir_trevor/blocks/_tweet_block.html.erb -------------------------------------------------------------------------------- /app/views/sir_trevor/blocks/videos/_vimeo.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/app/views/sir_trevor/blocks/videos/_vimeo.html.erb -------------------------------------------------------------------------------- /app/views/sir_trevor/blocks/videos/_youtube.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/app/views/sir_trevor/blocks/videos/_youtube.html.erb -------------------------------------------------------------------------------- /config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/config.ru -------------------------------------------------------------------------------- /config/initializers/validators.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/config/initializers/validators.rb -------------------------------------------------------------------------------- /lib/generators/sir_trevor_rails/block/block_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/generators/sir_trevor_rails/block/block_generator.rb -------------------------------------------------------------------------------- /lib/generators/sir_trevor_rails/block/templates/_block.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/generators/sir_trevor_rails/block/templates/_block.html.erb -------------------------------------------------------------------------------- /lib/generators/sir_trevor_rails/block/templates/_block.js.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/generators/sir_trevor_rails/block/templates/_block.js.erb -------------------------------------------------------------------------------- /lib/generators/sir_trevor_rails/block/templates/_block.rb.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/generators/sir_trevor_rails/block/templates/_block.rb.erb -------------------------------------------------------------------------------- /lib/generators/sir_trevor_rails/views/views_generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/generators/sir_trevor_rails/views/views_generator.rb -------------------------------------------------------------------------------- /lib/sir_trevor_rails.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/sir_trevor_rails.rb -------------------------------------------------------------------------------- /lib/sir_trevor_rails/block.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/sir_trevor_rails/block.rb -------------------------------------------------------------------------------- /lib/sir_trevor_rails/block_array.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/sir_trevor_rails/block_array.rb -------------------------------------------------------------------------------- /lib/sir_trevor_rails/blocks/tweet_block.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/sir_trevor_rails/blocks/tweet_block.rb -------------------------------------------------------------------------------- /lib/sir_trevor_rails/blocks/video_block.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/sir_trevor_rails/blocks/video_block.rb -------------------------------------------------------------------------------- /lib/sir_trevor_rails/engine.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/sir_trevor_rails/engine.rb -------------------------------------------------------------------------------- /lib/sir_trevor_rails/has_sir_trevor_content.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/sir_trevor_rails/has_sir_trevor_content.rb -------------------------------------------------------------------------------- /lib/sir_trevor_rails/helpers/view_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/sir_trevor_rails/helpers/view_helper.rb -------------------------------------------------------------------------------- /lib/sir_trevor_rails/version.rb: -------------------------------------------------------------------------------- 1 | module SirTrevorRails 2 | VERSION = "0.6.3" 3 | end 4 | -------------------------------------------------------------------------------- /lib/sir_trevor_rails/view_resolver.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/lib/sir_trevor_rails/view_resolver.rb -------------------------------------------------------------------------------- /sir_trevor_rails.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/sir_trevor_rails.gemspec -------------------------------------------------------------------------------- /spec/fixtures/blocks/custom.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/fixtures/blocks/custom.json -------------------------------------------------------------------------------- /spec/fixtures/blocks/heading_html.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/fixtures/blocks/heading_html.json -------------------------------------------------------------------------------- /spec/fixtures/blocks/heading_markdown.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/fixtures/blocks/heading_markdown.json -------------------------------------------------------------------------------- /spec/fixtures/blocks/image.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/fixtures/blocks/image.json -------------------------------------------------------------------------------- /spec/fixtures/blocks/list_html.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/fixtures/blocks/list_html.json -------------------------------------------------------------------------------- /spec/fixtures/blocks/list_markdown.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/fixtures/blocks/list_markdown.json -------------------------------------------------------------------------------- /spec/fixtures/blocks/quote_html.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/fixtures/blocks/quote_html.json -------------------------------------------------------------------------------- /spec/fixtures/blocks/quote_markdown.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/fixtures/blocks/quote_markdown.json -------------------------------------------------------------------------------- /spec/fixtures/blocks/text_html.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/fixtures/blocks/text_html.json -------------------------------------------------------------------------------- /spec/fixtures/blocks/text_markdown.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/fixtures/blocks/text_markdown.json -------------------------------------------------------------------------------- /spec/fixtures/blocks/tweet.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/fixtures/blocks/tweet.json -------------------------------------------------------------------------------- /spec/integration/editing_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/integration/editing_spec.rb -------------------------------------------------------------------------------- /spec/integration/rendering_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/integration/rendering_spec.rb -------------------------------------------------------------------------------- /spec/internal/app/controllers/posts_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/internal/app/controllers/posts_controller.rb -------------------------------------------------------------------------------- /spec/internal/app/models/custom_block.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/internal/app/models/custom_block.rb -------------------------------------------------------------------------------- /spec/internal/app/models/post.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/internal/app/models/post.rb -------------------------------------------------------------------------------- /spec/internal/app/views/posts/_form.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/internal/app/views/posts/_form.html.erb -------------------------------------------------------------------------------- /spec/internal/app/views/posts/edit.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/internal/app/views/posts/edit.html.erb -------------------------------------------------------------------------------- /spec/internal/app/views/posts/new.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/internal/app/views/posts/new.html.erb -------------------------------------------------------------------------------- /spec/internal/app/views/posts/show.html.erb: -------------------------------------------------------------------------------- 1 | <%= render @post.body %> 2 | -------------------------------------------------------------------------------- /spec/internal/config/database.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/internal/config/database.yml -------------------------------------------------------------------------------- /spec/internal/config/routes.rb: -------------------------------------------------------------------------------- 1 | Rails.application.routes.draw do 2 | resources :posts 3 | end 4 | -------------------------------------------------------------------------------- /spec/internal/db/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/internal/db/schema.rb -------------------------------------------------------------------------------- /spec/internal/log/.gitignore: -------------------------------------------------------------------------------- 1 | *.log -------------------------------------------------------------------------------- /spec/internal/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/unit/block_array_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/unit/block_array_spec.rb -------------------------------------------------------------------------------- /spec/unit/block_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/unit/block_spec.rb -------------------------------------------------------------------------------- /spec/unit/custom_block_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/unit/custom_block_spec.rb -------------------------------------------------------------------------------- /spec/unit/has_sir_trevor_content_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/unit/has_sir_trevor_content_spec.rb -------------------------------------------------------------------------------- /spec/unit/helpers_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madebymany/sir-trevor-rails/HEAD/spec/unit/helpers_spec.rb --------------------------------------------------------------------------------