abyme 0.6.3 → 0.6.6

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: e71aaa0391ddf79198fbd0e3076b7899ecd8a72abbfac41429d416f3a671dccc
4
- data.tar.gz: 382947241368e89f93142bb5b0c9b34f1af8323f5d8689fd54d2dd4a7907385e
3
+ metadata.gz: d3d4875d1b6733fb09f7fa6b68be69d8b84da7b2934ab62902362d94c777e37d
4
+ data.tar.gz: 300911ba93385f8c1320be6a2f6da518a4aa6731ac53434144b352f8065914b1
5
5
  SHA512:
6
- metadata.gz: 34cc3af27975485027977aa98f51419924ec4d42f3f72a0a03c559eaed18bb2a2e5734efc9345ed10631740f7860b63691e42da159c84e89e27711505ce19a6c
7
- data.tar.gz: e9588871ddce9c79d34d77511a9f56f29a280177a5dc9f9fe056cc7540ce2e28d3b0a64d6ceb5735811cd910e9cf1692e4a5ff81a87eaec8d0a0c4d466ff216d
6
+ metadata.gz: 1de2a81b92eae1a1526e5e8199d517d9fda8d88229b78b9c0fe2b34a245b545dc43e9ad167fe405f514abb6fad1b2af45b1f1a0d75b40b8efceb981c82fad00c
7
+ data.tar.gz: 37fa3175a0c1d93299432afe45c52cfb9c1dabba9c260b159355643fda2d677d839480e1679b290dfdb8251672be387eaaf2ef38f53ac301c5adeb17a4d39bc4
data/.DS_Store CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,113 +1,170 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/bear-in-mind/abyme/tree/HEAD)
3
+ ## [v0.6.4](https://github.com/eki-177/abyme/tree/v0.6.4) (2021-07-03)
4
4
 
5
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/v0.5.0...HEAD)
5
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.6.3...v0.6.4)
6
6
 
7
7
  **Merged pull requests:**
8
8
 
