development-toolbox 0.2.0 → 0.3.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: c10a9e633173c4c4aaaa8da134ffd1489db061ce
4
- data.tar.gz: 4f84850071b231207ac8bacf02c9057918f07f9a
3
+ metadata.gz: cf40a0be99f94e895ebb901d21c0bef16c6a98dc
4
+ data.tar.gz: 3944c9838d6331b5617f8bb87de051ecf79dda8f
5
5
  SHA512:
6
- metadata.gz: 3cf0ab05d0508c591c32091bb52cafdd1f3da370b4d7a2a8627cef591868eb5ecaf67733bb55da474df136849b986359b044c94ee2d9c61411036241f40f8b7a
7
- data.tar.gz: c865f099320e033e21246068c8276e75448deeca3a376b2db8f10acb98479e16000ae405597b9d8a7908821803190e6c5590b271bf4810d38847deccbf1234a7
6
+ metadata.gz: 3c1027e0f247b33a7057320f155e075ca82ce446fd83b2d6c2184c55818709f3a7f86e3cbfa4d66d78291b8912da803f2da8eabad57f2301a14472bdb8d0b653
7
+ data.tar.gz: a72918a112dc16f3c89220843314f6c83e319e3f8d77e79ecb6d49ac2b60c16ff9e3b53a7a7c3670ec14f82bc725ec9f0aa495d69147dab3b4aa7620a58338fc
data/.rspec CHANGED
@@ -1,2 +1,3 @@
1
+ --require spec_helper
1
2
  --format documentation
2
3
  --color
data/.rubocop.yml CHANGED
@@ -12,4 +12,10 @@ AllCops:
12
12
  Style/AsciiComments:
13
13
  Enabled: false
14
14
 
15
+ # Ignore convenient files that helps load
16
+ Style/FileName:
17
+ Exclude:
18
+ - 'lib/development-toolbox.rb'
19
+ - 'lib/yard-commonmarker.rb'
20
+
15
21
  inherit_from: .rubocop_todo.yml
data/.rubocop_todo.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2017-04-07 03:55:03 +0300 using RuboCop version 0.48.1.
3
+ # on 2017-05-07 05:37:43 +0300 using RuboCop version 0.48.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
data/.yardopts CHANGED
@@ -1,4 +1,4 @@
1
1
  --title='Development::Toolbox'
2
- --load=lib/yard/templates/helpers/markup_helper/commonmarker.rb
2
+ --plugin yard-commonmarker
3
3
  --markup-provider=commonmarker
4
4
  --markup=markdown
data/Gemfile CHANGED
@@ -3,4 +3,7 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in development-toolbox.gemspec
6
- gemspec
6
+ path '.' do
7
+ gem 'development-toolbox'
8
+ gem 'yard-commonmarker'
9
+ end
data/Rakefile CHANGED
@@ -1,5 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bundler/gem_tasks'
4
-
5
3
  task release: %i[test doc]
@@ -25,10 +25,12 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_runtime_dependency 'bundler', '~> 1.13'
27
27
  spec.add_runtime_dependency 'bundler-audit', '~> 0.5'
28
- spec.add_runtime_dependency 'commonmarker', '~> 0.14'
29
- spec.add_runtime_dependency 'github-markup', '~> 1.6'
30
28
  spec.add_runtime_dependency 'rake', '~> 12.0'
31
29
  spec.add_runtime_dependency 'rspec', '~> 3.5'
30
+ spec.add_runtime_dependency 'rspec-its', '~> 1.2'
32
31
  spec.add_runtime_dependency 'rubocop', '~> 0.48'
33
- spec.add_runtime_dependency 'yard', '~> 0.9'
32
+ spec.add_runtime_dependency 'yard-commonmarker', '~> 0.1'
33
+
34
+ spec.add_development_dependency 'pry-byebug'
35
+ spec.add_development_dependency 'rspec-its'
34
36
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Development
4
4
  module Toolbox
5
- VERSION = '0.2.0'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'development/toolbox'
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module YARD
4
+ module CommonMarker
5
+ VERSION = '0.1.0'
6
+ end
7
+ end
@@ -6,6 +6,14 @@ require 'commonmarker/compat_renderer'
6
6
  require 'github-markup'
7
7
  require 'github/markup'
8
8
 
9
- # @see https://github.com/lsegal/yard/blob/master/lib/yard/templates/helpers/markup_helper.rb#L26
10
- YARD::Templates::Helpers::MarkupHelper::MARKUP_PROVIDERS[:markdown] <<
11
- { lib: :commonmarker, const: 'CommonMarker::CompatRenderer' }
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
+
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'yard/templates/helpers/markup_helper/commonmarker'
data/rakelib/audit.rake CHANGED
@@ -8,8 +8,15 @@ namespace :audit do
8
8
  Bundler::Audit::CLI.start %w[update]
