cyborg 0.5.32 → 0.5.33

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: 697c106f27b15713cb8ac8cad11ab657e2f5d46a
4
- data.tar.gz: 3d36c811def88a55dfa160f2a42c9bb3c1135fef
3
+ metadata.gz: 012a7c65df71835132e2f936e8abf9bc7a0a3ee5
4
+ data.tar.gz: 87bf3e88d66331b223d1be16f3f07045a2ecbad8
5
5
  SHA512:
6
- metadata.gz: 462af8b7ea498dc1559f700b628f3211c50d2adbb19cc1bd66fcb4ea6b6b9f07e3cbd209253571ffc7b5c7b23da596aaeed46ec78c6e617f3405ca6a188e48e5
7
- data.tar.gz: c064e0e57d58d61de6b43ba5e8b60362cb811dc975525897ff97e1d009e1ccef7b4beb3f8c6f2fcb025e1dd88900c4caadf321dd232d61e7d834c16d164702bb
6
+ metadata.gz: 05299ca35a87e42c57a79a37e7775fecd49fac33f1bdced20f838e565369515e403fdbf8d2b7c262ad150d0fd0d6d408ed1200667a86e304140da67b198ff0e5
7
+ data.tar.gz: 3fcdf61eb80b189664c331f7c91c97578467a1290452dec7e42749fc50a0bc1bdb800d5baca8595fb1639823a155c05ebeda64a9c7c50020c817877d5bbfe028
@@ -34,6 +34,8 @@ module Cyborg
34
34
  from_root { gem_install }
35
35
  when 'gem:release'
36
36
  from_root { gem_release }
37
+ when 'gem:tag'
38
+ from_root { gem_tag }
37
39
  else
38
40
  puts "Command `#{options[:command]}` not recognized"
39
41
  end
@@ -69,12 +71,17 @@ module Cyborg
69
71
  if key = ENV['RUBYGEMS_API_KEY']
70
72
  gem = "#{Cyborg.plugin.gem_name}-#{Cyborg.plugin.version}.gem"
71
73
  system "bundle exec rake build"
72
- system "curl --data-binary @#{gem} -H 'Authorization:#{key}' https://rubygems.org/api/v1/gems"
74
+ system "curl --data-binary @./pkg/#{gem} -H 'Authorization:#{key}' https://rubygems.org/api/v1/gems"
73
75
  else
74
76
  system 'bundle exec rake release'
75
77
  end
76
78
  end
77
79
 
80
+ def gem_tag
81
+ require './lib/tungsten/version.rb'
82
+ system "git tag v#{Tungsten::VERSION}"
83
+ end
84
+
78
85
  def require_rails
79
86
  require File.join(Dir.pwd, Cyborg.rails_path('config/application'))
80
87
  end
@@ -197,7 +197,21 @@ end})
197
197
 
198
198
  write_file(File.join(site_path, 'app/controllers/docs_controller.rb'), %Q{class DocsController < ApplicationController
199
199
  def show
200
- render action: "#\{params[:page]\}"
200
+ page = params[:page]
201
+
202
+ %w(docs).each do | root_page |
203
+ if page.match(\/\#{root_page}\\/?$/)
204
+ page = File.join(root_page, 'index')
205
+ end
206
+ end
207
+
208
+ if template_exists? page
209
+ render template: page
210
+ elsif template_exists? "docs/\#{page}"
211
+ render template: "docs/\#{page}"
212
+ else
213
+ render file: "404.html", status: :not_found
214
+ end
201
215
  end
202
216
  end})
203
217
 
@@ -1,3 +1,3 @@
1
1
  module Cyborg
2
- VERSION = "0.5.32"
2
+ VERSION = "0.5.33"
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.5.32
4
+ version: 0.5.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-17 00:00:00.000000000 Z
11
+ date: 2017-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -225,7 +225,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
225
  version: '0'
226
226
  requirements: []
227
227
  rubyforge_project:
228
- rubygems_version: 2.5.1
228
+ rubygems_version: 2.4.5.1
229
229
  signing_key:
230
230
  specification_version: 4
231
231
  summary: Build a great style-guide for Rails (and humans).