Skip to content

Commit

Permalink
v0.20
Browse files Browse the repository at this point in the history
  • Loading branch information
essenciary committed Sep 28, 2020
1 parent 2ba5886 commit c601c7b
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 256 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
docs/build
.tags
.DS_Store
.DS_Store
.vscode
test/build
Manifest.toml
242 changes: 0 additions & 242 deletions Manifest.toml

This file was deleted.

6 changes: 2 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SearchLight"
uuid = "340e8cb6-72eb-11e8-37ce-c97ebeb32050"
authors = ["Adrian Salceanu <[email protected]>"]
version = "0.19.2"
version = "0.20.0"

[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Expand All @@ -12,17 +12,15 @@ Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
Millboard = "39ec1447-df44-5f4c-beaa-866f30b4d3b2"
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
Revise = "295af30f-e4ad-537b-8983-00126c2a3abe"
SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce"
Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"

[compat]
DataFrames = "0.20"
DataFrames = "0.21"
DataStreams = "0.4"
Millboard = "0.2"
OrderedCollections = "1"
Reexport = "0.2"
Revise = "2"
YAML = "0.4"
julia = "1"
1 change: 0 additions & 1 deletion src/Configuration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Core SearchLight configuration / settings functionality.
"""
module Configuration

import Revise
import YAML, Logging
using SearchLight

Expand Down
1 change: 0 additions & 1 deletion src/Exceptions.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Exceptions

import Revise
using SearchLight

export NotPersistedException, MissingDatabaseConfigurationException, DatabaseAdapterException
Expand Down
1 change: 0 additions & 1 deletion src/Generator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Generates various SearchLight files.
"""
module Generator

import Revise
import Unicode, Logging
using SearchLight

Expand Down
1 change: 0 additions & 1 deletion src/Inflector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Handles the functionality for applying various gramatical rules.
"""
module Inflector

import Revise
import Unicode
import SearchLight

Expand Down
1 change: 0 additions & 1 deletion src/Migration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ Provides functionality for working with database migrations.
"""
module Migration

import Revise
import Millboard, Dates, Logging, DataFrames
using SearchLight
import Base.showerror
Expand Down
5 changes: 2 additions & 3 deletions src/SearchLight.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module SearchLight

import Revise
import DataFrames, OrderedCollections, Distributed, Dates, Logging, Millboard, YAML

import DataFrames.DataFrame
Expand Down Expand Up @@ -554,7 +553,7 @@ function columns_names_by_table(tables_names::Vector{String}, df::DataFrames.Dat

! in(table_name, tables_names) && continue

push!(tables_columns[table_name], dfc)
push!(tables_columns[table_name], dfc |> Symbol)
end

tables_columns
Expand Down Expand Up @@ -673,7 +672,7 @@ end


function settable_fields(m::Type{T}, row::DataFrames.DataFrameRow)::Vector{Symbol} where {T<:AbstractModel}
df_cols::Vector{Symbol} = names(row)
df_cols::Vector{Symbol} = map(x -> Symbol(x), names(row))
fields = is_fully_qualified(m, df_cols[1]) ? to_sql_column_names(m, fieldnames(m)) : fieldnames(m)

intersect(fields, df_cols)
Expand Down
1 change: 0 additions & 1 deletion src/Validation.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
module Validation

import Revise
using SearchLight

import Base.show
Expand Down

2 comments on commit c601c7b

@essenciary
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/22117

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.20.0 -m "<description of version>" c601c7b82fbd1309d6fa1a5c5f6baae6d76ac8e2
git push origin v0.20.0

Please sign in to comment.