requirejs-rails 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +7 -6
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +67 -73
- data/README.md +7 -3
- data/app/helpers/requirejs_helper.rb +13 -1
- data/bin/r.js +23232 -19066
- data/lib/requirejs/error.rb +2 -0
- data/lib/requirejs/rails/builder.rb +6 -2
- data/lib/requirejs/rails/config.rb +5 -4
- data/lib/requirejs/rails/engine.rb +26 -13
- data/lib/requirejs/rails/rjs_driver.js.erb +18 -5
- data/lib/requirejs/rails/version.rb +2 -2
- data/lib/tasks/requirejs-rails_tasks.rake +21 -7
- data/requirejs-rails.gemspec +2 -2
- data/test/requirejs-rails_test.rb +3 -3
- data/vendor/assets/javascripts/almond.js +12 -3
- data/vendor/assets/javascripts/require.js +1881 -1806
- metadata +25 -39
- data/.rvmrc +0 -52
metadata
CHANGED
@@ -1,74 +1,67 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: requirejs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
5
|
-
prerelease:
|
4
|
+
version: 0.9.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- John Whitley
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-03-19 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: railties
|
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.1.1
|
22
|
-
- - <
|
20
|
+
- - "<"
|
23
21
|
- !ruby/object:Gem::Version
|
24
|
-
version: '
|
22
|
+
version: '4.1'
|
25
23
|
type: :runtime
|
26
24
|
prerelease: false
|
27
25
|
version_requirements: !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
26
|
requirements:
|
30
|
-
- -
|
27
|
+
- - ">="
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: 3.1.1
|
33
|
-
- - <
|
30
|
+
- - "<"
|
34
31
|
- !ruby/object:Gem::Version
|
35
|
-
version: '
|
32
|
+
version: '4.1'
|
36
33
|
- !ruby/object:Gem::Dependency
|
37
34
|
name: rails
|
38
35
|
requirement: !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
36
|
requirements:
|
41
|
-
- -
|
37
|
+
- - ">="
|
42
38
|
- !ruby/object:Gem::Version
|
43
39
|
version: 3.1.1
|
44
|
-
- -
|
40
|
+
- - "<"
|
45
41
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
42
|
+
version: '4.1'
|
47
43
|
type: :development
|
48
44
|
prerelease: false
|
49
45
|
version_requirements: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
46
|
requirements:
|
52
|
-
- -
|
47
|
+
- - ">="
|
53
48
|
- !ruby/object:Gem::Version
|
54
49
|
version: 3.1.1
|
55
|
-
- -
|
50
|
+
- - "<"
|
56
51
|
- !ruby/object:Gem::Version
|
57
|
-
version: '
|
52
|
+
version: '4.1'
|
58
53
|
- !ruby/object:Gem::Dependency
|
59
54
|
name: sqlite3
|
60
55
|
requirement: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
56
|
requirements:
|
63
|
-
- -
|
57
|
+
- - ">="
|
64
58
|
- !ruby/object:Gem::Version
|
65
59
|
version: '0'
|
66
60
|
type: :development
|
67
61
|
prerelease: false
|
68
62
|
version_requirements: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
63
|
requirements:
|
71
|
-
- -
|
64
|
+
- - ">="
|
72
65
|
- !ruby/object:Gem::Version
|
73
66
|
version: '0'
|
74
67
|
description: This gem provides RequireJS support for your Rails 3 application.
|
@@ -78,8 +71,7 @@ executables: []
|
|
78
71
|
extensions: []
|
79
72
|
extra_rdoc_files: []
|
80
73
|
files:
|
81
|
-
- .gitignore
|
82
|
-
- .rvmrc
|
74
|
+
- ".gitignore"
|
83
75
|
- CHANGELOG.md
|
84
76
|
- Gemfile
|
85
77
|
- Gemfile.lock
|
@@ -98,8 +90,6 @@ files:
|
|
98
90
|
- lib/requirejs/rails/version.rb
|
99
91
|
- lib/tasks/requirejs-rails_tasks.rake
|
100
92
|
- requirejs-rails.gemspec
|
101
|
-
- vendor/assets/javascripts/almond.js
|
102
|
-
- vendor/assets/javascripts/require.js
|
103
93
|
- test/dummy/.rvmrc
|
104
94
|
- test/dummy/Rakefile
|
105
95
|
- test/dummy/app/assets/javascripts/application.js
|
@@ -135,37 +125,32 @@ files:
|
|
135
125
|
- test/dummy/script/rails
|
136
126
|
- test/requirejs-rails_test.rb
|
137
127
|
- test/test_helper.rb
|
128
|
+
- vendor/assets/javascripts/almond.js
|
129
|
+
- vendor/assets/javascripts/require.js
|
138
130
|
homepage: http://github.com/jwhitley/requirejs-rails
|
139
131
|
licenses: []
|
132
|
+
metadata: {}
|
140
133
|
post_install_message:
|
141
134
|
rdoc_options: []
|
142
135
|
require_paths:
|
143
136
|
- lib
|
144
137
|
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
138
|
requirements:
|
147
|
-
- -
|
139
|
+
- - ">="
|
148
140
|
- !ruby/object:Gem::Version
|
149
141
|
version: '0'
|
150
|
-
segments:
|
151
|
-
- 0
|
152
|
-
hash: 3411540577978355731
|
153
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
|
-
none: false
|
155
143
|
requirements:
|
156
|
-
- -
|
144
|
+
- - ">="
|
157
145
|
- !ruby/object:Gem::Version
|
158
146
|
version: '0'
|
159
|
-
segments:
|
160
|
-
- 0
|
161
|
-
hash: 3411540577978355731
|
162
147
|
requirements:
|
163
148
|
- node.js is required for 'rake assets:precompile', used to run the r.js build
|
164
149
|
- If needed, jQuery should be v1.7 or greater (jquery-rails >= 1.0.17).
|
165
150
|
rubyforge_project:
|
166
|
-
rubygems_version:
|
151
|
+
rubygems_version: 2.2.2
|
167
152
|
signing_key:
|
168
|
-
specification_version:
|
153
|
+
specification_version: 4
|
169
154
|
summary: Use RequireJS with the Rails 3 Asset Pipeline
|
170
155
|
test_files:
|
171
156
|
- test/dummy/.rvmrc
|
@@ -203,3 +188,4 @@ test_files:
|
|
203
188
|
- test/dummy/script/rails
|
204
189
|
- test/requirejs-rails_test.rb
|
205
190
|
- test/test_helper.rb
|
191
|
+
has_rdoc:
|
data/.rvmrc
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
# This is an RVM Project .rvmrc file, used to automatically load the ruby
|
4
|
-
# development environment upon cd'ing into the directory
|
5
|
-
|
6
|
-
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
|
7
|
-
# Only full ruby name is supported here, for short names use:
|
8
|
-
# echo "rvm use 1.9.3" > .rvmrc
|
9
|
-
environment_id="ruby-1.9.3@requirejs-rails"
|
10
|
-
|
11
|
-
# Uncomment the following lines if you want to verify rvm version per project
|
12
|
-
# rvmrc_rvm_version="1.10.2" # 1.10.1 seams as a safe start
|
13
|
-
# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
|
14
|
-
# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
|
15
|
-
# return 1
|
16
|
-
# }
|
17
|
-
|
18
|
-
# First we attempt to load the desired environment directly from the environment
|
19
|
-
# file. This is very fast and efficient compared to running through the entire
|
20
|
-
# CLI and selector. If you want feedback on which environment was used then
|
21
|
-
# insert the word 'use' after --create as this triggers verbose mode.
|
22
|
-
if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
|
23
|
-
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
|
24
|
-
then
|
25
|
-
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
|
26
|
-
[[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] &&
|
27
|
-
\. "${rvm_path:-$HOME/.rvm}/hooks/after_use" || true
|
28
|
-
if [[ $- == *i* ]] # check for interactive shells
|
29
|
-
then echo "Using: $(tput setaf 2)$GEM_HOME$(tput sgr0)" # show the user the ruby and gemset they are using in green
|
30
|
-
else echo "Using: $GEM_HOME" # don't use colors in non-interactive shells
|
31
|
-
fi
|
32
|
-
else
|
33
|
-
# If the environment file has not yet been created, use the RVM CLI to select.
|
34
|
-
rvm --create use "$environment_id" || {
|
35
|
-
echo "Failed to create RVM environment '${environment_id}'."
|
36
|
-
return 1
|
37
|
-
}
|
38
|
-
fi
|
39
|
-
|
40
|
-
# If you use bundler, this might be useful to you:
|
41
|
-
# if [[ -s Gemfile ]] && {
|
42
|
-
# ! builtin command -v bundle >/dev/null ||
|
43
|
-
# builtin command -v bundle | grep $rvm_path/bin/bundle >/dev/null
|
44
|
-
# }
|
45
|
-
# then
|
46
|
-
# printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
|
47
|
-
# gem install bundler
|
48
|
-
# fi
|
49
|
-
# if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
|
50
|
-
# then
|
51
|
-
# bundle install | grep -vE '^Using|Your bundle is complete'
|
52
|
-
# fi
|