Skip to content

Commit 3b9cf42

Browse files
authored
Merge pull request #12 from skaerg/module_names
add Rudder prefix to lib modules
2 parents 266f849 + 3af0e06 commit 3b9cf42

File tree

6 files changed

+20
-16
lines changed

6 files changed

+20
-16
lines changed

elm.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"license": "GPL-3.0",
66
"version": "0.1.0",
77
"exposed-modules": [
8-
"RudderTable",
9-
"RudderTree",
10-
"RudderSearchFilter",
11-
"Filters"
8+
"Rudder.Table",
9+
"Rudder.Tree",
10+
"Rudder.SearchFilter",
11+
"Rudder.Filters"
1212
],
1313
"elm-version": "0.19.0 <= v < 0.20.0",
1414
"dependencies": {

src/Filters.elm renamed to src/Rudder/Filters.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module Filters exposing
1+
module Rudder.Filters exposing
22
( SearchFilterState, empty, substring
33
, getTextValue
44
, FilterStringPredicate, byValues
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module RudderSearchFilter exposing
1+
module Rudder.SearchFilter exposing
22
( Model, Msg
33
, view, update, init
44
, updateFilter, OutMsg(..)
@@ -24,10 +24,10 @@ It will be useful to handle `OutMsg` public message upon change of the filter.
2424
2525
-}
2626

27-
import Filters exposing (FilterStringPredicate, SearchFilterState, applyString, getTextValue, substring)
2827
import Html exposing (Html, input)
2928
import Html.Attributes exposing (class, placeholder, type_, value)
3029
import Html.Events exposing (onInput)
30+
import Rudder.Filters exposing (FilterStringPredicate, SearchFilterState, applyString, getTextValue, substring)
3131

3232

3333
{-| The model of a search input filter. Here the will be always the same, and the state represents the input search.
@@ -57,7 +57,7 @@ type OutMsg data
5757
-}
5858
init : FilterStringPredicate data -> Model data
5959
init predicate =
60-
Model predicate Filters.empty
60+
Model predicate Rudder.Filters.empty
6161

6262

6363

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module RudderTable exposing
1+
module Rudder.Table exposing
22
( Column, ColumnName(..), SortOrder(..)
33
, Config, ConfigBuilder, buildConfig
44
, Options, OptionsBuilder, buildOptions
@@ -66,7 +66,6 @@ It has a TEA approach, so it should be used with the [Nested TEA][nested-tea] ar
6666

6767
import Csv.Encode
6868
import File.Download
69-
import Filters exposing (FilterStringPredicate, SearchFilterState, applyString, getTextValue, substring)
7069
import Html exposing (Attribute, Html, button, div, i, input, span, table, tbody, td, text, th, thead, tr)
7170
import Html.Attributes exposing (class, colspan, placeholder, rowspan, style, tabindex, type_, value)
7271
import Html.Events exposing (onClick, onInput)
@@ -75,6 +74,7 @@ import Json.Encode as Encode
7574
import List.Extra
7675
import List.Nonempty as NonEmptyList
7776
import Ordering exposing (Ordering)
77+
import Rudder.Filters exposing (FilterStringPredicate, SearchFilterState, applyString, getTextValue, substring)
7878

7979

8080
{-| ATTENTION !
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module RudderTree exposing
1+
module Rudder.Tree exposing
22
( TreeNodeId, TreeNode, ViewTree(..), BranchFoldStatus(..)
33
, sortTree
44
, Model, Msg
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
module RudderTableTest exposing (..)
1+
module TestTable exposing (..)
22

33
import Expect
4-
import Filters exposing (SearchFilterState, byValues, getTextValue)
54
import Fuzz exposing (..)
65
import Html
76
import List.Nonempty as NonEmptyList exposing (Nonempty)
87
import Ordering
9-
import RudderTable exposing (..)
8+
import Rudder.Filters as Filters exposing (SearchFilterState, byValues, getTextValue)
9+
import Rudder.Table as RudderTable exposing (..)
1010
import Test exposing (..)
1111

1212

@@ -108,7 +108,11 @@ csvModelFuzz columnNames fileName entryToStringList data =
108108
let
109109
options =
110110
buildOptions.newOptions
111-
|> buildOptions.withCsvExport { fileName = fileName, entryToStringList = entryToStringList, btnAttributes = [] }
111+
|> buildOptions.withCsvExport
112+
{ fileName = fileName
113+
, entryToStringList = entryToStringList
114+
, btnAttributes = []
115+
}
112116

113117
config =
114118
constant Config
@@ -150,7 +154,7 @@ suite =
150154
stubColumnName =
151155
ColumnName "column"
152156
in
153-
describe "RudderTable"
157+
describe "Rudder.Table"
154158
[ describe "filters"
155159
[ fuzz (filterModelFuzz Filters.empty) "test filter update on table that defines a configuration to save in localStorage" <|
156160
\m ->

0 commit comments

Comments
 (0)