ginny 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4722f6a584bcdf1a633f45f8ccac654d0df98bc09628049aa9b85f8c2b75508d
4
- data.tar.gz: c04c92002b3108a6e5ef68409e8a0f7c91bbb869972f2a9ce8813ccb40411b69
3
+ metadata.gz: '039abac85f4dc45c0c0102e65382a9b6fb119b62b03295ca9ac76bf074a1a6f4'
4
+ data.tar.gz: 4d85028f3ff4d07d4fe5545574b31e0a14e7b3063923ea246fdaf1c5315c4335
5
5
  SHA512:
6
- metadata.gz: 69cd9320460faf929662696199ed79cd4d69463c7e0d7627ba716e16385eb42d3bd4a8e1e491429c20d0b9924ccc70808a50c737cc2b861c69bbe9a70cc48315
7
- data.tar.gz: 8322f2ff0ae9419a3ecdcf09b71aa58f7eeb5f92643a91e210831a68cb7ba6384f7808e5dd50f73e69e4c8875f1402a6ffc1484e9f06fe935ff6fe001cf5ceb0
6
+ metadata.gz: 5f552ee198d1f6c6b442a4cba0cd0145c5cd4151cf8917510cce52f1c7534bf11d5e79015160a15a7ab566b118de1fe07de225a472dcf7c401db50768afcdd75
7
+ data.tar.gz: 78907d7afc7f79829a400883b80c8f819d1c04b4ae4be5aaf614924dbd1a068200836ef62c28cc5fc6cb4c7468e494c1ef7de07ebe2d9236be0fbd6303feaa3f
@@ -2,6 +2,13 @@
2
2
 
3
3
  <!-- ## master (unreleased) -->
4
4
 
5
+ ## 0.6.3 (2019-12-17)
6
+
7
+ ### Added
8
+
9
+ - `file` keyword argument to `Ginny::Class.generate`, to set the name of the generated file.
10
+ - New helper methods for tests.
11
+
5
12
  ## 0.6.2 (2019-12-16)
6
13
 
7
14
  ### Added
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ginny (0.6.2)
4
+ ginny (0.6.3)
5
5
  coolkit (~> 0.2.2)
6
6
  dry-inflector (~> 0.2.0)
7
7
 
data/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  [rubygems]: https://rubygems.org/gems/ginny
10
10
  [travis-ci]: https://travis-ci.org/tcd/ginny
11
11
  [coveralls-ci]: https://coveralls.io/github/tcd/ginny?branch=master
12
- [rubydoc-gem]: https://www.rubydoc.info/gems/ginny/0.6.2
12
+ [rubydoc-gem]: https://www.rubydoc.info/gems/ginny/0.6.3
13
13
  [license]: https://github.com/tcd/ginny/blob/master/LICENSE.txt
14
14
 
15
15
 
@@ -64,9 +64,11 @@ module Ginny
64
64
  # Write generated code out to a file.
65
65
  #
66
66
  # @param folder [String]
67
+ # @param file [String]
67
68
  # @return [String]
68
- def generate(folder = ".")
69
- path = File.join(File.expand_path(folder), self.file_name())
69
+ def generate(folder = ".", file: nil)
70
+ name = file.nil? ? self.file_name() : file
71
+ path = File.join(File.expand_path(folder), name)
70
72
  File.open(path, "a") { |f| f.write(self.render() + "\n") }
71
73
  return path
72
74
  end
@@ -1,3 +1,3 @@
1
1
  module Ginny
2
- VERSION = "0.6.2".freeze
2
+ VERSION = "0.6.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ginny
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clay Dunston
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-16 00:00:00.000000000 Z
11
+ date: 2019-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -198,7 +198,7 @@ licenses:
198
198
  metadata:
199
199
  homepage_uri: https://github.com/tcd/ginny
200
200
  source_code_uri: https://github.com/tcd/ginny
201
- documentation_uri: https://www.rubydoc.info/gems/ginny/0.6.2
201
+ documentation_uri: https://www.rubydoc.info/gems/ginny/0.6.3
202
202
  changelog_uri: https://github.com/tcd/ginny/blob/master/CHANGELOG.md
203
203
  yard.run: yri
204
204
  post_install_message: