readmeExtractor 0.1.4 → 0.1.6

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
  SHA256:
3
- metadata.gz: abe1eec33917a48bea92ce1eaec0bba75306af70273d917e335b5b56e580fd2e
4
- data.tar.gz: '086e1ac026b5417984ae236709b56a20b31926bb452137fe405d79ce58ee9d01'
3
+ metadata.gz: '04296589cd4760782d477b7baa4905c56e93d6aebb0ee31996f7c27b502304b6'
4
+ data.tar.gz: 89d07a6cb62dc5ed649e8c5ff2692c56751e38b593a7d4da00186860d3991f02
5
5
  SHA512:
6
- metadata.gz: c8342f04f0cbc1527f8beb7805a766cb127960b245d62ed9ed90dba7a07196c706729cfc65acb18fb42bd8b4728cd05e4333383b80f5e15935089bf95b1d789a
7
- data.tar.gz: a12ffc6db89c37de43c8d26c4d3f87f9dc34318aaa91f461ab5662978bfac8d958413bd1d845b5b6aab3197055d946cf8372ee5a124b78103bce3d5a7c2d0bfb
6
+ metadata.gz: eb452189e1eafe43562b27d21cdecb1108753ff8d4916aae5609a8bc5a26c5ee33ce8f429412012308a1a193d781567678a6a3551ab6c893a00f436b420201ac
7
+ data.tar.gz: c0d7b01c49013e31968f4ea1822346f0afc1592c46b39614d97c3d9fdb1cf40721d191cec26a9f093c217e7b2eebf0ed2cbd32b7b68cc76c3435380462cf68e0
data/Dockerfile CHANGED
@@ -2,4 +2,7 @@ ARG RUBY_VERSION=3.3.0
2
2
  FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
3
3
  RUN gem install readmeExtractor
4
4
  RUN mkdir -p /data/rubygems
5
- CMD ["readmeExtractor", "start", "--from", "/data/rubygems/gems", "--to", "/data/rubygems/readmes"]
5
+ COPY docker/entrypoint.sh /
6
+ RUN chmod +x /entrypoint.sh
7
+ ENTRYPOINT ["/entrypoint.sh"]
8
+ CMD ["tail", "-f", "/dev/null"]
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+ gem update readmeExtractor
3
+ readmeExtractor start --from /data/rubygems/gems --to /data/rubygems/readmes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ReadmeExtractor
4
- VERSION = '0.1.4'
4
+ VERSION = '0.1.6'
5
5
  end
@@ -16,6 +16,7 @@ class ReadmeExtractor
16
16
  def perform(from, to)
17
17
  gem_list = gem_list_prepare(from)
18
18
  gem_list.each_value do |gem_info|
19
+ puts "Extracting #{gem_info[:gem_path]}..."
19
20
  extract_from_gem_file(gem_info[:gem_path], to, gem_info[:version])
20
21
  end
21
22
  end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'lib/readmeExtractor/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'readmeExtractor'
7
+ spec.version = ReadmeExtractor::VERSION
8
+ spec.authors = ['Viktor C']
9
+ spec.email = ['vchekryzhov@ya.ru']
10
+
11
+ spec.summary = 'Simple gem to extract md and rdoc files from .gem'
12
+ spec.description = 'Simple gem to extract md and rdoc files from .gem'
13
+ spec.license = 'MIT'
14
+ spec.required_ruby_version = '>= 3.3.0'
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(__dir__) do
19
+ %x(git ls-files -z).split("\x0").reject do |f|
20
+ (File.expand_path(f) == __FILE__) ||
21
+ f.start_with?(*%w[bin/ test/ spec/ features/ .git .github appveyor Gemfile])
22
+ end
23
+ end
24
+ spec.bindir = 'bin'
25
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
26
+ spec.require_paths = ['lib']
27
+ spec.executables << 'readmeExtractor'
28
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: readmeExtractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Viktor C
@@ -28,8 +28,10 @@ files:
28
28
  - README.md
29
29
  - Rakefile
30
30
  - bin/readmeExtractor
31
+ - docker/entrypoint.sh
31
32
  - lib/readmeExtractor.rb
32
33
  - lib/readmeExtractor/version.rb
34
+ - readmeExtractor.gemspec
33
35
  homepage:
34
36
  licenses:
35
37
  - MIT
@@ -49,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
51
  - !ruby/object:Gem::Version
50
52
  version: '0'
51
53
  requirements: []
52
- rubygems_version: 3.5.6
54
+ rubygems_version: 3.5.3
53
55
  signing_key:
54
56
  specification_version: 4
55
57
  summary: Simple gem to extract md and rdoc files from .gem