padrino-gen 0.12.0.rc2 → 0.12.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb758a8b5d177651269c465fbd6f8500897d56db
4
- data.tar.gz: f68899fefea730d134b4e743751456a9103ea8b4
3
+ metadata.gz: 91185270927b70c242badab1189db4a7edaa21ec
4
+ data.tar.gz: ac81f2f68dfd273adede1d263e9055f21061c36d
5
5
  SHA512:
6
- metadata.gz: 7f5d6894a90e300df8269b1e0a285142328cffc178ec49f06b639f4184623635afb5742f4483929a731e92214c0cdb00db97448a0ef73d1a0cf4815b10dd7869
7
- data.tar.gz: bc3ccddb22ad86f32befb5f3edf5724eb9972762e767bf846870bc8df3c44138d7608311650071bd446d26119876a4ecce909c3f63cbe6cbbe373c0830f5dc3b
6
+ metadata.gz: 1fa158ce2281c6a1a895902a6b1a092fd3f9761479e272b85191c60018746dd6b89c9c3f74511b430e19cf6fadcd7e28c3ea1d07292edfd4c7a6748557d239e5
7
+ data.tar.gz: 9a10dfb30ae2a48c72d2d0f082630179e15f1127a8a19bf5b0c216ea5a39f1cc13e92fb82a76f949ff6bd5dbc467a3e3ad733a0e17719d8148b896a94f8c8e08
@@ -1,5 +1,5 @@
1
1
  BACON_SETUP = (<<-TEST).gsub(/^ {10}/, '') unless defined?(BACON_SETUP)
2
- PADRINO_ENV = 'test' unless defined?(PADRINO_ENV)
2
+ RACK_ENV = 'test' unless defined?(RACK_ENV)
3
3
  require File.expand_path(File.dirname(__FILE__) + "/../config/boot")
4
4
 
5
5
  class Bacon::Context
@@ -1,7 +1,7 @@
1
1
  apply_component_for(:rspec, :test)
2
2
 
3
3
  CUCUMBER_SETUP = (<<-TEST) unless defined?(CUCUMBER_SETUP)
4
- PADRINO_ENV = 'test' unless defined?(PADRINO_ENV)
4
+ RACK_ENV = 'test' unless defined?(RACK_ENV)
5
5
  require File.expand_path(File.dirname(__FILE__) + "/../../config/boot")
6
6
 
7
7
  require 'capybara/cucumber'
@@ -1,5 +1,5 @@
1
1
  MINITEST_SETUP = (<<-TEST).gsub(/^ {10}/, '') unless defined?(MINITEST_SETUP)
2
- PADRINO_ENV = 'test' unless defined?(PADRINO_ENV)
2
+ RACK_ENV = 'test' unless defined?(RACK_ENV)
3
3
  require File.expand_path('../../config/boot', __FILE__)
4
4
 
5
5
  class MiniTest::Unit::TestCase
@@ -1,5 +1,5 @@
1
1
  RIOT_SETUP = (<<-TEST).gsub(/^ {10}/, '') unless defined?(RIOT_SETUP)
2
- PADRINO_ENV = 'test' unless defined?(PADRINO_ENV)
2
+ RACK_ENV = 'test' unless defined?(RACK_ENV)
3
3
  require File.expand_path(File.dirname(__FILE__) + "/../config/boot")
4
4
 
5
5
  # Specify your app using the #app helper inside a context.
@@ -1,5 +1,5 @@
1
1
  RSPEC_SETUP = (<<-TEST).gsub(/^ {12}/, '') unless defined?(RSPEC_SETUP)
2
- PADRINO_ENV = 'test' unless defined?(PADRINO_ENV)
2
+ RACK_ENV = 'test' unless defined?(RACK_ENV)
3
3
  require File.expand_path(File.dirname(__FILE__) + "/../config/boot")
4
4
 
5
5
  RSpec.configure do |conf|
@@ -1,5 +1,5 @@
1
1
  SHOULDA_SETUP = (<<-TEST).gsub(/^ {10}/, '') unless defined?(SHOULDA_SETUP)
2
- PADRINO_ENV = 'test' unless defined?(PADRINO_ENV)
2
+ RACK_ENV = 'test' unless defined?(RACK_ENV)
3
3
  require File.expand_path(File.dirname(__FILE__) + "/../config/boot")
4
4
 
5
5
  require "test/unit"
@@ -1,11 +1,11 @@
1
1
  # Defines our constants
