vale 0.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: da26d8bc3255526215c6aac27fc880bdabcee2e48d046a7031438e52d0415134
4
+ data.tar.gz: eeeee9e4f04343260ba3d7c0fb64409c134e866da9007350286f6bbbb760f491
5
+ SHA512:
6
+ metadata.gz: 196a0464f89fcf512eda537e105aa9c01e6898d5a38c2afef956bd47a23aff4a724e2dc32c040eb8facbd7a8fb18517c0a6a812333bbeb0908afab03f6db8759
7
+ data.tar.gz: 5e056655c710aebd2755e89f26f77388522c1e732edd18e6fd68d40cf60e18ab040fb5e9919053cb7ece85aeb5be4cee4f35ddcf483eee43b17fce00336de2ae
data/lib/vale.rb ADDED
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2018 Richard Davis
4
+ #
5
+ # This file is part of vale.
6
+ #
7
+ # vale is free software: you can redistribute it and/or modify
8
+ # it under the terms of the GNU General Public License as published by
9
+ # the Free Software Foundation, either version 3 of the License, or
10
+ # (at your option) any later version.
11
+ #
12
+ # vale is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ # GNU General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU General Public License
18
+ # along with vale. If not, see <http://www.gnu.org/licenses/>.
19
+
20
+
21
+ require 'vale/base'
22
+
23
+ ##
24
+ # = Vale
25
+ # Author:: Richard Davis
26
+ # Copyright:: Copyright 2018 Richard Davis
27
+ # License:: GNU Public License 3
28
+ #
29
+ # Module for namespacing application classes.
30
+ module Vale
31
+ end
data/lib/vale/base.rb ADDED
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2018 Richard Davis
4
+ #
5
+ # This file is part of vale.
6
+ #
7
+ # vale is free software: you can redistribute it and/or modify
8
+ # it under the terms of the GNU General Public License as published by
9
+ # the Free Software Foundation, either version 3 of the License, or
10
+ # (at your option) any later version.
11
+ #
12
+ # vale is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ # GNU General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU General Public License
18
+ # along with vale. If not, see <http://www.gnu.org/licenses/>.
19
+
20
+
21
+ ##
22
+ # = /lib/vale.rb
23
+ # Author:: Richard Davis
24
+ # Copyright:: Copyright 2018 Richard Davis
25
+ # License:: GNU Public License 3
26
+ #
27
+ # Main application file that loads other files.
28
+ require 'vale/hello'
29
+
30
+
31
+ # NOTE: You should replace the greet functionality with some of your own code.
32
+ # Use the hello.rb file as a guide for structuring your code, and ensure
33
+ # that you adjust the require statement as well as the CLI option (if
34
+ # included), adding additional files/CLI options in a similar fashion.
data/lib/vale/hello.rb ADDED
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2018 Richard Davis
4
+ #
5
+ # This file is part of vale.
6
+ #
7
+ # vale is free software: you can redistribute it and/or modify
8
+ # it under the terms of the GNU General Public License as published by
9
+ # the Free Software Foundation, either version 3 of the License, or
10
+ # (at your option) any later version.
11
+ #
12
+ # vale is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ # GNU General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU General Public License
18
+ # along with vale. If not, see <http://www.gnu.org/licenses/>.
19
+
20
+
21
+ module Vale
22
+ ##
23
+ # = Hello
24
+ # Author:: Richard Davis
25
+ # Copyright:: Copyright 2018 Richard Davis
26
+ # License:: GNU Public License 3
27
+ #
28
+ # Contains modularized code for project; given example provides a greeting
29
+ class Hello
30
+ ##
31
+ # Returns a greeting provided a name.
32
+ def self.greeting(name)
33
+ "Hello, #{name}."
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2018 Richard Davis
4
+ #
5
+ # This file is part of vale.
6
+ #
7
+ # vale is free software: you can redistribute it and/or modify
8
+ # it under the terms of the GNU General Public License as published by
9
+ # the Free Software Foundation, either version 3 of the License, or
10
+ # (at your option) any later version.
11
+ #
12
+ # vale is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ # GNU General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU General Public License
18
+ # along with vale. If not, see <http://www.gnu.org/licenses/>.
19
+
20
+
21
+ ##
22
+ # = version.rb
23
+ # Author:: Richard Davis
24
+ # Copyright:: Copyright 2018 Richard Davis
25
+ # License:: GNU Public License 3
26
+ #
27
+ # Module for namespacing application classes.
28
+ module Vale
29
+ VERSION = '0.0.1'
30
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2018 Richard Davis
4
+ #
5
+ # This file is part of vale.
6
+ #
7
+ # vale is free software: you can redistribute it and/or modify
8
+ # it under the terms of the GNU General Public License as published by
9
+ # the Free Software Foundation, either version 3 of the License, or
10
+ # (at your option) any later version.
11
+ #
12
+ # vale is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ # GNU General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU General Public License
18
+ # along with vale. If not, see <http://www.gnu.org/licenses/>.
19
+
20
+
21
+ require 'minitest/autorun'
22
+ require_relative '../lib/vale/hello'
23
+
24
+ ##
25
+ # = HelloTest
26
+ # Author:: Richard Davis
27
+ # Copyright:: Copyright 2018 Richard Davis
28
+ # License:: GNU Public License 3
29
+ #
30
+ # Contains tests for Hello class.
31
+ class HelloTest < Minitest::Test
32
+ ##
33
+ # Initializes test with sample data
34
+ def setup
35
+ @name = 'friend'
36
+ end
37
+
38
+ ##
39
+ # Ensures the greeter is behaving as expected
40
+ def test_hello
41
+ assert_equal('Hello, friend.', Vale::Hello.greeting(@name))
42
+ end
43
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vale
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Richard Davis
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-12-25 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: 'A game engine that empowers creators to craft compelling text adventures.
14
+
15
+ '
16
+ email: rvdavis@member.fsf.org
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/vale.rb
22
+ - lib/vale/base.rb
23
+ - lib/vale/hello.rb
24
+ - lib/vale/version.rb
25
+ - test/test_hello.rb
26
+ homepage: https://gitlab.com/d3d1rty/vale
27
+ licenses:
28
+ - GPL-3.0
29
+ metadata: {}
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ required_rubygems_version: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 2.7.6
47
+ signing_key:
48
+ specification_version: 4
49
+ summary: A game engine that empowers creators to craft compelling text adventures.
50
+ test_files:
51
+ - test/test_hello.rb