readmeExtractor 0.1.3 → 0.1.5

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: e295e43c02134341f99e6df0d7962ca7c898df575fd87962d77e934b17b42d7d
4
- data.tar.gz: 0d3360d2917b981d560724a4fc119672fa4efb7f12bc380a8f65d63d5dfc3628
3
+ metadata.gz: 823094bbac5bf3a47db84fa9cf040fa57d402f6eca2dc15dd7747f49e1c1d58a
4
+ data.tar.gz: bdc5e081d1b8e644bd57651a45a180fbd7501aac20b39b2f89c1e7e0c7269225
5
5
  SHA512:
6
- metadata.gz: d3fac7d4e4284f665a317d9bac7584f4c49549eedfeb925d859465842d37ae015d960b6f800f897953e67c6c1870434618b483449f571604616da7cd07e87123
7
- data.tar.gz: 538724bd1277ba9bab27e5b4060891b2bcf4c2e7a7f3422bc785affdadf86fac3aa750e964b0c83cf866eedc3de259445f0780dbf416d0b8407b9f3a3dd96267
6
+ metadata.gz: 28f41764d1ba5abc1dd81f0d5d04a8428997173a2715385c0c97bc5c71fe96211eb4e8a9655a12f9b192cd0581c1b004b2af323daaf50b85ba511d266b031970
7
+ data.tar.gz: '09ac706a7b3ee6c5b7a4073942d848b2e7bb07d215ca95adea1e8458e920d6dabb46fd45986b52ec333bf38268c7d3d0b8de8d9d51a2229b8d3d952d59752772'
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.3'
4
+ VERSION = '0.1.5'
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.3
4
+ version: 0.1.5
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