9
- - retro compatibility with former public method names [\#26](https://github.com/bear-in-mind/abyme/pull/26) ([bear-in-mind](https://github.com/bear-in-mind))
9
+ - Use simple\_fields\_for inside a SimpleForm::FormBuilder [\#38](https://github.com/eki-177/abyme/pull/38) ([bear-in-mind](https://github.com/bear-in-mind))
10
10
 
11
- ## [v0.5.0](https://github.com/bear-in-mind/abyme/tree/v0.5.0) (2021-02-26)
11
+ ## [v0.6.3](https://github.com/eki-177/abyme/tree/v0.6.3) (2021-06-24)
12
12
 
13
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/v0.2.5...v0.5.0)
13
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.6.2...v0.6.3)
14
+
15
+ ## [v0.6.2](https://github.com/eki-177/abyme/tree/v0.6.2) (2021-06-23)
16
+
17
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.6.1...v0.6.2)
18
+
19
+ **Implemented enhancements:**
20
+
21
+ - Make it possible to pass named or namespaced associations [\#28](https://github.com/eki-177/abyme/issues/28)
22
+
23
+ **Merged pull requests:**
24
+
25
+ - hotfix [\#37](https://github.com/eki-177/abyme/pull/37) ([bear-in-mind](https://github.com/bear-in-mind))
26
+
27
+ ## [v0.6.1](https://github.com/eki-177/abyme/tree/v0.6.1) (2021-06-23)
28
+
29
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.6.0...v0.6.1)
30
+
31
+ **Merged pull requests:**
32
+
33
+ - Named associations [\#36](https://github.com/eki-177/abyme/pull/36) ([bear-in-mind](https://github.com/bear-in-mind))
34
+
35
+ ## [v0.6.0](https://github.com/eki-177/abyme/tree/v0.6.0) (2021-06-15)
36
+
37
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.3.0...v0.6.0)
38
+
39
+ **Merged pull requests:**
40
+
41
+ - Resource generator [\#35](https://github.com/eki-177/abyme/pull/35) ([bear-in-mind](https://github.com/bear-in-mind))
42
+ - Tests for view generator" [\#33](https://github.com/eki-177/abyme/pull/33) ([bear-in-mind](https://github.com/bear-in-mind))
43
+ - stimulus generator [\#32](https://github.com/eki-177/abyme/pull/32) ([ghbozz](https://github.com/ghbozz))
44
+ - Switching to microbundle [\#31](https://github.com/eki-177/abyme/pull/31) ([bear-in-mind](https://github.com/bear-in-mind))
45
+ - View generator [\#25](https://github.com/eki-177/abyme/pull/25) ([ghbozz](https://github.com/ghbozz))
46
+ - Generators : Controller & Model [\#24](https://github.com/eki-177/abyme/pull/24) ([bear-in-mind](https://github.com/bear-in-mind))
47
+
48
+ ## [v0.3.0](https://github.com/eki-177/abyme/tree/v0.3.0) (2021-03-12)
49
+
50
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.5.1...v0.3.0)
51
+
52
+ **Fixed bugs:**
53
+
54
+ - Helpers in application\_helper don't seem to be available inside partials [\#20](https://github.com/eki-177/abyme/issues/20)
55
+
56
+ **Merged pull requests:**
57
+
58
+ - Switching to Pika to build yarn package [\#30](https://github.com/eki-177/abyme/pull/30) ([bear-in-mind](https://github.com/bear-in-mind))
59
+
60
+ ## [v0.5.1](https://github.com/eki-177/abyme/tree/v0.5.1) (2021-02-26)
61
+
62
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.5.0...v0.5.1)
63
+
64
+ **Merged pull requests:**
65
+
66
+ - retro compatibility with former public method names [\#26](https://github.com/eki-177/abyme/pull/26) ([bear-in-mind](https://github.com/bear-in-mind))
67
+
68
+ ## [v0.5.0](https://github.com/eki-177/abyme/tree/v0.5.0) (2021-02-26)
69
+
70
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.2.5...v0.5.0)
14
71
 
15
72
  **Merged pull requests:**
16
73
 
17
- - Dynamic strong params for nested attributes [\#23](https://github.com/bear-in-mind/abyme/pull/23) ([bear-in-mind](https://github.com/bear-in-mind))
74
+ - Dynamic strong params for nested attributes [\#23](https://github.com/eki-177/abyme/pull/23) ([bear-in-mind](https://github.com/bear-in-mind))
18
75
 
19
- ## [v0.2.5](https://github.com/bear-in-mind/abyme/tree/v0.2.5) (2021-02-12)
76
+ ## [v0.2.5](https://github.com/eki-177/abyme/tree/v0.2.5) (2021-02-12)
20
77
 
21
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/v0.4.0...v0.2.5)
78
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.4.0...v0.2.5)
22
79
 
23
- ## [v0.4.0](https://github.com/bear-in-mind/abyme/tree/v0.4.0) (2021-02-12)
80
+ ## [v0.4.0](https://github.com/eki-177/abyme/tree/v0.4.0) (2021-02-12)
24
81
 
25
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/v0.2.4...v0.4.0)
82
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.2.4...v0.4.0)
26
83
 
27
84
  **Merged pull requests:**
28
85
 
29
- - Bump nokogiri from 1.10.10 to 1.11.1 [\#22](https://github.com/bear-in-mind/abyme/pull/22) ([dependabot[bot]](https://github.com/apps/dependabot))
30
- - Methods naming change & FormBuilder extension [\#21](https://github.com/bear-in-mind/abyme/pull/21) ([bear-in-mind](https://github.com/bear-in-mind))
31
- - Solved JS compile bug [\#19](https://github.com/bear-in-mind/abyme/pull/19) ([bear-in-mind](https://github.com/bear-in-mind))
86
+ - Bump nokogiri from 1.10.10 to 1.11.1 [\#22](https://github.com/eki-177/abyme/pull/22) ([dependabot[bot]](https://github.com/apps/dependabot))
87
+ - Methods naming change & FormBuilder extension [\#21](https://github.com/eki-177/abyme/pull/21) ([bear-in-mind](https://github.com/bear-in-mind))
88
+ - Solved JS compile bug [\#19](https://github.com/eki-177/abyme/pull/19) ([bear-in-mind](https://github.com/bear-in-mind))
32
89
 
33
- ## [v0.2.4](https://github.com/bear-in-mind/abyme/tree/v0.2.4) (2020-10-18)
90
+ ## [v0.2.4](https://github.com/eki-177/abyme/tree/v0.2.4) (2020-10-18)
34
91
 
35
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/v0.2.3...v0.2.4)
92
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.2.3...v0.2.4)
36
93
 
37
94
  **Merged pull requests:**
38
95
 
39
- - Abymebuilder doc [\#18](https://github.com/bear-in-mind/abyme/pull/18) ([ghbozz](https://github.com/ghbozz))
40
- - Last fix [\#17](https://github.com/bear-in-mind/abyme/pull/17) ([bear-in-mind](https://github.com/bear-in-mind))
41
- - Drop demo [\#16](https://github.com/bear-in-mind/abyme/pull/16) ([bear-in-mind](https://github.com/bear-in-mind))
42
- - Coveralls [\#15](https://github.com/bear-in-mind/abyme/pull/15) ([bear-in-mind](https://github.com/bear-in-mind))
43
- - changing action name [\#14](https://github.com/bear-in-mind/abyme/pull/14) ([bear-in-mind](https://github.com/bear-in-mind))
44
- - fixing button default text when auto mode [\#13](https://github.com/bear-in-mind/abyme/pull/13) ([ghbozz](https://github.com/ghbozz))
45
- - travis and rake update [\#12](https://github.com/bear-in-mind/abyme/pull/12) ([bear-in-mind](https://github.com/bear-in-mind))
46
- - Autonomous Spec [\#11](https://github.com/bear-in-mind/abyme/pull/11) ([bear-in-mind](https://github.com/bear-in-mind))
96
+ - Abymebuilder doc [\#18](https://github.com/eki-177/abyme/pull/18) ([ghbozz](https://github.com/ghbozz))
97
+ - Last fix [\#17](https://github.com/eki-177/abyme/pull/17) ([bear-in-mind](https://github.com/bear-in-mind))
98
+ - Drop demo [\#16](https://github.com/eki-177/abyme/pull/16) ([bear-in-mind](https://github.com/bear-in-mind))
99
+ - Coveralls [\#15](https://github.com/eki-177/abyme/pull/15) ([bear-in-mind](https://github.com/bear-in-mind))
100
+ - changing action name [\#14](https://github.com/eki-177/abyme/pull/14) ([bear-in-mind](https://github.com/bear-in-mind))
101
+ - fixing button default text when auto mode [\#13](https://github.com/eki-177/abyme/pull/13) ([ghbozz](https://github.com/ghbozz))
102
+ - travis and rake update [\#12](https://github.com/eki-177/abyme/pull/12) ([bear-in-mind](https://github.com/bear-in-mind))
103
+ - Autonomous Spec [\#11](https://github.com/eki-177/abyme/pull/11) ([bear-in-mind](https://github.com/bear-in-mind))
47
104
 
48
- ## [v0.2.3](https://github.com/bear-in-mind/abyme/tree/v0.2.3) (2020-10-15)
105
+ ## [v0.2.3](https://github.com/eki-177/abyme/tree/v0.2.3) (2020-10-15)
49
106
 
50
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/v0.2.2...v0.2.3)
107
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.2.2...v0.2.3)
51
108
 
52
- ## [v0.2.2](https://github.com/bear-in-mind/abyme/tree/v0.2.2) (2020-10-15)
109
+ ## [v0.2.2](https://github.com/eki-177/abyme/tree/v0.2.2) (2020-10-15)
53
110
 
54
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/v0.2.1...v0.2.2)
111
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.2.1...v0.2.2)
55
112
 
56
113
  **Merged pull requests:**
57
114
 
58
- - Dummy app setup \(incomplete\) [\#10](https://github.com/bear-in-mind/abyme/pull/10) ([bear-in-mind](https://github.com/bear-in-mind))
115
+ - Dummy app setup \(incomplete\) [\#10](https://github.com/eki-177/abyme/pull/10) ([bear-in-mind](https://github.com/bear-in-mind))
59
116
 
60
- ## [v0.2.1](https://github.com/bear-in-mind/abyme/tree/v0.2.1) (2020-10-15)
117
+ ## [v0.2.1](https://github.com/eki-177/abyme/tree/v0.2.1) (2020-10-15)
61
118
 
62
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/0.2.0...v0.2.1)
119
+ [Full Changelog](https://github.com/eki-177/abyme/compare/0.2.0...v0.2.1)
63
120
 
64
121
  **Merged pull requests:**
65
122
 
66
- - fix partial path [\#9](https://github.com/bear-in-mind/abyme/pull/9) ([ghbozz](https://github.com/ghbozz))
123
+ - fix partial path [\#9](https://github.com/eki-177/abyme/pull/9) ([ghbozz](https://github.com/ghbozz))
67
124
 
68
- ## [0.2.0](https://github.com/bear-in-mind/abyme/tree/0.2.0) (2020-10-14)
125
+ ## [0.2.0](https://github.com/eki-177/abyme/tree/0.2.0) (2020-10-14)
69
126
 
70
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/v0.2.0...0.2.0)
127
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.2.0...0.2.0)
71
128
 
72
129
  **Merged pull requests:**
73
130
 
74
- - End of doc [\#8](https://github.com/bear-in-mind/abyme/pull/8) ([bear-in-mind](https://github.com/bear-in-mind))
131
+ - End of doc [\#8](https://github.com/eki-177/abyme/pull/8) ([bear-in-mind](https://github.com/bear-in-mind))
75
132
 
76
- ## [v0.2.0](https://github.com/bear-in-mind/abyme/tree/v0.2.0) (2020-10-14)
133
+ ## [v0.2.0](https://github.com/eki-177/abyme/tree/v0.2.0) (2020-10-14)
77
134
 
78
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/0.1.3...v0.2.0)
135
+ [Full Changelog](https://github.com/eki-177/abyme/compare/0.1.3...v0.2.0)
79
136
 
80
137
  **Merged pull requests:**
81
138
 
82
- - limit & min count options [\#7](https://github.com/bear-in-mind/abyme/pull/7) ([ghbozz](https://github.com/ghbozz))
83
- - Documentation end [\#6](https://github.com/bear-in-mind/abyme/pull/6) ([bear-in-mind](https://github.com/bear-in-mind))
84
- - add limit feature [\#5](https://github.com/bear-in-mind/abyme/pull/5) ([ghbozz](https://github.com/ghbozz))
139
+ - limit & min count options [\#7](https://github.com/eki-177/abyme/pull/7) ([ghbozz](https://github.com/ghbozz))
140
+ - Documentation end [\#6](https://github.com/eki-177/abyme/pull/6) ([bear-in-mind](https://github.com/bear-in-mind))
141
+ - add limit feature [\#5](https://github.com/eki-177/abyme/pull/5) ([ghbozz](https://github.com/ghbozz))
85
142
 
86
- ## [0.1.3](https://github.com/bear-in-mind/abyme/tree/0.1.3) (2020-10-13)
143
+ ## [0.1.3](https://github.com/eki-177/abyme/tree/0.1.3) (2020-10-13)
87
144
 
88
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/v0.1.2...0.1.3)
145
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.1.2...0.1.3)
89
146
 
90
- ## [v0.1.2](https://github.com/bear-in-mind/abyme/tree/v0.1.2) (2020-10-13)
147
+ ## [v0.1.2](https://github.com/eki-177/abyme/tree/v0.1.2) (2020-10-13)
91
148
 
92
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/0.1.1...v0.1.2)
149
+ [Full Changelog](https://github.com/eki-177/abyme/compare/0.1.1...v0.1.2)
93
150
 
94
151
  **Merged pull requests:**
95
152
 
96
- - basic lifecycle events [\#4](https://github.com/bear-in-mind/abyme/pull/4) ([ghbozz](https://github.com/ghbozz))
153
+ - basic lifecycle events [\#4](https://github.com/eki-177/abyme/pull/4) ([ghbozz](https://github.com/ghbozz))
97
154
 
98
- ## [0.1.1](https://github.com/bear-in-mind/abyme/tree/0.1.1) (2020-10-12)
155
+ ## [0.1.1](https://github.com/eki-177/abyme/tree/0.1.1) (2020-10-12)
99
156
 
100
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/v0.1.1...0.1.1)
157
+ [Full Changelog](https://github.com/eki-177/abyme/compare/v0.1.1...0.1.1)
101
158
 
102
- ## [v0.1.1](https://github.com/bear-in-mind/abyme/tree/v0.1.1) (2020-10-12)
159
+ ## [v0.1.1](https://github.com/eki-177/abyme/tree/v0.1.1) (2020-10-12)
103
160
 
104
- [Full Changelog](https://github.com/bear-in-mind/abyme/compare/9b99709cd8f84e9401adb8ba6f59f0074e2f416b...v0.1.1)
161
+ [Full Changelog](https://github.com/eki-177/abyme/compare/9b99709cd8f84e9401adb8ba6f59f0074e2f416b...v0.1.1)
105
162
 
106
163
  **Merged pull requests:**
107
164
 
108
- - Gem Content [\#3](https://github.com/bear-in-mind/abyme/pull/3) ([bear-in-mind](https://github.com/bear-in-mind))
109
- - install generator for stimulus init setup [\#2](https://github.com/bear-in-mind/abyme/pull/2) ([ghbozz](https://github.com/ghbozz))
110
- - Update rake requirement from ~\> 10.0 to ~\> 13.0 [\#1](https://github.com/bear-in-mind/abyme/pull/1) ([dependabot[bot]](https://github.com/apps/dependabot))
165
+ - Gem Content [\#3](https://github.com/eki-177/abyme/pull/3) ([bear-in-mind](https://github.com/bear-in-mind))
166
+ - install generator for stimulus init setup [\#2](https://github.com/eki-177/abyme/pull/2) ([ghbozz](https://github.com/ghbozz))
167
+ - Update rake requirement from ~\> 10.0 to ~\> 13.0 [\#1](https://github.com/eki-177/abyme/pull/1) ([dependabot[bot]](https://github.com/apps/dependabot))
111
168
 
112
169
 
113
170
 
data/Gemfile.lock CHANGED
@@ -1,80 +1,85 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- abyme (0.6.3)
4
+ abyme (0.6.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actioncable (6.0.3.7)
10
- actionpack (= 6.0.3.7)
9
+ actioncable (6.1.4.4)
10
+ actionpack (= 6.1.4.4)
11
+ activesupport (= 6.1.4.4)
11
12
  nio4r (~> 2.0)
12
13
  websocket-driver (>= 0.6.1)
13
- actionmailbox (6.0.3.7)
14
- actionpack (= 6.0.3.7)
15
- activejob (= 6.0.3.7)
16
- activerecord (= 6.0.3.7)
17
- activestorage (= 6.0.3.7)
18
- activesupport (= 6.0.3.7)
14
+ actionmailbox (6.1.4.4)
15
+ actionpack (= 6.1.4.4)
16
+ activejob (= 6.1.4.4)
17
+ activerecord (= 6.1.4.4)
18
+ activestorage (= 6.1.4.4)
19
+ activesupport (= 6.1.4.4)
19
20
  mail (>= 2.7.1)
20
- actionmailer (6.0.3.7)
21
- actionpack (= 6.0.3.7)
22
- actionview (= 6.0.3.7)
23
- activejob (= 6.0.3.7)
21
+ actionmailer (6.1.4.4)
22
+ actionpack (= 6.1.4.4)
23
+ actionview (= 6.1.4.4)
24
+ activejob (= 6.1.4.4)
25
+ activesupport (= 6.1.4.4)
24
26
  mail (~> 2.5, >= 2.5.4)
25
27
  rails-dom-testing (~> 2.0)
26
- actionpack (6.0.3.7)
27
- actionview (= 6.0.3.7)
28
- activesupport (= 6.0.3.7)
29
- rack (~> 2.0, >= 2.0.8)
28
+ actionpack (6.1.4.4)
29
+ actionview (= 6.1.4.4)
30
+ activesupport (= 6.1.4.4)
31
+ rack (~> 2.0, >= 2.0.9)
30
32
  rack-test (>= 0.6.3)
31
33
  rails-dom-testing (~> 2.0)
32
34
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
33
- actiontext (6.0.3.7)
34
- actionpack (= 6.0.3.7)
35
- activerecord (= 6.0.3.7)
36
- activestorage (= 6.0.3.7)
37
- activesupport (= 6.0.3.7)
35
+ actiontext (6.1.4.4)
36
+ actionpack (= 6.1.4.4)
37
+ activerecord (= 6.1.4.4)
38
+ activestorage (= 6.1.4.4)
39
+ activesupport (= 6.1.4.4)
38
40
  nokogiri (>= 1.8.5)
39
- actionview (6.0.3.7)
40
- activesupport (= 6.0.3.7)
41
+ actionview (6.1.4.4)
42
+ activesupport (= 6.1.4.4)
41
43
  builder (~> 3.1)
42
44
  erubi (~> 1.4)
43
45
  rails-dom-testing (~> 2.0)
44
46
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
45
- activejob (6.0.3.7)
46
- activesupport (= 6.0.3.7)
47
+ activejob (6.1.4.4)
48
+ activesupport (= 6.1.4.4)
47
49
  globalid (>= 0.3.6)
48
- activemodel (6.0.3.7)
49
- activesupport (= 6.0.3.7)
50
- activerecord (6.0.3.7)
51
- activemodel (= 6.0.3.7)
52
- activesupport (= 6.0.3.7)
53
- activestorage (6.0.3.7)
54
- actionpack (= 6.0.3.7)
55
- activejob (= 6.0.3.7)
56
- activerecord (= 6.0.3.7)
50
+ activemodel (6.1.4.4)
51
+ activesupport (= 6.1.4.4)
52
+ activerecord (6.1.4.4)
53
+ activemodel (= 6.1.4.4)
54
+ activesupport (= 6.1.4.4)
55
+ activestorage (6.1.4.4)
56
+ actionpack (= 6.1.4.4)
57
+ activejob (= 6.1.4.4)
58
+ activerecord (= 6.1.4.4)
59
+ activesupport (= 6.1.4.4)
57
60
  marcel (~> 1.0.0)
58
- activesupport (6.0.3.7)
61
+ mini_mime (>= 1.1.0)
62
+ activesupport (6.1.4.4)
59
63
  concurrent-ruby (~> 1.0, >= 1.0.2)
60
- i18n (>= 0.7, < 2)
61
- minitest (~> 5.1)
62
- tzinfo (~> 1.1)
63
- zeitwerk (~> 2.2, >= 2.2.2)
64
- addressable (2.7.0)
64
+ i18n (>= 1.6, < 2)
65
+ minitest (>= 5.1)
66
+ tzinfo (~> 2.0)
67
+ zeitwerk (~> 2.3)
68
+ addressable (2.8.0)
65
69
  public_suffix (>= 2.0.2, < 5.0)
66
70
  bindex (0.8.1)
67
71
  builder (3.2.4)
68
72
  byebug (11.1.3)
69
- capybara (3.35.3)
73
+ capybara (3.36.0)
70
74
  addressable
75
+ matrix
71
76
  mini_mime (>= 0.1.3)
72
77
  nokogiri (~> 1.8)
73
78
  rack (>= 1.6.0)
74
79
  rack-test (>= 0.6.3)
75
80
  regexp_parser (>= 1.5, < 3.0)
76
81
  xpath (~> 3.2)
77
- childprocess (3.0.0)
82
+ childprocess (4.1.0)
78
83
  coderay (1.1.3)
79
84
  concurrent-ruby (1.1.9)
80
85
  crass (1.0.6)
@@ -88,23 +93,22 @@ GEM
88
93
  generator_spec (0.9.4)
89
94
  activesupport (>= 3.0.0)
90
95
  railties (>= 3.0.0)
91
- globalid (0.4.2)
92
- activesupport (>= 4.2.0)
93
- i18n (1.8.10)
96
+ globalid (1.0.0)
97
+ activesupport (>= 5.0)
98
+ i18n (1.8.11)
94
99
  concurrent-ruby (~> 1.0)
95
- loofah (2.10.0)
100
+ loofah (2.13.0)
96
101
  crass (~> 1.0.2)
97
102
  nokogiri (>= 1.5.9)
98
103
  mail (2.7.1)
99
104
  mini_mime (>= 0.1.1)
100
- marcel (1.0.1)
105
+ marcel (1.0.2)
106
+ matrix (0.4.2)
101
107
  method_source (1.0.0)
102
- mini_mime (1.1.0)
103
- mini_portile2 (2.5.3)
104
- minitest (5.14.4)
105
- nio4r (2.5.7)
106
- nokogiri (1.11.7)
107
- mini_portile2 (~> 2.5.0)
108
+ mini_mime (1.1.2)
109
+ minitest (5.15.0)
110
+ nio4r (2.5.8)
111
+ nokogiri (1.12.5-x86_64-darwin)
108
112
  racc (~> 1.4)
109
113
  pry (0.13.1)
110
114
  coderay (~> 1.1)
@@ -113,26 +117,26 @@ GEM
113
117
  byebug (~> 11.0)
114
118
  pry (~> 0.13.0)
115
119
  public_suffix (4.0.6)
116
- puma (5.3.2)
120
+ puma (5.5.2)
117
121
  nio4r (~> 2.0)
118
- racc (1.5.2)
122
+ racc (1.6.0)
119
123
  rack (2.2.3)
120
124
  rack-test (1.1.0)
121
125
  rack (>= 1.0, < 3)
122
- rails (6.0.3.7)
123
- actioncable (= 6.0.3.7)
124
- actionmailbox (= 6.0.3.7)
125
- actionmailer (= 6.0.3.7)
126
- actionpack (= 6.0.3.7)
127
- actiontext (= 6.0.3.7)
128
- actionview (= 6.0.3.7)
129
- activejob (= 6.0.3.7)
130
- activemodel (= 6.0.3.7)
131
- activerecord (= 6.0.3.7)
132
- activestorage (= 6.0.3.7)
133
- activesupport (= 6.0.3.7)
134
- bundler (>= 1.3.0)
135
- railties (= 6.0.3.7)
126
+ rails (6.1.4.4)
127
+ actioncable (= 6.1.4.4)
128
+ actionmailbox (= 6.1.4.4)
129
+ actionmailer (= 6.1.4.4)
130
+ actionpack (= 6.1.4.4)
131
+ actiontext (= 6.1.4.4)
132
+ actionview (= 6.1.4.4)
133
+ activejob (= 6.1.4.4)
134
+ activemodel (= 6.1.4.4)
135
+ activerecord (= 6.1.4.4)
136
+ activestorage (= 6.1.4.4)
137
+ activesupport (= 6.1.4.4)
138
+ bundler (>= 1.15.0)
139
+ railties (= 6.1.4.4)
136
140
  sprockets-rails (>= 2.0.0)
137
141
  rails-controller-testing (1.0.5)
138
142
  actionpack (>= 5.0.1.rc1)
@@ -141,16 +145,17 @@ GEM
141
145
  rails-dom-testing (2.0.3)
142
146
  activesupport (>= 4.2.0)
143
147
  nokogiri (>= 1.6)
144
- rails-html-sanitizer (1.3.0)
148
+ rails-html-sanitizer (1.4.2)
145
149
  loofah (~> 2.3)
146
- railties (6.0.3.7)
147
- actionpack (= 6.0.3.7)
148
- activesupport (= 6.0.3.7)
150
+ railties (6.1.4.4)
151
+ actionpack (= 6.1.4.4)
152
+ activesupport (= 6.1.4.4)
149
153
  method_source
150
- rake (>= 0.8.7)
151
- thor (>= 0.20.3, < 2.0)
152
- rake (13.0.3)
153
- regexp_parser (2.1.1)
154
+ rake (>= 0.13)
155
+ thor (~> 1.0)
156
+ rake (13.0.6)
157
+ regexp_parser (2.2.0)
158
+ rexml (3.2.5)
154
159
  rspec-core (3.10.1)
155
160
  rspec-support (~> 3.10.0)
156
161
  rspec-expectations (3.10.1)
@@ -159,7 +164,7 @@ GEM
159
164
  rspec-mocks (3.10.2)
160
165
  diff-lcs (>= 1.2.0, < 2.0)
161
166
  rspec-support (~> 3.10.0)
162
- rspec-rails (5.0.1)
167
+ rspec-rails (5.0.2)
163
168
  actionpack (>= 5.2)
164
169
  activesupport (>= 5.2)
165
170
  railties (>= 5.2)
@@ -167,10 +172,11 @@ GEM
167
172
  rspec-expectations (~> 3.10)
168
173
  rspec-mocks (~> 3.10)
169
174
  rspec-support (~> 3.10)
170
- rspec-support (3.10.2)
171
- rubyzip (2.3.0)
172
- selenium-webdriver (3.142.7)
173
- childprocess (>= 0.5, < 4.0)
175
+ rspec-support (3.10.3)
176
+ rubyzip (2.3.2)
177
+ selenium-webdriver (4.1.0)
178
+ childprocess (>= 0.5, < 5.0)
179
+ rexml (~> 3.2, >= 3.2.5)
174
180
  rubyzip (>= 1.2.2)
175
181
  simple_form (5.1.0)
176
182
  actionpack (>= 5.2)
@@ -185,44 +191,43 @@ GEM
185
191
  sprockets (4.0.2)
186
192
  concurrent-ruby (~> 1.0)
187
193
  rack (> 1, < 3)
188
- sprockets-rails (3.2.2)
189
- actionpack (>= 4.0)
190
- activesupport (>= 4.0)
194
+ sprockets-rails (3.4.2)
195
+ actionpack (>= 5.2)
196
+ activesupport (>= 5.2)
191
197
  sprockets (>= 3.0.0)
192
198
  sqlite3 (1.4.2)
193
199
  thor (1.1.0)
194
- thread_safe (0.3.6)
195
- tzinfo (1.2.9)
196
- thread_safe (~> 0.1)
197
- web-console (4.1.0)
200
+ tzinfo (2.0.4)
201
+ concurrent-ruby (~> 1.0)
202
+ web-console (4.2.0)
198
203
  actionview (>= 6.0.0)
199
204
  activemodel (>= 6.0.0)
200
205
  bindex (>= 0.4.0)
201
206
  railties (>= 6.0.0)
202
- webdrivers (4.6.0)
207
+ webdrivers (5.0.0)
203
208
  nokogiri (~> 1.6)
204
209
  rubyzip (>= 1.3.0)
205
- selenium-webdriver (>= 3.0, < 4.0)
210
+ selenium-webdriver (~> 4.0)
206
211
  websocket-driver (0.7.5)
207
212
  websocket-extensions (>= 0.1.0)
208
213
  websocket-extensions (0.1.5)
209
214
  xpath (3.2.0)
210
215
  nokogiri (~> 1.8)
211
- zeitwerk (2.4.2)
216
+ zeitwerk (2.5.1)
212
217
 
213
218
  PLATFORMS
214
- ruby
219
+ x86_64-darwin-19
215
220
 
216
221
  DEPENDENCIES
217
222
  abyme!
218
- bundler (~> 2.0)
223
+ bundler (~> 2)
219
224
  byebug
220
225
  capybara
221
226
  database_cleaner-active_record
222
227
  generator_spec
223
228
  pry-byebug
224
229
  puma
225
- rails (~> 6.0.3.6)
230
+ rails (~> 6.1)
226
231
  rails-controller-testing
227
232
  rake (~> 13.0)
228
233
  rspec-rails
data/README.md CHANGED
@@ -45,8 +45,14 @@ And then execute:
45
45
  $ bundle
46
46
  $ yarn add abyme
47
47
 
48
+ ***IMPORTANT : With the launch of Stimulus V3 (which introduced a lot of changes), the connection with the AbymeController won't work. Please, make sure you're using Stimulus V2 for now.***
48
49
 
49
- Assuming you [already installed Stimulus](https://stimulusjs.org/handbook/introduction), you need to register the `stimulus` controller that takes care of the JavaScript behaviour. You can launch this generator :
50
+ If you don't have Stimulus installed yet, please run :
51
+ ```bash
52
+ yarn add stimulus@2.0.0
53
+ ```
54
+
55
+ With [Stimulus](https://stimulusjs.org/handbook/introduction) installed, you need to register the `stimulus` controller that takes care of the JavaScript behaviour. You can launch this generator :
50
56
  ```bash
51
57
  rails generate abyme:stimulus
52
58
  ```
data/abyme.gemspec CHANGED
@@ -26,7 +26,10 @@ Gem::Specification.new do |spec|
26
26
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.add_development_dependency "bundler", "~> 2.0"
29
+ # SimpleForm dependency is only required for test purposes and optional behaviour
30
+ spec.add_development_dependency 'simple_form'
31
+
32
+ spec.add_development_dependency "bundler", "~> 2"
30
33
  spec.add_development_dependency "rake", "~> 13.0"
31
34
  # Tests
32
35
  spec.add_development_dependency "rspec-rails"
@@ -38,11 +41,10 @@ Gem::Specification.new do |spec|
38
41
 
39
42
  # Dummy app
40
43
  spec.add_development_dependency "sqlite3"
41
- spec.add_development_dependency 'rails', "~> 6.0.3.6"
44
+ spec.add_development_dependency 'rails', "~> 6.1"
42
45
  spec.add_development_dependency 'pry-byebug'
43
46
  spec.add_development_dependency 'byebug'
44
47
  spec.add_development_dependency 'web-console'
45
- spec.add_development_dependency 'simple_form'
46
48
 
47
49
  spec.add_development_dependency 'puma'
48
50
  spec.add_development_dependency 'simplecov'
data/dist/abyme.js CHANGED
@@ -1,2 +1,2 @@
1
- function e(t,n){return(e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(t,n)}function t(e,n,i){if(!e.s){if(i instanceof r){if(!i.s)return void(i.o=t.bind(null,e,n));1&n&&(n=i.s),i=i.v}if(i&&i.then)return void i.then(t.bind(null,e,n),t.bind(null,e,2));e.s=n,e.v=i;var o=e.o;o&&o(e)}}var n=function(n){var o,a;function s(){return n.apply(this,arguments)||this}a=n,(o=s).prototype=Object.create(a.prototype),o.prototype.constructor=o,e(o,a);var c,u=s.prototype;return u.connect=function(){console.log("Abyme Connected"),this.count&&this.add_default_associations()},u.add_association=function(e){if(e&&e.preventDefault(),this.element.dataset.limit&&this.limit_check())return this.create_event("limit-reached"),!1;var t=this.build_html();this.create_event("before-add"),this.associationsTarget.insertAdjacentHTML(this.position,t),this.create_event("after-add")},u.remove_association=function(e){e.preventDefault(),this.create_event("before-remove"),this.mark_for_destroy(e),this.create_event("after-remove")},u.create_event=function(e,t){void 0===t&&(t=null);var n=new CustomEvent("abyme:"+e,{detail:{controller:this,content:t}});this.element.dispatchEvent(n),this.dispatch(n,e)},u.dispatch=function(e,t){"before-add"===t&&this.abymeBeforeAdd&&this.abymeBeforeAdd(e),"after-add"===t&&this.abymeAfterAdd&&this.abymeAfterAdd(e),"before-remove"===t&&this.abymeBeforeRemove&&this.abymeBeforeAdd(e),"after-remove"===t&&this.abymeAfterRemove&&this.abymeAfterRemove(e)},u.abymeBeforeAdd=function(e){},u.abymeAfterAdd=function(e){},u.abymeBeforeRemove=function(e){},u.abymeAfterRemove=function(e){},u.build_html=function(){var e=this.templateTarget.innerHTML.replace(/NEW_RECORD/g,(new Date).getTime());if(e.match(/<template[\s\S]+<\/template>/)){var t=e.match(/<template[\s\S]+<\/template>/)[0].replace(/(\[\d{12,}\])(\[[^\[\]]+\]"){1}/g,"[NEW_RECORD]$2");e=e.replace(/<template[\s\S]+<\/template>/g,t)}return e},u.mark_for_destroy=function(e){var t=e.target.closest(".abyme--fields");t.querySelector("input[name*='_destroy']").value=1,t.style.display="none",t.classList.add("abyme--marked-for-destroy")},u.limit_check=function(){return this.newFieldsTargets.filter(function(e){return!e.classList.contains("abyme--marked-for-destroy")}).length>=parseInt(this.element.dataset.limit)},u.add_default_associations=function(){try{var e=this,n=0,o=function(e,n,o){for(var a;;){var s=e();if(i(s)&&(s=s.v),!s)return c;if(s.then){a=0;break}var c=o();if(c&&c.then){if(!i(c)){a=1;break}c=c.s}}var u=new r,f=t.bind(null,u,2);return(0===a?s.then(h):1===a?c.then(d):(void 0).then(function(){(s=e())?s.then?s.then(h).then(void 0,f):h(s):t(u,1,c)})).then(void 0,f),u;function d(n){c=n;do{if(!(s=e())||i(s)&&!s.v)return void t(u,1,c);if(s.then)return void s.then(h).then(void 0,f);i(c=o())&&(c=c.v)}while(!c||!c.then);c.then(d).then(void 0,f)}function h(e){e?(c=o())&&c.then?c.then(d).then(void 0,f):d(c):t(u,1,c)}}(function(){return n<e.count},0,function(){return e.add_association(),n++,Promise.resolve(e.sleep(1)).then(function(){})});return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},u.sleep=function(e){return new Promise(function(t){return setTimeout(t,e)})},(c=[{key:"count",get:function(){return this.element.dataset.minCount||0}},{key:"position",get:function(){return"end"===this.associationsTarget.dataset.abymePosition?"beforeend":"afterbegin"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(s.prototype,c),s}(require("stimulus").Controller),r=function(){function e(){}return e.prototype.then=function(n,r){var i=new e,o=this.s;if(o){var a=1&o?n:r;if(a){try{t(i,1,a(this.v))}catch(e){t(i,2,e)}return i}return this}return this.o=function(e){try{var o=e.v;1&e.s?t(i,1,n?n(o):o):r?t(i,1,r(o)):t(i,2,o)}catch(e){t(i,2,e)}},i},e}();function i(e){return e instanceof r&&1&e.s}n.targets=["template","associations","fields","newFields"],exports.AbymeController=n;
1
+ function e(t,n){return e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e(t,n)}function t(e,n,i){if(!e.s){if(i instanceof r){if(!i.s)return void(i.o=t.bind(null,e,n));1&n&&(n=i.s),i=i.v}if(i&&i.then)return void i.then(t.bind(null,e,n),t.bind(null,e,2));e.s=n,e.v=i;var o=e.o;o&&o(e)}}var n=function(n){var o,a;function s(){return n.apply(this,arguments)||this}a=n,(o=s).prototype=Object.create(a.prototype),o.prototype.constructor=o,e(o,a);var c,f,u=s.prototype;return u.connect=function(){console.log("Abyme Connected"),this.count&&this.add_default_associations()},u.add_association=function(e){if(e&&e.preventDefault(),this.element.dataset.limit&&this.limit_check())return this.create_event("limit-reached"),!1;var t=this.build_html();this.create_event("before-add"),this.associationsTarget.insertAdjacentHTML(this.position,t),this.create_event("after-add")},u.remove_association=function(e){e.preventDefault(),this.create_event("before-remove"),this.mark_for_destroy(e),this.create_event("after-remove")},u.create_event=function(e,t){void 0===t&&(t=null);var n=new CustomEvent("abyme:"+e,{detail:{controller:this,content:t}});this.element.dispatchEvent(n),this.dispatch(n,e)},u.dispatch=function(e,t){"before-add"===t&&this.abymeBeforeAdd&&this.abymeBeforeAdd(e),"after-add"===t&&this.abymeAfterAdd&&this.abymeAfterAdd(e),"before-remove"===t&&this.abymeBeforeRemove&&this.abymeBeforeAdd(e),"after-remove"===t&&this.abymeAfterRemove&&this.abymeAfterRemove(e)},u.abymeBeforeAdd=function(e){},u.abymeAfterAdd=function(e){},u.abymeBeforeRemove=function(e){},u.abymeAfterRemove=function(e){},u.build_html=function(){var e=this.templateTarget.innerHTML.replace(/NEW_RECORD/g,(new Date).getTime());if(e.match(/<template[\s\S]+<\/template>/)){var t=e.match(/<template[\s\S]+<\/template>/)[0].replace(/(\[\d{12,}\])(\[[^\[\]]+\]"){1}/g,"[NEW_RECORD]$2");e=e.replace(/<template[\s\S]+<\/template>/g,t)}return e},u.mark_for_destroy=function(e){var t=e.target.closest(".abyme--fields");t.querySelector("input[name*='_destroy']").value=1,t.style.display="none",t.classList.add("abyme--marked-for-destroy")},u.limit_check=function(){return this.newFieldsTargets.filter(function(e){return!e.classList.contains("abyme--marked-for-destroy")}).length>=parseInt(this.element.dataset.limit)},u.add_default_associations=function(){try{var e=this,n=0,o=function(e,n,o){for(var a;;){var s=e();if(i(s)&&(s=s.v),!s)return c;if(s.then){a=0;break}var c=o();if(c&&c.then){if(!i(c)){a=1;break}c=c.s}}var f=new r,u=t.bind(null,f,2);return(0===a?s.then(h):1===a?c.then(d):(void 0).then(function(){(s=e())?s.then?s.then(h).then(void 0,u):h(s):t(f,1,c)})).then(void 0,u),f;function d(n){c=n;do{if(!(s=e())||i(s)&&!s.v)return void t(f,1,c);if(s.then)return void s.then(h).then(void 0,u);i(c=o())&&(c=c.v)}while(!c||!c.then);c.then(d).then(void 0,u)}function h(e){e?(c=o())&&c.then?c.then(d).then(void 0,u):d(c):t(f,1,c)}}(function(){return n<e.count},0,function(){return e.add_association(),n++,Promise.resolve(e.sleep(1)).then(function(){})});return Promise.resolve(o&&o.then?o.then(function(){}):void 0)}catch(e){return Promise.reject(e)}},u.sleep=function(e){return new Promise(function(t){return setTimeout(t,e)})},c=s,(f=[{key:"count",get:function(){return this.element.dataset.minCount||0}},{key:"position",get:function(){return"end"===this.associationsTarget.dataset.abymePosition?"beforeend":"afterbegin"}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(c.prototype,f),Object.defineProperty(c,"prototype",{writable:!1}),s}(require("stimulus").Controller),r=function(){function e(){}return e.prototype.then=function(n,r){var i=new e,o=this.s;if(o){var a=1&o?n:r;if(a){try{t(i,1,a(this.v))}catch(e){t(i,2,e)}return i}return this}return this.o=function(e){try{var o=e.v;1&e.s?t(i,1,n?n(o):o):r?t(i,1,r(o)):t(i,2,o)}catch(e){t(i,2,e)}},i},e}();function i(e){return e instanceof r&&1&e.s}n.targets=["template","associations","fields","newFields"],exports.AbymeController=n;
2
2
  //# sourceMappingURL=abyme.js.map