9
9
  end
10
10
 
11
+ desc 'Show the version of ruby-advisory-db'
12
+ task :version do
13
+ Bundler::Audit::CLI.start %w[version]
14
+ end
15
+
11
16
  desc 'Check bundle for vulnerable dependencies'
12
17
  task test: :update do
13
18
  Bundler::Audit::CLI.start %w[check]
14
19
  end
15
20
  end
21
+
22
+ task audit: %i[audit:test]
data/rakelib/default.rake CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  desc 'Test and build project'
4
- task default: %i[build test]
4
+ task default: %i[test doc gems:build]
data/rakelib/gem.rake ADDED
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rake/clean'
4
+ require 'bundler/gem_helper'
5
+ CLOBBER.include 'pkg'
6
+
7
+ gemspecs = FileList.new('**/*.gemspec')
8
+ gems = gemspecs.sub(/\.gemspec$/, '')
9
+
10
+ gems.each do |gem_name|
11
+ namespace gem_name do
12
+ Bundler::GemHelper.install_tasks(name: gem_name)
13
+ end
14
+ end
15
+
16
+ namespace :gems do
17
+ desc 'Build each gem'
18
+ task build: gems.map { |gem| :"#{gem}:build" }
19
+
20
+ desc 'Install each gem'
21
+ task install: gems.map { |gem| :"#{gem}:install" }
22
+
23
+ namespace :install do
24
+ desc 'Install each gem without network access'
25
+ task local: gems.map { |gem| :"#{gem}:install" }
26
+ end
27
+
28
+ desc "Create tags, build and push each gem to Rubygems\n" \
29
+ 'To prevent publishing in Rubygems use `gem_push=no rake release`'
30
+ task 'release', [:remote] => gems.map { |gem| :"#{gem}:release" }
31
+
32
+ desc 'List all gems'
33
+ task :list do
34
+ gems.each { |gem| puts gem }
35
+ end
36
+ end
@@ -0,0 +1,30 @@
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
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.2.0
4
+ version: 0.3.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-04-16 00:00:00.000000000 Z
11
+ date: 2017-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -39,89 +39,103 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.5'
41
41
  - !ruby/object:Gem::Dependency
42
- name: commonmarker
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.14'
47
+ version: '12.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.14'
54
+ version: '12.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: github-markup
56
+ name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.6'
61
+ version: '3.5'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.6'
68
+ version: '3.5'
69
69
  - !ruby/object:Gem::Dependency
70
- name: rake
70
+ name: rspec-its
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '12.0'
75
+ version: '1.2'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '12.0'
82
+ version: '1.2'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec
84
+ name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.5'
89
+ version: '0.48'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '3.5'
96
+ version: '0.48'
97
97
  - !ruby/object:Gem::Dependency
98
- name: rubocop
98
+ name: yard-commonmarker
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.48'
103
+ version: '0.1'
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.48'
110
+ version: '0.1'
111
111
  - !ruby/object:Gem::Dependency
112
- name: yard
112
+ name: pry-byebug
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '0.9'
118
- type: :runtime
117
+ version: '0'
118
+ type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rspec-its
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
123
137
  - !ruby/object:Gem::Version
124
- version: '0.9'
138
+ version: '0'
125
139
  description: Efficient Developer tools
126
140
  email:
127
141
  - alex@semyonov.us
@@ -165,16 +179,21 @@ files:
165
179
  - exe/development-toolbox
166
180
  - lib/commonmarker/compat.rb
167
181
  - lib/commonmarker/compat_renderer.rb
182
+ - lib/development-toolbox.rb
168
183
  - lib/development/tasks.rb
169
184
  - lib/development/toolbox.rb
170
185
  - lib/development/toolbox/version.rb
186
+ - lib/yard-commonmarker.rb
187
+ - lib/yard/commonmarker/version.rb
171
188
  - lib/yard/templates/helpers/markup_helper/commonmarker.rb
172
189
  - rakelib/audit.rake
173
190
  - rakelib/default.rake
174
191
  - rakelib/doc.rake
192
+ - rakelib/gem.rake
175
193
  - rakelib/spec.rake
176
194
  - rakelib/style.rake
177
195
  - rakelib/test.rake
196
+ - yard-commonmarker.gemspec
178
197
  homepage: https://alsemyonov.gitlab.com/development-toolbox/
179
198
  licenses:
180
199
  - MIT