Skip to content

Commit

Permalink
Merge pull request #745 from adzerk/rename-organization-to-kevel
Browse files Browse the repository at this point in the history
Rename packages organization from `com.velocidi` to `com.kevel`
  • Loading branch information
jcazevedo authored Oct 16, 2024
2 parents 97a91c3 + 1f5b9a6 commit e34e33a
Show file tree
Hide file tree
Showing 113 changed files with 188 additions and 187 deletions.
2 changes: 1 addition & 1 deletion .scalafix.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ OrganizeImports {
expandRelative = false
groupExplicitlyImportedImplicitsSeparately = false
groupedImports = AggressiveMerge
groups = ["re:javax?\\.", "scala.", "*", "com.velocidi."]
groups = ["re:javax?\\.", "scala.", "*", "com.kevel."]
importSelectorsOrder = Ascii
importsOrder = Ascii
removeUnused = false
Expand Down
56 changes: 28 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ The `LazyConfigFactory` object provides static methods for creating `Config` ins
Apso provides a tiny wrapper for [Dispatch](http://dispatch.databinder.net/) with synchronous operations. It's called `W`, and the following shows some sample usage:

```scala
import com.velocidi.apso.http.W
import com.kevel.apso.http.W

W.get("http://www.google.com/").getStatus
// res0: Int = 302
Expand All @@ -110,7 +110,7 @@ The POST and PUT methods can also receive the body as `JSON` (of [circe](https:/
The `Geo` object provides methods to compute distances in kilometers between two points on the planet Earth, calculated using the spherical [law of cosines](https://en.wikipedia.org/wiki/Great-circle_distance#Formulas). Coordinates are represented by a pair of `Double` for latitude and longitude.

```scala
import com.velocidi.apso.Geo
import com.kevel.apso.Geo

Geo.distance((41.1617609, -8.6024716), (41.1763745, -8.5964861))
// res2: Double = 1.7004440788845807
Expand All @@ -134,7 +134,7 @@ distFromOffice((38.7223032, -9.1414664))
Apso provides implicit conversions from `String`, `Seq[_]`, `Map[_, _]`, `Seq[Map[_, _]]` and `AutoCloseable` to extended types that come packed with extended features.

```scala
import com.velocidi.apso.Implicits._
import com.kevel.apso.Implicits._

Seq(1, 3, 5).mergeSorted(Seq(2, 4))
// res6: Array[Int] = Array(1, 2, 3, 4, 5)
Expand Down Expand Up @@ -179,7 +179,7 @@ rand.chooseN((0 to 15).toSeq, 4)
The JreVersionHelper object provides helper methods to check the two most significant parts of the JRE version at runtime:

```scala
import com.velocidi.apso.JreVersionHelper
import com.kevel.apso.JreVersionHelper

JreVersionHelper.jreVersion
// res0: (Int, Int) = (1, 8)
Expand All @@ -190,7 +190,7 @@ JreVersionHelper.jreVersion
The `ProgressBar` represents a widget to print a dynamic progress bar in a console.

```scala
import com.velocidi.apso.ProgressBar
import com.kevel.apso.ProgressBar

val progress = ProgressBar(100)

Expand Down Expand Up @@ -218,17 +218,17 @@ progress.tick(30)
The `Reflect` object contains helpers for reflection-related tasks, namely to create an instance of a given class given its fully qualified name and also to access singleton objects:

```scala
scala> import com.velocidi.apso.Reflect
import com.velocidi.apso.Reflect
scala> import com.kevel.apso.Reflect
import com.kevel.apso.Reflect

scala> import com.velocidi.apso.collection._
import com.velocidi.apso.collection._
scala> import com.kevel.apso.collection._
import com.kevel.apso.collection._

scala> Reflect.newInstance[HMap[Nothing]]("com.velocidi.apso.collection.HMap")
res0: com.velocidi.apso.collection.HMap[Nothing] = HMap()
scala> Reflect.newInstance[HMap[Nothing]]("com.kevel.apso.collection.HMap")
res0: com.kevel.apso.collection.HMap[Nothing] = HMap()

scala> Reflect.companion[Reflect.type]("com.velocidi.apso.Reflect")
res1: com.velocidi.apso.Reflect.type = com.velocidi.apso.Reflect$@3b1dbca
scala> Reflect.companion[Reflect.type]("com.kevel.apso.Reflect")
res1: com.kevel.apso.Reflect.type = com.kevel.apso.Reflect$@3b1dbca
```

### Retry
Expand All @@ -240,7 +240,7 @@ import scala.concurrent._
import scala.concurrent.duration._
import scala.concurrent.ExecutionContext.Implicits.global

import com.velocidi.apso.Retry
import com.kevel.apso.Retry

import java.util.concurrent.atomic.AtomicInteger

Expand Down Expand Up @@ -315,7 +315,7 @@ libraryDependencies += "com.velocidi" %% "apso-aws" % "0.18.8"
The `ConfigCredentialsProvider` is an `AWSCredentialsProvider` (from AWS SDK for Java) that retrieves credentials from a typesafe configuration, allowing customization of its `Config` object, as well as the access key and secret key paths:

```scala
import com.velocidi.apso.aws._
import com.kevel.apso.aws._

import com.typesafe.config._

Expand Down Expand Up @@ -368,7 +368,7 @@ import scala.concurrent.ExecutionContext.Implicits.global

import java.util.concurrent.atomic.AtomicInteger

import com.velocidi.apso.caching._
import com.kevel.apso.caching._

val x = new AtomicInteger(0)
// x: AtomicInteger = 2
Expand Down Expand Up @@ -416,7 +416,7 @@ libraryDependencies += "com.velocidi" %% "apso-collections" % "0.18.8"
The `Trie` class is an implementation of an immutable trie. An example usage follows:

```scala
import com.velocidi.apso.collection._
import com.kevel.apso.collection._

val t = Trie[Char, Int]()
// t: Trie[Char, Int] = Trie(value = None, nodes = Map())
Expand Down Expand Up @@ -488,7 +488,7 @@ nt.get("five")
The `TypedMap` is a map that associates types with values. It can be used as follows:

```scala
import com.velocidi.apso.collection._
import com.kevel.apso.collection._

val m = TypedMap("one", 2, 3L)
// m: TypedMap[Any] = Map(java.lang.String -> one, Int -> 2, Long -> 3)
Expand Down Expand Up @@ -524,7 +524,7 @@ Apso provides some utility iterators.
The `CircularIterator` is an iterator that iterates over its elements in a circular way. See the following for sample usage:

```scala
import com.velocidi.apso.iterator.CircularIterator
import com.kevel.apso.iterator.CircularIterator

val circularIterator = CircularIterator(List(1, 2, 3).iterator)
// circularIterator: CircularIterator[Int] = non-empty iterator
Expand All @@ -538,7 +538,7 @@ circularIterator.take(10).toList
The `MergedBufferedIterator` is a collection of sorted `BufferedIterators` that allows traversing them in order, while also providing a `mergeSorted` method to merge with another sorted `BufferedIterator`. See the following for sample usage:

```scala
import com.velocidi.apso.iterator.MergedBufferedIterator
import com.kevel.apso.iterator.MergedBufferedIterator

val it1 = MergedBufferedIterator(List(
(0 to 3).iterator.buffered,
Expand Down Expand Up @@ -617,7 +617,7 @@ by loading a `KeyStore` file holding a symmetric key, and its use to encrypt and
decrypt data:

```scala
import com.velocidi.apso.encryption._
import com.kevel.apso.encryption._

val encryptor = Encryptor("AES", getClass.getResourceAsStream("/keystoreFile.jceks"), "keystorePass", "keyAlias", "keyPass")

Expand All @@ -638,7 +638,7 @@ libraryDependencies += "com.velocidi" %% "apso-hashing" % "0.18.8"
```

```scala
import com.velocidi.apso.hashing.Implicits._
import com.kevel.apso.hashing.Implicits._

"abcd".md5
// res50: String = "e2fc714c4727ee9395f324cd2e7f331f"
Expand Down Expand Up @@ -670,8 +670,8 @@ Apso introduces the concept of a `FileDescriptor`: a representation of a file st
The `ResourceUtil` object provides methods to access files available through Java's runtime environment classpath:

```scala
import com.velocidi.apso.io.ResourceUtil
// import com.velocidi.apso.io.ResourceUtil
import com.kevel.apso.io.ResourceUtil
// import com.kevel.apso.io.ResourceUtil

ResourceUtil.getResourceURL("reference.conf")
// res0: String = /Users/jcazevedo/work/apso/apso/target/scala-2.11/classes/reference.conf
Expand Down Expand Up @@ -712,7 +712,7 @@ The `ExtraJsonProtocol` object combines three traits that provide extra `Encoder
The `json` package provides some implicits around [circe](https://circe.github.io/circe/)'s `Json` to unwrap JSON values, merge two `Json` and create `Json` from a sequence of dot-separated paths with the corresponding leaf values. It also provides methods to access and delete fields on the `Json` object. See the following for sample usage:

```scala
import com.velocidi.apso.circe.Implicits._
import com.kevel.apso.circe.Implicits._
import io.circe.syntax._
import io.circe.Json

Expand Down Expand Up @@ -790,7 +790,7 @@ js1.deleteField("x")
The `JsonConvert` object contains helpers for converting between JSON values and other structures. See the following for sample usage:

```scala
import com.velocidi.apso.circe._
import com.kevel.apso.circe._

JsonConvert.toJson("abcd")
// res65: io.circe.Json = JString(value = "abcd")
Expand Down Expand Up @@ -835,9 +835,9 @@ See the following sample usages:
```scala
import com.github.nscala_time.time.Imports._

import com.velocidi.apso.time._
import com.kevel.apso.time._

import com.velocidi.apso.time.Implicits._
import com.kevel.apso.time.Implicits._

(new DateTime("2012-01-01") to new DateTime("2012-01-01")).toList
// res69: List[DateTime] = List(2012-01-01T00:00:00.000Z)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.akka.http
package com.kevel.apso.akka.http

import akka.http.scaladsl.model.RemoteAddress
import akka.http.scaladsl.server.Directive1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.akka.http
package com.kevel.apso.akka.http

import java.net.URI

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.akka.http
package com.kevel.apso.akka.http

import scala.concurrent.duration.FiniteDuration
import scala.concurrent.{Future, Promise}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.akka.http
package com.kevel.apso.akka.http

import scala.concurrent.duration._

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.akka.http
package com.kevel.apso.akka.http

import java.net.InetAddress

Expand All @@ -20,7 +20,7 @@ import org.specs2.concurrent.ExecutionEnv
import org.specs2.mutable.Specification
import org.specs2.specification.Scope

import com.velocidi.apso.NetUtils._
import com.kevel.apso.NetUtils._

class ProxySupportSpec(implicit ee: ExecutionEnv) extends Specification with Specs2RouteTest with ProxySupport {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso
package com.kevel.apso

import akka.actor.{Actor, ActorLogging}
import akka.event.Logging
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.aws
package com.kevel.apso.aws

import com.amazonaws.auth._
import com.typesafe.config.{Config, ConfigFactory}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.aws
package com.kevel.apso.aws

import com.amazonaws.auth._

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.aws
package com.kevel.apso.aws

import java.io._
import java.util.concurrent.{Executors, ThreadFactory}
Expand All @@ -15,7 +15,7 @@ import com.amazonaws.{AmazonClientException, AmazonServiceException, ClientConfi
import com.typesafe.config.ConfigFactory
import com.typesafe.scalalogging.LazyLogging

import com.velocidi.apso.aws.S3Bucket.S3ObjectDownloader
import com.kevel.apso.aws.S3Bucket.S3ObjectDownloader

/** A representation of an Amazon's S3 bucket. This class wraps an `AmazonS3Client` and provides a higher level
* interface for pushing and pulling files to and from a bucket.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.aws
package com.kevel.apso.aws

import com.amazonaws.auth.{AWSCredentials, BasicAWSCredentials}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso
package com.kevel.apso

/** Wrappers around the AWS Java client libraries providing higher level interfaces.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.caching
package com.kevel.apso.caching

import scalacache.Id

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.caching
package com.kevel.apso.caching

import scalacache._
import scalacache.memoization._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// Copied from https://github.com/spray/spray/blob/master/spray-caching/src/main/scala/spray/caching/Cache.scala in
// order to be compiled against Scala 2.12.

package com.velocidi.apso.caching
package com.kevel.apso.caching

import scala.concurrent.{ExecutionContext, Future, Promise}
import scala.util.Try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.velocidi.apso.caching
package com.kevel.apso.caching

import scala.annotation.tailrec
import scala.concurrent.duration.Duration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.caching
package com.kevel.apso.caching

import scala.concurrent.{ExecutionContext, Future}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.caching
package com.kevel.apso.caching

import scala.concurrent.duration._

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.caching.config
package com.kevel.apso.caching.config

import scala.concurrent.duration.FiniteDuration

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.velocidi.apso
package com.kevel.apso

package object caching extends CachedFunctionsExtras
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.caching
package com.kevel.apso.caching

import java.util.concurrent.atomic.{AtomicBoolean, AtomicInteger}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.velocidi.apso.caching
package com.kevel.apso.caching

import java.util.Random
import java.util.concurrent.CountDownLatch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.velocidi.apso.caching
package com.kevel.apso.caching

import org.specs2.concurrent.ExecutionEnv
import org.specs2.mutable.Specification
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.circe
package com.kevel.apso.circe

import java.net.URI

Expand All @@ -13,7 +13,7 @@ import org.joda.time.format.ISODateTimeFormat
import org.joda.time.{Duration => _, _}
import squants.market.{Currency, MoneyContext}

import com.velocidi.apso.circe.syntax._
import com.kevel.apso.circe.syntax._

/** Provides Encoders and Decoders for some relevant types.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.circe
package com.kevel.apso.circe

import scala.util.Try

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.apso.circe
package com.kevel.apso.circe

import scala.collection.compat._
import scala.jdk.CollectionConverters._
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.velocidi.circe
package com.kevel.circe

/** Provides utility classes and methods related to [[io.circe.Json]] handling.
*/
Expand Down
Loading

0 comments on commit e34e33a

Please sign in to comment.