2
- PADRINO_ENV = ENV['PADRINO_ENV'] ||= ENV['RACK_ENV'] ||= 'development' unless defined?(PADRINO_ENV)
2
+ RACK_ENV = ENV['RACK_ENV'] ||= 'development' unless defined?(RACK_ENV)
3
3
  PADRINO_ROOT = File.expand_path('../..', __FILE__) unless defined?(PADRINO_ROOT)
4
4
 
5
5
  # Load our dependencies
6
6
  require 'rubygems' unless defined?(Gem)
7
7
  require 'bundler/setup'
8
- Bundler.require(:default, PADRINO_ENV)
8
+ Bundler.require(:default, RACK_ENV)
9
9
 
10
10
  ##
11
11
  # ## Enable devel logging
@@ -501,7 +501,7 @@ describe "ProjectGenerator" do
501
501
  assert_match_in_file(/:group => 'test'/, "#{@apptmp}/sample_project/Gemfile")
502
502
  assert_match_in_file(/gem 'bacon'/, "#{@apptmp}/sample_project/Gemfile")
503
503
  assert_match_in_file(/Bacon::Context/, "#{@apptmp}/sample_project/test/test_config.rb")
504
- assert_match_in_file(/PADRINO_ENV = 'test' unless defined\?\(PADRINO_ENV\)/, "#{@apptmp}/sample_project/test/test_config.rb")
504
+ assert_match_in_file(/RACK_ENV = 'test' unless defined\?\(RACK_ENV\)/, "#{@apptmp}/sample_project/test/test_config.rb")
505
505
  assert_file_exists("#{@apptmp}/sample_project/test/test.rake")
