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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3426bee0e94ab625387e91e9baa658b65fde025d
4
- data.tar.gz: 17156e92bb89b6fbeb6edd970724eb6a391cd7c7
3
+ metadata.gz: f0021b04069a27736d350b9f50b850b91831a3e4
4
+ data.tar.gz: 781b231085124aefc9b43dcc9f8853c04434f732
5
5
  SHA512:
6
- metadata.gz: b9b3db8d23e4182f7828ca5007ebbc99f4d6526c24f1e04f7b176f9545c48776926ab5e639504083780d764b7417f5c23c117869da806b635f8528ce669646c8
7
- data.tar.gz: 7d2526a4b45c6942de11ec5f1e45aa38285648ecb02a49406dfdca7ee248dc58d21aef25922712626b344041d81ca89a1c833d152a75ffa4058654a724d895bf
6
+ metadata.gz: 7d90b23e835165a2c63b2278a7ec5801a02071529b5a650884c5383ec63d90da5eb58cae007c2c4cd34f7292a731d9e2d5449e63611ab89f5598fbeeb217e896
7
+ data.tar.gz: 58dbc2c40aea7359284175422113518e0c92021bb2a3568447b7cc652879748453731fa5a4233282b291b6d03d4dd493565c3bc7617d52a805ca98b564e19d65
data/.travis.yml CHANGED
@@ -1,4 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.2.2
4
+ - 2.2.4
5
+ - 2.3.0
4
6
  script: "rake test"
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ### The MIT License
2
2
 
3
- Copyright (c) 2015 Threespot Media
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 the selected text in the syntax
118
- this.$textarea.selection("insert", {
119
- mode: "before",
120
- text: buttonOps.before,
121
- caret: "keep"
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
@@ -7,5 +7,4 @@
7
7
  <%= favicon_link_tag "admin/favicon.ico" %>
8
8
  <%= csrf_meta_tags %>
9
9
  <%= stylesheet_link_tag "admin/admin", media:"all" %>
10
- <%= javascript_include_tag "admin/lib/no" %>
11
10
  </head>
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html class="no-js">
2
+ <html>
3
3
  <%= render "admin/shared/head" %>
4
4
  <body class="admin">
5
5
 
@@ -7,6 +7,7 @@ module Tolaria
7
7
  admin/admin.css
8
8
  admin/admin.js
9
9
  admin/lib/no.js
10
+ admin/favicon.ico
10
11
  ]
11
12
  end
12
13
 
@@ -2,7 +2,7 @@ module Tolaria
2
2
 
3
3
  # Returns Tolaria’s version number
4
4
  def self.version
5
- Gem::Version.new("1.2.0")
5
+ Gem::Version.new("1.2.1")
6
6
  end
7
7
 
8
8
  module VERSION
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+tolaria@threespot.com"
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.0
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-01-04 00:00:00.000000000 Z
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+tolaria@threespot.com
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
@@ -1,4 +0,0 @@
1
- (function() {
2
- var htmlTag = document.getElementsByTagName("html")[0];
3
- htmlTag.className = htmlTag.className.replace("no-js", "js");
4
- })();