merb-action-args 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008 YOUR NAME
1
+ Copyright (c) 2008 Yehuda Katz
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -2,6 +2,7 @@ require 'rubygems'
2
2
  require 'rake/gempackagetask'
3
3
  require "extlib"
4
4
  require 'merb-core/tasks/merb_rake_helper'
5
+ require "spec/rake/spectask"
5
6
 
6
7
  ##############################################################################
7
8
  # Package && release
@@ -16,13 +17,12 @@ EMAIL = "ykatz@engineyard.com"
16
17
 
17
18
  GEM_NAME = "merb-action-args"
18
19
  PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
19
- GEM_VERSION = (Merb::MORE_VERSION rescue "0.9.7") + PKG_BUILD
20
+ GEM_VERSION = (Merb::MORE_VERSION rescue "0.9.8") + PKG_BUILD
20
21
 
21
- RELEASE_NAME = "REL #{GEM_VERSION}"
22
+ RELEASE_NAME = "REL #{GEM_VERSION}"
22
23
 
23
24
  require "extlib/tasks/release"
24
25
 
25
-
26
26
  spec = Gem::Specification.new do |s|
27
27
  s.rubyforge_project = RUBY_FORGE_PROJECT
28
28
  s.name = GEM_NAME
@@ -35,7 +35,7 @@ spec = Gem::Specification.new do |s|
35
35
  s.author = AUTHOR
36
36
  s.email = EMAIL
37
37
  s.homepage = PROJECT_URL
38
- s.add_dependency('merb-core', '>= 0.9.7')
38
+ s.add_dependency('merb-core', '>= 0.9.8')
39
39
  s.add_dependency('ruby2ruby', '>= 1.1.9')
40
40
  s.add_dependency('ParseTree', '>= 2.2')
41
41
  s.require_path = 'lib'
@@ -47,13 +47,33 @@ Rake::GemPackageTask.new(spec) do |pkg|
47
47
  end
48
48
 
49
49
  desc "Install the gem"
50
- task :install => [:package] do
51
- sh install_command(GEM_NAME, GEM_VERSION)
50
+ task :install do
51
+ Merb::RakeHelper.install(GEM_NAME, :version => GEM_VERSION)
52
+ end
53
+
54
+ desc "Uninstall the gem"
55
+ task :uninstall do
56
+ Merb::RakeHelper.uninstall(GEM_NAME, :version => GEM_VERSION)
52
57
  end
53
58
 
54
- namespace :jruby do
55
- desc "Run :package and install the resulting .gem with jruby"
56
- task :install => :package do
57
- sh jinstall_command(GEM_NAME, GEM_VERSION)
59
+ desc "Create a gemspec file"
60
+ task :gemspec do
61
+ File.open("#{GEM_NAME}.gemspec", "w") do |file|
62
+ file.puts spec.to_ruby
58
63
  end
59
64
  end
65
+
66
+ desc "Run all examples (or a specific spec with TASK=xxxx)"
67
+ Spec::Rake::SpecTask.new('spec') do |t|
68
+ t.spec_opts = ["-cfs"]
69
+ t.spec_files = begin
70
+ if ENV["TASK"]
71
+ ENV["TASK"].split(',').map { |task| "spec/**/#{task}_spec.rb" }
72
+ else
73
+ FileList['spec/**/*_spec.rb']
74
+ end
75
+ end
76
+ end
77
+
78
+ desc 'Default: run spec examples'
79
+ task :default => 'spec'
@@ -1,5 +1,13 @@
1
1
  require File.dirname(__FILE__) + '/spec_helper'
2
2
 
3
+ describe "ActionArgs" do
4
+
5
+ it "should not accidently introduce any methods as controller actions" do
6
+ Merb::Controller.callable_actions.should be_empty
7
+ end
8
+
9
+ end
10
+
3
11
  describe Merb::AbstractController do
4
12
 
5
13
  it "should be able to accept Action Arguments" do
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,3 @@
1
- $TESTING=true
2
1
  $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
3
2
 
4
3
  require "rubygems"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-action-args
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yehuda Katz
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-09 00:00:00 +03:00
12
+ date: 2008-10-06 00:00:00 +03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.9.7
23
+ version: 0.9.8
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ruby2ruby