506
506
  assert_match_in_file(/Rake::TestTask.new\("test:\#/,"#{@apptmp}/sample_project/test/test.rake")
507
507
  assert_match_in_file(/task 'test' => test_tasks/,"#{@apptmp}/sample_project/test/test.rake")
@@ -515,7 +515,7 @@ describe "ProjectGenerator" do
515
515
  assert_match_in_file(/:group => 'test'/, "#{@apptmp}/sample_project/Gemfile")
516
516
  assert_match_in_file(/gem 'riot'/, "#{@apptmp}/sample_project/Gemfile")
517
517
  assert_match_in_file(/include Rack::Test::Methods/, "#{@apptmp}/sample_project/test/test_config.rb")
518
- assert_match_in_file(/PADRINO_ENV = 'test' unless defined\?\(PADRINO_ENV\)/, "#{@apptmp}/sample_project/test/test_config.rb")
518
+ assert_match_in_file(/RACK_ENV = 'test' unless defined\?\(RACK_ENV\)/, "#{@apptmp}/sample_project/test/test_config.rb")
519
519
  assert_match_in_file(/Riot::Situation/, "#{@apptmp}/sample_project/test/test_config.rb")
520
520
  assert_match_in_file(/Riot::Context/, "#{@apptmp}/sample_project/test/test_config.rb")
521
521
  assert_match_in_file(/SampleProject::App\.tap/, "#{@apptmp}/sample_project/test/test_config.rb")
@@ -531,7 +531,7 @@ describe "ProjectGenerator" do
531
531
  assert_match_in_file(/:require => 'rack\/test'/, "#{@apptmp}/sample_project/Gemfile")
532
532
  assert_match_in_file(/:group => 'test'/, "#{@apptmp}/sample_project/Gemfile")
533
533
  assert_match_in_file(/gem 'rspec'/, "#{@apptmp}/sample_project/Gemfile")
534
- assert_match_in_file(/PADRINO_ENV = 'test' unless defined\?\(PADRINO_ENV\)/, "#{@apptmp}/sample_project/spec/spec_helper.rb")
534
+ assert_match_in_file(/RACK_ENV = 'test' unless defined\?\(RACK_ENV\)/, "#{@apptmp}/sample_project/spec/spec_helper.rb")
535
535
  assert_match_in_file(/RSpec.configure/, "#{@apptmp}/sample_project/spec/spec_helper.rb")
536
536
  assert_file_exists("#{@apptmp}/sample_project/spec/spec.rake")
537
537
  assert_match_in_file(/RSpec::Core::RakeTask\.new\("spec:\#/,"#{@apptmp}/sample_project/spec/spec.rake")
@@ -545,7 +545,7 @@ describe "ProjectGenerator" do
545
545
  assert_match_in_file(/:require => 'rack\/test'/, "#{@apptmp}/sample_project/Gemfile")
546
546
  assert_match_in_file(/:group => 'test'/, "#{@apptmp}/sample_project/Gemfile")
547
547
  assert_match_in_file(/gem 'shoulda'/, "#{@apptmp}/sample_project/Gemfile")
548
- assert_match_in_file(/PADRINO_ENV = 'test' unless defined\?\(PADRINO_ENV\)/, "#{@apptmp}/sample_project/test/test_config.rb")
548
+ assert_match_in_file(/RACK_ENV = 'test' unless defined\?\(RACK_ENV\)/, "#{@apptmp}/sample_project/test/test_config.rb")
549
549
  assert_match_in_file(/Test::Unit::TestCase/, "#{@apptmp}/sample_project/test/test_config.rb")
550
550
  assert_file_exists("#{@apptmp}/sample_project/test/test.rake")
551
551
  assert_match_in_file(/Rake::TestTask\.new\("test:\#/,"#{@apptmp}/sample_project/test/test.rake")
@@ -574,7 +574,7 @@ describe "ProjectGenerator" do
574
574
  assert_match_in_file(/:group => 'test'/, "#{@apptmp}/sample_project/Gemfile")
575
575
  assert_match_in_file(/gem 'minitest'/, "#{@apptmp}/sample_project/Gemfile")
576
576
  assert_match_in_file(/include Rack::Test::Methods/, "#{@apptmp}/sample_project/test/test_config.rb")
577
- assert_match_in_file(/PADRINO_ENV = 'test' unless defined\?\(PADRINO_ENV\)/, "#{@apptmp}/sample_project/test/test_config.rb")
577
+ assert_match_in_file(/RACK_ENV = 'test' unless defined\?\(RACK_ENV\)/, "#{@apptmp}/sample_project/test/test_config.rb")
578
578
  assert_match_in_file(/MiniTest::Unit::TestCase/, "#{@apptmp}/sample_project/test/test_config.rb")
579
579
  assert_match_in_file(/SampleProject::App\.tap/, "#{@apptmp}/sample_project/test/test_config.rb")
580
580
  assert_file_exists("#{@apptmp}/sample_project/test/test.rake")
@@ -590,8 +590,8 @@ describe "ProjectGenerator" do
590
590
  assert_match_in_file(/:group => 'test'/, "#{@apptmp}/sample_project/Gemfile")
591
591
  assert_match_in_file(/gem 'rspec'/, "#{@apptmp}/sample_project/Gemfile")
592
592
  assert_match_in_file(/gem 'cucumber'/, "#{@apptmp}/sample_project/Gemfile")
593
- assert_match_in_file(/PADRINO_ENV = 'test' unless defined\?\(PADRINO_ENV\)/, "#{@apptmp}/sample_project/spec/spec_helper.rb")
594
- assert_match_in_file(/PADRINO_ENV = 'test' unless defined\?\(PADRINO_ENV\)/, "#{@apptmp}/sample_project/features/support/env.rb")
593
+ assert_match_in_file(/RACK_ENV = 'test' unless defined\?\(RACK_ENV\)/, "#{@apptmp}/sample_project/spec/spec_helper.rb")
594
+ assert_match_in_file(/RACK_ENV = 'test' unless defined\?\(RACK_ENV\)/, "#{@apptmp}/sample_project/features/support/env.rb")
595
595
  assert_match_in_file(/gem 'capybara'/, "#{@apptmp}/sample_project/Gemfile")
596
596
  assert_match_in_file(/RSpec.configure/, "#{@apptmp}/sample_project/spec/spec_helper.rb")
597
597
  assert_match_in_file(/Capybara.app = /, "#{@apptmp}/sample_project/features/support/env.rb")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0.rc2
4
+ version: 0.12.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-01-05 00:00:00.000000000 Z
14
+ date: 2014-01-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-core
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.12.0.rc2
22
+ version: 0.12.0.rc3
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.12.0.rc2
29
+ version: 0.12.0.rc3
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: bundler
32
32
  requirement: !ruby/object:Gem::Requirement
@@ -47,28 +47,28 @@ dependencies:
47
47
  requirements:
48
48
  - - '='
49
49
  - !ruby/object:Gem::Version
50
- version: 0.12.0.rc2
50
+ version: 0.12.0.rc3
51
51
  type: :development
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - '='
56
56
  - !ruby/object:Gem::Version
57
- version: 0.12.0.rc2
57
+ version: 0.12.0.rc3
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: padrino-mailer
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
62
  - - '='
63
63
  - !ruby/object:Gem::Version
64
- version: 0.12.0.rc2
64
+ version: 0.12.0.rc3
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - '='
70
70
  - !ruby/object:Gem::Version
71
- version: 0.12.0.rc2
71
+ version: 0.12.0.rc3
72
72
  description: Generators for easily creating and building padrino applications from
73
73
  the console
74
74
  email: padrinorb@gmail.com