rest_in_place 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MWMzNGJhY2Q4YmM3ZTM2NWIwMDAzNzQ4ZDJhOTYwZDc3NWNmNTE4ZA==
5
- data.tar.gz: !binary |-
6
- MWFhNjE4N2M2OTNmNzdjMTJjZGEzNjYwYWZhMzBiOWNmNTAyM2EwMQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- MzIxYjM5MGRiNDg4MDBkMWVmNTJhMjM0YTUxZTY5MWRhOTljMWYxNTkyZTRk
10
- NGZmNjMzNzhlNDBmZDg4M2U3YjJlNTYzYTM2ZmQzZmEwZGFlOTUxNjg4NDM4
11
- ZTU3ZWQ0Mjg3ZjAyNDc5MDY4YjRkYjQyYjdiZThkMWNlMGI1ODI=
12
- data.tar.gz: !binary |-
13
- MTdmZTM2NWVjMzRjODA1MjgzODQ2NWUxZGI2NTg4ZDkzYWViMjczOTZhZjRi
14
- ZThjZmI5ZjVkZWM4MzVlMThjOTE1YWUwYTg4ODhhMzEzYjg1NWQ5ZTc5M2Rk
15
- MzNlMmYzYjY3NTNkZWU3NTk4Yzk4ZTg2MjRiZTJiMzQ0N2I3M2E=
2
+ SHA1:
3
+ metadata.gz: c65964455213acc56259988b9079baf720675922
4
+ data.tar.gz: 575cf914d70ed0ea99c2164184a4707dc318179b
5
+ SHA512:
6
+ metadata.gz: 39a8cca0e65b38e4ca089c2af38f854c0b3284c5032d03ec9c7d2c3279ed95dd632900f801caeb992e4a173f484c1652d317f400874a338e4297430dc45c7941
7
+ data.tar.gz: 52665138b498db6a4374f20324500ac7f7e89aeaf906fc7ec50056b82867d38750475b9f43a461ecd620afb4fab52456ac2ac5a2ae730d0d5cadfe248d20c08a
@@ -160,7 +160,7 @@ class RestInPlaceEditor
160
160
  """<span class="rest-in-placeholder">#{@placeholder}</span>"""
161
161
 
162
162
  elementHTML: ->
163
- value = @$element.html()
163
+ value = @$element.text()
164
164
  value = '' if value == @placeholderHTML()
165
165
  value
166
166
 
@@ -250,4 +250,4 @@ $.fn.restInPlace = ->
250
250
 
251
251
 
252
252
  # Run automatically
253
- $ -> $('.rest-in-place').restInPlace()
253
+ $(document).on 'ready page:load', -> $('.rest-in-place').restInPlace()
@@ -1,3 +1,3 @@
1
1
  module RestInPlace
2
- VERSION = "2.4.0"
2
+ VERSION = "2.5.0"
3
3
  end
@@ -5,7 +5,7 @@ require "rest_in_place/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "rest_in_place"
7
7
  s.version = RestInPlace::VERSION
8
- s.date = '2014-03-07'
8
+ s.date = '2014-04-18'
9
9
  s.authors = ["Jan Varwig"]
10
10
  s.email = ["jan@varwig.org"]
11
11
  s.homepage = "http://jan.varwig.org"
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest_in_place
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Varwig
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-07 00:00:00.000000000 Z
11
+ date: 2014-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
27
  description: REST in Place is an AJAX Inplace-Editor that talks to RESTful controllers.
@@ -48,12 +48,12 @@ require_paths:
48
48
  - lib
49
49
  required_ruby_version: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ! '>='
51
+ - - '>='
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0'
54
54
  required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  requirements:
56
- - - ! '>='
56
+ - - '>='
57
57
  - !ruby/object:Gem::Version
58
58
  version: '0'
59
59
  requirements: []
@@ -63,4 +63,3 @@ signing_key:
63
63
  specification_version: 4
64
64
  summary: An AJAX Inplace-Editor for the Rails 3.1 asset pipeline.
65
65
  test_files: []
66
- has_rdoc: