rbytes 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +4 -0
- data/lib/ruby_bytes/publisher.rb +1 -1
- data/lib/ruby_bytes/test_case.rb +4 -3
- data/lib/ruby_bytes/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d5f9b7ef9aa790dd67e77dd0844cd687919c4bf25f79bfea70aa3ba8b2f8af7
|
4
|
+
data.tar.gz: 893078a760c1d54d8e8b8096f9d99b3e31736cf4346d87fcde240deca8d5c23d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a53aafcbf1fda5e33e1069a05cccda2ccae4eb3ebb4cb73b26f2129378cc9a90ef1d03308edaf59f9f8a2128a09bf4d4e1d99e942b504a0dbc1791e0f97329df
|
7
|
+
data.tar.gz: 0e1bb54b2a3bda1b862e005de1f065535ba93a2c8a0277fc6310fff5d97da3c70bf9c6e1ee9dbde9786d3a811408da5390ecc3f60135493392f0dabdc06d17ab
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -11,10 +11,13 @@ Ruby Bytes is a tool to build application templates for Ruby and Rails applicati
|
|
11
11
|
|
12
12
|
We also provide a [GitHub action](#github-action) to compile and deploy templates continuously.
|
13
13
|
|
14
|
+
> 📖 Read more about Ruby Bytes and application templates in the [Ruby Bytes, or generating standalone generators](https://evilmartians.com/chronicles/ruby-bytes-or-generating-standalone-generators) post.
|
15
|
+
|
14
16
|
## Examples
|
15
17
|
|
16
18
|
- [ruby-on-whales][]
|
17
19
|
- [view_component-contrib][]
|
20
|
+
- [rubocoping][]
|
18
21
|
|
19
22
|
See also examples in the [templates](https://github.com/palkan/rbytes/tree/master/templates) folder.
|
20
23
|
|
@@ -268,3 +271,4 @@ The gem is available as open source under the terms of the [MIT License](http://
|
|
268
271
|
[RailsBytes]: https://railsbytes.com
|
269
272
|
[ruby-on-whales]: https://github.com/evilmartians/ruby-on-whales
|
270
273
|
[view_component-contrib]: https://github.com/palkan/view_component-contrib
|
274
|
+
[rubocoping]: https://github.com/evilmartians/rubocoping-generator
|
data/lib/ruby_bytes/publisher.rb
CHANGED
data/lib/ruby_bytes/test_case.rb
CHANGED
@@ -88,14 +88,15 @@ module RubyBytes
|
|
88
88
|
dummy = self.class.dummy_app
|
89
89
|
return unless dummy
|
90
90
|
|
91
|
-
return if @dummy_prepared
|
92
|
-
|
93
91
|
raise ArgumentError, "Dummy app must be a directory" unless File.directory?(dummy)
|
94
92
|
|
95
93
|
tmp_dummy_path = File.join(TMP_DIR, "dummy")
|
94
|
+
self.destination = tmp_dummy_path
|
95
|
+
|
96
|
+
return if @dummy_prepared
|
97
|
+
|
96
98
|
FileUtils.rm_rf(tmp_dummy_path) if File.directory?(tmp_dummy_path)
|
97
99
|
FileUtils.cp_r(dummy, tmp_dummy_path)
|
98
|
-
self.destination = tmp_dummy_path
|
99
100
|
|
100
101
|
if block_given?
|
101
102
|
Dir.chdir(tmp_dummy_path) { yield }
|
data/lib/ruby_bytes/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbytes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Dementyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|