tranzito_utils 1.0.3 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6516dd9d39fe6ad64de9b010625861da771f1d2727778448192681229e97f51
4
- data.tar.gz: 78e25c61c6542958f486d7108428505db65b03addb44a41fbca5c14807f689f0
3
+ metadata.gz: 3faa67b639b33c1c1cbb2f8d65b5f1d4f79820781ff7c286a054d017dbce00e3
4
+ data.tar.gz: cedce42eaea116b806a5b2a09a259c914ad181087a41929c0396489827d82489
5
5
  SHA512:
6
- metadata.gz: a636eaea774add3a7397be4639aa4963b1c091766c8db5225c3468a49e7c98db08a44d69731472c491b57af7aa029216e1527307e55bebe0ffa4d423015fd09e
7
- data.tar.gz: 5f5099d219334b8d62345fa43f2dc644993e5d9261946680b5b52ae825a23c57a1ff978bf04bd8feadc43f2e9e58109769a170e606daeb0c02a6f8904a0f1136
6
+ metadata.gz: 8681efed6dd8c0cba41a871936b1a55bf9e7593cc61e90443b994ae80e535a9690d855609f48cd5a961b1430e68e1d96d42277732143bffd1ac6670543af5857
7
+ data.tar.gz: 24262cc48e9b4c9e70319bf723d7b4c8c7280b752c70d76d17d338ce13332936f955174328f109bfe43eea3c9bb0fea9e5c1a5632e2ea162799302638f0c0e98
data/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  | `SetPeriod` | Controller Concern | Time period selection and browsing |
8
8
  | `SortableTable` | Controller Concern | Sort column and direction |
9
9
  | `TimeParser` | Service | Parse time strings into activerecord time objects |
10
- | `ParamsNormalizer` | Service | Normalize truthy and falsey strings |
10
+ | `Normalize` | Service | Normalize truthy and falsey strings |
11
11
  | `GraphingHelper` | Helper | Graphing helper for [chartkick](https://chartkick.com/) charts |
12
12
  | `SortableHelper` | Helper | Sort table headers |
13
13
 
@@ -69,26 +69,20 @@ render partial: "/tranzito_utils/period_select"
69
69
 
70
70
  This will include the period_select view for filtering.
71
71
 
72
- ### SortableHelper
72
+ ### Helpers
73
73
 
74
- For SortableHelper, you need to add that line into your `application_helper.rb` file.
74
+ For gems helpers, you need to add this into your `application_helper.rb` file.
75
75
 
76
76
  ```
77
- include TranzitoUtils::SortableHelper
77
+ include TranzitoUtils::Helpers
78
78
  ```
79
+ ### Assets
79
80
 
80
- ### GraphingHelper
81
-
82
- Same for GraphingHelper, if you want to use its methods then you need to add that line into your `application_helper.rb` file.
81
+ To include the styles from the gem you need to add this into your application.scss, this will include the compiled CSS into your application.
83
82
 
84
83
  ```
85
- include TranzitoUtils::GraphingHelper
84
+ @import url('/tranzito_utils-compiled.css')
86
85
  ```
87
-
88
- #### ParamsNormalizer
89
-
90
- Params normalizer uses activerecord to parse strings into booleans.
91
-
92
86
  ## tranzito_utils_js (npm)
93
87
  You also need to add this NPM package in order to use the gem without any issue. You can install it using `yarn` or `npm`.
94
88
 
@@ -126,6 +120,13 @@ As for `PeriodSelector`, you can use it by initializing like this
126
120
  ## License
127
121
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
128
122
 
123
+ ## Development
124
+
125
+ To compile the updated styles run these command
126
+ ```
127
+ cd tranzito_utils_js
128
+ yarn build:css
129
+ ```
129
130
 
130
131
  ## Testing
131
132