simple_update_field 0.1.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.1
@@ -1,7 +1,13 @@
1
- module SimpleUpdateField
1
+ begin
2
+ Object.const_get('Rails')
3
+ rescue
2
4
  module Rails
3
- class Engine < ::Rails::Engine
4
-
5
+ class Engine
5
6
  end
6
7
  end
7
8
  end
9
+ module SimpleUpdateField
10
+ class Engine < ::Rails::Engine
11
+ # let rails know to include the javascript
12
+ end
13
+ end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "simple_update_field"
8
- s.version = "0.1.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Curtis Schofield"]
12
- s.date = "2012-03-08"
12
+ s.date = "2012-03-29"
13
13
  s.description = "Your resources text attributes will gain inplace update ability with keybindings for quick editing"
14
14
  s.email = "curtis@ram9.cc"
15
15
  s.extra_rdoc_files = [
@@ -1,7 +1,9 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe "SimpleUpdateField" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
4
+ it "should define an engine" do
5
+ lambda do
6
+ SimpleUpdateField.const_get('Engine')
7
+ end.should_not raise_error NameError
6
8
  end
7
9
  end
@@ -1,7 +1,3 @@
1
- //2hrs march 2nd
2
- //1hrs march 2nd
3
- //3hrs march 4th
4
- //
5
1
  Editable = function(selector) {
6
2
  var self = this
7
3
  self.selector = selector
@@ -84,7 +80,7 @@ Editable = function(selector) {
84
80
  data['id'] = id
85
81
  data[name] = {}
86
82
  data[name][attribute] = node.val().trim()
87
- $.post(uri, data)
83
+ $.ajax({url:url,data:data,type:'PUT'})
88
84
  }
89
85
  self.complete_edit_event = function(event) {
90
86
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_update_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-08 00:00:00.000000000Z
12
+ date: 2012-03-29 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70134771379920 !ruby/object:Gem::Requirement
16
+ requirement: &70249879796620 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.8.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70134771379920
24
+ version_requirements: *70249879796620
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rdoc
27
- requirement: &70134771379320 !ruby/object:Gem::Requirement
27
+ requirement: &70249879796140 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.12'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70134771379320
35
+ version_requirements: *70249879796140
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70134771341340 !ruby/object:Gem::Requirement
38
+ requirement: &70249879795660 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.1.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70134771341340
46
+ version_requirements: *70249879795660
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &70134771340740 !ruby/object:Gem::Requirement
49
+ requirement: &70249879795180 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 1.8.3
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70134771340740
57
+ version_requirements: *70249879795180
58
58
  description: Your resources text attributes will gain inplace update ability with
59
59
  keybindings for quick editing
60
60
  email: curtis@ram9.cc
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  segments:
94
94
  - 0
95
- hash: 2699572986698464963
95
+ hash: 944535647788995717
96
96
  required_rubygems_version: !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements: