cyborg 0.4.2 → 0.4.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/lib/cyborg/command/scaffold.rb +5 -6
- data/lib/cyborg/helpers/layout_helpers.rb +2 -2
- data/lib/cyborg/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 328ced25e839d90b4f2b7ac2f1fdc421807e869a
         | 
| 4 | 
            +
              data.tar.gz: 8423b768d85e3cbe0d54888e2913d3b4f58be426
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: b4669e1a4a810a2d83dd96dc6116ce4824b18b501f07e0e7879972ffbe2c66a4fbc94b41e777fd7fff8398e7aa9f33e3a923067176c8116cc192418c9406b72b
         | 
| 7 | 
            +
              data.tar.gz: 9a315d06b29da6cbe8f2f6de8071c3a26289656c1b1fdd39ff8e836a4ca89c43a2565bb9eb2d6689c4bd55b5a97e2be0031a249e668c00efc5b0d44831028e01
         | 
| @@ -99,7 +99,7 @@ Cyborg.register(#{modulize(gem)}::Plugin, { | |
| 99 99 | 
             
            end})
         | 
| 100 100 |  | 
| 101 101 | 
             
                  # Add an a base layout
         | 
| 102 | 
            -
                  write_file("#{gem}/app/views/layouts/#{namespace}/ | 
| 102 | 
            +
                  write_file("#{gem}/app/views/layouts/#{namespace}/default.html.erb", %Q{<!DOCTYPE html>
         | 
| 103 103 | 
             
            <html>
         | 
| 104 104 | 
             
            <head>
         | 
| 105 105 | 
             
              <title>#{plugin_module}</title>
         | 
| @@ -185,14 +185,13 @@ require "rails" | |
| 185 185 | 
             
            # Pick the frameworks you want:
         | 
| 186 186 | 
             
            require "action_controller/railtie"
         | 
| 187 187 | 
             
            require "action_view/railtie"
         | 
| 188 | 
            -
            require  | 
| 188 | 
            +
            require "sprockets/railtie"
         | 
| 189 189 |  | 
| 190 190 | 
             
            # Require the gems listed in Gemfile, including any gems
         | 
| 191 191 | 
             
            # you've limited to :test, :development, or :production.
         | 
| 192 192 | 
             
            Bundler.require(*Rails.groups)
         | 
| 193 193 |  | 
| 194 194 | 
             
            require '#{gem}'
         | 
| 195 | 
            -
            require 'sprockets/railtie'
         | 
| 196 195 |  | 
| 197 196 | 
             
            module Site
         | 
| 198 197 | 
             
              class Application < Cyborg::Application
         | 
| @@ -209,7 +208,7 @@ end}) | |
| 209 208 | 
             
              end
         | 
| 210 209 | 
             
            end})
         | 
| 211 210 |  | 
| 212 | 
            -
                  write_file(File.join(site_path, 'app/views/layouts/ | 
| 211 | 
            +
                  write_file(File.join(site_path, 'app/views/layouts/default.html.erb'), "<%= render_layout do %>\n<% end %>")
         | 
| 213 212 |  | 
| 214 213 | 
             
                  write_file(File.join(site_path, 'app/views/docs/index.html.erb'), "<h1>#{plugin_module} Documentation</h1>")
         | 
| 215 214 | 
             
                end
         | 
| @@ -240,7 +239,7 @@ Gem::Specification.new do |spec| | |
| 240 239 | 
             
              spec.files = Dir["{app,lib,public}/**/*", "LICENSE.txt", "README.md"]
         | 
| 241 240 | 
             
              spec.require_paths = ["lib"]
         | 
| 242 241 |  | 
| 243 | 
            -
              spec.add_dependency "rails", " | 
| 242 | 
            +
              spec.add_dependency "rails", ">= 4"
         | 
| 244 243 | 
             
              spec.add_runtime_dependency "cyborg"
         | 
| 245 244 |  | 
| 246 245 | 
             
              spec.add_development_dependency "bundler", "~> 1.12"
         | 
| @@ -256,7 +255,7 @@ end | |
| 256 255 | 
             
                      type = 'update'
         | 
| 257 256 | 
             
                    else
         | 
| 258 257 | 
             
                      FileUtils.mkdir_p(File.dirname(path))
         | 
| 259 | 
            -
                      type ='create'
         | 
| 258 | 
            +
                      type = 'create'
         | 
| 260 259 | 
             
                    end
         | 
| 261 260 |  | 
| 262 261 | 
             
                    File.open path, mode do |io|
         | 
| @@ -3,9 +3,9 @@ module Cyborg | |
| 3 3 | 
             
                module LayoutHelper
         | 
| 4 4 | 
             
                  def render_layout(*args, &block)
         | 
| 5 5 | 
             
                    options = args.last.is_a?(Hash) ? args.pop : {}
         | 
| 6 | 
            -
                    layout = args.first || ' | 
| 6 | 
            +
                    layout = args.first || 'default'
         | 
| 7 7 | 
             
                    yield if block_given?
         | 
| 8 | 
            -
                    render template: "layouts/#{ | 
| 8 | 
            +
                    render template: "layouts/#{layout}"
         | 
| 9 9 | 
             
                  end
         | 
| 10 10 |  | 
| 11 11 | 
             
                  def javascripts(&block)
         | 
    
        data/lib/cyborg/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: cyborg
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.4. | 
| 4 | 
            +
              version: 0.4.3
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Brandon Mathis
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2016-08- | 
| 11 | 
            +
            date: 2016-08-04 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: sass
         |