swiss_knife 0.2.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.rspec +1 -1
- data/Gemfile.lock +68 -54
- data/lib/swiss_knife.rb +0 -1
- data/lib/swiss_knife/helpers.rb +2 -2
- data/lib/swiss_knife/rake_tasks.rb +1 -6
- data/lib/swiss_knife/version.rb +3 -3
- metadata +17 -20
- data/lib/swiss_knife/modernizr.rb +0 -14
- data/spec/swiss_knife/modernizr_spec.rb +0 -8
data/.rspec
CHANGED
@@ -1 +1 @@
|
|
1
|
-
--color --format documentation
|
1
|
+
--color --format documentation
|
data/Gemfile.lock
CHANGED
@@ -1,79 +1,87 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
swiss_knife (0.
|
4
|
+
swiss_knife (1.0.0)
|
5
5
|
rails (>= 3.0.0)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
rack (~> 1.
|
21
|
-
rack-mount (~> 0.
|
22
|
-
rack-test (~> 0.
|
23
|
-
|
24
|
-
activemodel (3.0
|
25
|
-
activesupport (= 3.0
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
10
|
+
actionmailer (3.1.0)
|
11
|
+
actionpack (= 3.1.0)
|
12
|
+
mail (~> 2.3.0)
|
13
|
+
actionpack (3.1.0)
|
14
|
+
activemodel (= 3.1.0)
|
15
|
+
activesupport (= 3.1.0)
|
16
|
+
builder (~> 3.0.0)
|
17
|
+
erubis (~> 2.7.0)
|
18
|
+
i18n (~> 0.6)
|
19
|
+
rack (~> 1.3.2)
|
20
|
+
rack-cache (~> 1.0.3)
|
21
|
+
rack-mount (~> 0.8.2)
|
22
|
+
rack-test (~> 0.6.1)
|
23
|
+
sprockets (~> 2.0.0)
|
24
|
+
activemodel (3.1.0)
|
25
|
+
activesupport (= 3.1.0)
|
26
|
+
bcrypt-ruby (~> 3.0.0)
|
27
|
+
builder (~> 3.0.0)
|
28
|
+
i18n (~> 0.6)
|
29
|
+
activerecord (3.1.0)
|
30
|
+
activemodel (= 3.1.0)
|
31
|
+
activesupport (= 3.1.0)
|
32
|
+
arel (~> 2.2.1)
|
33
|
+
tzinfo (~> 0.3.29)
|
34
|
+
activeresource (3.1.0)
|
35
|
+
activemodel (= 3.1.0)
|
36
|
+
activesupport (= 3.1.0)
|
37
|
+
activesupport (3.1.0)
|
38
|
+
multi_json (~> 1.0)
|
37
39
|
archive-tar-minitar (0.5.2)
|
38
|
-
arel (2.
|
39
|
-
|
40
|
+
arel (2.2.1)
|
41
|
+
bcrypt-ruby (3.0.0)
|
42
|
+
builder (3.0.0)
|
40
43
|
columnize (0.3.4)
|
41
|
-
diff-lcs (1.1.
|
42
|
-
erubis (2.
|
43
|
-
abstract (>= 1.0.0)
|
44
|
+
diff-lcs (1.1.3)
|
45
|
+
erubis (2.7.0)
|
44
46
|
fakeweb (1.3.0)
|
45
|
-
|
47
|
+
hike (1.2.1)
|
48
|
+
i18n (0.6.0)
|
46
49
|
linecache19 (0.5.12)
|
47
50
|
ruby_core_source (>= 0.1.4)
|
48
|
-
mail (2.
|
49
|
-
activesupport (>= 2.3.6)
|
51
|
+
mail (2.3.0)
|
50
52
|
i18n (>= 0.4.0)
|
51
53
|
mime-types (~> 1.16)
|
52
54
|
treetop (~> 1.4.8)
|
53
55
|
mime-types (1.16)
|
56
|
+
multi_json (1.0.3)
|
54
57
|
nokogiri (1.5.0)
|
55
|
-
polyglot (0.3.
|
56
|
-
rack (1.2
|
57
|
-
rack-
|
58
|
+
polyglot (0.3.2)
|
59
|
+
rack (1.3.2)
|
60
|
+
rack-cache (1.0.3)
|
61
|
+
rack (>= 0.4)
|
62
|
+
rack-mount (0.8.3)
|
58
63
|
rack (>= 1.0.0)
|
59
|
-
rack-
|
64
|
+
rack-ssl (1.3.2)
|
65
|
+
rack
|
66
|
+
rack-test (0.6.1)
|
60
67
|
rack (>= 1.0)
|
61
|
-
rails (3.0
|
62
|
-
actionmailer (= 3.0
|
63
|
-
actionpack (= 3.0
|
64
|
-
activerecord (= 3.0
|
65
|
-
activeresource (= 3.0
|
66
|
-
activesupport (= 3.0
|
68
|
+
rails (3.1.0)
|
69
|
+
actionmailer (= 3.1.0)
|
70
|
+
actionpack (= 3.1.0)
|
71
|
+
activerecord (= 3.1.0)
|
72
|
+
activeresource (= 3.1.0)
|
73
|
+
activesupport (= 3.1.0)
|
67
74
|
bundler (~> 1.0)
|
68
|
-
railties (= 3.0
|
69
|
-
railties (3.0
|
70
|
-
actionpack (= 3.0
|
71
|
-
activesupport (= 3.0
|
75
|
+
railties (= 3.1.0)
|
76
|
+
railties (3.1.0)
|
77
|
+
actionpack (= 3.1.0)
|
78
|
+
activesupport (= 3.1.0)
|
79
|
+
rack-ssl (~> 1.3.2)
|
72
80
|
rake (>= 0.8.7)
|
73
81
|
rdoc (~> 3.4)
|
74
|
-
thor (~> 0.14.
|
82
|
+
thor (~> 0.14.6)
|
75
83
|
rake (0.9.2)
|
76
|
-
rdoc (3.
|
84
|
+
rdoc (3.9.4)
|
77
85
|
rspec (2.6.0)
|
78
86
|
rspec-core (~> 2.6.0)
|
79
87
|
rspec-expectations (~> 2.6.0)
|
@@ -97,9 +105,15 @@ GEM
|
|
97
105
|
ruby-debug-base19 (>= 0.11.19)
|
98
106
|
ruby_core_source (0.1.5)
|
99
107
|
archive-tar-minitar (>= 0.5.2)
|
100
|
-
|
108
|
+
sprockets (2.0.0)
|
109
|
+
hike (~> 1.2)
|
110
|
+
rack (~> 1.0)
|
111
|
+
tilt (!= 1.3.0, ~> 1.1)
|
112
|
+
sqlite3 (1.3.4)
|
101
113
|
thor (0.14.6)
|
102
|
-
|
114
|
+
tilt (1.3.3)
|
115
|
+
treetop (1.4.10)
|
116
|
+
polyglot
|
103
117
|
polyglot (>= 0.3.1)
|
104
118
|
tzinfo (0.3.29)
|
105
119
|
|
data/lib/swiss_knife.rb
CHANGED
data/lib/swiss_knife/helpers.rb
CHANGED
@@ -225,12 +225,12 @@ module SwissKnife
|
|
225
225
|
# Load jQuery from Google's CDN and if the world is collapsing and Google is down,
|
226
226
|
# load it locally.
|
227
227
|
#
|
228
|
-
# jquery_script_tag #=> Default to 1.
|
228
|
+
# jquery_script_tag #=> Default to 1.6.3
|
229
229
|
# jquery_script_tag("1.4.2")
|
230
230
|
#
|
231
231
|
# The local version should be placed at <tt>public/javascripts/jquery-%{version}.min.js</tt>.
|
232
232
|
#
|
233
|
-
def jquery_script_tag(version = "1.
|
233
|
+
def jquery_script_tag(version = "1.6.3")
|
234
234
|
local_path = compute_public_path("jquery-#{version}.min.js", "javascripts")
|
235
235
|
remote_path = "#{request.protocol}ajax.googleapis.com/ajax/libs/jquery/#{version}/jquery.min.js"
|
236
236
|
|
@@ -21,7 +21,7 @@ namespace :swiss_knife do
|
|
21
21
|
|
22
22
|
namespace :javascripts do
|
23
23
|
desc "Update all JavaScripts"
|
24
|
-
task :update => %w[ i18njs jquery jquery_ujs
|
24
|
+
task :update => %w[ i18njs jquery jquery_ujs dispatcher ]
|
25
25
|
|
26
26
|
desc "Update I18n JS"
|
27
27
|
task :i18njs => :environment do
|
@@ -38,11 +38,6 @@ namespace :swiss_knife do
|
|
38
38
|
SwissKnife::JqueryUjs.update
|
39
39
|
end
|
40
40
|
|
41
|
-
desc "Update Modernizr"
|
42
|
-
task :modernizr => :environment do
|
43
|
-
SwissKnife::Modernizr.update
|
44
|
-
end
|
45
|
-
|
46
41
|
desc "Update Dispatcher JS"
|
47
42
|
task :dispatcher => :environment do
|
48
43
|
SwissKnife::DispatcherJs.update
|
data/lib/swiss_knife/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swiss_knife
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-09-12 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &2159147440 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2159147440
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec-rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &2159146840 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '2.6'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2159146840
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: nokogiri
|
38
|
-
requirement: &
|
38
|
+
requirement: &2159146200 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2159146200
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: fakeweb
|
49
|
-
requirement: &
|
49
|
+
requirement: &2159145560 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :development
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2159145560
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: sqlite3
|
60
|
-
requirement: &
|
60
|
+
requirement: &2159145080 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2159145080
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: ruby-debug19
|
71
|
-
requirement: &
|
71
|
+
requirement: &2159144620 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2159144620
|
80
80
|
description: Several helpers for Rails 3
|
81
81
|
email:
|
82
82
|
- fnando.vieira@gmail.com
|
@@ -99,7 +99,6 @@ files:
|
|
99
99
|
- lib/swiss_knife/jquery.rb
|
100
100
|
- lib/swiss_knife/jquery_ujs.rb
|
101
101
|
- lib/swiss_knife/jsmin.rb
|
102
|
-
- lib/swiss_knife/modernizr.rb
|
103
102
|
- lib/swiss_knife/railtie.rb
|
104
103
|
- lib/swiss_knife/rake_tasks.rb
|
105
104
|
- lib/swiss_knife/rspec.rb
|
@@ -140,7 +139,6 @@ files:
|
|
140
139
|
- spec/swiss_knife/i18n_js_spec.rb
|
141
140
|
- spec/swiss_knife/jquery_spec.rb
|
142
141
|
- spec/swiss_knife/jquery_ujs_spec.rb
|
143
|
-
- spec/swiss_knife/modernizr_spec.rb
|
144
142
|
- spec/swiss_knife/rspec/allow_spec.rb
|
145
143
|
- spec/swiss_knife/rspec/have_text_spec.rb
|
146
144
|
- swiss_knife.gemspec
|
@@ -158,7 +156,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
158
156
|
version: '0'
|
159
157
|
segments:
|
160
158
|
- 0
|
161
|
-
hash:
|
159
|
+
hash: 3068971205179647642
|
162
160
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
163
161
|
none: false
|
164
162
|
requirements:
|
@@ -167,10 +165,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
165
|
version: '0'
|
168
166
|
segments:
|
169
167
|
- 0
|
170
|
-
hash:
|
168
|
+
hash: 3068971205179647642
|
171
169
|
requirements: []
|
172
170
|
rubyforge_project:
|
173
|
-
rubygems_version: 1.8.
|
171
|
+
rubygems_version: 1.8.10
|
174
172
|
signing_key:
|
175
173
|
specification_version: 3
|
176
174
|
summary: Several helpers for Rails 3
|
@@ -204,6 +202,5 @@ test_files:
|
|
204
202
|
- spec/swiss_knife/i18n_js_spec.rb
|
205
203
|
- spec/swiss_knife/jquery_spec.rb
|
206
204
|
- spec/swiss_knife/jquery_ujs_spec.rb
|
207
|
-
- spec/swiss_knife/modernizr_spec.rb
|
208
205
|
- spec/swiss_knife/rspec/allow_spec.rb
|
209
206
|
- spec/swiss_knife/rspec/have_text_spec.rb
|