mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Initial commit
This commit is contained in:
commit
e22ba227a6
14 changed files with 237 additions and 0 deletions
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
/node_modules
|
||||
|
8
Gemfile
Normal file
8
Gemfile
Normal file
|
@ -0,0 +1,8 @@
|
|||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) { |repo_path| "https://github.com/#{repo_path}.git" }
|
||||
|
||||
gemspec
|
||||
|
||||
gem "rails", github: "rails/rails"
|
||||
gem "rake"
|
135
Gemfile.lock
Normal file
135
Gemfile.lock
Normal file
|
@ -0,0 +1,135 @@
|
|||
GIT
|
||||
remote: https://github.com/rails/rails.git
|
||||
revision: c5d431e469505ec4438f9fd37530dd9c79c8a872
|
||||
specs:
|
||||
actioncable (6.0.0.alpha)
|
||||
actionpack (= 6.0.0.alpha)
|
||||
nio4r (~> 2.0)
|
||||
websocket-driver (>= 0.6.1)
|
||||
actionmailer (6.0.0.alpha)
|
||||
actionpack (= 6.0.0.alpha)
|
||||
actionview (= 6.0.0.alpha)
|
||||
activejob (= 6.0.0.alpha)
|
||||
mail (~> 2.5, >= 2.5.4)
|
||||
rails-dom-testing (~> 2.0)
|
||||
actionpack (6.0.0.alpha)
|
||||
actionview (= 6.0.0.alpha)
|
||||
activesupport (= 6.0.0.alpha)
|
||||
rack (~> 2.0)
|
||||
rack-test (>= 0.6.3)
|
||||
rails-dom-testing (~> 2.0)
|
||||
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
||||
actionview (6.0.0.alpha)
|
||||
activesupport (= 6.0.0.alpha)
|
||||
builder (~> 3.1)
|
||||
erubi (~> 1.4)
|
||||
rails-dom-testing (~> 2.0)
|
||||
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
||||
activejob (6.0.0.alpha)
|
||||
activesupport (= 6.0.0.alpha)
|
||||
globalid (>= 0.3.6)
|
||||
activemodel (6.0.0.alpha)
|
||||
activesupport (= 6.0.0.alpha)
|
||||
activerecord (6.0.0.alpha)
|
||||
activemodel (= 6.0.0.alpha)
|
||||
activesupport (= 6.0.0.alpha)
|
||||
arel (>= 9.0)
|
||||
activestorage (6.0.0.alpha)
|
||||
actionpack (= 6.0.0.alpha)
|
||||
activerecord (= 6.0.0.alpha)
|
||||
marcel (~> 0.3.1)
|
||||
activesupport (6.0.0.alpha)
|
||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||
i18n (~> 0.7)
|
||||
minitest (~> 5.1)
|
||||
tzinfo (~> 1.1)
|
||||
rails (6.0.0.alpha)
|
||||
actioncable (= 6.0.0.alpha)
|
||||
actionmailer (= 6.0.0.alpha)
|
||||
actionpack (= 6.0.0.alpha)
|
||||
actionview (= 6.0.0.alpha)
|
||||
activejob (= 6.0.0.alpha)
|
||||
activemodel (= 6.0.0.alpha)
|
||||
activerecord (= 6.0.0.alpha)
|
||||
activestorage (= 6.0.0.alpha)
|
||||
activesupport (= 6.0.0.alpha)
|
||||
bundler (>= 1.3.0)
|
||||
railties (= 6.0.0.alpha)
|
||||
sprockets-rails (>= 2.0.0)
|
||||
railties (6.0.0.alpha)
|
||||
actionpack (= 6.0.0.alpha)
|
||||
activesupport (= 6.0.0.alpha)
|
||||
method_source
|
||||
rake (>= 0.8.7)
|
||||
thor (>= 0.18.1, < 2.0)
|
||||
|
||||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
activetext (0.1)
|
||||
activerecord (>= 5.2.0)
|
||||
activestorage (>= 5.2.0)
|
||||
rails (>= 5.2.0)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
arel (9.0.0)
|
||||
builder (3.2.3)
|
||||
concurrent-ruby (1.0.5)
|
||||
crass (1.0.3)
|
||||
erubi (1.7.0)
|
||||
globalid (0.4.1)
|
||||
activesupport (>= 4.2.0)
|
||||
i18n (0.9.3)
|
||||
concurrent-ruby (~> 1.0)
|
||||
loofah (2.1.1)
|
||||
crass (~> 1.0.2)
|
||||
nokogiri (>= 1.5.9)
|
||||
mail (2.7.0)
|
||||
mini_mime (>= 0.1.1)
|
||||
marcel (0.3.1)
|
||||
mimemagic (~> 0.3.2)
|
||||
method_source (0.9.0)
|
||||
mimemagic (0.3.2)
|
||||
mini_mime (1.0.0)
|
||||
mini_portile2 (2.3.0)
|
||||
minitest (5.11.3)
|
||||
nio4r (2.2.0)
|
||||
nokogiri (1.8.2)
|
||||
mini_portile2 (~> 2.3.0)
|
||||
rack (2.0.4)
|
||||
rack-test (0.8.2)
|
||||
rack (>= 1.0, < 3)
|
||||
rails-dom-testing (2.0.3)
|
||||
activesupport (>= 4.2.0)
|
||||
nokogiri (>= 1.6)
|
||||
rails-html-sanitizer (1.0.3)
|
||||
loofah (~> 2.0)
|
||||
rake (12.3.0)
|
||||
sprockets (3.7.1)
|
||||
concurrent-ruby (~> 1.0)
|
||||
rack (> 1, < 3)
|
||||
sprockets-rails (3.2.1)
|
||||
actionpack (>= 4.0)
|
||||
activesupport (>= 4.0)
|
||||
sprockets (>= 3.0.0)
|
||||
thor (0.20.0)
|
||||
thread_safe (0.3.6)
|
||||
tzinfo (1.2.5)
|
||||
thread_safe (~> 0.1)
|
||||
websocket-driver (0.7.0)
|
||||
websocket-extensions (>= 0.1.0)
|
||||
websocket-extensions (0.1.3)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
|
||||
DEPENDENCIES
|
||||
activetext!
|
||||
bundler (~> 1.15)
|
||||
rails!
|
||||
rake
|
||||
|
||||
BUNDLED WITH
|
||||
1.16.1
|
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2018 Basecamp, LLC
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
1
README.md
Normal file
1
README.md
Normal file
|
@ -0,0 +1 @@
|
|||
# activetext
|
20
activetext.gemspec
Normal file
20
activetext.gemspec
Normal file
|
@ -0,0 +1,20 @@
|
|||
Gem::Specification.new do |s|
|
||||
s.name = "activetext"
|
||||
s.version = "0.1"
|
||||
s.authors = ["Javan Makhmali", "Sam Stephenson"]
|
||||
s.email = ["javan@javan.us", "sstephenson@gmail.com"]
|
||||
s.summary = "Edit and display rich text in Rails applications"
|
||||
s.homepage = "https://github.com/basecamp/activetext"
|
||||
s.license = "MIT"
|
||||
|
||||
s.required_ruby_version = ">= 2.2.2"
|
||||
|
||||
s.add_dependency "rails", ">= 5.2.0"
|
||||
s.add_dependency "activerecord", ">= 5.2.0"
|
||||
s.add_dependency "activestorage", ">= 5.2.0"
|
||||
|
||||
s.add_development_dependency "bundler", "~> 1.15"
|
||||
|
||||
s.files = `git ls-files`.split("\n")
|
||||
s.test_files = `git ls-files -- test/*`.split("\n")
|
||||
end
|
1
app/javascript/activetext/index.js
Normal file
1
app/javascript/activetext/index.js
Normal file
|
@ -0,0 +1 @@
|
|||
import * as Trix from "trix"
|
4
app/models/active_text/document.rb
Normal file
4
app/models/active_text/document.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
module ActiveText
|
||||
class Document < ActiveRecord::Base
|
||||
end
|
||||
end
|
5
lib/active_text.rb
Normal file
5
lib/active_text.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
require "active_record"
|
||||
require "active_text/engine"
|
||||
|
||||
module ActiveText
|
||||
end
|
7
lib/active_text/engine.rb
Normal file
7
lib/active_text/engine.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require "rails/engine"
|
||||
|
||||
module ActiveText
|
||||
class Engine < Rails::Engine
|
||||
config.eager_load_namespaces << ActiveText
|
||||
end
|
||||
end
|
20
package.json
Normal file
20
package.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "activetext",
|
||||
"version": "0.1",
|
||||
"description": "Edit and display rich text in Rails applications",
|
||||
"main": "app/javascript/activetext/index.js",
|
||||
"files": [
|
||||
"app/javascript/activetext/*.js"
|
||||
],
|
||||
"repository": "https://github.com/basecamp/activetext",
|
||||
"author": "Basecamp, LLC",
|
||||
"contributors": [
|
||||
"Javan Makhmali <javan@javan.us>",
|
||||
"Sam Stephenson <sstephenson@gmail.com>"
|
||||
],
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"trix": "^0.11.1"
|
||||
},
|
||||
"private": true
|
||||
}
|
4
test/test_helper.rb
Normal file
4
test/test_helper.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
require "bundler/setup"
|
||||
require "active_support"
|
||||
require "active_support/test_case"
|
||||
require "active_support/testing/autorun"
|
7
yarn.lock
Normal file
7
yarn.lock
Normal file
|
@ -0,0 +1,7 @@
|
|||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
trix@^0.11.1:
|
||||
version "0.11.1"
|
||||
resolved "https://registry.yarnpkg.com/trix/-/trix-0.11.1.tgz#ffe54f2757c2c2385b8424fd5c5d2ab712a09acc"
|
Loading…
Reference in a new issue