cyborg 0.3.2 → 0.4.0

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: e6ab06a753a8ddb98750f6759240d69f255344ac
4
- data.tar.gz: dd6120c1de552c10c2bee391c8b722fe153e33d3
3
+ metadata.gz: 15b1e69b2f48aa26c349519d512fbc703919dbac
4
+ data.tar.gz: db576e4c73d168d9133ebdf034b03a25fb00b39d
5
5
  SHA512:
6
- metadata.gz: 6c5efd7e1a5366435fb8b51544744658bfb71be3c4e77e16e04ec10af977805c3347407992570c5f0b0aa4e9237dff71e375dd220b67b8fc4bc755a240773f64
7
- data.tar.gz: da535bf0c0c089b569841b2aba0b4995fc8ceb9cfaff65cf15ff2cb1653b420777f931a100ee8b2abe9ede9edebed7af26ff61e3fca40ca9a7429cfa7404366d
6
+ metadata.gz: 415bd67ee012398b3d5afb991a2ed181a785914f7923877658ddedbf71f5c4279cdcfdc5136b46a671f4b09d2914a966beea324177e3a2be32d5473691c729ab
7
+ data.tar.gz: 7e49206ca4209cbb2a6338ce790357e439c1128fd9b41bbce17437047b87d338fa81de9f870b146ddbf8c2363cad7af4b151f525e8961163690748ef89f12abe
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_runtime_dependency "bundler", "~> 1.11"
27
27
  spec.add_runtime_dependency "autoprefixer-rails", "~> 6.3"
28
28
 
29
- spec.add_runtime_dependency "rails", "~> 4"
29
+ spec.add_runtime_dependency "rails", ">= 4.2.6"
30
30
  spec.add_dependency 'rack-cors'
31
31
 
32
32
  spec.add_development_dependency "bundler", "~> 1.11"
@@ -209,7 +209,7 @@ end})
209
209
  end
210
210
  end})
211
211
 
212
- write_file(File.join(site_path, 'app/views/layouts/application.html.erb'), "<%= layout do %>\n<% end %>")
212
+ write_file(File.join(site_path, 'app/views/layouts/application.html.erb'), "<%= render_layout do %>\n<% end %>")
213
213
 
214
214
  write_file(File.join(site_path, 'app/views/docs/index.html.erb'), "<h1>#{plugin_module} Documentation</h1>")
215
215
  end
@@ -1,7 +1,7 @@
1
1
  module Cyborg
2
2
  module Helpers
3
3
  module LayoutHelper
4
- def layout(*args, &block)
4
+ def render_layout(*args, &block)
5
5
  options = args.last.is_a?(Hash) ? args.pop : {}
6
6
  layout = args.first || 'application'
7
7
  yield
@@ -1,3 +1,3 @@
1
1
  module Cyborg
2
- VERSION = "0.3.2"
2
+ VERSION = "0.4.0"
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.3.2
4
+ version: 0.4.0
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-01 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -112,16 +112,16 @@ dependencies:
112
112
  name: rails
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '4'
117
+ version: 4.2.6
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '4'
124
+ version: 4.2.6
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rack-cors
127
127
  requirement: !ruby/object:Gem::Requirement