padrino-gen 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ begin
15
15
  gem.executables = ["padrino-gen"]
16
16
  gem.add_runtime_dependency "sinatra", ">= 0.9.2"
17
17
  gem.add_runtime_dependency "padrino-core", "= #{GEM_VERSION}"
18
- gem.add_runtime_dependency "thor", ">= 0.11.8"
18
+ gem.add_runtime_dependency "thor", ">= 0.13.0"
19
19
  gem.add_runtime_dependency "bundler", ">= 0.5.0"
20
20
  gem.add_development_dependency "haml", ">= 2.2.1"
21
21
  gem.add_development_dependency "shoulda", ">= 0"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.1
1
+ 0.7.2
data/bin/padrino-gen CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- %w[rubygems thor].each { |gem| require gem }
2
+ %w[rubygems thor/group].each { |gem| require gem }
3
3
  $:.unshift File.dirname(__FILE__) + "/../lib"
4
4
 
5
5
  # We try to load the vendored padrino-core if exist
@@ -104,9 +104,7 @@ module Padrino
104
104
  gem_options = options.slice(:only, :require_as).collect { |k, v| "#{k.inspect} => #{v.inspect}" }.join(", ")
105
105
  include_text = "gem '#{name}'" << (gem_options.present? ? ", #{gem_options}" : "") << "\n"
106
106
  options.merge!(:content => include_text, :after => after_pattern)
107
- if behavior == :revoke || !File.read(destination_root('Gemfile')).include?(options[:content])
108
- inject_into_file('Gemfile', options[:content], :after => options[:after])
109
- end
107
+ inject_into_file('Gemfile', options[:content], :after => options[:after])
110
108
  end
111
109
 
112
110
  module ClassMethods
@@ -1,5 +1,3 @@
1
- require 'thor'
2
-
3
1
  module Padrino
4
2
  module Generators
5
3
  class App < Thor::Group
@@ -1,5 +1,3 @@
1
- require 'thor'
2
-
3
1
  module Padrino
4
2
  module Generators
5
3
 
@@ -1,5 +1,3 @@
1
- require 'thor'
2
-
3
1
  module Padrino
4
2
  module Generators
5
3
 
@@ -1,5 +1,3 @@
1
- require 'thor'
2
-
3
1
  module Padrino
4
2
  module Generators
5
3
 
@@ -1,5 +1,3 @@
1
- require 'thor'
2
-
3
1
  module Padrino
4
2
  module Generators
5
3
 
data/padrino-gen.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{padrino-gen}
8
- s.version = "0.7.1"
8
+ s.version = "0.7.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
@@ -98,8 +98,8 @@ Gem::Specification.new do |s|
98
98
 
99
99
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
100
100
  s.add_runtime_dependency(%q<sinatra>, [">= 0.9.2"])
101
- s.add_runtime_dependency(%q<padrino-core>, ["= 0.7.1"])
102
- s.add_runtime_dependency(%q<thor>, [">= 0.11.8"])
101
+ s.add_runtime_dependency(%q<padrino-core>, ["= 0.7.2"])
102
+ s.add_runtime_dependency(%q<thor>, [">= 0.13.0"])
103
103
  s.add_runtime_dependency(%q<bundler>, [">= 0.5.0"])
104
104
  s.add_development_dependency(%q<haml>, [">= 2.2.1"])
105
105
  s.add_development_dependency(%q<shoulda>, [">= 0"])
@@ -109,8 +109,8 @@ Gem::Specification.new do |s|
109
109
  s.add_development_dependency(%q<fakeweb>, [">= 1.2.3"])
110
110
  else
111
111
  s.add_dependency(%q<sinatra>, [">= 0.9.2"])
112
- s.add_dependency(%q<padrino-core>, ["= 0.7.1"])
113
- s.add_dependency(%q<thor>, [">= 0.11.8"])
112
+ s.add_dependency(%q<padrino-core>, ["= 0.7.2"])
113
+ s.add_dependency(%q<thor>, [">= 0.13.0"])
114
114
  s.add_dependency(%q<bundler>, [">= 0.5.0"])
115
115
  s.add_dependency(%q<haml>, [">= 2.2.1"])
116
116
  s.add_dependency(%q<shoulda>, [">= 0"])
@@ -121,8 +121,8 @@ Gem::Specification.new do |s|
121
121
  end
122
122
  else
123
123
  s.add_dependency(%q<sinatra>, [">= 0.9.2"])
124
- s.add_dependency(%q<padrino-core>, ["= 0.7.1"])
125
- s.add_dependency(%q<thor>, [">= 0.11.8"])
124
+ s.add_dependency(%q<padrino-core>, ["= 0.7.2"])
125
+ s.add_dependency(%q<thor>, [">= 0.13.0"])
126
126
  s.add_dependency(%q<bundler>, [">= 0.5.0"])
127
127
  s.add_dependency(%q<haml>, [">= 2.2.1"])
128
128
  s.add_dependency(%q<shoulda>, [">= 0"])
data/test/helper.rb CHANGED
@@ -4,7 +4,7 @@ require 'shoulda'
4
4
  require 'mocha'
5
5
  require 'rack/test'
6
6
  require 'webrat'
7
- require 'thor'
7
+ require 'thor/group'
8
8
 
9
9
  # We try to load the vendored padrino-core if exist
10
10
  %w(core).each do |gem|
@@ -1,5 +1,5 @@
1
1
  require File.dirname(__FILE__) + '/helper'
2
- require 'thor'
2
+ require 'thor/group'
3
3
  require 'fakeweb'
4
4
 
5
5
  class TestAppGenerator < Test::Unit::TestCase
@@ -1,5 +1,5 @@
1
1
  require File.dirname(__FILE__) + '/helper'
2
- require 'thor'
2
+ require 'thor/group'
3
3
 
4
4
  class TestControllerGenerator < Test::Unit::TestCase
5
5
  def setup
@@ -1,5 +1,5 @@
1
1
  require File.dirname(__FILE__) + '/helper'
2
- require 'thor'
2
+ require 'thor/group'
3
3
 
4
4
  class TestMailerGenerator < Test::Unit::TestCase
5
5
  def setup
@@ -1,5 +1,5 @@
1
1
  require File.dirname(__FILE__) + '/helper'
2
- require 'thor'
2
+ require 'thor/group'
3
3
 
4
4
  class TestMigrationGenerator < Test::Unit::TestCase
5
5
  def setup
@@ -1,5 +1,5 @@
1
1
  require File.dirname(__FILE__) + '/helper'
2
- require 'thor'
2
+ require 'thor/group'
3
3
 
4
4
  class TestModelGenerator < Test::Unit::TestCase
5
5
  def setup
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.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -33,7 +33,7 @@ dependencies:
33
33
  requirements:
34
34
  - - "="
35
35
  - !ruby/object:Gem::Version
36
- version: 0.7.1
36
+ version: 0.7.2
37
37
  version:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: thor
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 0.11.8
46
+ version: 0.13.0
47
47
  version:
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: bundler