microgem 1.0.21 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c57cb0c1e35f0053786a42646919411189422cd199ac75f91139d661f926f865
4
- data.tar.gz: d6f7035aa42c3a75afd7c127baa921e5ec7132fbf0ef3ae399cf2f792fa15486
3
+ metadata.gz: d1f5559569c8af1a6e0ef945c58fcea28f16a5627adceea798ccf39edd91bda2
4
+ data.tar.gz: 710a1e38d13cb392aa86688bd6413b5a63c44158810f999dcb2e925e032f2d79
5
5
  SHA512:
6
- metadata.gz: 36c8f6b9f8d4f379f78b8fe8f69a11f690cdbaf114c14818dc474f6133512cec604572f6ced2ea640504d873257442dc0611809d8013a1226f2b347d07ddc81b
7
- data.tar.gz: 1dd030c7253141f31f0c366965ad3a0726912d3606f26be65bec2e308032f643a9fab494b5eef201673189348d54e3153456892b9f079751cfd65b1e7f1b76cc
6
+ metadata.gz: 88f8809a1058d1ad13e01c38bd8ad460c6ff9d5d72029733cb08ba1d2c1bfae9ca211240442c26da7e13923b996231e7d1c88d64db4f0b610ddf2c516ded01fb
7
+ data.tar.gz: 72865357b87b3065aa0b325b7ea693a832a928daceb4036a8bdedf75db557fd19f155e09b6630329887dc833d344ca97480999a53e4de6820f1d9ac6097cb663
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  ## CHANGELOG
2
2
 
3
+ ### 1.1.1
4
+
5
+ * Update CI Rubies to late 2021
6
+ * Add MFA requirement to gemspec
7
+
8
+ ### 1.1.0
9
+
10
+ * Move from Travis CI to GitHub CI
11
+ * Rakefile: Make spec runner windows compatible
12
+
13
+ ### 1.0.23
14
+
15
+ * travis.yml: Specify TruffleRuby at 20.2.0 and remove it from allowed failed
16
+ * travis.yml: Update JRuby to 9.2.11.1
17
+
18
+ ### 1.0.22
19
+
20
+ * travis.yml: Update JRuby to 9.2.11.0
21
+ * travis.yml: Don't test 2.3 anymore
22
+
3
23
  ### 1.0.21
4
24
 
5
25
  * Use frozen strings in generated Ruby files
data/MIT-LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015-2020 Jan Lelis
1
+ Copyright (c) 2015-2021 Jan Lelis
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -69,7 +69,7 @@ class Microgem::Generator < Thor::Group
69
69
  def path
70
70
  name.gsub(/-[_-]*(?![_-]|$)/){ '/' }
71
71
  end
72
-
72
+
73
73
  def spec_name
74
74
  name.gsub(/-[_-]*(?![_-]|$)/){ '_' }
75
75
  end
@@ -99,10 +99,10 @@ class Microgem::Generator < Thor::Group
99
99
  end
100
100
 
101
101
  def generate
102
- directory ".", name, exclude_pattern: %r<_spec.rb|Gemfile|\.travis\.yml>
102
+ directory ".", name, exclude_pattern: %r<_spec.rb|Gemfile|\.github>
103
103
  if options[:specs]
104
104
  directory "spec", name + "/spec"
105
- template ".travis.yml", name + "/.travis.yml"
105
+ directory ".github", name + "/.github"
106
106
  copy_file "Gemfile", name + "/Gemfile"
107
107
  end
108
108
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Microgem
4
- VERSION = "1.0.21"
4
+ VERSION = "1.1.1"
5
5
  end
data/microgem.gemspec CHANGED
@@ -12,9 +12,10 @@ Gem::Specification.new do |gem|
12
12
  gem.homepage = "https://github.com/janlelis/microgem"
13
13
  gem.license = "MIT"
14
14
 
15
- gem.files = Dir["{**/}{.*,*}"].select{ |path| File.file?(path) && path !~ /^pkg/ }
15
+ gem.files = Dir["{**/,template/.github/**/}{.*,*}"].select{ |path| File.file?(path) && path !~ /^pkg/ }
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
+ gem.metadata = { "rubygems_mfa_required" => "true" }
19
20
  gem.add_runtime_dependency 'thor', '~> 0.19.1'
20
21
  end
@@ -16,6 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
+ gem.metadata = { "rubygems_mfa_required" => "true" }
19
20
 
20
21
  gem.required_ruby_version = "~> 2.0"
21
22
  end
@@ -0,0 +1,52 @@
1
+ name: Test
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ test:
7
+ name: Ruby ${{ matrix.ruby }} (${{ matrix.os }})
8
+ if: "!contains(github.event.head_commit.message, '[skip ci]')"
9
+ strategy:
10
+ matrix:
11
+ ruby:
12
+ - 3.1
13
+ - 3.0
14
+ - 2.7
15
+ - 2.6
16
+ - jruby-9.3.2
17
+ - truffleruby-21.3.0
18
+ os:
19
+ - ubuntu-latest
20
+ # - macos-latest
21
+ runs-on: ${{matrix.os}}
22
+ steps:
23
+ - uses: actions/checkout@v2
24
+ - name: Set up Ruby
25
+ uses: ruby/setup-ruby@v1
26
+ with:
27
+ ruby-version: ${{matrix.ruby}}
28
+ bundler-cache: true
29
+ - name: Run tests
30
+ run: bundle exec rake
31
+
32
+ test-windows:
33
+ name: Ruby ${{ matrix.ruby }} (windows-latest)
34
+ if: "!contains(github.event.head_commit.message, '[skip ci]')"
35
+ strategy:
36
+ matrix:
37
+ ruby:
38
+ - 3.1
39
+ - 3.0
40
+ - 2.7
41
+ - 2.6
42
+ runs-on: windows-latest
43
+ steps:
44
+ - uses: actions/checkout@v2
45
+ - name: Set up Ruby
46
+ uses: ruby/setup-ruby@v1
47
+ with:
48
+ ruby-version: ${{matrix.ruby}}
49
+ bundler-cache: true
50
+ # - run: cinst ansicon
51
+ - name: Run tests
52
+ run: bundle exec rake
@@ -1,4 +1,4 @@
1
- # <%= name %> [![[version]](https://badge.fury.io/rb/<%= name %>.svg)](https://badge.fury.io/rb/<%= name %>) [![[travis]](https://travis-ci.org/<%= settings['github'] %>/<%= github_name %>.svg)](https://travis-ci.org/<%= settings['github'] %>/<%= github_name %>)
1
+ # <%= name %> [![[version]](https://badge.fury.io/rb/<%= name %>.svg)](https://badge.fury.io/rb/<%= name %>) [![[ci]](https://github.com/<%= settings['github'] %>/<%= github_name %>/workflows/Test/badge.svg)](https://github.com/<%= settings['github'] %>/<%= github_name %>/actions?query=workflow%3ATest)
2
2
 
3
3
  <%= info %>
4
4
 
data/template/Rakefile.tt CHANGED
@@ -32,7 +32,11 @@ end
32
32
 
33
33
  desc "#{gemspec.name} | Spec"
34
34
  task :spec do
35
- sh "for file in spec/*_spec.rb; do ruby $file; done"
35
+ if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
36
+ sh "for %f in (spec/\*.rb) do ruby spec/%f"
37
+ else
38
+ sh "for file in spec/*.rb; do ruby $file; done"
39
+ end
36
40
  end
37
41
  task default: :spec
38
42
  <% end %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: microgem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.21
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-02 00:00:00.000000000 Z
11
+ date: 2021-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -44,8 +44,8 @@ files:
44
44
  - lib/microgem/version.rb
45
45
  - microgem.gemspec
46
46
  - template/%name%.gemspec.tt
47
+ - template/.github/workflows/test.yml.tt
47
48
  - template/.gitignore
48
- - template/.travis.yml.tt
49
49
  - template/CHANGELOG.md.tt
50
50
  - template/CODE_OF_CONDUCT.md.tt
51
51
  - template/Gemfile
@@ -58,7 +58,8 @@ files:
58
58
  homepage: https://github.com/janlelis/microgem
59
59
  licenses:
60
60
  - MIT
61
- metadata: {}
61
+ metadata:
62
+ rubygems_mfa_required: 'true'
62
63
  post_install_message:
63
64
  rdoc_options: []
64
65
  require_paths:
@@ -74,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
75
  - !ruby/object:Gem::Version
75
76
  version: '0'
76
77
  requirements: []
77
- rubygems_version: 3.1.2
78
+ rubygems_version: 3.2.22
78
79
  signing_key:
79
80
  specification_version: 4
80
81
  summary: Generates new micro gems.
@@ -1,20 +0,0 @@
1
- sudo: false
2
- language: ruby
3
-
4
- rvm:
5
- - 2.7
6
- - 2.6
7
- - 2.5
8
- - 2.4
9
- - 2.3
10
- - ruby-head
11
- - jruby-9.2.9.0
12
- - truffleruby
13
-
14
- matrix:
15
- allow_failures:
16
- - rvm: 2.3
17
- - rvm: ruby-head
18
- - rvm: jruby-2.9.2.0
19
- - rvm: truffleruby
20
- # fast_finish: true