development-toolbox 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +0 -1
- data/.yardopts +1 -0
- data/Gemfile +1 -4
- data/development-toolbox.gemspec +1 -1
- data/lib/development/toolbox/version.rb +1 -1
- data/rakelib/gem.rake +28 -23
- metadata +4 -10
- data/lib/commonmarker/compat.rb +0 -5
- data/lib/commonmarker/compat_renderer.rb +0 -34
- data/lib/yard/commonmarker/version.rb +0 -7
- data/lib/yard/templates/helpers/markup_helper/commonmarker.rb +0 -19
- data/lib/yard-commonmarker.rb +0 -3
- data/yard-commonmarker.gemspec +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4036c6a08ecdedb80f43ce1eee365fa81c0a9dd7
|
4
|
+
data.tar.gz: d534416ccbeb71f99ea98878fa09cd6a94bfd9e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffc13e6274a567ffb227b0a7edb9344ea2a226b325f70488a2a863297e628850b3d82a89d8412c91e2d31b4bf9d27047d375761ddf2760423619c3d47ef4dbe2
|
7
|
+
data.tar.gz: a6ba6d20a6a1792f3cf47e07f9a5b737cfc62ed51c3dfb31fb149488ea9efdf4763dea75aa6010481dc17e4657697c07ba4fe1f7c25f8c470ca347ed7266eb19
|
data/.rubocop.yml
CHANGED
data/.yardopts
CHANGED
data/Gemfile
CHANGED
data/development-toolbox.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_runtime_dependency 'rspec', '~> 3.5'
|
30
30
|
spec.add_runtime_dependency 'rspec-its', '~> 1.2'
|
31
31
|
spec.add_runtime_dependency 'rubocop', '~> 0.48'
|
32
|
-
spec.add_runtime_dependency 'yard-commonmarker', '~> 0.
|
32
|
+
spec.add_runtime_dependency 'yard-commonmarker', '~> 0.3'
|
33
33
|
|
34
34
|
spec.add_development_dependency 'pry-byebug'
|
35
35
|
spec.add_development_dependency 'rspec-its'
|
data/rakelib/gem.rake
CHANGED
@@ -1,36 +1,41 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'rake/clean'
|
4
|
-
require 'bundler/gem_helper'
|
5
|
-
CLOBBER.include 'pkg'
|
6
|
-
|
7
3
|
gemspecs = FileList.new('**/*.gemspec')
|
8
|
-
gems = gemspecs.sub(/\.gemspec$/, '')
|
9
4
|
|
10
|
-
|
11
|
-
|
12
|
-
|
5
|
+
if gemspecs.size > 1
|
6
|
+
require 'rake/clean'
|
7
|
+
require 'bundler/gem_helper'
|
8
|
+
CLOBBER.include 'pkg'
|
9
|
+
|
10
|
+
gems = gemspecs.sub(/\.gemspec$/, '')
|
11
|
+
|
12
|
+
gems.each do |gem_name|
|
13
|
+
namespace gem_name do
|
14
|
+
Bundler::GemHelper.install_tasks(name: gem_name)
|
15
|
+
end
|
13
16
|
end
|
14
|
-
end
|
15
17
|
|
16
|
-
namespace :gems do
|
17
|
-
|
18
|
-
|
18
|
+
namespace :gems do
|
19
|
+
desc 'Build each gem'
|
20
|
+
task build: gems.map { |gem| :"#{gem}:build" }
|
19
21
|
|
20
|
-
|
21
|
-
|
22
|
+
desc 'Install each gem'
|
23
|
+
task install: gems.map { |gem| :"#{gem}:install" }
|
22
24
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
25
|
+
namespace :install do
|
26
|
+
desc 'Install each gem without network access'
|
27
|
+
task local: gems.map { |gem| :"#{gem}:install" }
|
28
|
+
end
|
27
29
|
|
28
|
-
|
30
|
+
desc "Create tags, build and push each gem to Rubygems\n" \
|
29
31
|
'To prevent publishing in Rubygems use `gem_push=no rake release`'
|
30
|
-
|
32
|
+
task 'release', [:remote] => gems.map { |gem| :"#{gem}:release" }
|
31
33
|
|
32
|
-
|
33
|
-
|
34
|
-
|
34
|
+
desc 'List all gems'
|
35
|
+
task :list do
|
36
|
+
gems.each { |gem| puts gem }
|
37
|
+
end
|
35
38
|
end
|
39
|
+
else
|
40
|
+
require 'bundler/gem_tasks'
|
36
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: development-toolbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Semyonov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0.
|
103
|
+
version: '0.3'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0.
|
110
|
+
version: '0.3'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: pry-byebug
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,15 +177,10 @@ files:
|
|
177
177
|
- development-toolbox.gemspec
|
178
178
|
- docker-compose.yml
|
179
179
|
- exe/development-toolbox
|
180
|
-
- lib/commonmarker/compat.rb
|
181
|
-
- lib/commonmarker/compat_renderer.rb
|
182
180
|
- lib/development-toolbox.rb
|
183
181
|
- lib/development/tasks.rb
|
184
182
|
- lib/development/toolbox.rb
|
185
183
|
- lib/development/toolbox/version.rb
|
186
|
-
- lib/yard-commonmarker.rb
|
187
|
-
- lib/yard/commonmarker/version.rb
|
188
|
-
- lib/yard/templates/helpers/markup_helper/commonmarker.rb
|
189
184
|
- rakelib/audit.rake
|
190
185
|
- rakelib/default.rake
|
191
186
|
- rakelib/doc.rake
|
@@ -193,7 +188,6 @@ files:
|
|
193
188
|
- rakelib/spec.rake
|
194
189
|
- rakelib/style.rake
|
195
190
|
- rakelib/test.rake
|
196
|
-
- yard-commonmarker.gemspec
|
197
191
|
homepage: https://alsemyonov.gitlab.com/development-toolbox/
|
198
192
|
licenses:
|
199
193
|
- MIT
|
data/lib/commonmarker/compat.rb
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'commonmarker'
|
4
|
-
|
5
|
-
module CommonMarker
|
6
|
-
# Compatibility with the RedCloth API.
|
7
|
-
# @see https://github.com/vmg/redcarpet/blob/master/lib/redcarpet/compat.rb#L1
|
8
|
-
class CompatRenderer
|
9
|
-
attr_accessor :text
|
10
|
-
|
11
|
-
GITHUB_EXTENSIONS = %i[tagfilter autolink table strikethrough].freeze
|
12
|
-
|
13
|
-
def initialize(text, exts = GITHUB_EXTENSIONS, options: :GITHUB_PRE_LANG)
|
14
|
-
@text = text
|
15
|
-
@extensions = GITHUB_EXTENSIONS | exts
|
16
|
-
@options = options
|
17
|
-
end
|
18
|
-
|
19
|
-
def to_html(*_dummy)
|
20
|
-
CommonMarker.render_html(text, options, extensions)
|
21
|
-
end
|
22
|
-
|
23
|
-
private
|
24
|
-
|
25
|
-
# @return [String]
|
26
|
-
attr_reader :text
|
27
|
-
|
28
|
-
# @return [Symbol]
|
29
|
-
attr_reader :options
|
30
|
-
|
31
|
-
# @return [<Symbol>]
|
32
|
-
attr_reader :extensions
|
33
|
-
end
|
34
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'yard'
|
4
|
-
require 'yard/templates/helpers/markup_helper'
|
5
|
-
require 'commonmarker/compat_renderer'
|
6
|
-
require 'github-markup'
|
7
|
-
require 'github/markup'
|
8
|
-
|
9
|
-
module YARD
|
10
|
-
module Templates::Helpers
|
11
|
-
# Helper methods for loading and managing markup types.
|
12
|
-
module MarkupHelper
|
13
|
-
# @see https://github.com/lsegal/yard/blob/master/lib/yard/templates/helpers/markup_helper.rb#L26
|
14
|
-
MARKUP_PROVIDERS[:markdown] <<
|
15
|
-
{ lib: :commonmarker, const: 'CommonMarker::CompatRenderer' }
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
data/lib/yard-commonmarker.rb
DELETED
data/yard-commonmarker.gemspec
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
lib = File.expand_path('../lib', __FILE__)
|
5
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
6
|
-
require 'yard/commonmarker/version'
|
7
|
-
|
8
|
-
Gem::Specification.new do |spec|
|
9
|
-
spec.name = 'yard-commonmarker'
|
10
|
-
spec.version = YARD::CommonMarker::VERSION
|
11
|
-
spec.authors = ['Alex Semyonov']
|
12
|
-
spec.email = ['alex@semyonov.us']
|
13
|
-
|
14
|
-
spec.summary = 'CommonMarker support for YARD'
|
15
|
-
spec.description = 'Efficient Developer tools'
|
16
|
-
spec.homepage = 'https://alsemyonov.gitlab.com/development-toolbox/'
|
17
|
-
spec.license = 'MIT'
|
18
|
-
|
19
|
-
spec.files = `git ls-files lib/{yard,commonmarker} -z`.split("\x0")
|
20
|
-
.reject do |f|
|
21
|
-
f.match(%r{^(test|spec|features)/})
|
22
|
-
end
|
23
|
-
spec.bindir = 'exe'
|
24
|
-
spec.executables = spec.files.grep(%r{^exe/yard}) { |f| File.basename(f) }
|
25
|
-
spec.require_paths = ['lib']
|
26
|
-
|
27
|
-
spec.add_runtime_dependency 'commonmarker', '~> 0.14'
|
28
|
-
spec.add_runtime_dependency 'github-markup', '~> 1.6'
|
29
|
-
spec.add_runtime_dependency 'yard', '~> 0.9'
|
30
|
-
end
|