jquery-cookie-rails 1.3.1 → 1.3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +3 -9
- data/Rakefile +16 -15
- data/VERSION +1 -1
- data/jquery-cookie-rails.gemspec +12 -11
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +15 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +65 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +37 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +37 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +58 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +2 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/dummy/tmp/cache/assets/C52/340/sprockets%2F6043d0b232806794eb540a8d89e24656 +0 -0
- data/spec/dummy/tmp/cache/assets/D38/FD0/sprockets%2Fcb09810821bacb34a8963c410d8e59fc +0 -0
- data/spec/dummy/tmp/cache/assets/D4D/650/sprockets%2Ff429bb49fbc275c79891c27ac3ba7673 +0 -0
- data/spec/jquery-cookie-rails_spec.rb +12 -0
- data/spec/spec_helper.rb +16 -0
- metadata +108 -50
- data/Gemfile.lock +0 -79
- data/lib/generators/jquery-cookie-rails/install/install_generator.rb +0 -36
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Dummy::Application do
|
4
|
+
|
5
|
+
it 'should find `jquery.cookie` as an asset' do
|
6
|
+
described_class.assets['jquery.cookie'].should_not be_nil
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'should have the correct body for `jquery.cookie`' do
|
10
|
+
described_class.assets['jquery.cookie'].body.should include('jquery-cookie')
|
11
|
+
end
|
12
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Configure Rails Envinronment
|
2
|
+
ENV['RAILS_ENV'] = 'test'
|
3
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
4
|
+
|
5
|
+
require 'rspec/rails'
|
6
|
+
|
7
|
+
ENGINE_RAILS_ROOT = File.join( File.dirname(__FILE__), '../' )
|
8
|
+
|
9
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
10
|
+
# in spec/support/ and its subdirectories.
|
11
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
|
12
|
+
|
13
|
+
RSpec.configure do |config|
|
14
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
15
|
+
config.order = 'random'
|
16
|
+
end
|
metadata
CHANGED
@@ -1,38 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-cookie-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.1
|
5
|
-
prerelease:
|
4
|
+
version: 1.3.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ryan Scott Lewis
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-09-24 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: version
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '1.0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.0'
|
30
13
|
- !ruby/object:Gem::Dependency
|
31
14
|
name: railties
|
32
15
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
16
|
requirements:
|
35
|
-
- -
|
17
|
+
- - '>='
|
36
18
|
- !ruby/object:Gem::Version
|
37
19
|
version: 3.2.0
|
38
20
|
- - <
|
@@ -41,50 +23,72 @@ dependencies:
|
|
41
23
|
type: :runtime
|
42
24
|
prerelease: false
|
43
25
|
version_requirements: !ruby/object:Gem::Requirement
|
44
|
-
none: false
|
45
26
|
requirements:
|
46
|
-
- -
|
27
|
+
- - '>='
|
47
28
|
- !ruby/object:Gem::Version
|
48
29
|
version: 3.2.0
|
49
30
|
- - <
|
50
31
|
- !ruby/object:Gem::Version
|
51
32
|
version: '5.0'
|
52
33
|
- !ruby/object:Gem::Dependency
|
53
|
-
name:
|
34
|
+
name: rails
|
54
35
|
requirement: !ruby/object:Gem::Requirement
|
55
|
-
none: false
|
56
36
|
requirements:
|
57
37
|
- - ~>
|
58
38
|
- !ruby/object:Gem::Version
|
59
|
-
version: '
|
60
|
-
type: :
|
39
|
+
version: '3.2'
|
40
|
+
type: :development
|
61
41
|
prerelease: false
|
62
42
|
version_requirements: !ruby/object:Gem::Requirement
|
63
|
-
none: false
|
64
43
|
requirements:
|
65
44
|
- - ~>
|
66
45
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
46
|
+
version: '3.2'
|
68
47
|
- !ruby/object:Gem::Dependency
|
69
|
-
name:
|
48
|
+
name: sqlite3
|
70
49
|
requirement: !ruby/object:Gem::Requirement
|
71
|
-
none: false
|
72
50
|
requirements:
|
73
51
|
- - ~>
|
74
52
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
76
|
-
type: :
|
53
|
+
version: '1.3'
|
54
|
+
type: :development
|
77
55
|
prerelease: false
|
78
56
|
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
none: false
|
80
57
|
requirements:
|
81
58
|
- - ~>
|
82
59
|
- !ruby/object:Gem::Version
|
83
|
-
version: '
|
60
|
+
version: '1.3'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: uglifier
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ~>
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.3'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ~>
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '1.3'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: sass
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - ~>
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '3.2'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ~>
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '3.2'
|
84
89
|
- !ruby/object:Gem::Dependency
|
85
90
|
name: rake
|
86
91
|
requirement: !ruby/object:Gem::Requirement
|
87
|
-
none: false
|
88
92
|
requirements:
|
89
93
|
- - ~>
|
90
94
|
- !ruby/object:Gem::Version
|
@@ -92,7 +96,6 @@ dependencies:
|
|
92
96
|
type: :development
|
93
97
|
prerelease: false
|
94
98
|
version_requirements: !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
96
99
|
requirements:
|
97
100
|
- - ~>
|
98
101
|
- !ruby/object:Gem::Version
|
@@ -100,7 +103,6 @@ dependencies:
|
|
100
103
|
- !ruby/object:Gem::Dependency
|
101
104
|
name: fancy_logger
|
102
105
|
requirement: !ruby/object:Gem::Requirement
|
103
|
-
none: false
|
104
106
|
requirements:
|
105
107
|
- - ~>
|
106
108
|
- !ruby/object:Gem::Version
|
@@ -108,11 +110,38 @@ dependencies:
|
|
108
110
|
type: :development
|
109
111
|
prerelease: false
|
110
112
|
version_requirements: !ruby/object:Gem::Requirement
|
111
|
-
none: false
|
112
113
|
requirements:
|
113
114
|
- - ~>
|
114
115
|
- !ruby/object:Gem::Version
|
115
116
|
version: '0.1'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rspec-rails
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ~>
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '2.13'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ~>
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '2.13'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: fuubar
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ~>
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '1.1'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ~>
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '1.1'
|
116
145
|
description: This gem provides jquery-cookie assets for your Rails 3 application.
|
117
146
|
email: ryan@rynet.us
|
118
147
|
executables: []
|
@@ -120,7 +149,6 @@ extensions: []
|
|
120
149
|
extra_rdoc_files: []
|
121
150
|
files:
|
122
151
|
- Gemfile
|
123
|
-
- Gemfile.lock
|
124
152
|
- jquery-cookie-rails.gemspec
|
125
153
|
- LICENSE
|
126
154
|
- Rakefile
|
@@ -128,36 +156,66 @@ files:
|
|
128
156
|
- VERSION
|
129
157
|
- vendor/assets/javascripts/jquery.cookie.js
|
130
158
|
- lib/jquery-cookie-rails.rb
|
131
|
-
- lib/generators/jquery-cookie-rails/install/install_generator.rb
|
132
159
|
- lib/jquery-cookie-rails/rails/engine.rb
|
133
160
|
- lib/jquery-cookie-rails/rails/version.rb
|
134
161
|
- lib/jquery-cookie-rails/rails.rb
|
162
|
+
- spec/dummy/app/assets/javascripts/application.js
|
163
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
164
|
+
- spec/dummy/app/controllers/application_controller.rb
|
165
|
+
- spec/dummy/app/helpers/application_helper.rb
|
166
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
167
|
+
- spec/dummy/config/application.rb
|
168
|
+
- spec/dummy/config/boot.rb
|
169
|
+
- spec/dummy/config/database.yml
|
170
|
+
- spec/dummy/config/environment.rb
|
171
|
+
- spec/dummy/config/environments/development.rb
|
172
|
+
- spec/dummy/config/environments/production.rb
|
173
|
+
- spec/dummy/config/environments/test.rb
|
174
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
175
|
+
- spec/dummy/config/initializers/inflections.rb
|
176
|
+
- spec/dummy/config/initializers/mime_types.rb
|
177
|
+
- spec/dummy/config/initializers/secret_token.rb
|
178
|
+
- spec/dummy/config/initializers/session_store.rb
|
179
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
180
|
+
- spec/dummy/config/locales/en.yml
|
181
|
+
- spec/dummy/config/routes.rb
|
182
|
+
- spec/dummy/config.ru
|
183
|
+
- spec/dummy/db/test.sqlite3
|
184
|
+
- spec/dummy/log/test.log
|
185
|
+
- spec/dummy/public/404.html
|
186
|
+
- spec/dummy/public/422.html
|
187
|
+
- spec/dummy/public/500.html
|
188
|
+
- spec/dummy/public/favicon.ico
|
189
|
+
- spec/dummy/Rakefile
|
190
|
+
- spec/dummy/README.rdoc
|
191
|
+
- spec/dummy/script/rails
|
192
|
+
- spec/dummy/tmp/cache/assets/C52/340/sprockets%2F6043d0b232806794eb540a8d89e24656
|
193
|
+
- spec/dummy/tmp/cache/assets/D38/FD0/sprockets%2Fcb09810821bacb34a8963c410d8e59fc
|
194
|
+
- spec/dummy/tmp/cache/assets/D4D/650/sprockets%2Ff429bb49fbc275c79891c27ac3ba7673
|
195
|
+
- spec/jquery-cookie-rails_spec.rb
|
196
|
+
- spec/spec_helper.rb
|
135
197
|
homepage: http://github.com/RyanScottLewis/jquery-cookie-rails
|
136
198
|
licenses:
|
137
199
|
- MIT
|
200
|
+
metadata: {}
|
138
201
|
post_install_message:
|
139
202
|
rdoc_options: []
|
140
203
|
require_paths:
|
141
204
|
- lib
|
142
205
|
required_ruby_version: !ruby/object:Gem::Requirement
|
143
|
-
none: false
|
144
206
|
requirements:
|
145
|
-
- -
|
207
|
+
- - '>='
|
146
208
|
- !ruby/object:Gem::Version
|
147
209
|
version: '0'
|
148
|
-
segments:
|
149
|
-
- 0
|
150
|
-
hash: 1519022587936653727
|
151
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
-
none: false
|
153
211
|
requirements:
|
154
|
-
- -
|
212
|
+
- - '>='
|
155
213
|
- !ruby/object:Gem::Version
|
156
214
|
version: 1.3.6
|
157
215
|
requirements: []
|
158
216
|
rubyforge_project:
|
159
|
-
rubygems_version: 1.
|
217
|
+
rubygems_version: 2.1.2
|
160
218
|
signing_key:
|
161
|
-
specification_version:
|
219
|
+
specification_version: 4
|
162
220
|
summary: Use jquery-cookie with Rails 3
|
163
221
|
test_files: []
|
data/Gemfile.lock
DELETED
@@ -1,79 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
jquery-cookie-rails (1.3.1)
|
5
|
-
jquery-rails (~> 2.0)
|
6
|
-
railties (>= 3.2.0, < 5.0)
|
7
|
-
thor (~> 0.14)
|
8
|
-
version (~> 1.0)
|
9
|
-
|
10
|
-
GEM
|
11
|
-
remote: http://rubygems.org/
|
12
|
-
specs:
|
13
|
-
actionpack (3.2.12)
|
14
|
-
activemodel (= 3.2.12)
|
15
|
-
activesupport (= 3.2.12)
|
16
|
-
builder (~> 3.0.0)
|
17
|
-
erubis (~> 2.7.0)
|
18
|
-
journey (~> 1.0.4)
|
19
|
-
rack (~> 1.4.5)
|
20
|
-
rack-cache (~> 1.2)
|
21
|
-
rack-test (~> 0.6.1)
|
22
|
-
sprockets (~> 2.2.1)
|
23
|
-
activemodel (3.2.12)
|
24
|
-
activesupport (= 3.2.12)
|
25
|
-
builder (~> 3.0.0)
|
26
|
-
activesupport (3.2.12)
|
27
|
-
i18n (~> 0.6)
|
28
|
-
multi_json (~> 1.0)
|
29
|
-
builder (3.0.4)
|
30
|
-
erubis (2.7.0)
|
31
|
-
fancy_logger (0.1.1)
|
32
|
-
outline (~> 0.1.5)
|
33
|
-
rainbow (~> 1.1.3)
|
34
|
-
version (~> 1.0.0)
|
35
|
-
hike (1.2.1)
|
36
|
-
i18n (0.6.4)
|
37
|
-
journey (1.0.4)
|
38
|
-
jquery-rails (2.2.1)
|
39
|
-
railties (>= 3.0, < 5.0)
|
40
|
-
thor (>= 0.14, < 2.0)
|
41
|
-
json (1.7.7)
|
42
|
-
meta_tools (0.2.7)
|
43
|
-
multi_json (1.6.1)
|
44
|
-
outline (0.1.5)
|
45
|
-
meta_tools (~> 0.2.6)
|
46
|
-
rack (1.4.5)
|
47
|
-
rack-cache (1.2)
|
48
|
-
rack (>= 0.4)
|
49
|
-
rack-ssl (1.3.3)
|
50
|
-
rack
|
51
|
-
rack-test (0.6.2)
|
52
|
-
rack (>= 1.0)
|
53
|
-
railties (3.2.12)
|
54
|
-
actionpack (= 3.2.12)
|
55
|
-
activesupport (= 3.2.12)
|
56
|
-
rack-ssl (~> 1.3.2)
|
57
|
-
rake (>= 0.8.7)
|
58
|
-
rdoc (~> 3.4)
|
59
|
-
thor (>= 0.14.6, < 2.0)
|
60
|
-
rainbow (1.1.4)
|
61
|
-
rake (10.0.3)
|
62
|
-
rdoc (3.12.2)
|
63
|
-
json (~> 1.4)
|
64
|
-
sprockets (2.2.2)
|
65
|
-
hike (~> 1.2)
|
66
|
-
multi_json (~> 1.0)
|
67
|
-
rack (~> 1.0)
|
68
|
-
tilt (~> 1.1, != 1.3.0)
|
69
|
-
thor (0.17.0)
|
70
|
-
tilt (1.3.5)
|
71
|
-
version (1.0.0)
|
72
|
-
|
73
|
-
PLATFORMS
|
74
|
-
ruby
|
75
|
-
|
76
|
-
DEPENDENCIES
|
77
|
-
fancy_logger (~> 0.1)
|
78
|
-
jquery-cookie-rails!
|
79
|
-
rake (~> 10.0)
|
@@ -1,36 +0,0 @@
|
|
1
|
-
require 'rails'
|
2
|
-
|
3
|
-
# Supply generator for Rails 3.0.x or if asset pipeline is not enabled
|
4
|
-
if ::Rails.version < "3.1" || !::Rails.application.config.assets.enabled
|
5
|
-
module JqueryCookie
|
6
|
-
module Generators
|
7
|
-
class InstallGenerator < ::Rails::Generators::Base
|
8
|
-
|
9
|
-
desc "This generator installs jquery-cookie #{JqueryCookie::Rails::JS_VERSION}"
|
10
|
-
source_root File.expand_path('../../../../../vendor/assets', __FILE__)
|
11
|
-
|
12
|
-
def copy_files
|
13
|
-
say_status("copying", "jquery-cookie (#{JqueryCookie::Rails::JS_VERSION})", :green)
|
14
|
-
copy_file "javascripts/jquery.cookie.js", "public/javascripts/jquery.cookie.js"
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
else
|
21
|
-
module JqueryCookie
|
22
|
-
module Generators
|
23
|
-
class InstallGenerator < ::Rails::Generators::Base
|
24
|
-
desc "Just show instructions so people will know what to do when mistakenly using generator for Rails 3.1 apps"
|
25
|
-
|
26
|
-
def do_nothing
|
27
|
-
say_status("deprecated", "You are using Rails 3.1 or the asset pipeline enabled, so this generator is not needed.")
|
28
|
-
say_status("", "The necessary files are already in your asset pipeline.")
|
29
|
-
say_status("", "Just add `//= require jquery.cookie` to your app/assets/javascripts/application.js")
|
30
|
-
say_status("", "If you do not want the asset pipeline enabled, you may turn it off in application.rb and re-run this generator.")
|
31
|
-
# ok, nothing
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|