padrino-gen 0.13.3.2 → 0.13.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.rdoc +10 -10
- data/lib/padrino-gen/padrino-tasks/activerecord.rb +2 -2
- data/test/helper.rb +0 -16
- metadata +9 -9
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: cb2f4d7c6c1027b28c1072b07ff6c78472597b1f
         | 
| 4 | 
            +
              data.tar.gz: 8f248192a31b88044c63bd111ae0a0c16fe248a4
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 4e92748f5735ee770a4582186efa8cfa33fb014f2fdbd31b4e05f63184283d91e6c0894787b9aa126ce93eceb4e7adf097f111280e64c67bc7a896cc29755563
         | 
| 7 | 
            +
              data.tar.gz: 4bbc6a2bbe153bef597f699d608246ce6c3707adde5fa2a0bc74226a758cb214c30c673263c2aeb6ef4b85c8bc695462640c6c47cf79c7d3dac6437e08b71fab
         | 
    
        data/README.rdoc
    CHANGED
    
    | @@ -7,7 +7,7 @@ Padrino comes preloaded with flexible code generators powered in part by the exc | |
| 7 7 | 
             
            both in creating new applications and building on existing ones. The generators have been built to be as library agnostic
         | 
| 8 8 | 
             
            as possible, supporting a myriad of test frameworks, js libraries, mocking libraries, etc.
         | 
| 9 9 |  | 
| 10 | 
            -
            See the guide for {Padrino Generators}[http:// | 
| 10 | 
            +
            See the guide for {Padrino Generators}[http://padrinorb.com/guides/generators/overview] for a
         | 
| 11 11 | 
             
            more in-depth look at the system.
         | 
| 12 12 |  | 
| 13 13 | 
             
            === Project Generator
         | 
| @@ -38,8 +38,8 @@ You can also instruct the generator to skip a certain component to avoid using o | |
| 38 38 |  | 
| 39 39 | 
             
            The available components and their default options are listed below:
         | 
| 40 40 |  | 
| 41 | 
            -
            test::       none  (default), bacon, shoulda, cucumber, rspec, minitest
         | 
| 42 | 
            -
            renderer::    | 
| 41 | 
            +
            test::       none  (default), bacon, shoulda, cucumber, rspec, minitest, testunit
         | 
| 42 | 
            +
            renderer::   none  (default), slim, erb, erubis, liquid, haml
         | 
| 43 43 | 
             
            stylesheet:: none  (default), less, compass, sass, scss
         | 
| 44 44 | 
             
            mock::       none  (default), mocha, rr
         | 
| 45 45 | 
             
            script::     none  (default), jquery, prototype, mootools, extcore, dojo
         | 
| @@ -50,7 +50,7 @@ In addition, you can generate projects based on existing templates: | |
| 50 50 | 
             
              $ padrino-gen project demo_project --template sampleblog
         | 
| 51 51 |  | 
| 52 52 | 
             
            To learn more about the project generator, check out the guide to
         | 
| 53 | 
            -
            {Padrino Generators}[http:// | 
| 53 | 
            +
            {Padrino Generators}[http://padrinorb.com/guides/generators/projects/].
         | 
| 54 54 |  | 
| 55 55 | 
             
            === Plugin System
         | 
| 56 56 |  | 
| @@ -61,7 +61,7 @@ Padrino provides support for plugins to be executed within your application. For | |
| 61 61 | 
             
            would install the hoptoad middleware into your application automatically.
         | 
| 62 62 |  | 
| 63 63 | 
             
            To learn more about the plugin system, check out the guide to
         | 
| 64 | 
            -
            {Padrino Generators}[http:// | 
| 64 | 
            +
            {Padrino Generators}[http://padrinorb.com/guides/generators/plugins/].
         | 
| 65 65 |  | 
| 66 66 | 
             
            === Sub App Generator
         | 
| 67 67 |  | 
| @@ -85,7 +85,7 @@ By default these apps are mounted under: | |
| 85 85 | 
             
            but you can edit config/apps.rb and change it.
         | 
| 86 86 |  | 
| 87 87 | 
             
            To learn more about the subapp generator, check out the guide to
         | 
| 88 | 
            -
            {Padrino Generators}[http:// | 
| 88 | 
            +
            {Padrino Generators}[http://padrinorb.com/guides/generators/sub-applications/].
         | 
| 89 89 |  | 
| 90 90 | 
             
            === Model Generator
         | 
| 91 91 |  | 
| @@ -106,7 +106,7 @@ You can also specify desired fields to be contained within your User model: | |
| 106 106 | 
             
              $ padrino-gen model User name:string age:integer email:string
         | 
| 107 107 |  | 
| 108 108 | 
             
            To learn more about the model generator, check out the guide to
         | 
| 109 | 
            -
            {Padrino Generators}[http:// | 
| 109 | 
            +
            {Padrino Generators}[http://padrinorb.com/guides/generators/models/].
         | 
| 110 110 |  | 
| 111 111 | 
             
            === Migration Generator
         | 
| 112 112 |  | 
| @@ -123,7 +123,7 @@ Using the migration generator is as simple as: | |
| 123 123 | 
             
              $ padrino-gen migration RemoveFieldsFromUsers
         | 
| 124 124 |  | 
| 125 125 | 
             
            To learn more about the migration generator, check out the guide to
         | 
| 126 | 
            -
            {Padrino Generators}[http:// | 
| 126 | 
            +
            {Padrino Generators}[http://padrinorb.com/guides/generators/migrations/].
         | 
| 127 127 |  | 
| 128 128 | 
             
            === Controller Generator
         | 
| 129 129 |  | 
| @@ -143,7 +143,7 @@ You can also specify desired actions to be added to your controller: | |
| 143 143 | 
             
              $ padrino-gen controller Admin get:index get:new post:create
         | 
| 144 144 |  | 
| 145 145 | 
             
            To learn more about the controller generator, check out the guide to
         | 
| 146 | 
            -
            {Padrino Generators}[http:// | 
| 146 | 
            +
            {Padrino Generators}[http://padrinorb.com/guides/generators/controllers/].
         | 
| 147 147 |  | 
| 148 148 | 
             
            === Mailer Generator
         | 
| 149 149 |  | 
| @@ -156,7 +156,7 @@ Using the mailer generator is as simple as: | |
| 156 156 | 
             
              $ padrino-gen mailer UserNotifier
         | 
| 157 157 |  | 
| 158 158 | 
             
            To learn more about the mailer generator, check out the guide to
         | 
| 159 | 
            -
            {Padrino Generators}[http:// | 
| 159 | 
            +
            {Padrino Generators}[http://padrinorb.com/guides/generators/mailers/].
         | 
| 160 160 |  | 
| 161 161 | 
             
            == Copyright
         | 
| 162 162 |  | 
| @@ -44,7 +44,7 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord)) | |
| 44 44 | 
             
                      else
         | 
| 45 45 | 
             
                        begin
         | 
| 46 46 | 
             
                          # Create the SQLite database
         | 
| 47 | 
            -
                           | 
| 47 | 
            +
                          FileUtils.mkdir_p File.dirname(config[:database]) unless File.exist?(File.dirname(config[:database]))
         | 
| 48 48 | 
             
                          ActiveRecord::Base.establish_connection(config)
         | 
| 49 49 | 
             
                          ActiveRecord::Base.connection
         | 
| 50 50 | 
             
                        rescue StandardError => e
         | 
| @@ -246,7 +246,7 @@ if PadrinoTasks.load?(:activerecord, defined?(ActiveRecord)) | |
| 246 246 | 
             
                      if search_path
         | 
| 247 247 | 
             
                        search_path = search_path.split(",").map{|search_path| "--schema=#{search_path.strip}" }.join(" ")
         | 
| 248 248 | 
             
                      end
         | 
| 249 | 
            -
                      `pg_dump - | 
| 249 | 
            +
                      `pg_dump -U "#{config[:username]}" -s -x -O -f db/#{Padrino.env}_structure.sql #{search_path} #{config[:database]}`
         | 
| 250 250 | 
             
                      raise "Error dumping database" if $?.exitstatus == 1
         | 
| 251 251 | 
             
                    when "sqlite", "sqlite3"
         | 
| 252 252 | 
             
                      dbfile = config[:database] || config[:dbfile]
         | 
    
        data/test/helper.rb
    CHANGED
    
    | @@ -2,7 +2,6 @@ require 'minitest/autorun' | |
| 2 2 | 
             
            require 'minitest/pride'
         | 
| 3 3 | 
             
            require 'mocha/setup'
         | 
| 4 4 | 
             
            require 'rack/test'
         | 
| 5 | 
            -
            require 'webrat'
         | 
| 6 5 | 
             
            require 'fakeweb'
         | 
| 7 6 | 
             
            require 'thor/group'
         | 
| 8 7 | 
             
            require 'padrino-gen'
         | 
| @@ -28,13 +27,6 @@ fake_uri_base = "https://raw.github.com/padrino/padrino-static/master/" | |
| 28 27 | 
             
            end
         | 
| 29 28 |  | 
| 30 29 | 
             
            class MiniTest::Spec
         | 
| 31 | 
            -
              include Webrat::Methods
         | 
| 32 | 
            -
              include Webrat::Matchers
         | 
| 33 | 
            -
             | 
| 34 | 
            -
              Webrat.configure do |config|
         | 
| 35 | 
            -
                config.mode = :rack
         | 
| 36 | 
            -
              end
         | 
| 37 | 
            -
             | 
| 38 30 | 
             
              def stop_time_for_test
         | 
| 39 31 | 
             
                time = Time.now
         | 
| 40 32 | 
             
                Time.stubs(:now).returns(time)
         | 
| @@ -106,11 +98,3 @@ class MiniTest::Spec | |
| 106 98 | 
             
                Padrino.expects(:bin).with("rake", command, "-c=#{options[:root]}").returns(true)
         | 
| 107 99 | 
             
              end
         | 
| 108 100 | 
             
            end
         | 
| 109 | 
            -
             | 
| 110 | 
            -
            module Webrat
         | 
| 111 | 
            -
              module Logging
         | 
| 112 | 
            -
                def logger # # @private
         | 
| 113 | 
            -
                  @logger = nil
         | 
| 114 | 
            -
                end
         | 
| 115 | 
            -
              end
         | 
| 116 | 
            -
            end
         | 
    
        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.3. | 
| 4 | 
            +
              version: 0.13.3.3
         | 
| 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: 2016- | 
| 14 | 
            +
            date: 2016-11-02 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.3. | 
| 22 | 
            +
                    version: 0.13.3.3
         | 
| 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.3. | 
| 29 | 
            +
                    version: 0.13.3.3
         | 
| 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.3. | 
| 50 | 
            +
                    version: 0.13.3.3
         | 
| 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.3. | 
| 57 | 
            +
                    version: 0.13.3.3
         | 
| 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.3. | 
| 64 | 
            +
                    version: 0.13.3.3
         | 
| 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.3. | 
| 71 | 
            +
                    version: 0.13.3.3
         | 
| 72 72 | 
             
            description: Generators for easily creating and building padrino applications from
         | 
| 73 73 | 
             
              the console
         | 
| 74 74 | 
             
            email: padrinorb@gmail.com
         | 
| @@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 216 216 | 
             
                  version: 1.3.6
         | 
| 217 217 | 
             
            requirements: []
         | 
| 218 218 | 
             
            rubyforge_project: padrino-gen
         | 
| 219 | 
            -
            rubygems_version: 2. | 
| 219 | 
            +
            rubygems_version: 2.6.6
         | 
| 220 220 | 
             
            signing_key: 
         | 
| 221 221 | 
             
            specification_version: 4
         | 
| 222 222 | 
             
            summary: Generators for easily creating and building padrino applications
         |