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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edd223049678c26610b8c2fadec6d8f8ad595061
4
- data.tar.gz: 41c3481424371382ec2a0301a5842e6a129b423d
3
+ metadata.gz: 3d6397a100fc0730bd922ccf829cbc8ede263f1b
4
+ data.tar.gz: 52da01d686c8c0eaec065fbcab683d8c38d39413
5
5
  SHA512:
6
- metadata.gz: 340c4fecc67742521dfefbc59e52e1291f956072c707cf6104f6e36417e09e851d90af20be0d4db60773a4a6606e67392514ea49816f705469298685268cefe2
7
- data.tar.gz: 0720c36847639c2e10e3961a8f7cb627a32a159a551c8d174c3f747190b69591d3a20c07f02af5c12c9c721f3158b8bb0be4011c9dfa18e3c393c0f870932d34
6
+ metadata.gz: 782696df1679bb883dba8a4e0d33c4f600f25823b9f2e3a6c94c427a332e05a060a92192b3f9a0df0d4857e7e2a60888a2cec1833ca53f596f831298f7c889cd
7
+ data.tar.gz: 7828f591e8beb2b38ca705357f84f927bb917a2af406a51fa11e4bfb4635b41f705bc8c94c2a7eb6deb2bcc6bf33e6dcd38d08bce11874ca1fdbc026a1f4b018
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Abracadabra
2
2
 
3
- A lightweight gem for swapping out text with a fully-compliant Rails 4 form in one click.
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{A lightweight gem for swapping out text with a fully-compliant Rails 4 form in one click using JQuery.}
12
- spec.description = %q{Abracadabra: A lightweight gem for swapping out text with a fully-compliant Rails 4 form in one click using JQuery and rails.js.}
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 = true;
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;
@@ -1,5 +1,5 @@
1
1
  module Abracadabra
2
2
  module Rails
3
- VERSION = "1.0.9"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
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.9
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: A lightweight gem for swapping out text with a fully-compliant
56
- Rails 4 form in one click using JQuery and rails.js.'
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: A lightweight gem for swapping out text with a fully-compliant Rails 4 form
153
- in one click using JQuery.
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