Missed some renamings

This commit is contained in:
Dan Milne
2025-01-21 08:40:10 +11:00
parent 5e153bfb86
commit 0c37362a8a
10 changed files with 35 additions and 17 deletions

View File

@@ -1,5 +1,9 @@
## [Unreleased]
## [0.2.0] - 2025-01-21
- Rename to from Picop to Picopackage
## [0.1.0] - 2025-01-19
- Initial release

View File

@@ -1,7 +1,7 @@
PATH
remote: .
specs:
picop (0.1.0)
picopackage (0.1.0)
digest
open-uri (~> 0.5)
yaml (~> 0.4)
@@ -70,7 +70,7 @@ PLATFORMS
DEPENDENCIES
debug
minitest (~> 5.16)
picop!
picopackage!
rake (~> 13.0)
rubocop (~> 1.21)

View File

@@ -1,8 +1,8 @@
# Picop
# Picopackage
TODO: Delete this and the text below, and describe your gem
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/picop`. To experiment with that code, run `bin/console` for an interactive prompt.
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/picopackge`. To experiment with that code, run `bin/console` for an interactive prompt.
## Installation

14
lib/picopackage.rb Normal file
View File

@@ -0,0 +1,14 @@
# frozen_string_literal: true
require_relative "picopackage/version"
require_relative "picopackage/provider"
require_relative "picopackage/source_file"
require_relative "picopackage/scanner"
require_relative "picopackage/fetch"
require_relative "picopackage/cli"
module Picopackage
class Error < StandardError; end
class FileTooLargeError < StandardError; end
class LocalModificationError < StandardError; end
end

View File

@@ -4,7 +4,7 @@ require 'tempfile'
require 'json'
require 'debug'
module Picop
module Picopackage
class Fetch
def self.fetch(url, destination, force: false)
raise ArgumentError, "Destination directory does not exist: #{destination}" unless Dir.exist?(destination)

View File

@@ -1,4 +1,4 @@
module Picop
module Picopackage
class Provider
def self.for(url)
PROVIDERS.each do |provider|

View File

@@ -1,4 +1,4 @@
module Picop
module Picopackage
module Scanner
def self.scan(directory, pattern: "**/*")
Dir.glob(File.join(directory, pattern)).select do |file|

View File

@@ -1,7 +1,7 @@
require "yaml"
require "digest"
module Picop
module Picopackage
class SourceFile
attr_reader :content, :metadata, :code, :original_path

View File

@@ -1,5 +1,5 @@
# frozen_string_literal: true
module Picop
VERSION = "0.1.0"
module Picopackage
VERSION = "0.2.0"
end

View File

@@ -8,17 +8,17 @@ Gem::Specification.new do |spec|
spec.authors = ["Dan Milne"]
spec.email = ["d@nmilne.com"]
spec.summary = "TODO: Write a short summary, because RubyGems requires one."
spec.description = "TODO: Write a longer description or delete this line."
spec.homepage = "TODO: Put your gem's website or public repo URL here."
spec.summary = "Picopackage Tool."
spec.description = "Picopackage Tool for managing Picopackages."
spec.homepage = "https://picopackage.org"
spec.license = "MIT"
spec.required_ruby_version = ">= 3.1.0"
spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
#spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
#spec.metadata["homepage_uri"] = spec.homepage
#spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
#spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.