wheels 0.0.11 → 0.0.13
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/Rakefile +17 -0
- data/VERSION +1 -1
- data/lib/wheels/action_controller_extensions.rb +18 -0
- data/wheels.gemspec +4 -8
- metadata +4 -8
- data/.document +0 -5
- data/.gitignore +0 -21
- data/public/stylesheets/.gitkeep +0 -0
- data/send_new_version +0 -6
data/Rakefile
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
|
+
PKG_FILES = FileList[
|
4
|
+
'wheels.gemspec',
|
5
|
+
'Gemfile',
|
6
|
+
'init.rb',
|
7
|
+
'Rakefile', 'README', 'LICENSE', 'README.rdoc', 'VERSION',
|
8
|
+
'app/**/*',
|
9
|
+
'config/**/*',
|
10
|
+
'db/**/*',
|
11
|
+
'lib/**/*',
|
12
|
+
'public/**/*',
|
13
|
+
'test/**/*'
|
14
|
+
]
|
3
15
|
|
4
16
|
begin
|
5
17
|
require 'jeweler'
|
@@ -11,6 +23,10 @@ begin
|
|
11
23
|
gem.homepage = "http://github.com/tylergannon/wheels"
|
12
24
|
gem.authors = ["Tyler Gannon"]
|
13
25
|
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
26
|
+
gem.files = PKG_FILES.to_a
|
27
|
+
gem.require_path = "lib"
|
28
|
+
gem.has_rdoc = false
|
29
|
+
gem.extra_rdoc_files = ["README.rdoc"]
|
14
30
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
15
31
|
end
|
16
32
|
Jeweler::GemcutterTasks.new
|
@@ -51,3 +67,4 @@ Rake::RDocTask.new do |rdoc|
|
|
51
67
|
rdoc.rdoc_files.include('README*')
|
52
68
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
53
69
|
end
|
70
|
+
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.13
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module ActionControllerExtensions
|
2
|
+
def self.authorized
|
3
|
+
class_eval do
|
4
|
+
def resource
|
5
|
+
authorize_this
|
6
|
+
super
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
def authorize_this
|
12
|
+
authorize! resource, params[:action] unless @authorized
|
13
|
+
@authorized = true
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
ActionController::Base.send :include, ActionControllerExtensions
|
18
|
+
|
data/wheels.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{wheels}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.13"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tyler Gannon"]
|
@@ -13,13 +13,10 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.description = %q{Call rails generate wheels.}
|
14
14
|
s.email = %q{tgannon@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
|
-
"
|
17
|
-
"README.rdoc"
|
16
|
+
"README.rdoc"
|
18
17
|
]
|
19
18
|
s.files = [
|
20
|
-
"
|
21
|
-
".gitignore",
|
22
|
-
"LICENSE",
|
19
|
+
"LICENSE",
|
23
20
|
"README.rdoc",
|
24
21
|
"Rakefile",
|
25
22
|
"VERSION",
|
@@ -101,6 +98,7 @@ Gem::Specification.new do |s|
|
|
101
98
|
"lib/generators/wheels/templates/mongoid/features/support/hooks.rb",
|
102
99
|
"lib/generators/wheels/wheels_generator.rb",
|
103
100
|
"lib/wheels.rb",
|
101
|
+
"lib/wheels/action_controller_extensions.rb",
|
104
102
|
"lib/wheels/routes.rb",
|
105
103
|
"public/404.html",
|
106
104
|
"public/422.html",
|
@@ -131,7 +129,6 @@ Gem::Specification.new do |s|
|
|
131
129
|
"public/javascripts/jquery.growl.js",
|
132
130
|
"public/javascripts/loadbehind.js",
|
133
131
|
"public/javascripts/menu.js",
|
134
|
-
"public/stylesheets/.gitkeep",
|
135
132
|
"public/stylesheets/dreamy.css",
|
136
133
|
"public/stylesheets/menu.css",
|
137
134
|
"public/stylesheets/sass/dreamy.sass",
|
@@ -153,7 +150,6 @@ Gem::Specification.new do |s|
|
|
153
150
|
"public/stylesheets/ui-lightness/images/ui-icons_ffd27a_256x240.png",
|
154
151
|
"public/stylesheets/ui-lightness/images/ui-icons_ffffff_256x240.png",
|
155
152
|
"public/stylesheets/ui-lightness/jquery-ui-1.8.2.custom.css",
|
156
|
-
"send_new_version",
|
157
153
|
"test/helper.rb",
|
158
154
|
"test/test_wheels.rb",
|
159
155
|
"wheels.gemspec"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wheels
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 13
|
10
|
+
version: 0.0.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tyler Gannon
|
@@ -39,11 +39,8 @@ executables: []
|
|
39
39
|
extensions: []
|
40
40
|
|
41
41
|
extra_rdoc_files:
|
42
|
-
- LICENSE
|
43
42
|
- README.rdoc
|
44
43
|
files:
|
45
|
-
- .document
|
46
|
-
- .gitignore
|
47
44
|
- LICENSE
|
48
45
|
- README.rdoc
|
49
46
|
- Rakefile
|
@@ -126,6 +123,7 @@ files:
|
|
126
123
|
- lib/generators/wheels/templates/mongoid/features/support/hooks.rb
|
127
124
|
- lib/generators/wheels/wheels_generator.rb
|
128
125
|
- lib/wheels.rb
|
126
|
+
- lib/wheels/action_controller_extensions.rb
|
129
127
|
- lib/wheels/routes.rb
|
130
128
|
- public/404.html
|
131
129
|
- public/422.html
|
@@ -156,7 +154,6 @@ files:
|
|
156
154
|
- public/javascripts/jquery.growl.js
|
157
155
|
- public/javascripts/loadbehind.js
|
158
156
|
- public/javascripts/menu.js
|
159
|
-
- public/stylesheets/.gitkeep
|
160
157
|
- public/stylesheets/dreamy.css
|
161
158
|
- public/stylesheets/menu.css
|
162
159
|
- public/stylesheets/sass/dreamy.sass
|
@@ -178,7 +175,6 @@ files:
|
|
178
175
|
- public/stylesheets/ui-lightness/images/ui-icons_ffd27a_256x240.png
|
179
176
|
- public/stylesheets/ui-lightness/images/ui-icons_ffffff_256x240.png
|
180
177
|
- public/stylesheets/ui-lightness/jquery-ui-1.8.2.custom.css
|
181
|
-
- send_new_version
|
182
178
|
- test/helper.rb
|
183
179
|
- test/test_wheels.rb
|
184
180
|
- wheels.gemspec
|
data/.document
DELETED
data/.gitignore
DELETED
data/public/stylesheets/.gitkeep
DELETED
File without changes
|