dungeonsofheck 1.0 → 1.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 +4 -4
- data/Gemfile +14 -0
- data/spec/actions_spec.rb +1 -0
- data/spec/main_spec.rb +2 -0
- metadata +7 -9
- data/README.md +0 -44
- data/dungeonsofheck.gemspec +0 -14
- data/lib/Gemfile.lock +0 -62
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7952ab5b110f17b426ec2115978e7e1adee7ef2fc689f65a2577657cb51742d5
|
4
|
+
data.tar.gz: 56c961142c5e8f47afda51452f595606b7569c189d5c4adaa4407cf608746322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 426df9d4afb30858e66f9bacf359d20ce5e9f38fbc82aa8b9f34296f5231d3ffd59c00700dc650d06df3b04ae116c20dc3e8db40433e24489b78bf59b33dcd96
|
7
|
+
data.tar.gz: 76e4209b6a8896d81c4c99f2634d930334f8fd126322ad7a8e35811013a4777bf6e3f231093e81e041f1b803a3e889244a54fd244176bd69a662d0638a89fa26
|
data/Gemfile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
6
|
+
|
7
|
+
gem "rspec", "~> 3.9"
|
8
|
+
|
9
|
+
gem "tty-box", "~> 0.6.0"
|
10
|
+
gem "tty-prompt", "~> 0.22.0"
|
11
|
+
gem "tty-font", "~> 0.5.0"
|
12
|
+
gem "tty-table", "~> 0.12.0"
|
13
|
+
|
14
|
+
gem "colorize", "~> 0.8.1"
|
data/spec/actions_spec.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require_relative '../lib/main'
|
2
2
|
require_relative '../lib/actions'
|
3
3
|
|
4
|
+
# Test whether the Action::bag method outputs correctly based on item or no item input
|
4
5
|
describe 'bag contents' do
|
5
6
|
it 'should puts text to indicate that the bag is not empty' do
|
6
7
|
Game::PLAYER_ATTR[:inventory] = [{name: "Name", examine_text: "Examine"}]
|
data/spec/main_spec.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require_relative '../lib/main'
|
2
2
|
|
3
|
+
# Tests that user name input during the Game::introduction loop is correctly error handled
|
3
4
|
describe 'introduction name' do
|
4
5
|
it 'should raise an error for invalid input' do
|
5
6
|
Game::PLAYER_ATTR[:player_name] = "123"
|
@@ -11,6 +12,7 @@ describe 'introduction name' do
|
|
11
12
|
end
|
12
13
|
end
|
13
14
|
|
15
|
+
# Tests that user age input during the Game::introduction loop is correctly error handled
|
14
16
|
describe 'introduction age' do
|
15
17
|
it 'should raise an error for invalid input' do
|
16
18
|
Game::PLAYER_ATTR[:player_age] = Integer("ALEX") rescue 0
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dungeonsofheck
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.1'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Berenger Pike
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2020-10-02 00:00:00.000000000 Z
|
@@ -16,9 +16,7 @@ executables: []
|
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
|
-
-
|
20
|
-
- dungeonsofheck.gemspec
|
21
|
-
- lib/Gemfile.lock
|
19
|
+
- Gemfile
|
22
20
|
- lib/actions.rb
|
23
21
|
- lib/battle.rb
|
24
22
|
- lib/doge.txt
|
@@ -26,11 +24,11 @@ files:
|
|
26
24
|
- lib/main.rb
|
27
25
|
- spec/actions_spec.rb
|
28
26
|
- spec/main_spec.rb
|
29
|
-
homepage: https://github.com/theRamenWithin/
|
27
|
+
homepage: https://github.com/theRamenWithin/DungeonsOfHeck
|
30
28
|
licenses:
|
31
29
|
- MIT
|
32
30
|
metadata: {}
|
33
|
-
post_install_message:
|
31
|
+
post_install_message:
|
34
32
|
rdoc_options: []
|
35
33
|
require_paths:
|
36
34
|
- lib
|
@@ -45,8 +43,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
45
43
|
- !ruby/object:Gem::Version
|
46
44
|
version: '0'
|
47
45
|
requirements: []
|
48
|
-
rubygems_version: 3.
|
49
|
-
signing_key:
|
46
|
+
rubygems_version: 3.2.2
|
47
|
+
signing_key:
|
50
48
|
specification_version: 4
|
51
49
|
summary: Dungeons of Heck
|
52
50
|
test_files: []
|
data/README.md
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
# DungeonsOfHeck
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/DungeonsOfHeck`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
9
|
-
Add this line to your application's Gemfile:
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'DungeonsOfHeck'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle install
|
18
|
-
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install DungeonsOfHeck
|
22
|
-
|
23
|
-
## Usage
|
24
|
-
|
25
|
-
TODO: Write usage instructions here
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/DungeonsOfHeck. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/DungeonsOfHeck/blob/master/CODE_OF_CONDUCT.md).
|
36
|
-
|
37
|
-
|
38
|
-
## License
|
39
|
-
|
40
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
41
|
-
|
42
|
-
## Code of Conduct
|
43
|
-
|
44
|
-
Everyone interacting in the DungeonsOfHeck project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/DungeonsOfHeck/blob/master/CODE_OF_CONDUCT.md).
|
data/dungeonsofheck.gemspec
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
Gem::Specification.new do |s|
|
2
|
-
s.name = 'dungeonsofheck'
|
3
|
-
s.version = '1.0'
|
4
|
-
s.license = 'MIT'
|
5
|
-
s.date = '2020-10-02'
|
6
|
-
s.summary = "Dungeons of Heck"
|
7
|
-
s.description = "A gem for playing the game Dungeons of Heck"
|
8
|
-
s.authors = ["Alex Berenger Pike"]
|
9
|
-
s.email = 'alex.pike.ap@outlook.com'
|
10
|
-
s.files = Dir['lib/*.*']
|
11
|
-
s.files += Dir['[A-Z]*'] + Dir['spec/*']
|
12
|
-
s.files.reject! { |fn| fn.include? "CVS" }
|
13
|
-
s.homepage = 'https://github.com/theRamenWithin/Assignments/tree/master/Term1/Assignment3'
|
14
|
-
end
|
data/lib/Gemfile.lock
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://rubygems.org/
|
3
|
-
specs:
|
4
|
-
colorize (0.8.1)
|
5
|
-
diff-lcs (1.4.4)
|
6
|
-
pastel (0.8.0)
|
7
|
-
tty-color (~> 0.5)
|
8
|
-
rspec (3.9.0)
|
9
|
-
rspec-core (~> 3.9.0)
|
10
|
-
rspec-expectations (~> 3.9.0)
|
11
|
-
rspec-mocks (~> 3.9.0)
|
12
|
-
rspec-core (3.9.2)
|
13
|
-
rspec-support (~> 3.9.3)
|
14
|
-
rspec-expectations (3.9.2)
|
15
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
16
|
-
rspec-support (~> 3.9.0)
|
17
|
-
rspec-mocks (3.9.1)
|
18
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
19
|
-
rspec-support (~> 3.9.0)
|
20
|
-
rspec-support (3.9.3)
|
21
|
-
strings (0.2.0)
|
22
|
-
strings-ansi (~> 0.2)
|
23
|
-
unicode-display_width (~> 1.5)
|
24
|
-
unicode_utils (~> 1.4)
|
25
|
-
strings-ansi (0.2.0)
|
26
|
-
tty-box (0.6.0)
|
27
|
-
pastel (~> 0.8)
|
28
|
-
strings (~> 0.2.0)
|
29
|
-
tty-cursor (~> 0.7)
|
30
|
-
tty-color (0.5.2)
|
31
|
-
tty-cursor (0.7.1)
|
32
|
-
tty-font (0.5.0)
|
33
|
-
tty-prompt (0.22.0)
|
34
|
-
pastel (~> 0.8)
|
35
|
-
tty-reader (~> 0.8)
|
36
|
-
tty-reader (0.8.0)
|
37
|
-
tty-cursor (~> 0.7)
|
38
|
-
tty-screen (~> 0.8)
|
39
|
-
wisper (~> 2.0)
|
40
|
-
tty-screen (0.8.1)
|
41
|
-
tty-table (0.12.0)
|
42
|
-
pastel (~> 0.8)
|
43
|
-
strings (~> 0.2.0)
|
44
|
-
tty-screen (~> 0.8)
|
45
|
-
unicode-display_width (1.7.0)
|
46
|
-
unicode_utils (1.4.0)
|
47
|
-
wisper (2.0.1)
|
48
|
-
|
49
|
-
PLATFORMS
|
50
|
-
ruby
|
51
|
-
x64-mingw32
|
52
|
-
|
53
|
-
DEPENDENCIES
|
54
|
-
colorize (~> 0.8.1)
|
55
|
-
rspec (~> 3.9)
|
56
|
-
tty-box (~> 0.6.0)
|
57
|
-
tty-font (~> 0.5.0)
|
58
|
-
tty-prompt (~> 0.22.0)
|
59
|
-
tty-table (~> 0.12.0)
|
60
|
-
|
61
|
-
BUNDLED WITH
|
62
|
-
2.1.4
|