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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf40a0be99f94e895ebb901d21c0bef16c6a98dc
4
- data.tar.gz: 3944c9838d6331b5617f8bb87de051ecf79dda8f
3
+ metadata.gz: 4036c6a08ecdedb80f43ce1eee365fa81c0a9dd7
4
+ data.tar.gz: d534416ccbeb71f99ea98878fa09cd6a94bfd9e0
5
5
  SHA512:
6
- metadata.gz: 3c1027e0f247b33a7057320f155e075ca82ce446fd83b2d6c2184c55818709f3a7f86e3cbfa4d66d78291b8912da803f2da8eabad57f2301a14472bdb8d0b653
7
- data.tar.gz: a72918a112dc16f3c89220843314f6c83e319e3f8d77e79ecb6d49ac2b60c16ff9e3b53a7a7c3670ec14f82bc725ec9f0aa495d69147dab3b4aa7620a58338fc
6
+ metadata.gz: ffc13e6274a567ffb227b0a7edb9344ea2a226b325f70488a2a863297e628850b3d82a89d8412c91e2d31b4bf9d27047d375761ddf2760423619c3d47ef4dbe2
7
+ data.tar.gz: a6ba6d20a6a1792f3cf47e07f9a5b737cfc62ed51c3dfb31fb149488ea9efdf4763dea75aa6010481dc17e4657697c07ba4fe1f7c25f8c470ca347ed7266eb19
data/.rubocop.yml CHANGED
@@ -16,6 +16,5 @@ Style/AsciiComments:
16
16
  Style/FileName:
17
17
  Exclude:
18
18
  - 'lib/development-toolbox.rb'
19
- - 'lib/yard-commonmarker.rb'
20
19
 
21
20
  inherit_from: .rubocop_todo.yml
data/.yardopts CHANGED
@@ -2,3 +2,4 @@
2
2
  --plugin yard-commonmarker
3
3
  --markup-provider=commonmarker
4
4
  --markup=markdown
5
+ --readme README.md
data/Gemfile CHANGED
@@ -3,7 +3,4 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in development-toolbox.gemspec
6
- path '.' do
7
- gem 'development-toolbox'
8
- gem 'yard-commonmarker'
9
- end
6
+ gemspec
@@ -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.1'
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'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Development
4
4
  module Toolbox
5
- VERSION = '0.3.0'
5
+ VERSION = '0.4.0'
6
6
  end
7
7
  end
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
- gems.each do |gem_name|
11
- namespace gem_name do
12
- Bundler::GemHelper.install_tasks(name: gem_name)
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
- desc 'Build each gem'
18
- task build: gems.map { |gem| :"#{gem}:build" }
18
+ namespace :gems do
19
+ desc 'Build each gem'
20
+ task build: gems.map { |gem| :"#{gem}:build" }
19
21
 
20
- desc 'Install each gem'
21
- task install: gems.map { |gem| :"#{gem}:install" }
22
+ desc 'Install each gem'
23
+ task install: gems.map { |gem| :"#{gem}:install" }
22
24
 
23
- namespace :install do
24
- desc 'Install each gem without network access'
25
- task local: gems.map { |gem| :"#{gem}:install" }
26
- end
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
- desc "Create tags, build and push each gem to Rubygems\n" \
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
- task 'release', [:remote] => gems.map { |gem| :"#{gem}:release" }
32
+ task 'release', [:remote] => gems.map { |gem| :"#{gem}:release" }
31
33
 
32
- desc 'List all gems'
33
- task :list do
34
- gems.each { |gem| puts gem }
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.3.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-10 00:00:00.000000000 Z
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.1'
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.1'
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
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'commonmarker/compat_renderer'
4
-
5
- Markdown = CommonMarker::CompatRenderer unless defined? Markdown
@@ -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,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module YARD
4
- module CommonMarker
5
- VERSION = '0.1.0'
6
- end
7
- 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
-
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'yard/templates/helpers/markup_helper/commonmarker'
@@ -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