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 CHANGED
@@ -1 +1 @@
1
- --color --format documentation --debug
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.2.3)
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
- abstract (1.0.0)
11
- actionmailer (3.0.9)
12
- actionpack (= 3.0.9)
13
- mail (~> 2.2.19)
14
- actionpack (3.0.9)
15
- activemodel (= 3.0.9)
16
- activesupport (= 3.0.9)
17
- builder (~> 2.1.2)
18
- erubis (~> 2.6.6)
19
- i18n (~> 0.5.0)
20
- rack (~> 1.2.1)
21
- rack-mount (~> 0.6.14)
22
- rack-test (~> 0.5.7)
23
- tzinfo (~> 0.3.23)
24
- activemodel (3.0.9)
25
- activesupport (= 3.0.9)
26
- builder (~> 2.1.2)
27
- i18n (~> 0.5.0)
28
- activerecord (3.0.9)
29
- activemodel (= 3.0.9)
30
- activesupport (= 3.0.9)
31
- arel (~> 2.0.10)
32
- tzinfo (~> 0.3.23)
33
- activeresource (3.0.9)
34
- activemodel (= 3.0.9)
35
- activesupport (= 3.0.9)
36
- activesupport (3.0.9)
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.0.10)
39
- builder (2.1.2)
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.2)
42
- erubis (2.6.6)
43
- abstract (>= 1.0.0)
44
+ diff-lcs (1.1.3)
45
+ erubis (2.7.0)
44
46
  fakeweb (1.3.0)
45
- i18n (0.5.0)
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.2.19)
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.1)
56
- rack (1.2.3)
57
- rack-mount (0.6.14)
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-test (0.5.7)
64
+ rack-ssl (1.3.2)
65
+ rack
66
+ rack-test (0.6.1)
60
67
  rack (>= 1.0)
61
- rails (3.0.9)
62
- actionmailer (= 3.0.9)
63
- actionpack (= 3.0.9)
64
- activerecord (= 3.0.9)
65
- activeresource (= 3.0.9)
66
- activesupport (= 3.0.9)
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.9)
69
- railties (3.0.9)
70
- actionpack (= 3.0.9)
71
- activesupport (= 3.0.9)
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.4)
82
+ thor (~> 0.14.6)
75
83
  rake (0.9.2)
76
- rdoc (3.8)
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
- sqlite3 (1.3.3)
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
- treetop (1.4.9)
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
@@ -8,6 +8,5 @@ require "swiss_knife/action_controller"
8
8
  require "swiss_knife/i18n_js"
9
9
  require "swiss_knife/jquery"
10
10
  require "swiss_knife/jquery_ujs"
11
- require "swiss_knife/modernizr"
12
11
  require "swiss_knife/railtie"
13
12
  require "swiss_knife/smusher_it"
@@ -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.4.4
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.4.4")
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 modernizr dispatcher ]
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
@@ -1,8 +1,8 @@
1
1
  module SwissKnife
2
2
  module Version
3
- MAJOR = 0
4
- MINOR = 2
5
- PATCH = 3
3
+ MAJOR = 1
4
+ MINOR = 0
5
+ PATCH = 0
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
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.2.3
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-08-05 00:00:00.000000000Z
12
+ date: 2011-09-12 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &2156871560 !ruby/object:Gem::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: *2156871560
24
+ version_requirements: *2159147440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec-rails
27
- requirement: &2156871060 !ruby/object:Gem::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: *2156871060
35
+ version_requirements: *2159146840
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: nokogiri
38
- requirement: &2156870680 !ruby/object:Gem::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: *2156870680
46
+ version_requirements: *2159146200
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: fakeweb
49
- requirement: &2156870220 !ruby/object:Gem::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: *2156870220
57
+ version_requirements: *2159145560
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: sqlite3
60
- requirement: &2156869800 !ruby/object:Gem::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: *2156869800
68
+ version_requirements: *2159145080
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: ruby-debug19
71
- requirement: &2156869380 !ruby/object:Gem::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: *2156869380
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: -78419488599710419
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: -78419488599710419
168
+ hash: 3068971205179647642
171
169
  requirements: []
172
170
  rubyforge_project:
173
- rubygems_version: 1.8.5
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
@@ -1,14 +0,0 @@
1
- module SwissKnife
2
- module Modernizr
3
- extend self
4
- extend Support::RemoteFile
5
-
6
- def file
7
- "javascripts/modernizr.js"
8
- end
9
-
10
- def url
11
- "http://github.com/Modernizr/Modernizr/raw/master/modernizr.js"
12
- end
13
- end
14
- end
@@ -1,8 +0,0 @@
1
- require "spec_helper"
2
-
3
- describe SwissKnife::Modernizr do
4
- let(:url) { "http://github.com/Modernizr/Modernizr/raw/master/modernizr.js" }
5
- let(:file) { "javascripts/modernizr.js" }
6
-
7
- it_behaves_like "remote file"
8
- end