modal_logic 0.0.3 → 0.0.4

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.
@@ -1,4 +1,6 @@
1
- class ModalLogic
1
+ exports = exports ? window
2
+
3
+ exports.ModalLogic = class ModalLogic
2
4
  constructor: ->
3
5
  that = @
4
6
  $('a[data-remote][modal],form[data-remote][modal]').live 'ajax:complete', (jq_event, xhr) ->
@@ -1,17 +1,17 @@
1
- // Generated by CoffeeScript 1.6.2
2
- var ModalLogic,
1
+ // Generated by CoffeeScript 1.6.3
2
+ var ModalLogic, exports,
3
3
  __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
4
4
 
5
- ModalLogic = (function() {
5
+ exports = exports != null ? exports : window;
6
+
7
+ exports.ModalLogic = ModalLogic = (function() {
6
8
  function ModalLogic() {
7
9
  this.showModal = __bind(this.showModal, this);
8
10
  this.createOrUpdateModalContent = __bind(this.createOrUpdateModalContent, this);
9
11
  var that;
10
-
11
12
  that = this;
12
13
  $('a[data-remote][modal],form[data-remote][modal]').live('ajax:complete', function(jq_event, xhr) {
13
14
  var response;
14
-
15
15
  response = JSON.parse(xhr.responseText);
16
16
  if (response != null) {
17
17
  if (response.close != null) {
@@ -30,7 +30,6 @@ ModalLogic = (function() {
30
30
 
31
31
  ModalLogic.prototype.createOrUpdateModalContent = function(context) {
32
32
  var $modal, html;
33
-
34
33
  html = HandlebarsTemplates['modal/crud']({
35
34
  modal: context
36
35
  });
@@ -1,3 +1,3 @@
1
1
  module ModalLogic
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modal_logic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Adam Hallett
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-08-12 00:00:00.000000000 Z
12
+ date: 2013-09-24 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: rails
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: handlebars_assets
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - '='
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - '='
39
44
  - !ruby/object:Gem::Version
@@ -88,26 +93,27 @@ files:
88
93
  - test/test_helper.rb
89
94
  homepage: http://github.com/atomical/modal_logic
90
95
  licenses: []
91
- metadata: {}
92
96
  post_install_message:
93
97
  rdoc_options: []
94
98
  require_paths:
95
99
  - lib
96
100
  required_ruby_version: !ruby/object:Gem::Requirement
101
+ none: false
97
102
  requirements:
98
103
  - - ! '>='
99
104
  - !ruby/object:Gem::Version
100
105
  version: '0'
101
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
+ none: false
102
108
  requirements:
103
109
  - - ! '>='
104
110
  - !ruby/object:Gem::Version
105
111
  version: '0'
106
112
  requirements: []
107
113
  rubyforge_project:
108
- rubygems_version: 2.0.3
114
+ rubygems_version: 1.8.25
109
115
  signing_key:
110
- specification_version: 4
116
+ specification_version: 3
111
117
  summary: The simplicity of Rails forms coupled with Bootstrap modal
112
118
  test_files:
113
119
  - test/dummy/app/assets/javascripts/application.js
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YmZiMTE3NjVjOTIwMTFiZjE2ODViZWVhZWUwY2RjOWVmMTJmM2Q1YQ==
5
- data.tar.gz: !binary |-
6
- NmUyNDFlMjA3YmJhOGFmZmE2M2U1Y2Q2ZmNhMGJmMzEyYWVlY2EwNw==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MDczOGMzOGZhM2NjY2FjZjdlNjNjYTFiZWI3NDkxMWMyMzk0MjdiNWJmMjIw
10
- ZDIxMWZjZTFkZmI1ZDQ1M2I3OGM5MTlmMGVlZWZlODFkNzExN2Q5OGZkN2Qx
11
- ODAxYTgxZjMwZGIwMzg2YTkxMTI1MzZkYTg2OWQ0ZGEwNTdiZmU=
12
- data.tar.gz: !binary |-
13
- ODBlNDlmN2QzMTk3M2IyNmIzNWNlMzg4MjJjNGU4OTVkY2JiZjgxZDAwYjZl
14
- NDExOGZkMmMxM2JiZDAzN2UzZDdhOGVlYzc5NDBjYTAzNTRjOTFlNjVlNDM2
15
- MTRhYzVjOTViZGNjNjY3YzQzNjFhMGE2OWQ1ZDI1NWI0NTMxZjU=