jquery-rails 1.0.19 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of jquery-rails might be problematic. Click here for more details.
- data/CHANGELOG.md +8 -0
- data/Gemfile +0 -5
- data/Gemfile.lock +44 -82
- data/jquery-rails.gemspec +2 -4
- data/lib/jquery/rails.rb +3 -7
- data/lib/jquery/rails/engine.rb +2 -6
- data/lib/jquery/rails/version.rb +1 -1
- metadata +12 -32
- data/lib/jquery/rails/railtie.rb +0 -25
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -2,8 +2,3 @@ source :gemcutter
|
|
2
2
|
|
3
3
|
# Specify your gem's dependencies in jquery-rails.gemspec
|
4
4
|
gemspec
|
5
|
-
# Rails is already being pulled in through gemspec
|
6
|
-
# gem "rails", :git => "git://github.com/rails/rails.git"
|
7
|
-
gem "rack", :git => "git://github.com/rack/rack.git"
|
8
|
-
gem "sprockets", :git => "git://github.com/sstephenson/sprockets.git"
|
9
|
-
gem "i18n", "0.6.0beta1"
|
data/Gemfile.lock
CHANGED
@@ -1,100 +1,62 @@
|
|
1
|
-
GIT
|
2
|
-
remote: git://github.com/rack/rack.git
|
3
|
-
revision: a9beb476b27914794743d0677b327d5bafb5e8a3
|
4
|
-
specs:
|
5
|
-
rack (1.2.1)
|
6
|
-
|
7
|
-
GIT
|
8
|
-
remote: git://github.com/sstephenson/sprockets.git
|
9
|
-
revision: c4800417792744c11eb1fb888bbe9a3a82859952
|
10
|
-
specs:
|
11
|
-
sprockets (2.0.0.beta.2)
|
12
|
-
hike (~> 1.0)
|
13
|
-
rack (~> 1.0)
|
14
|
-
tilt (~> 1.0)
|
15
|
-
|
16
1
|
PATH
|
17
2
|
remote: .
|
18
3
|
specs:
|
19
|
-
jquery-rails (
|
20
|
-
railties (
|
4
|
+
jquery-rails (2.0.0)
|
5
|
+
railties (>= 3.2.0, < 5.0)
|
21
6
|
thor (~> 0.14)
|
22
7
|
|
23
8
|
GEM
|
24
9
|
remote: http://rubygems.org/
|
25
10
|
specs:
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
erubis (2.6.6)
|
56
|
-
abstract (>= 1.0.0)
|
57
|
-
hike (1.0.0)
|
58
|
-
i18n (0.6.0beta1)
|
59
|
-
mail (2.2.19)
|
60
|
-
activesupport (>= 2.3.6)
|
61
|
-
i18n (>= 0.4.0)
|
62
|
-
mime-types (~> 1.16)
|
63
|
-
treetop (~> 1.4.8)
|
64
|
-
mime-types (1.17.2)
|
65
|
-
polyglot (0.3.3)
|
66
|
-
rack-mount (0.6.14)
|
67
|
-
rack (>= 1.0.0)
|
68
|
-
rack-test (0.5.7)
|
11
|
+
actionpack (3.2.1)
|
12
|
+
activemodel (= 3.2.1)
|
13
|
+
activesupport (= 3.2.1)
|
14
|
+
builder (~> 3.0.0)
|
15
|
+
erubis (~> 2.7.0)
|
16
|
+
journey (~> 1.0.1)
|
17
|
+
rack (~> 1.4.0)
|
18
|
+
rack-cache (~> 1.1)
|
19
|
+
rack-test (~> 0.6.1)
|
20
|
+
sprockets (~> 2.1.2)
|
21
|
+
activemodel (3.2.1)
|
22
|
+
activesupport (= 3.2.1)
|
23
|
+
builder (~> 3.0.0)
|
24
|
+
activesupport (3.2.1)
|
25
|
+
i18n (~> 0.6)
|
26
|
+
multi_json (~> 1.0)
|
27
|
+
builder (3.0.0)
|
28
|
+
erubis (2.7.0)
|
29
|
+
hike (1.2.1)
|
30
|
+
i18n (0.6.0)
|
31
|
+
journey (1.0.3)
|
32
|
+
json (1.6.5)
|
33
|
+
multi_json (1.1.0)
|
34
|
+
rack (1.4.1)
|
35
|
+
rack-cache (1.1)
|
36
|
+
rack (>= 0.4)
|
37
|
+
rack-ssl (1.3.2)
|
38
|
+
rack
|
39
|
+
rack-test (0.6.1)
|
69
40
|
rack (>= 1.0)
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
activeresource (= 3.0.5)
|
75
|
-
activesupport (= 3.0.5)
|
76
|
-
bundler (~> 1.0)
|
77
|
-
railties (= 3.0.5)
|
78
|
-
railties (3.0.5)
|
79
|
-
actionpack (= 3.0.5)
|
80
|
-
activesupport (= 3.0.5)
|
41
|
+
railties (3.2.1)
|
42
|
+
actionpack (= 3.2.1)
|
43
|
+
activesupport (= 3.2.1)
|
44
|
+
rack-ssl (~> 1.3.2)
|
81
45
|
rake (>= 0.8.7)
|
82
|
-
|
46
|
+
rdoc (~> 3.4)
|
47
|
+
thor (~> 0.14.6)
|
83
48
|
rake (0.9.2.2)
|
49
|
+
rdoc (3.12)
|
50
|
+
json (~> 1.4)
|
51
|
+
sprockets (2.1.2)
|
52
|
+
hike (~> 1.2)
|
53
|
+
rack (~> 1.0)
|
54
|
+
tilt (~> 1.1, != 1.3.0)
|
84
55
|
thor (0.14.6)
|
85
|
-
tilt (1.3)
|
86
|
-
treetop (1.4.10)
|
87
|
-
polyglot
|
88
|
-
polyglot (>= 0.3.1)
|
89
|
-
tzinfo (0.3.31)
|
56
|
+
tilt (1.3.3)
|
90
57
|
|
91
58
|
PLATFORMS
|
92
59
|
ruby
|
93
60
|
|
94
61
|
DEPENDENCIES
|
95
|
-
bundler (~> 1.0.0)
|
96
|
-
i18n (= 0.6.0beta1)
|
97
62
|
jquery-rails!
|
98
|
-
rack!
|
99
|
-
rails (~> 3.0)
|
100
|
-
sprockets!
|
data/jquery-rails.gemspec
CHANGED
@@ -14,12 +14,10 @@ Gem::Specification.new do |s|
|
|
14
14
|
s.required_rubygems_version = ">= 1.3.6"
|
15
15
|
s.rubyforge_project = "jquery-rails"
|
16
16
|
|
17
|
-
s.add_dependency "railties", "
|
17
|
+
s.add_dependency "railties", ">= 3.2.0", "< 5.0"
|
18
18
|
s.add_dependency "thor", "~> 0.14"
|
19
|
-
s.add_development_dependency "bundler", "~> 1.0.0"
|
20
|
-
s.add_development_dependency "rails", "~> 3.0"
|
21
19
|
|
22
20
|
s.files = `git ls-files`.split("\n")
|
23
21
|
s.executables = `git ls-files`.split("\n").select{|f| f =~ /^bin/}
|
24
22
|
s.require_path = 'lib'
|
25
|
-
end
|
23
|
+
end
|
data/lib/jquery/rails.rb
CHANGED
@@ -1,12 +1,8 @@
|
|
1
|
+
require 'jquery/rails/engine'
|
2
|
+
require 'jquery/rails/version'
|
3
|
+
|
1
4
|
module Jquery
|
2
5
|
module Rails
|
3
6
|
PROTOTYPE_JS = %w{prototype effects dragdrop controls}
|
4
|
-
|
5
|
-
if ::Rails.version < "3.1"
|
6
|
-
require 'jquery/rails/railtie'
|
7
|
-
else
|
8
|
-
require 'jquery/rails/engine'
|
9
|
-
end
|
10
|
-
require 'jquery/rails/version'
|
11
7
|
end
|
12
8
|
end
|
data/lib/jquery/rails/engine.rb
CHANGED
@@ -1,12 +1,8 @@
|
|
1
|
-
|
1
|
+
require "jquery/assert_select" if ::Rails.env.test?
|
2
|
+
|
2
3
|
module Jquery
|
3
4
|
module Rails
|
4
|
-
|
5
5
|
class Engine < ::Rails::Engine
|
6
|
-
config.before_configuration do
|
7
|
-
require "jquery/assert_select" if ::Rails.env.test?
|
8
|
-
end
|
9
6
|
end
|
10
|
-
|
11
7
|
end
|
12
8
|
end
|
data/lib/jquery/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,25 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2012-02-28 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &70131012506520 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.0
|
22
|
+
- - <
|
20
23
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
24
|
+
version: '5.0'
|
22
25
|
type: :runtime
|
23
26
|
prerelease: false
|
24
|
-
version_requirements: *
|
27
|
+
version_requirements: *70131012506520
|
25
28
|
- !ruby/object:Gem::Dependency
|
26
29
|
name: thor
|
27
|
-
requirement: &
|
30
|
+
requirement: &70131012534720 !ruby/object:Gem::Requirement
|
28
31
|
none: false
|
29
32
|
requirements:
|
30
33
|
- - ~>
|
@@ -32,29 +35,7 @@ dependencies:
|
|
32
35
|
version: '0.14'
|
33
36
|
type: :runtime
|
34
37
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
-
- !ruby/object:Gem::Dependency
|
37
|
-
name: bundler
|
38
|
-
requirement: &2153565620 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 1.0.0
|
44
|
-
type: :development
|
45
|
-
prerelease: false
|
46
|
-
version_requirements: *2153565620
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: rails
|
49
|
-
requirement: &2153565120 !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
|
-
requirements:
|
52
|
-
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '3.0'
|
55
|
-
type: :development
|
56
|
-
prerelease: false
|
57
|
-
version_requirements: *2153565120
|
38
|
+
version_requirements: *70131012534720
|
58
39
|
description: This gem provides jQuery and the jQuery-ujs driver for your Rails 3 application.
|
59
40
|
email:
|
60
41
|
- andre@arko.net
|
@@ -75,7 +56,6 @@ files:
|
|
75
56
|
- lib/jquery/assert_select.rb
|
76
57
|
- lib/jquery/rails.rb
|
77
58
|
- lib/jquery/rails/engine.rb
|
78
|
-
- lib/jquery/rails/railtie.rb
|
79
59
|
- lib/jquery/rails/version.rb
|
80
60
|
- spec/lib/jquery-rails_spec.rb
|
81
61
|
- spec/spec_helper.rb
|
@@ -104,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
84
|
version: 1.3.6
|
105
85
|
requirements: []
|
106
86
|
rubyforge_project: jquery-rails
|
107
|
-
rubygems_version: 1.8.
|
87
|
+
rubygems_version: 1.8.15
|
108
88
|
signing_key:
|
109
89
|
specification_version: 3
|
110
90
|
summary: Use jQuery with Rails 3
|
data/lib/jquery/rails/railtie.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# Configure Rails 3.0 to use public/javascripts/jquery et al
|
2
|
-
module Jquery
|
3
|
-
module Rails
|
4
|
-
|
5
|
-
class Railtie < ::Rails::Railtie
|
6
|
-
config.before_configuration do
|
7
|
-
require "jquery/assert_select" if ::Rails.env.test?
|
8
|
-
|
9
|
-
if ::Rails.root.join("public/javascripts/jquery-ui.min.js").exist?
|
10
|
-
jq_defaults = %w(jquery jquery-ui)
|
11
|
-
jq_defaults.map!{|a| a + ".min" } if ::Rails.env.production?
|
12
|
-
else
|
13
|
-
jq_defaults = ::Rails.env.production? ? %w(jquery.min) : %w(jquery)
|
14
|
-
end
|
15
|
-
|
16
|
-
# Merge the jQuery scripts, remove the Prototype defaults and finally add 'jquery_ujs'
|
17
|
-
# at the end, because load order is important
|
18
|
-
config.action_view.javascript_expansions[:defaults] -= PROTOTYPE_JS + ['rails']
|
19
|
-
config.action_view.javascript_expansions[:defaults] |= jq_defaults
|
20
|
-
config.action_view.javascript_expansions[:defaults] << 'jquery_ujs'
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
25
|
-
end
|