teriyaki 0.0.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/teriyaki/steak.rb +1 -15
  3. data/teriyaki.gemspec +2 -2
  4. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 1.0.0
@@ -1,15 +1 @@
1
- m = Module.new do
2
- Rails.application.routes.routes.map {|r| [r.name, r.path.sub(/\(\.:format\)$/, '')]}.uniq.each do |name, path|
3
- variables = path.scan(/:(.*?)(\/|$)/).map(&:first)
4
- variables.each do |v|
5
- path.sub! ":#{v}", '#{' + "#{v}.respond_to?(:to_key) ? #{v}.to_key : #{v}" + '}'
6
- end
7
- class_eval <<-ROUTE
8
- def #{name}_path(#{variables.join(', ')})
9
- "#{path}"
10
- end
11
- ROUTE
12
- end
13
- end
14
-
15
- RSpec.configuration.include(m)
1
+ RSpec.configuration.include Rails.application.routes.url_helpers, :type => :acceptance
data/teriyaki.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{teriyaki}
8
- s.version = "0.0.2"
8
+ s.version = "1.0.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Akira Matsuda"]
12
- s.date = %q{2010-11-18}
12
+ s.date = %q{2010-11-22}
13
13
  s.description = %q{You don't need to write paths.rb manually anymore!}
14
14
  s.email = %q{ronnie@dio.jp}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teriyaki
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
+ - 1
7
8
  - 0
8
9
  - 0
9
- - 2
10
- version: 0.0.2
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Akira Matsuda
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-18 00:00:00 +09:00
18
+ date: 2010-11-22 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency