Skip to content

Commit

Permalink
Merge pull request #19 from lyrasis/gemspec-fix-exe
Browse files Browse the repository at this point in the history
Fix gemspec exe cfg and add bin/console for irb
  • Loading branch information
mark-cooper authored Apr 18, 2024
2 parents 6fab50c + f0ab967 commit e8fe345
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 2.7
ruby-version: 3.2.2
rubygems: latest

- name: Release Gem
Expand Down
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ experiment away.
To run the tests:

```bash
bundle exec rake
bundle exec rspec
```

## Publishing
Expand Down
3 changes: 2 additions & 1 deletion archivesspace-client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ Gem::Specification.new do |spec|
spec.homepage = ""
spec.license = "MIT"

spec.bindir = "exe"
spec.executables = %w[asclient]
spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]

spec.add_development_dependency "aruba", "~> 2.0"
Expand Down
21 changes: 21 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

require "bundler/setup"
require "archivesspace/client"

config = ArchivesSpace::Configuration.new(
{
base_uri: "https://test.archivesspace.org/staff/api",
base_repo: "",
username: "admin",
password: "admin",
page_size: 50,
throttle: 0,
verify_ssl: false
}
)
@client = ArchivesSpace::Client.new(config).login

require "irb"
IRB.start(__FILE__)
2 changes: 1 addition & 1 deletion examples/export.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# official sandbox
config = ArchivesSpace::Configuration.new(
{
base_uri: "http://test.archivesspace.org/staff/api",
base_uri: "https://test.archivesspace.org/staff/api",
base_repo: "",
username: "admin",
password: "admin",
Expand Down
2 changes: 1 addition & 1 deletion examples/repo_and_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# official sandbox
config = ArchivesSpace::Configuration.new(
{
base_uri: "http://sandbox.archivesspace.org/api",
base_uri: "https://sandbox.archivesspace.org/api",
base_repo: "",
username: "admin",
password: "admin",
Expand Down
2 changes: 1 addition & 1 deletion examples/test_connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# official sandbox
config = ArchivesSpace::Configuration.new(
{
base_uri: "http://sandbox.archivesspace.org/api",
base_uri: "https://sandbox.archivesspace.org/api",
base_repo: "",
username: "admin",
password: "admin",
Expand Down
2 changes: 1 addition & 1 deletion examples/user_groups.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# official sandbox
config = ArchivesSpace::Configuration.new(
{
base_uri: "http://sandbox.archivesspace.org/api",
base_uri: "https://sandbox.archivesspace.org/api",
base_repo: "",
username: "admin",
password: "admin",
Expand Down

0 comments on commit e8fe345

Please sign in to comment.