magicka 0.6.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +3 -3
- data/.rubocop.yml +1 -1
- data/Dockerfile +3 -2
- data/README.md +5 -1
- data/lib/magicka/version.rb +1 -1
- data/magicka.gemspec +9 -7
- data/spec/lib/magicka/aggregator_spec.rb +3 -3
- data/spec/lib/magicka/button_spec.rb +1 -1
- data/spec/lib/magicka/display_spec.rb +3 -3
- data/spec/lib/magicka/form_element_spec.rb +2 -2
- data/spec/lib/magicka/form_spec.rb +3 -3
- data/spec/lib/magicka/input_spec.rb +1 -1
- data/spec/lib/magicka/select_spec.rb +1 -1
- data/spec/lib/magicka/text_spec.rb +1 -1
- metadata +52 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 662d942d270879b97fb0ee3be36a41c4448db92ab11f2f3462fd4315a53b06d7
|
4
|
+
data.tar.gz: b6dc02755727b9f84ab61dd66eb34d71a8ecac53da565594e49f69c1e632b784
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bad26b83421ea3d47a6d002aa521f754fea7df036ed89ebf457297b076ffc2118bbdaf3fe2465a8cff8e1b3f176ef02dddb0211b20e3b2ab9f0c010b1cf75f6
|
7
|
+
data.tar.gz: ce04771c5649517ee7c17b54978b61137c897e0e23118aac1806b4035ab96aafba6aef857f1cc498048e4ff37b37d0eef433f0133fd871cb364b19cedab5a08a
|
data/.circleci/config.yml
CHANGED
@@ -22,7 +22,7 @@ workflows:
|
|
22
22
|
jobs:
|
23
23
|
test:
|
24
24
|
docker:
|
25
|
-
- image: darthjee/circleci_rails_gems:
|
25
|
+
- image: darthjee/circleci_rails_gems:1.2.0
|
26
26
|
environment:
|
27
27
|
PROJECT: magicka
|
28
28
|
steps:
|
@@ -41,7 +41,7 @@ jobs:
|
|
41
41
|
command: cc-test-reporter after-build --exit-code $?
|
42
42
|
checks:
|
43
43
|
docker:
|
44
|
-
- image: darthjee/circleci_rails_gems:
|
44
|
+
- image: darthjee/circleci_rails_gems:1.2.0
|
45
45
|
environment:
|
46
46
|
PROJECT: magicka
|
47
47
|
steps:
|
@@ -66,7 +66,7 @@ jobs:
|
|
66
66
|
command: check_specs
|
67
67
|
build-and-release:
|
68
68
|
docker:
|
69
|
-
- image: darthjee/circleci_rails_gems:
|
69
|
+
- image: darthjee/circleci_rails_gems:1.2.0
|
70
70
|
environment:
|
71
71
|
PROJECT: magicka
|
72
72
|
steps:
|
data/.rubocop.yml
CHANGED
data/Dockerfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
FROM darthjee/scripts:0.1
|
1
|
+
FROM darthjee/scripts:0.3.1 as scripts
|
2
2
|
|
3
|
-
FROM darthjee/rails_gems:
|
3
|
+
FROM darthjee/rails_gems:1.2.0 as base
|
4
4
|
|
5
5
|
COPY --chown=app:app ./ /home/app/app/
|
6
6
|
|
@@ -19,3 +19,4 @@ FROM base
|
|
19
19
|
|
20
20
|
COPY --chown=app:app --from=builder /home/app/bundle/ /usr/local/bundle/
|
21
21
|
RUN bundle install
|
22
|
+
RUN bundle clean --force
|
data/README.md
CHANGED
@@ -12,9 +12,13 @@ Magicka
|
|
12
12
|
Magica helps creating html templates for forms and display data using js applications
|
13
13
|
such as AngulaJS
|
14
14
|
|
15
|
+
Current Release: [2.0.0](https://github.com/darthjee/magicka/tree/1.0.0)
|
16
|
+
|
17
|
+
[Next release](https://github.com/darthjee/magicka/compare/1.0.0...master)
|
18
|
+
|
15
19
|
Yard Documentation
|
16
20
|
-------------------
|
17
|
-
[https://www.rubydoc.info/gems/magicka/0.
|
21
|
+
[https://www.rubydoc.info/gems/magicka/1.0.0](https://www.rubydoc.info/gems/magicka/1.0.0)
|
18
22
|
|
19
23
|
Installation
|
20
24
|
---------------
|
data/lib/magicka/version.rb
CHANGED
data/magicka.gemspec
CHANGED
@@ -12,24 +12,24 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.homepage = 'https://github.com/darthjee/magicka'
|
13
13
|
gem.description = 'Gem for easy form templating'
|
14
14
|
gem.summary = gem.description
|
15
|
-
gem.required_ruby_version = '>= 2.
|
15
|
+
gem.required_ruby_version = '>= 2.7.0'
|
16
16
|
|
17
17
|
gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
18
18
|
gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
19
|
gem.test_files = gem.files.grep(%r{^(test|gem|features)/})
|
20
20
|
gem.require_paths = ['lib']
|
21
21
|
|
22
|
-
gem.add_runtime_dependency 'activesupport', '~>
|
23
|
-
gem.add_runtime_dependency 'sinclair', '>=
|
22
|
+
gem.add_runtime_dependency 'activesupport', '~> 7.0.x'
|
23
|
+
gem.add_runtime_dependency 'sinclair', '>= 2.0.0'
|
24
24
|
|
25
|
-
gem.add_development_dependency 'actionpack', '
|
26
|
-
gem.add_development_dependency 'activerecord', '
|
27
|
-
gem.add_development_dependency 'bundler', '
|
25
|
+
gem.add_development_dependency 'actionpack', '7.0.4.3'
|
26
|
+
gem.add_development_dependency 'activerecord', '7.0.4.3'
|
27
|
+
gem.add_development_dependency 'bundler', '>= 2.3.25'
|
28
28
|
gem.add_development_dependency 'factory_bot', '5.2.0'
|
29
29
|
gem.add_development_dependency 'nokogiri', '1.12.5'
|
30
30
|
gem.add_development_dependency 'pry', '0.12.2'
|
31
31
|
gem.add_development_dependency 'pry-nav', '0.3.0'
|
32
|
-
gem.add_development_dependency 'rails', '
|
32
|
+
gem.add_development_dependency 'rails', '7.0.4.3'
|
33
33
|
gem.add_development_dependency 'rails-controller-testing', '1.0.4'
|
34
34
|
gem.add_development_dependency 'rake', '13.0.1'
|
35
35
|
gem.add_development_dependency 'reek', '6.0.3'
|
@@ -43,7 +43,9 @@ Gem::Specification.new do |gem|
|
|
43
43
|
gem.add_development_dependency 'rubocop-rspec', '1.38.1'
|
44
44
|
gem.add_development_dependency 'rubycritic', '4.6.1'
|
45
45
|
gem.add_development_dependency 'simplecov', '0.17.1'
|
46
|
+
gem.add_development_dependency 'sprockets-rails', '3.4.2'
|
46
47
|
gem.add_development_dependency 'sqlite3', '1.4.2'
|
48
|
+
gem.add_development_dependency 'tzinfo-data', '~> 1.2022.1'
|
47
49
|
gem.add_development_dependency 'yard', '0.9.26'
|
48
50
|
gem.add_development_dependency 'yardstick', '0.9.9'
|
49
51
|
end
|
@@ -76,7 +76,7 @@ describe Magicka::Aggregator do
|
|
76
76
|
end
|
77
77
|
|
78
78
|
it 'renders an input' do
|
79
|
-
aggregator.input(field, arguments)
|
79
|
+
aggregator.input(field, **arguments)
|
80
80
|
|
81
81
|
expect(renderer).to have_received(:render)
|
82
82
|
end
|
@@ -140,7 +140,7 @@ describe Magicka::Aggregator do
|
|
140
140
|
end
|
141
141
|
|
142
142
|
it 'renders an input' do
|
143
|
-
aggregator.my_input(field, arguments)
|
143
|
+
aggregator.my_input(field, **arguments)
|
144
144
|
|
145
145
|
expect(renderer).to have_received(:render)
|
146
146
|
end
|
@@ -206,7 +206,7 @@ describe Magicka::Aggregator do
|
|
206
206
|
end
|
207
207
|
|
208
208
|
it 'renders an input' do
|
209
|
-
aggregator.input(field, arguments)
|
209
|
+
aggregator.input(field, **arguments)
|
210
210
|
|
211
211
|
expect(renderer).to have_received(:render)
|
212
212
|
end
|
@@ -45,7 +45,7 @@ describe Magicka::Display do
|
|
45
45
|
end
|
46
46
|
|
47
47
|
it 'renders a text' do
|
48
|
-
form.input(field, arguments)
|
48
|
+
form.input(field, **arguments)
|
49
49
|
|
50
50
|
expect(renderer).to have_received(:render)
|
51
51
|
end
|
@@ -91,7 +91,7 @@ describe Magicka::Display do
|
|
91
91
|
end
|
92
92
|
|
93
93
|
it 'renders a text' do
|
94
|
-
form.select(field, arguments)
|
94
|
+
form.select(field, **arguments)
|
95
95
|
|
96
96
|
expect(renderer).to have_received(:render)
|
97
97
|
end
|
@@ -130,7 +130,7 @@ describe Magicka::Display do
|
|
130
130
|
end
|
131
131
|
|
132
132
|
it 'renders nothing' do
|
133
|
-
form.button(arguments)
|
133
|
+
form.button(**arguments)
|
134
134
|
|
135
135
|
expect(renderer).not_to have_received(:render)
|
136
136
|
end
|
@@ -44,7 +44,7 @@ describe Magicka::FormElement do
|
|
44
44
|
end
|
45
45
|
|
46
46
|
it do
|
47
|
-
klass.render(arguments)
|
47
|
+
klass.render(**arguments)
|
48
48
|
|
49
49
|
expect(renderer).to have_received(:render)
|
50
50
|
end
|
@@ -70,7 +70,7 @@ describe Magicka::FormElement do
|
|
70
70
|
end
|
71
71
|
|
72
72
|
it do
|
73
|
-
klass.render(arguments)
|
73
|
+
klass.render(**arguments)
|
74
74
|
|
75
75
|
expect(renderer).to have_received(:render)
|
76
76
|
end
|
@@ -46,7 +46,7 @@ describe Magicka::Form do
|
|
46
46
|
end
|
47
47
|
|
48
48
|
it 'renders an input' do
|
49
|
-
form.input(field, arguments)
|
49
|
+
form.input(field, **arguments)
|
50
50
|
|
51
51
|
expect(renderer).to have_received(:render)
|
52
52
|
end
|
@@ -94,7 +94,7 @@ describe Magicka::Form do
|
|
94
94
|
end
|
95
95
|
|
96
96
|
it 'renders a select' do
|
97
|
-
form.select(field, arguments)
|
97
|
+
form.select(field, **arguments)
|
98
98
|
|
99
99
|
expect(renderer).to have_received(:render)
|
100
100
|
end
|
@@ -144,7 +144,7 @@ describe Magicka::Form do
|
|
144
144
|
end
|
145
145
|
|
146
146
|
it 'renders an input' do
|
147
|
-
form.button(arguments)
|
147
|
+
form.button(**arguments)
|
148
148
|
|
149
149
|
expect(renderer).to have_received(:render)
|
150
150
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magicka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DarthJee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,70 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 7.0.x
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 7.0.x
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sinclair
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: actionpack
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 7.0.4.3
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 7.0.4.3
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: activerecord
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 7.0.4.3
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 7.0.4.3
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 2.3.25
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 2.3.25
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: factory_bot
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,16 +140,16 @@ dependencies:
|
|
140
140
|
name: rails
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- -
|
143
|
+
- - '='
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 7.0.4.3
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- -
|
150
|
+
- - '='
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 7.0.4.3
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: rails-controller-testing
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -332,6 +332,20 @@ dependencies:
|
|
332
332
|
- - '='
|
333
333
|
- !ruby/object:Gem::Version
|
334
334
|
version: 0.17.1
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: sprockets-rails
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - '='
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: 3.4.2
|
342
|
+
type: :development
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - '='
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: 3.4.2
|
335
349
|
- !ruby/object:Gem::Dependency
|
336
350
|
name: sqlite3
|
337
351
|
requirement: !ruby/object:Gem::Requirement
|
@@ -346,6 +360,20 @@ dependencies:
|
|
346
360
|
- - '='
|
347
361
|
- !ruby/object:Gem::Version
|
348
362
|
version: 1.4.2
|
363
|
+
- !ruby/object:Gem::Dependency
|
364
|
+
name: tzinfo-data
|
365
|
+
requirement: !ruby/object:Gem::Requirement
|
366
|
+
requirements:
|
367
|
+
- - "~>"
|
368
|
+
- !ruby/object:Gem::Version
|
369
|
+
version: 1.2022.1
|
370
|
+
type: :development
|
371
|
+
prerelease: false
|
372
|
+
version_requirements: !ruby/object:Gem::Requirement
|
373
|
+
requirements:
|
374
|
+
- - "~>"
|
375
|
+
- !ruby/object:Gem::Version
|
376
|
+
version: 1.2022.1
|
349
377
|
- !ruby/object:Gem::Dependency
|
350
378
|
name: yard
|
351
379
|
requirement: !ruby/object:Gem::Requirement
|
@@ -503,15 +531,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
503
531
|
requirements:
|
504
532
|
- - ">="
|
505
533
|
- !ruby/object:Gem::Version
|
506
|
-
version: 2.
|
534
|
+
version: 2.7.0
|
507
535
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
508
536
|
requirements:
|
509
537
|
- - ">="
|
510
538
|
- !ruby/object:Gem::Version
|
511
539
|
version: '0'
|
512
540
|
requirements: []
|
513
|
-
|
514
|
-
rubygems_version: 2.7.6
|
541
|
+
rubygems_version: 3.1.2
|
515
542
|
signing_key:
|
516
543
|
specification_version: 4
|
517
544
|
summary: Gem for easy form templating
|