abracadabra 1.0.9 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/abracadabra.gemspec +2 -2
- data/app/assets/javascripts/abracadabra.js +2 -1
- data/lib/abracadabra/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d6397a100fc0730bd922ccf829cbc8ede263f1b
|
|
4
|
+
data.tar.gz: 52da01d686c8c0eaec065fbcab683d8c38d39413
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 782696df1679bb883dba8a4e0d33c4f600f25823b9f2e3a6c94c427a332e05a060a92192b3f9a0df0d4857e7e2a60888a2cec1833ca53f596f831298f7c889cd
|
|
7
|
+
data.tar.gz: 7828f591e8beb2b38ca705357f84f927bb917a2af406a51fa11e4bfb4635b41f705bc8c94c2a7eb6deb2bcc6bf33e6dcd38d08bce11874ca1fdbc026a1f4b018
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Abracadabra
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The gem that swaps out text with a fully-compliant Rails form in one click.
|
|
4
4
|
|
|
5
5
|
Much of the concepts and html mark-up were taken from the awesome [x-editable](http://vitalets.github.io/x-editable/) plugin and the Rails version of this, [x-editable-rails](https://github.com/werein/x-editable-rails). However, this was written from the ground up and uses fully Rails-compliant forms without hacking into x-editable's core files, or overriding them.
|
|
6
6
|
|
data/abracadabra.gemspec
CHANGED
|
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
|
8
8
|
spec.version = Abracadabra::Rails::VERSION
|
|
9
9
|
spec.authors = ["Trevor Hinesley"]
|
|
10
10
|
spec.email = ["trevor.hinesley@gmail.com"]
|
|
11
|
-
spec.summary = %q{
|
|
12
|
-
spec.description = %q{Abracadabra:
|
|
11
|
+
spec.summary = %q{The gem that swaps out text with a fully-compliant Rails form in one click using JQuery.}
|
|
12
|
+
spec.description = %q{Abracadabra: The gem that swaps out text with a fully-compliant Rails form in one click using JQuery and rails.js.}
|
|
13
13
|
spec.homepage = "https://github.com/TrevorHinesley/abracadabra"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
$(function() {
|
|
2
2
|
abracadabraSubmissionInProgress = false;
|
|
3
3
|
abracadabraDeleteMousedown = false;
|
|
4
|
-
abracadabraEscapeKeydown =
|
|
4
|
+
abracadabraEscapeKeydown = false;
|
|
5
5
|
|
|
6
6
|
function closeAbracadabra(element, destroy, valueChanged) {
|
|
7
7
|
$element = $(element);
|
|
@@ -52,6 +52,7 @@ $(function() {
|
|
|
52
52
|
|
|
53
53
|
$("body").on("submit", ".abracadabra-form", function(e) {
|
|
54
54
|
if(abracadabraSubmissionInProgress == true || abracadabraEscapeKeydown == true) {
|
|
55
|
+
console.log(abracadabraEscapeKeydown)
|
|
55
56
|
e.preventDefault();
|
|
56
57
|
abracadabraEscapeKeydown = false;
|
|
57
58
|
return false;
|
data/lib/abracadabra/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: abracadabra
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Trevor Hinesley
|
|
@@ -52,8 +52,8 @@ dependencies:
|
|
|
52
52
|
- - ">="
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '0'
|
|
55
|
-
description: 'Abracadabra:
|
|
56
|
-
|
|
55
|
+
description: 'Abracadabra: The gem that swaps out text with a fully-compliant Rails
|
|
56
|
+
form in one click using JQuery and rails.js.'
|
|
57
57
|
email:
|
|
58
58
|
- trevor.hinesley@gmail.com
|
|
59
59
|
executables: []
|
|
@@ -149,8 +149,8 @@ rubyforge_project:
|
|
|
149
149
|
rubygems_version: 2.2.2
|
|
150
150
|
signing_key:
|
|
151
151
|
specification_version: 4
|
|
152
|
-
summary:
|
|
153
|
-
|
|
152
|
+
summary: The gem that swaps out text with a fully-compliant Rails form in one click
|
|
153
|
+
using JQuery.
|
|
154
154
|
test_files:
|
|
155
155
|
- test/dummy/.gitignore
|
|
156
156
|
- test/dummy/Gemfile
|