ajaxlibs 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +2 -1
- data/VERSION +1 -1
- data/lib/ajaxlibs/libraries/dojo.rb +2 -1
- data/lib/ajaxlibs/libraries/jqueryui.rb +2 -1
- data/lib/ajaxlibs/libraries/jrails.rb +0 -1
- data/lib/ajaxlibs/libraries/swfobject.rb +8 -0
- data/lib/ajaxlibs/libraries/yui.rb +14 -0
- data/lib/ajaxlibs.rb +1 -0
- data/public/dojo/1.4.3/dojo.xd.js +16 -0
- data/public/dojo/1.4.3/dojo.xd.js.uncompressed.js +12129 -0
- data/public/jqueryui/1.8.1/jquery-ui.js +11003 -0
- data/public/jqueryui/1.8.1/jquery-ui.min.js +392 -0
- data/public/swfobject/2.1/swfobject.js +5 -0
- data/public/swfobject/2.1/swfobject_src.js +731 -0
- data/public/swfobject/2.2/swfobject.js +4 -0
- data/public/swfobject/2.2/swfobject_src.js +777 -0
- data/spec/library_spec.rb +19 -7
- metadata +21 -4
data/spec/library_spec.rb
CHANGED
@@ -98,14 +98,26 @@ describe "Ajaxlibs::Library" do
|
|
98
98
|
@library.google_cdn_include_path.should == "http://ajax.googleapis.com/ajax/libs/basic/2.0.1.3/basic.js"
|
99
99
|
end
|
100
100
|
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
101
|
+
context "with a library supporting local distribution only" do
|
102
|
+
before :all do
|
103
|
+
# Jrails support is achieve through jrais gem which requires a rails environment.
|
104
|
+
# We simply disable jrails gem loading before testing.
|
105
|
+
class Ajaxlibs::Library::Jrails
|
106
|
+
def initialize(options = {})
|
107
|
+
super
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
105
111
|
|
106
|
-
|
107
|
-
|
108
|
-
|
112
|
+
it "will return a local path" do
|
113
|
+
@library = Ajaxlibs::Library::Jrails.new
|
114
|
+
@library.include_path.should == @library.local_path
|
115
|
+
end
|
116
|
+
|
117
|
+
it "will return a local path even if asked for remote source" do
|
118
|
+
@library = Ajaxlibs::Library::Jrails.new(:source => :remote)
|
119
|
+
@library.include_path.should == @library.local_path
|
120
|
+
end
|
109
121
|
end
|
110
122
|
|
111
123
|
context "will return a javascript code to load from google cdn with library_name and version" do
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ajaxlibs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 13
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
9
|
+
- 11
|
10
|
+
version: 0.1.11
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Fabien Jakimowicz
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-05-
|
18
|
+
date: 2010-05-26 00:00:00 +02:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: rspec
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 13
|
27
30
|
segments:
|
28
31
|
- 1
|
29
32
|
- 2
|
@@ -59,6 +62,8 @@ files:
|
|
59
62
|
- lib/ajaxlibs/libraries/mootools.rb
|
60
63
|
- lib/ajaxlibs/libraries/prototype.rb
|
61
64
|
- lib/ajaxlibs/libraries/scriptaculous.rb
|
65
|
+
- lib/ajaxlibs/libraries/swfobject.rb
|
66
|
+
- lib/ajaxlibs/libraries/yui.rb
|
62
67
|
- lib/ajaxlibs/library.rb
|
63
68
|
- lib/ajaxlibs/versions_tools.rb
|
64
69
|
- public/dojo/1.1.1/dojo.xd.js
|
@@ -77,6 +82,8 @@ files:
|
|
77
82
|
- public/dojo/1.4.0/dojo.xd.js.uncompressed.js
|
78
83
|
- public/dojo/1.4.1/dojo.xd.js
|
79
84
|
- public/dojo/1.4.1/dojo.xd.js.uncompressed.js
|
85
|
+
- public/dojo/1.4.3/dojo.xd.js
|
86
|
+
- public/dojo/1.4.3/dojo.xd.js.uncompressed.js
|
80
87
|
- public/ext-core/3.0.0/ext-core-debug.js
|
81
88
|
- public/ext-core/3.0.0/ext-core.js
|
82
89
|
- public/ext-core/3.1.0/ext-core-debug.js
|
@@ -111,6 +118,8 @@ files:
|
|
111
118
|
- public/jqueryui/1.7.2/jquery-ui.min.js
|
112
119
|
- public/jqueryui/1.8.0/jquery-ui.js
|
113
120
|
- public/jqueryui/1.8.0/jquery-ui.min.js
|
121
|
+
- public/jqueryui/1.8.1/jquery-ui.js
|
122
|
+
- public/jqueryui/1.8.1/jquery-ui.min.js
|
114
123
|
- public/jrails/0.5.0/jrails.js
|
115
124
|
- public/mootools/1.1.1/mootools-yui-compressed.js
|
116
125
|
- public/mootools/1.1.1/mootools.js
|
@@ -148,6 +157,10 @@ files:
|
|
148
157
|
- public/scriptaculous/1.8.3/scriptaculous.js
|
149
158
|
- public/scriptaculous/1.8.3/slider.js
|
150
159
|
- public/scriptaculous/1.8.3/sound.js
|
160
|
+
- public/swfobject/2.1/swfobject.js
|
161
|
+
- public/swfobject/2.1/swfobject_src.js
|
162
|
+
- public/swfobject/2.2/swfobject.js
|
163
|
+
- public/swfobject/2.2/swfobject_src.js
|
151
164
|
- spec/includes_helper_spec.rb
|
152
165
|
- spec/library_spec.rb
|
153
166
|
- spec/spec.opts
|
@@ -163,23 +176,27 @@ rdoc_options:
|
|
163
176
|
require_paths:
|
164
177
|
- lib
|
165
178
|
required_ruby_version: !ruby/object:Gem::Requirement
|
179
|
+
none: false
|
166
180
|
requirements:
|
167
181
|
- - ">="
|
168
182
|
- !ruby/object:Gem::Version
|
183
|
+
hash: 3
|
169
184
|
segments:
|
170
185
|
- 0
|
171
186
|
version: "0"
|
172
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
|
+
none: false
|
173
189
|
requirements:
|
174
190
|
- - ">="
|
175
191
|
- !ruby/object:Gem::Version
|
192
|
+
hash: 3
|
176
193
|
segments:
|
177
194
|
- 0
|
178
195
|
version: "0"
|
179
196
|
requirements: []
|
180
197
|
|
181
198
|
rubyforge_project:
|
182
|
-
rubygems_version: 1.3.
|
199
|
+
rubygems_version: 1.3.7
|
183
200
|
signing_key:
|
184
201
|
specification_version: 3
|
185
202
|
summary: helper to load various javascript libraries, locally or through google CDN
|