padrino-gen 0.13.0.beta1 → 0.13.0.beta2

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: 3417ec67988324174088f6cfd71fa88935bbcf24
4
- data.tar.gz: 06002f5bc93956942455fbefac8140fb872eda77
3
+ metadata.gz: eb6b8990a21282c06f0e7e0727d62ec5470fa604
4
+ data.tar.gz: 72044379f1f848294dfca02672199f5890382eb2
5
5
  SHA512:
6
- metadata.gz: 49b82476e19803ba0e284519518058ae101d48b26c5d8f66fdf720734d912a958d40feed06952e488af063eb6c6bdca937b8a34e33b1c53c3acde215c26658bd
7
- data.tar.gz: 7cf1ff30dda912f122dc8b08c4f0de46a54e44aef97b3c244ef5205176fde6e7b1fa415b1591496835958a174b729f91df7989ae70e587ecdf4429f379740781
6
+ metadata.gz: 8b810a9cdbd38cfa1ad0122a55610c5f036fb9890c5983c255942b490c036d45bbb18e1a1576b0fda731af4dd27122a5ddb1c65f0168a00af95b05b1bb358130
7
+ data.tar.gz: e7aeb4b08d77b333116225c30513822e035b1b99202571bd4a127b09cbdca1618f507487a17699c8f39ebd0a81352749d852046a9f30e8fee9233f07ae26afa5
data/README.rdoc CHANGED
@@ -160,4 +160,4 @@ To learn more about the mailer generator, check out the guide to
160
160
 
161
161
  == Copyright
162
162
 
163
- Copyright (c) 2011-2013 Padrino. See LICENSE for details.
163
+ Copyright (c) 2011-2015 Padrino. See LICENSE for details.
@@ -31,7 +31,7 @@ COMPASS_REGISTER = <<-COMPASSR unless defined?(COMPASS_REGISTER)
31
31
  COMPASSR
32
32
 
33
33
  def setup_stylesheet
34
- require_dependencies 'compass'
34
+ require_dependencies 'compass-blueprint'
35
35
  create_file destination_root('/lib/compass_plugin.rb'), COMPASS_INIT
36
36
  inject_into_file destination_root('/app/app.rb'), COMPASS_REGISTER, :after => "register Padrino::Helpers\n"
37
37
 
@@ -121,17 +121,17 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
121
121
  end
122
122
  end
123
123
 
124
- desc "Migrate the database through scripts in db/migrate and update db/schema.rb by invoking ar:schema:dump. Target specific version with VERSION=x. Turn off output with VERBOSE=false."
124
+ desc "Migrate the database through scripts in db/migrate and update db/schema.rb by invoking ar:schema:dump. Target specific version with MIGRATION_VERSION=x. Turn off output with VERBOSE=false."
125
125
  task :migrate => :skeleton do
126
126
  ActiveRecord::Migration.verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
127
- ActiveRecord::Migrator.migrate("db/migrate/", ENV["VERSION"] ? ENV["VERSION"].to_i : nil)
127
+ ActiveRecord::Migrator.migrate("db/migrate/", env_migration_version)
128
128
  Rake::Task["ar:schema:dump"].invoke if ActiveRecord::Base.schema_format == :ruby
129
129
  end
130
130
 
131
131
  namespace :migrate do
132
- desc 'Rollbacks the database one migration and re migrate up. If you want to rollback more than one step, define STEP=x. Target specific version with VERSION=x.'
132
+ desc 'Rollbacks the database one migration and re migrate up. If you want to rollback more than one step, define STEP=x. Target specific version with MIGRATION_VERSION=x.'
133
133
  task :redo => :skeleton do
134
- if ENV["VERSION"]
134
+ if env_migration_version
135
135
  Rake::Task["ar:migrate:down"].invoke
136
136
  Rake::Task["ar:migrate:up"].invoke
137
137
  else
@@ -143,10 +143,10 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
143
143
  desc 'Resets your database using your migrations for the current environment'
144
144
  task :reset => ["ar:drop", "ar:create", "ar:migrate"]
145
145
 
146
- desc 'Runs the "up" for a given migration VERSION.'
146
+ desc 'Runs the "up" for a given MIGRATION_VERSION.'
147
147
  task(:up => :skeleton){ migrate_as(:up) }
