rails-ajax 0.3.1.20131223 → 0.3.2.20131227

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 959c773c4e22e9073065c98197892ebd264dceb6
4
+ data.tar.gz: 0fd686ac6b471b9733adb1b13410487d2b0f8f0f
5
+ SHA512:
6
+ metadata.gz: 6ae25f50b03186a6d3ca712dd61ad38505e337aeb6c40096444e5eb52a9d6fe4e89ae67d4fbaf56f00816732cf3acd507a5302a23bcccaafbc3d0626707cf541
7
+ data.tar.gz: 637f812c534f95af0b07e1c7cc5084979fbfab1db892c7c9c80ba7d0d94423aa90773923578927ef116efddf7429e8f83f95c68fdc2cf8029f088161d345a1f6
@@ -6,6 +6,7 @@
6
6
  * 0.2.0.20130731
7
7
  * 0.3.0.20130913
8
8
  * 0.3.1.20131223
9
+ * 0.3.2.20131227
9
10
 
10
11
  = LoveIsGrief (https://github.com/LoveIsGrief)
11
12
 
data/ChangeLog CHANGED
@@ -1,5 +1,11 @@
1
1
  = Rails-Ajax Release History
2
2
 
3
+ == 0.3.2.20131227 (Beta)
4
+
5
+ * Bug correction: link_to used with a block in Rails 4 did not use rails-ajax
6
+ * Added tests for link_to with block syntax
7
+ * Corrected wrong testing in Ajax calls.
8
+
3
9
  == 0.3.1.20131223 (Beta)
4
10
 
5
11
  * Corrected Rails dependency. Now works for Rails 4.
@@ -54,7 +54,7 @@ GEM
54
54
  database_cleaner (1.2.0)
55
55
  diff-lcs (1.2.5)
56
56
  erubis (2.7.0)
57
- gherkin (2.12.2-x86-mingw32)
57
+ gherkin (2.12.2)
58
58
  multi_json (~> 1.3)
59
59
  i18n (0.6.9)
60
60
  jquery-rails (3.0.4)
@@ -66,7 +66,7 @@ GEM
66
66
  minitest (4.7.5)
67
67
  multi_json (1.8.2)
68
68
  multi_test (0.0.2)
69
- nokogiri (1.6.1-x86-mingw32)
69
+ nokogiri (1.6.1)
70
70
  mini_portile (~> 0.5.0)
71
71
  rack (1.5.2)
72
72
  rack-test (0.6.2)
@@ -97,7 +97,7 @@ GEM
97
97
  rspec-core (~> 2.14.0)
98
98
  rspec-expectations (~> 2.14.0)
99
99
  rspec-mocks (~> 2.14.0)
100
- sqlite3 (1.3.8-x86-mingw32)
100
+ sqlite3 (1.3.8)
101
101
  thor (0.18.1)
102
102
  thread_safe (0.1.3)
103
103
  atomic
@@ -106,7 +106,7 @@ GEM
106
106
  nokogiri (~> 1.3)
107
107
 
108
108
  PLATFORMS
109
- x86-mingw32
109
+ ruby
110
110
 
111
111
  DEPENDENCIES
112
112
  capybara-webkit
@@ -2,7 +2,7 @@
2
2
  # This file has been generated by RubyPackager during a delivery.
3
3
  # More info about RubyPackager: http://rubypackager.sourceforge.net
4
4
  {
5
- :version => '0.3.1.20131223',
5
+ :version => '0.3.2.20131227',
6
6
  :tags => [ 'Beta' ],
7
7
  :dev_status => 'Beta'
8
8
  }
@@ -9,36 +9,19 @@ module RailsAjax
9
9
  module UrlHelper
10
10
 
11
11
  # Adapt link_to method to handle Ajax queries automatically
12
- def link_to(*args, &block)
13
- if (RailsAjax.config.Enabled)
14
- lName = args.first
15
- lOptions = args.second || {}
16
- lHTMLOptions = args.third || {}
17
- # Decide if we use rails-ajax or not for this link
18
- if RailsAjax::rails_ajaxifiable?(lHTMLOptions)
19
- # Adapt the link
20
- if block_given?
21
- return super(lName, lOptions, lHTMLOptions.merge({ :remote => true, :'data-rails-ajax-remote' => true })) do
22
- block.call
23
- end
24
- else
25
- return super(lName, lOptions, lHTMLOptions.merge({ :remote => true, :'data-rails-ajax-remote' => true }))
26
- end
27
- elsif block_given?
28
- # Don't use Rails-Ajax
29
- return super(*args) do
30
- block.call
31
- end
32
- else
33
- return super(*args)
34
- end
35
- elsif block_given?
36
- # Don't use Rails-Ajax
37
- return super(*args) do
12
+ def link_to(name = nil, options = nil, html_options = nil, &block)
13
+ options, html_options = name, options if block_given?
14
+ html_options ||= {}
15
+ if (RailsAjax.config.Enabled and
16
+ RailsAjax::rails_ajaxifiable?(html_options))
17
+ html_options.merge!({ :remote => true, :'data-rails-ajax-remote' => true })
18
+ end
19
+ if block_given?
20
+ return super(options, html_options) do
38
21
  block.call
39
22
  end
40
23
  else
41
- return super(*args)
24
+ return super(name, options, html_options)
42
25
  end
43
26
  end
44
27
 
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-ajax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1.20131223
5
- prerelease:
4
+ version: 0.3.2.20131227
6
5
  platform: ruby
7
6
  authors:
8
7
  - Muriel Salvan
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-23 00:00:00.000000000 Z
11
+ date: 2013-12-27 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.2.1
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: 3.2.1
30
27
  description: Add Ajax capabilities to Rails websites, with minimal code changes. Supports
@@ -60,27 +57,26 @@ files:
60
57
  - tasks/rails-ajax_tasks.rake
61
58
  homepage: http://rails-ajax.sourceforge.net
62
59
  licenses: []
60
+ metadata: {}
63
61
  post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
67
65
  required_ruby_version: !ruby/object:Gem::Requirement
68
- none: false
69
66
  requirements:
70
- - - ! '>='
67
+ - - '>='
71
68
  - !ruby/object:Gem::Version
72
69
  version: '0'
73
70
  required_rubygems_version: !ruby/object:Gem::Requirement
74
- none: false
75
71
  requirements:
76
- - - ! '>='
72
+ - - '>='
77
73
  - !ruby/object:Gem::Version
78
74
  version: '0'
79
75
  requirements: []
80
76
  rubyforge_project: rails-ajax
81
- rubygems_version: 1.8.24
77
+ rubygems_version: 2.0.14
82
78
  signing_key:
83
- specification_version: 3
79
+ specification_version: 4
84
80
  summary: Add Ajax capabilities to Rails websites with history, bookmarking, partial
85
81
  refreshes, Rails flashes, user callbacks, scripts execution, redirections.
86
82
  test_files: []