tolaria 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/LICENSE.md +1 -1
- data/app/assets/javascripts/admin/views/fields/markdown_composer.js +7 -10
- data/app/views/admin/shared/_head.html.erb +0 -1
- data/app/views/layouts/admin/admin.html.erb +1 -1
- data/lib/tolaria/engine.rb +1 -0
- data/lib/tolaria/version.rb +1 -1
- data/tolaria.gemspec +1 -1
- metadata +3 -4
- data/app/assets/javascripts/admin/lib/no.js +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0021b04069a27736d350b9f50b850b91831a3e4
|
4
|
+
data.tar.gz: 781b231085124aefc9b43dcc9f8853c04434f732
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d90b23e835165a2c63b2278a7ec5801a02071529b5a650884c5383ec63d90da5eb58cae007c2c4cd34f7292a731d9e2d5449e63611ab89f5598fbeeb217e896
|
7
|
+
data.tar.gz: 58dbc2c40aea7359284175422113518e0c92021bb2a3568447b7cc652879748453731fa5a4233282b291b6d03d4dd493565c3bc7617d52a805ca98b564e19d65
|
data/.travis.yml
CHANGED
data/LICENSE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
### The MIT License
|
2
2
|
|
3
|
-
Copyright (c)
|
3
|
+
Copyright (c) Threespot Media
|
4
4
|
|
5
5
|
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:
|
6
6
|
|
@@ -114,17 +114,14 @@ var MarkdownComposerView = Backbone.View.extend({
|
|
114
114
|
var buttonOps = ComposerButtons[mode];
|
115
115
|
|
116
116
|
if (selectedText.length > 0) {
|
117
|
-
// Wrap
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
this.$textarea.selection("insert", {
|
124
|
-
mode: "after",
|
125
|
-
text: buttonOps.after,
|
126
|
-
caret: "keep"
|
117
|
+
// Wrap each selected line in the syntax
|
118
|
+
var replacementText = [];
|
119
|
+
var lines = selectedText.match(/^.*((\r\n|\n|\r)|$)/gm);
|
120
|
+
$.each(lines, function(index, value){
|
121
|
+
value = value.replace(/(\r\n|\n|\r)/, '');
|
122
|
+
replacementText.push(buttonOps.before + value + buttonOps.after)
|
127
123
|
});
|
124
|
+
this.$textarea.selection("replace", {text: replacementText.join("\n")});
|
128
125
|
}
|
129
126
|
else {
|
130
127
|
// Insert some example text with the syntax
|
data/lib/tolaria/engine.rb
CHANGED
data/lib/tolaria/version.rb
CHANGED
data/tolaria.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.licenses = ["MIT"]
|
10
10
|
s.authors = ["Corey Csuhta", "Daniel Boggs"]
|
11
|
-
s.email = "hello
|
11
|
+
s.email = "hello@threespot.com"
|
12
12
|
s.homepage = "https://github.com/threespot/tolaria"
|
13
13
|
s.summary = "A Rails CMS framework for making people happy."
|
14
14
|
s.description = "Tolaria is a content management system (CMS) framework for Ruby on Rails. It greatly speeds up the necessary—but repetitive—task of creating useful admin panels, forms, and model workflow. Includes a library of rich form components, passwordless authentication, and text search tools. Make your editors happy!"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tolaria
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Corey Csuhta
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-03-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bcrypt
|
@@ -183,7 +183,7 @@ description: Tolaria is a content management system (CMS) framework for Ruby on
|
|
183
183
|
It greatly speeds up the necessary—but repetitive—task of creating useful admin
|
184
184
|
panels, forms, and model workflow. Includes a library of rich form components, passwordless
|
185
185
|
authentication, and text search tools. Make your editors happy!
|
186
|
-
email: hello
|
186
|
+
email: hello@threespot.com
|
187
187
|
executables: []
|
188
188
|
extensions: []
|
189
189
|
extra_rdoc_files: []
|
@@ -214,7 +214,6 @@ files:
|
|
214
214
|
- app/assets/javascripts/admin/lib/jquery.js
|
215
215
|
- app/assets/javascripts/admin/lib/jquery.selection.js
|
216
216
|
- app/assets/javascripts/admin/lib/moment.js
|
217
|
-
- app/assets/javascripts/admin/lib/no.js
|
218
217
|
- app/assets/javascripts/admin/lib/underscore.js
|
219
218
|
- app/assets/javascripts/admin/models/composer_buttons.js
|
220
219
|
- app/assets/javascripts/admin/models/rails_meta.js
|