148
148
 
149
- desc 'Runs the "down" for a given migration VERSION.'
149
+ desc 'Runs the "down" for a given MIGRATION_VERSION.'
150
150
  task(:down => :skeleton){ migrate_as(:down) }
151
151
  end
152
152
 
@@ -349,8 +349,8 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord))
349
349
  end
350
350
 
351
351
  def migrate_as(type)
352
- version = ENV["VERSION"] ? ENV["VERSION"].to_i : nil
353
- raise "VERSION is required" unless version
352
+ version = env_migration_version
353
+ fail "MIGRATION_VERSION is required" unless version
354
354
  ActiveRecord::Migrator.run(type, "db/migrate/", version)
355
355
  dump_schema
356
356
  end
@@ -24,14 +24,14 @@ if PadrinoTasks.load?(:datamapper, defined?(DataMapper))
24
24
 
25
25
  desc "Migrate up using migrations"
26
26
  task :up, [:version] => :load do |t, args|
27
- version = args[:version] || ENV['VERSION']
27
+ version = args[:version] || env_migration_version
28
28
  migrate_up!(version)
29
29
  puts "<= dm:migrate:up #{version} executed"
30
30
  end
31
31
 
32
32
  desc "Migrate down using migrations"
33
33
  task :down, [:version] => :load do |t, args|
34
- version = args[:version] || ENV['VERSION']
34
+ version = args[:version] || env_migration_version
35
35
  migrate_down!(version)
36
36
  puts "<= dm:migrate:down #{version} executed"
37
37
  end
@@ -9,11 +9,11 @@ if PadrinoTasks.load?(:sequel, defined?(Sequel))
9
9
  puts "<= sq:migrate:auto executed"
10
10
  end
11
11
 
12
- desc "Perform migration up/down to VERSION"
12
+ desc "Perform migration up/down to MIGRATION_VERSION"
13
13
  task :to, [:version] => :skeleton do |t, args|
14
- version = (args[:version] || ENV['VERSION']).to_s.strip
14
+ version = (args[:version] || env_migration_version).to_s.strip
15
15
  ::Sequel.extension :migration
16
- raise "No VERSION was provided" if version.empty?
16
+ fail "No MIGRATION_VERSION was provided" if version.empty?
17
17
  ::Sequel::Migrator.apply(Sequel::Model.db, "db/migrate", version.to_i)
18
18
  puts "<= sq:migrate:to[#{version}] executed"
19
19
  end
@@ -663,7 +663,7 @@ describe "ProjectGenerator" do
663
663
 
664
664
  it 'should properly generate for compass' do
665
665
  capture_io { generate(:project, 'sample_project', "--root=#{@apptmp}", '--renderer=haml','--script=none','--stylesheet=compass') }
666
- assert_match_in_file(/gem 'compass'/, "#{@apptmp}/sample_project/Gemfile")
666
+ assert_match_in_file(/gem 'compass-blueprint'/, "#{@apptmp}/sample_project/Gemfile")
667
667
  assert_match_in_file(/Compass.configure_sass_plugin\!/, "#{@apptmp}/sample_project/lib/compass_plugin.rb")
668
668
  assert_match_in_file(/module CompassInitializer.*Sass::Plugin::Rack/m, "#{@apptmp}/sample_project/lib/compass_plugin.rb")
669
669
  assert_match_in_file(/register CompassInitializer/m, "#{@apptmp}/sample_project/app/app.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.13.0.beta1
4
+ version: 0.13.0.beta2
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: 2015-02-22 00:00:00.000000000 Z
14
+ date: 2015-04-11 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.13.0.beta1
22
+ version: 0.13.0.beta2
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.13.0.beta1
29
+ version: 0.13.0.beta2
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.13.0.beta1
50
+ version: 0.13.0.beta2
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.13.0.beta1
57
+ version: 0.13.0.beta2
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.13.0.beta1
64
+ version: 0.13.0.beta2
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.13.0.beta1
71
+ version: 0.13.0.beta2
72
72
  description: Generators for easily creating and building padrino applications from
73
73
  the console
74
74
  email: padrinorb@gmail.com