editables 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use ruby-1.9.3-p125
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source "http://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "rdoc", "~> 3.12"
11
+ gem "bundler"
12
+ gem "jeweler", "~> 1.8.4"
13
+ gem "simplecov", ">= 0"
14
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,44 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ activesupport (3.2.11)
5
+ i18n (~> 0.6)
6
+ multi_json (~> 1.0)
7
+ bourne (1.1.2)
8
+ mocha (= 0.10.5)
9
+ git (1.2.5)
10
+ i18n (0.6.1)
11
+ jeweler (1.8.4)
12
+ bundler (~> 1.0)
13
+ git (>= 1.2.5)
14
+ rake
15
+ rdoc
16
+ json (1.7.6)
17
+ metaclass (0.0.1)
18
+ mocha (0.10.5)
19
+ metaclass (~> 0.0.1)
20
+ multi_json (1.5.0)
21
+ rake (10.0.3)
22
+ rdoc (3.12)
23
+ json (~> 1.4)
24
+ shoulda (3.3.2)
25
+ shoulda-context (~> 1.0.1)
26
+ shoulda-matchers (~> 1.4.1)
27
+ shoulda-context (1.0.2)
28
+ shoulda-matchers (1.4.2)
29
+ activesupport (>= 3.0.0)
30
+ bourne (~> 1.1.2)
31
+ simplecov (0.7.1)
32
+ multi_json (~> 1.0)
33
+ simplecov-html (~> 0.7.1)
34
+ simplecov-html (0.7.1)
35
+
36
+ PLATFORMS
37
+ ruby
38
+
39
+ DEPENDENCIES
40
+ bundler
41
+ jeweler (~> 1.8.4)
42
+ rdoc (~> 3.12)
43
+ shoulda
44
+ simplecov
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2013 Gabe Coyne
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/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2013 YOURNAME
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
@@ -0,0 +1,19 @@
1
+ = editables
2
+
3
+ Description goes here.
4
+
5
+ == Contributing to editables
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
+ * Fork the project.
10
+ * Start a feature/bugfix branch.
11
+ * Commit and push until you are happy with your contribution.
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2013 Gabe Coyne. See LICENSE.txt for
18
+ further details.
19
+
data/README.textile ADDED
@@ -0,0 +1,29 @@
1
+ http://edgeguides.rubyonrails.org/engines.html
2
+
3
+ h1. Installation
4
+
5
+ gem 'editables'
6
+
7
+ copy migration file and run it
8
+
9
+ add this to ApplicationController.rb
10
+
11
+ class ApplicationController < ActionController::Base
12
+ helper Editables::Engine.helpers
13
+ end
14
+
15
+ rake editables:install:migrations
16
+
17
+ <!-- add this to the top of your layout file right after the body tag
18
+
19
+ yield :body_top -->
20
+
21
+ h1. Customization
22
+
23
+ override default can_edit? methods in ApplicationHelper
24
+
25
+ def can_edit?
26
+ return false if params[:noedit].present?
27
+ return true if current_admin
28
+ false
29
+ end
data/Rakefile ADDED
@@ -0,0 +1,55 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+
14
+ require 'jeweler'
15
+ Jeweler::Tasks.new do |gem|
16
+ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
+ gem.name = "editables"
18
+ gem.homepage = "http://github.com/gabecoyne/editables"
19
+ gem.license = "MIT"
20
+ gem.summary = "Editables"
21
+ gem.description = "Easy wysiwyg editing of website content and images"
22
+ # gem.summary = %Q{TODO: one-line summary of your gem}
23
+ # gem.description = %Q{TODO: longer description of your gem}
24
+ gem.email = "gabe@killitcreative.com"
25
+ gem.authors = ["Gabe Coyne"]
26
+ # dependencies defined in Gemfile
27
+ end
28
+ Jeweler::RubygemsDotOrgTasks.new
29
+
30
+ require 'rake/testtask'
31
+ Rake::TestTask.new(:test) do |test|
32
+ test.libs << 'lib' << 'test'
33
+ test.pattern = 'test/**/test_*.rb'
34
+ test.verbose = true
35
+ end
36
+
37
+ # require 'rcov/rcovtask'
38
+ # Rcov::RcovTask.new do |test|
39
+ # test.libs << 'test'
40
+ # test.pattern = 'test/**/test_*.rb'
41
+ # test.verbose = true
42
+ # test.rcov_opts << '--exclude "gems/*"'
43
+ # end
44
+
45
+ task :default => :test
46
+
47
+ require 'rdoc/task'
48
+ Rake::RDocTask.new do |rdoc|
49
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
50
+
51
+ rdoc.rdoc_dir = 'rdoc'
52
+ rdoc.title = "editables #{version}"
53
+ rdoc.rdoc_files.include('README*')
54
+ rdoc.rdoc_files.include('lib/**/*.rb')
55
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.0.0
File without changes
@@ -0,0 +1,15 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require_tree .
@@ -0,0 +1,13 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require_tree .
13
+ */
@@ -0,0 +1,22 @@
1
+ module Editables
2
+ class ApplicationController < ActionController::Base
3
+ def update
4
+ if params[:editable]
5
+ params[:editable].each do |id, e|
6
+ Editables::Editable.find(e[:id]).update_attributes(e)
7
+ end
8
+ redirect_to :back
9
+ end
10
+ end
11
+
12
+ def update_image
13
+ @image = Editables::EditableImage.find_by_name(params[:editable_image][:name])
14
+ if @image.present?
15
+ @image.update_attributes(params[:editable_image])
16
+ else
17
+ @image = Editables::EditableImage.create(params[:editable_image])
18
+ end
19
+ redirect_to :back
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,93 @@
1
+ module Editables
2
+ module ApplicationHelper
3
+ def can_edit?
4
+ return false if params[:noedit].present?
5
+ return true if current_admin
6
+ false
7
+ end
8
+
9
+ def wysiwyg
10
+ if !@wysiwyg
11
+ @wysiwyg = true
12
+ return [
13
+ '<script src="/assets/ckeditor/ckeditor.js" ></script>',
14
+ '<script src="/assets/ckeditor/adapters/jquery.js" ></script>',
15
+ '<script>$(function(){ $("textarea.editor").ckeditor(); })</script>'
16
+ ].join(" ").html_safe
17
+ else
18
+ ""
19
+ end
20
+ end
21
+
22
+ def editable(name, &block)
23
+ e = Editables::Editable.find_or_create_by_name(name)
24
+ if !e.content.present?
25
+ e.content = capture(&block)
26
+ e.save
27
+ end
28
+ html = ""
29
+ if can_edit?
30
+ html += '<a href="#editable-'+e.id.to_s+'" role="button" class="pull-right btn btn-mini" data-toggle="modal">edit</a>'
31
+ form = [
32
+ '<div class="modal hide fade" id="editable-'+e.id.to_s+'" style="width:800px; margin-left:-400px">',
33
+ "<form action='/editables/#{e.id}' method='post' >",
34
+ '<div class="modal-header">',
35
+ '<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>',
36
+ '<h3 style="color:black">'+e.name+'</h3>',
37
+ '</div>',
38
+ '<div class="modal-body">',
39
+ "<input type='hidden' name='authenticity_token' value='#{form_authenticity_token}'/>",
40
+ "<input type='hidden' name='editable[#{e.id}][id]' value='#{e.id}'/>",
41
+ "<textarea name='editable[#{e.id}][content]' style='width:98%;' class='editor'>#{e.content}</textarea>",
42
+ '</div>',
43
+ '<div class="modal-footer">',
44
+ '<a href="#editable-'+e.id.to_s+'" class="btn" data-toggle="modal">Close</a>',
45
+ '<input type="submit" class="btn btn-primary" value="Save changes">',
46
+ '</div>',
47
+ "</form>",
48
+ '</div>'
49
+ ].join(" ")
50
+ form += wysiwyg
51
+ html += form
52
+ # content_for :body_top do
53
+ # form.html_safe
54
+ # end
55
+ end
56
+ html += e.content
57
+ html.html_safe
58
+ end
59
+
60
+ def editable_image_tag(name, width, height)
61
+ form_id = "editable-image-#{name.gsub(" ","-")}"
62
+ image = Editables::EditableImage.find_by_name(name)
63
+ if image.present?
64
+ if width > 1200
65
+ src = image.image(:original)
66
+ elsif width < 1200 && width > 600
67
+ src = image.image(:large)
68
+ elsif width < 600 && width > 300
69
+ src = image.image(:medium)
70
+ else
71
+ src = image.image(:small)
72
+ end
73
+ else
74
+ src = "http://placehold.it/#{width}x#{height}"
75
+ end
76
+ html = ""
77
+ if image.present? or can_edit?
78
+ html += "<img src='#{src}' alt='#{name}' width='#{width}' height='#{height}' />"
79
+ end
80
+ if can_edit?
81
+ html += [
82
+ "<form action='/editables/image' method='post' enctype='multipart/form-data' id='#{form_id}' style='width:90px; margin:-50px 10px 0 10px; overflow:hidden; position:relative; z-index:10' >",
83
+ "<input type='file' name='editable_image[image]' onchange='$(\"##{form_id}\").submit()' style='border:none;padding0' />",
84
+ "<input type='hidden' name='editable_image[name]' value='#{name}'/>",
85
+ "<input type='hidden' name='authenticity_token' value='#{form_authenticity_token}'/>",
86
+ "</form>"
87
+ ].join(" ")
88
+ end
89
+ # html += "</div>"
90
+ html.html_safe
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,5 @@
1
+ module Editables
2
+ class Editable < ActiveRecord::Base
3
+ set_table_name "editables"
4
+ end
5
+ end
@@ -0,0 +1,15 @@
1
+ module Editables
2
+ class EditableImage < ActiveRecord::Base
3
+ set_table_name "editable_images"
4
+
5
+ has_attached_file :image,
6
+ :styles => {
7
+ :large => "1200x1200>",
8
+ :medium => "600X600>",
9
+ :small => "300X300>"
10
+ },
11
+ :path => ":rails_root/public/editable_images/:id/:style/:basename.:extension",
12
+ :url => "/editable_images/:id/:style/:filename"
13
+
14
+ end
15
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Editables</title>
5
+ <%= stylesheet_link_tag "editables/application", :media => "all" %>
6
+ <%= javascript_include_tag "editables/application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
data/config/routes.rb ADDED
@@ -0,0 +1,7 @@
1
+ Editables::Engine.routes.draw do
2
+
3
+ post "image" => "application#update_image"
4
+
5
+ post ":id" => "application#update"
6
+
7
+ end
@@ -0,0 +1,10 @@
1
+ class CreateEditablesEditableImages < ActiveRecord::Migration
2
+ def change
3
+ create_table :editable_images do |t|
4
+ t.string :name
5
+
6
+ t.timestamps
7
+ end
8
+ add_index :editable_images, [:name]
9
+ end
10
+ end
@@ -0,0 +1,15 @@
1
+ class AddAttachmentImageToEditableImages < ActiveRecord::Migration
2
+ def self.up
3
+ add_column :editable_images, :image_file_name, :string
4
+ add_column :editable_images, :image_content_type, :string
5
+ add_column :editable_images, :image_file_size, :integer
6
+ add_column :editable_images, :image_updated_at, :datetime
7
+ end
8
+
9
+ def self.down
10
+ remove_column :editable_images, :image_file_name
11
+ remove_column :editable_images, :image_content_type
12
+ remove_column :editable_images, :image_file_size
13
+ remove_column :editable_images, :image_updated_at
14
+ end
15
+ end
@@ -0,0 +1,12 @@
1
+ class CreateEditables < ActiveRecord::Migration
2
+ def change
3
+ create_table :editables do |t|
4
+ t.string :name
5
+ t.text :content
6
+
7
+ t.timestamps
8
+ end
9
+
10
+ add_index :editables, [:name]
11
+ end
12
+ end
data/editables.gemspec ADDED
@@ -0,0 +1,82 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "editables"
8
+ s.version = "0.0.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Gabe Coyne"]
12
+ s.date = "2013-01-12"
13
+ s.description = "Easy wysiwyg editing of website content and images"
14
+ s.email = "gabe@killitcreative.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc",
18
+ "README.textile"
19
+ ]
20
+ s.files = [
21
+ ".document",
22
+ ".rvmrc",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "LICENSE.txt",
26
+ "MIT-LICENSE",
27
+ "README.rdoc",
28
+ "README.textile",
29
+ "Rakefile",
30
+ "VERSION",
31
+ "app/assets/images/editables/.gitkeep",
32
+ "app/assets/javascripts/editables/application.js",
33
+ "app/assets/stylesheets/editables/application.css",
34
+ "app/controllers/editables/application_controller.rb",
35
+ "app/helpers/editables/application_helper.rb",
36
+ "app/models/editables/editable.rb",
37
+ "app/models/editables/editable_image.rb",
38
+ "app/views/layouts/editables/application.html.erb",
39
+ "config/routes.rb",
40
+ "db/migrate/20130101211230_create_editables_editable_images.rb",
41
+ "db/migrate/20130101211330_add_attachment_image_to_editable_images.rb",
42
+ "db/migrate/20130101211417_create_editables.rb",
43
+ "editables.gemspec",
44
+ "lib/editables.rb",
45
+ "lib/editables/engine.rb",
46
+ "lib/editables/version.rb",
47
+ "lib/tasks/editable_tasks.rake",
48
+ "script/rails",
49
+ "test/helper.rb",
50
+ "test/test_editables.rb"
51
+ ]
52
+ s.homepage = "http://github.com/gabecoyne/editables"
53
+ s.licenses = ["MIT"]
54
+ s.require_paths = ["lib"]
55
+ s.rubygems_version = "1.8.21"
56
+ s.summary = "Editables"
57
+
58
+ if s.respond_to? :specification_version then
59
+ s.specification_version = 3
60
+
61
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
62
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
63
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
64
+ s.add_development_dependency(%q<bundler>, [">= 0"])
65
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
66
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
67
+ else
68
+ s.add_dependency(%q<shoulda>, [">= 0"])
69
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
70
+ s.add_dependency(%q<bundler>, [">= 0"])
71
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
72
+ s.add_dependency(%q<simplecov>, [">= 0"])
73
+ end
74
+ else
75
+ s.add_dependency(%q<shoulda>, [">= 0"])
76
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
77
+ s.add_dependency(%q<bundler>, [">= 0"])
78
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
79
+ s.add_dependency(%q<simplecov>, [">= 0"])
80
+ end
81
+ end
82
+
@@ -0,0 +1,5 @@
1
+ module Editables
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace Editables
4
+ end
5
+ end
@@ -0,0 +1,3 @@
1
+ module Editables
2
+ VERSION = "0.0.1"
3
+ end
data/lib/editables.rb ADDED
@@ -0,0 +1,4 @@
1
+ require "editables/engine"
2
+
3
+ module Editables
4
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :editables do
3
+ # # Task goes here
4
+ # end
data/script/rails ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ ENGINE_ROOT = File.expand_path('../..', __FILE__)
5
+ ENGINE_PATH = File.expand_path('../../lib/editables/engine', __FILE__)
6
+
7
+ require 'rails/all'
8
+ require 'rails/engine/commands'
data/test/helper.rb ADDED
@@ -0,0 +1,18 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'test/unit'
11
+ require 'shoulda'
12
+
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
15
+ require 'editables'
16
+
17
+ class Test::Unit::TestCase
18
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestEditables < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,161 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: editables
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Gabe Coyne
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-01-12 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: shoulda
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rdoc
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '3.12'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3.12'
46
+ - !ruby/object:Gem::Dependency
47
+ name: bundler
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
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: jeweler
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 1.8.4
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 1.8.4
78
+ - !ruby/object:Gem::Dependency
79
+ name: simplecov
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
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
+ description: Easy wysiwyg editing of website content and images
95
+ email: gabe@killitcreative.com
96
+ executables: []
97
+ extensions: []
98
+ extra_rdoc_files:
99
+ - LICENSE.txt
100
+ - README.rdoc
101
+ - README.textile
102
+ files:
103
+ - .document
104
+ - .rvmrc
105
+ - Gemfile
106
+ - Gemfile.lock
107
+ - LICENSE.txt
108
+ - MIT-LICENSE
109
+ - README.rdoc
110
+ - README.textile
111
+ - Rakefile
112
+ - VERSION
113
+ - app/assets/images/editables/.gitkeep
114
+ - app/assets/javascripts/editables/application.js
115
+ - app/assets/stylesheets/editables/application.css
116
+ - app/controllers/editables/application_controller.rb
117
+ - app/helpers/editables/application_helper.rb
118
+ - app/models/editables/editable.rb
119
+ - app/models/editables/editable_image.rb
120
+ - app/views/layouts/editables/application.html.erb
121
+ - config/routes.rb
122
+ - db/migrate/20130101211230_create_editables_editable_images.rb
123
+ - db/migrate/20130101211330_add_attachment_image_to_editable_images.rb
124
+ - db/migrate/20130101211417_create_editables.rb
125
+ - editables.gemspec
126
+ - lib/editables.rb
127
+ - lib/editables/engine.rb
128
+ - lib/editables/version.rb
129
+ - lib/tasks/editable_tasks.rake
130
+ - script/rails
131
+ - test/helper.rb
132
+ - test/test_editables.rb
133
+ homepage: http://github.com/gabecoyne/editables
134
+ licenses:
135
+ - MIT
136
+ post_install_message:
137
+ rdoc_options: []
138
+ require_paths:
139
+ - lib
140
+ required_ruby_version: !ruby/object:Gem::Requirement
141
+ none: false
142
+ requirements:
143
+ - - ! '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ segments:
147
+ - 0
148
+ hash: -2752494682487666549
149
+ required_rubygems_version: !ruby/object:Gem::Requirement
150
+ none: false
151
+ requirements:
152
+ - - ! '>='
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ requirements: []
156
+ rubyforge_project:
157
+ rubygems_version: 1.8.21
158
+ signing_key:
159
+ specification_version: 3
160
+ summary: Editables
161
+ test_files: []