cyborg 0.4.2 → 0.4.3

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: 7a831e20f0bc904512b9a06844124d94301fbaf2
4
- data.tar.gz: e4ccd2476a6418b45433265d3c59ef0bf5e00fb9
3
+ metadata.gz: 328ced25e839d90b4f2b7ac2f1fdc421807e869a
4
+ data.tar.gz: 8423b768d85e3cbe0d54888e2913d3b4f58be426
5
5
  SHA512:
6
- metadata.gz: 0aaf9f40de0ae414398fb8a1a88fcdb6e885978f2f07c7ec49d344ab45915693b857ea0a617c82ab7477f3f4cca4bf05343bd6cca36eee797cc6b53b23920f7d
7
- data.tar.gz: ac97b20dfd05daff247af585433420cb4fa7b2a647d71d8fbbf46a0eed754871caf8aa725c412dfbc24c411771f06fe505c16084c62b9a6ba012508856d878a7
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}/application.html.erb", %Q{<!DOCTYPE html>
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 'bundler'
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/application.html.erb'), "<%= render_layout do %>\n<% end %>")
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", "~> 4.2.6"
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 || 'application'
6
+ layout = args.first || 'default'
7
7
  yield if block_given?
8
- render template: "layouts/#{Cyborg.plugin.name}/#{layout}"
8
+ render template: "layouts/#{layout}"
9
9
  end
10
10
 
11
11
  def javascripts(&block)
@@ -1,3 +1,3 @@
1
1
  module Cyborg
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
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.2
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-03 00:00:00.000000000 Z
11
+ date: 2016-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass