librarianp 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +32 -0
- data/.github/workflows/test.yml +29 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +0 -2
- data/VERSION +1 -1
- data/lib/librarian/dsl.rb +2 -2
- data/librarianp.gemspec +1 -1
- data/spec/unit/lockfile/parser_spec.rb +1 -2
- metadata +9 -6
- data/.travis.yml +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '04836272b4b555a30bf10f2650b9fffe3345cbcebe2571b2abfb6dfcf2a0386c'
|
4
|
+
data.tar.gz: cfdf93c57b0e642752b522ed10023f3d34cdddc8332124d766951e356c786ea3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c04b6ea8c05639eba4ecbb67eb24800c1061b9c3fcb57046b73d131c4f9fb0618432325815be4e361697eeac23c5a45de8e33ce77ecc6873feb402397cd9c164
|
7
|
+
data.tar.gz: 4f93488d213e11c2d64140df7b01b5fb557ed14d5a11f6745213c0f468f9d4502c4b65f2eb88a207f01fcdac73c46e22b8b1c3b7a01a3350257e5bcb2014bf66
|
@@ -0,0 +1,32 @@
|
|
1
|
+
name: Release
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- '*'
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
release:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
if: github.repository_owner == 'voxpupuli'
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- name: Install Ruby 3.0
|
15
|
+
uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: '3.0'
|
18
|
+
env:
|
19
|
+
BUNDLE_WITHOUT: release
|
20
|
+
- name: Build gem
|
21
|
+
run: gem build *.gemspec
|
22
|
+
- name: Publish gem to rubygems.org
|
23
|
+
run: gem push *.gem
|
24
|
+
env:
|
25
|
+
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
|
26
|
+
- name: Setup GitHub packages access
|
27
|
+
run: |
|
28
|
+
mkdir -p ~/.gem
|
29
|
+
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
|
30
|
+
chmod 0600 ~/.gem/credentials
|
31
|
+
- name: Publish gem to GitHub packages
|
32
|
+
run: gem push --key github --host https://rubygems.pkg.github.com/${{ github.repository_owner }} *.gem
|
@@ -0,0 +1,29 @@
|
|
1
|
+
name: Test
|
2
|
+
|
3
|
+
on:
|
4
|
+
- pull_request
|
5
|
+
- push
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
test:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
strategy:
|
11
|
+
fail-fast: false
|
12
|
+
matrix:
|
13
|
+
ruby:
|
14
|
+
- "2.4"
|
15
|
+
- "2.5"
|
16
|
+
- "2.6"
|
17
|
+
- "2.7"
|
18
|
+
- "3.0"
|
19
|
+
steps:
|
20
|
+
- uses: actions/checkout@v2
|
21
|
+
- name: Install Ruby ${{ matrix.ruby }}
|
22
|
+
uses: ruby/setup-ruby@v1
|
23
|
+
with:
|
24
|
+
ruby-version: ${{ matrix.ruby }}
|
25
|
+
bundler-cache: true
|
26
|
+
- name: Run tests
|
27
|
+
run: bundle exec rake spec
|
28
|
+
- name: Verify gem builds
|
29
|
+
run: gem build *.gemspec
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.0
|
data/lib/librarian/dsl.rb
CHANGED
@@ -79,14 +79,14 @@ module Librarian
|
|
79
79
|
Receiver.new(target)
|
80
80
|
end
|
81
81
|
|
82
|
-
def run(specfile = nil, sources = [])
|
82
|
+
def run(specfile = nil, sources = [], &block)
|
83
83
|
specfile, sources = nil, specfile if specfile.kind_of?(Array) && sources.empty?
|
84
84
|
|
85
85
|
Target.new(self).tap do |target|
|
86
86
|
target.precache_sources(sources)
|
87
87
|
debug_named_source_cache("Pre-Cached Sources", target)
|
88
88
|
|
89
|
-
specfile ||=
|
89
|
+
specfile ||= block if block_given?
|
90
90
|
|
91
91
|
if specfile.kind_of?(Pathname) and !File.exists?(specfile)
|
92
92
|
debug { "Specfile #{specfile} not found, using defaults" } unless specfile.nil?
|
data/librarianp.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
|
-
gem.required_ruby_version = '
|
20
|
+
gem.required_ruby_version = '>= 2.4', '< 4'
|
21
21
|
|
22
22
|
gem.add_dependency "thor", "~> 1.0"
|
23
23
|
|
@@ -57,8 +57,7 @@ module Librarian
|
|
57
57
|
it "should give a dependency with the expected requirement" do
|
58
58
|
dependency = resolution.dependencies.first
|
59
59
|
|
60
|
-
|
61
|
-
expect(dependency.requirement.to_s).to eq "~> 1.1, != 1.2.6"
|
60
|
+
expect(dependency.requirement).to eq Librarian::Dependency::Requirement.new(["~> 1.1", "!= 1.2.6"])
|
62
61
|
end
|
63
62
|
|
64
63
|
it "should give a dependency wth the expected source" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: librarianp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jay Feldblum
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -89,9 +89,10 @@ executables: []
|
|
89
89
|
extensions: []
|
90
90
|
extra_rdoc_files: []
|
91
91
|
files:
|
92
|
+
- ".github/workflows/release.yml"
|
93
|
+
- ".github/workflows/test.yml"
|
92
94
|
- ".gitignore"
|
93
95
|
- ".rspec"
|
94
|
-
- ".travis.yml"
|
95
96
|
- CHANGELOG.md
|
96
97
|
- Gemfile
|
97
98
|
- LICENSE.txt
|
@@ -199,17 +200,19 @@ require_paths:
|
|
199
200
|
- lib
|
200
201
|
required_ruby_version: !ruby/object:Gem::Requirement
|
201
202
|
requirements:
|
202
|
-
- - "
|
203
|
+
- - ">="
|
203
204
|
- !ruby/object:Gem::Version
|
204
205
|
version: '2.4'
|
206
|
+
- - "<"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '4'
|
205
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
210
|
requirements:
|
207
211
|
- - ">="
|
208
212
|
- !ruby/object:Gem::Version
|
209
213
|
version: '0'
|
210
214
|
requirements: []
|
211
|
-
|
212
|
-
rubygems_version: 2.7.7
|
215
|
+
rubygems_version: 3.2.22
|
213
216
|
signing_key:
|
214
217
|
specification_version: 4
|
215
218
|
summary: A Framework for Bundlers.
|
data/.travis.yml
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
rvm:
|
3
|
-
- '2.4'
|
4
|
-
- '2.5'
|
5
|
-
- '2.6'
|
6
|
-
deploy:
|
7
|
-
provider: rubygems
|
8
|
-
api_key:
|
9
|
-
secure: "HkdoYaLek2mCT+e7pW0pHMLiIuikUMihfqzspltzmN673HBvMCMZqk4sIm4b3Zi+RMtNTb4dnMxxhehKyyzF88UIRHqV9OUPT3LQLE/BgHThxLD1+CSbVS1SZKY7UfTIcqW3/otORBCI5YAXiycEnRFIe2R/S3n0c/gD9dBcobg="
|
10
|
-
gem: librarianp
|
11
|
-
on:
|
12
|
-
tags: true
|
13
|
-
rvm: '2.6'
|