ginny 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/ginny/models/class.rb +8 -2
- data/lib/ginny/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: 3e520f3cde482cc44d85a8b4eebd790bdffeb14d5d27abc5e102974f806fd162
|
4
|
+
data.tar.gz: a7852657aae49c42272002a154663b59e025e7729e91f0001c99ad4e5fb5a37c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74885ee3d1f8f8dc19e2127e018d6a2222f7c4781218c8e6d8f4ed668599a84c2edf934db3a44cc7707b694ef2c2f7134fd489e32e2f5e77fa6c43e4f192e4bf
|
7
|
+
data.tar.gz: 204e663e9f2ceaa337ee191c1a36ce61da041cf265a9f39d74b0d99abb6169fc5c23fd527bf98949f745f9e63aec02ead05f10ca3cf39b490e1af4f024d5bfaa
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/ginny/models/class.rb
CHANGED
@@ -84,13 +84,19 @@ module Ginny
|
|
84
84
|
|
85
85
|
# @return [String]
|
86
86
|
def class_name()
|
87
|
-
inflector = Dry::Inflector.new
|
87
|
+
inflector = Dry::Inflector.new do |inflections|
|
88
|
+
inflections.plural("data", "data")
|
89
|
+
inflections.singular(/([t])a\z/i, '\1a')
|
90
|
+
end
|
88
91
|
return inflector.classify(inflector.underscore(self.name))
|
89
92
|
end
|
90
93
|
|
91
94
|
# @return [String]
|
92
95
|
def file_name()
|
93
|
-
inflector = Dry::Inflector.new
|
96
|
+
inflector = Dry::Inflector.new do |inflections|
|
97
|
+
inflections.plural("data", "data")
|
98
|
+
inflections.singular(/([t])a\z/i, '\1a')
|
99
|
+
end
|
94
100
|
return self.file_prefix + inflector.underscore(self.name) + ".rb"
|
95
101
|
end
|
96
102
|
|
data/lib/ginny/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ginny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clay Dunston
|
@@ -191,7 +191,7 @@ licenses:
|
|
191
191
|
metadata:
|
192
192
|
homepage_uri: https://github.com/tcd/ginny
|
193
193
|
source_code_uri: https://github.com/tcd/ginny
|
194
|
-
documentation_uri: https://www.rubydoc.info/gems/ginny/0.5.
|
194
|
+
documentation_uri: https://www.rubydoc.info/gems/ginny/0.5.3
|
195
195
|
changelog_uri: https://github.com/tcd/ginny/blob/master/CHANGELOG.md
|
196
196
|
yard.run: yri
|
197
197
|
post_install_message:
|