mega_lotto_baxter2 0.1.0

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: 2bd74b3c2631e587692a6bd1dd6365dc4ddf057fb4e335b0d5312d8397bce316
4
+ data.tar.gz: 81d707708585f0bb357f3ee5cad7e873c981ab818c03dc634b880962b41d19ee
5
+ SHA512:
6
+ metadata.gz: c4939510935f9197311df386f1b3e99d6325427e75e6cf8c7f9f4f00c0660eaac2be7d4f00d8ad2c854da60d52e6431377f0e13b60ebe51ccf535007d31561e6
7
+ data.tar.gz: 8a6b3d85a76c76b906a19b24a47cab1226bed7f505850bcb203c87af243318415f0fb861a88af8a7ed5fd930e73c12ff300ed817d154eca7c19ac478df2a0e79
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ MegaLottoBaxter2
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.5.1
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.1
7
+ before_install: gem install bundler -v 1.16.6
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in mega_lotto_baxter2.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,41 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ mega_lotto_baxter2 (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ coderay (1.1.2)
10
+ diff-lcs (1.3)
11
+ method_source (0.9.0)
12
+ pry (0.11.3)
13
+ coderay (~> 1.1.0)
14
+ method_source (~> 0.9.0)
15
+ rake (10.5.0)
16
+ rspec (3.8.0)
17
+ rspec-core (~> 3.8.0)
18
+ rspec-expectations (~> 3.8.0)
19
+ rspec-mocks (~> 3.8.0)
20
+ rspec-core (3.8.0)
21
+ rspec-support (~> 3.8.0)
22
+ rspec-expectations (3.8.1)
23
+ diff-lcs (>= 1.2.0, < 2.0)
24
+ rspec-support (~> 3.8.0)
25
+ rspec-mocks (3.8.0)
26
+ diff-lcs (>= 1.2.0, < 2.0)
27
+ rspec-support (~> 3.8.0)
28
+ rspec-support (3.8.0)
29
+
30
+ PLATFORMS
31
+ ruby
32
+
33
+ DEPENDENCIES
34
+ bundler (~> 1.16)
35
+ mega_lotto_baxter2!
36
+ pry
37
+ rake (~> 10.0)
38
+ rspec (~> 3.0)
39
+
40
+ BUNDLED WITH
41
+ 1.16.6
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 mikaelblomkvist50
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # MegaLottoBaxter2
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/mega_lotto_baxter2`. 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 'mega_lotto_baxter2'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install mega_lotto_baxter2
22
+
23
+ ## Usage
24
+
25
+ ```ruby
26
+ MegaLotto::Drawing.new.draw # => [23, 22, 3, 7, 16]
27
+ ```
28
+
29
+ ## Development
30
+
31
+ 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.
32
+
33
+ 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).
34
+
35
+ ## Contributing
36
+
37
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/mega_lotto_baxter2.
38
+
39
+ ## License
40
+
41
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
8
+ task :console do
9
+ exec "irb -r mega_lotto_baxter2 -I ./lib"
10
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "mega_lotto_baxter2"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,13 @@
1
+ module MegaLotto
2
+ class Drawing
3
+ def draw
4
+ 5.times.map { single_draw }
5
+ end
6
+
7
+ private
8
+
9
+ def single_draw
10
+ rand(0...60)
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,3 @@
1
+ module MegaLotto
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,10 @@
1
+ require "mega_lotto_baxter2/version"
2
+ require "mega_lotto_baxter2/drawing"
3
+
4
+ begin
5
+ require 'pry'
6
+ rescue LoadError
7
+ end
8
+
9
+ module MegaLotto
10
+ end
@@ -0,0 +1,43 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "mega_lotto_baxter2/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "mega_lotto_baxter2"
8
+ spec.version = MegaLotto::VERSION
9
+ spec.authors = ["baxter2"]
10
+ spec.email = ["baxcallan@gmail.com"]
11
+
12
+ spec.summary = %q{}
13
+ spec.description = %q{}
14
+ spec.homepage = "https://github.com/baxter2/mega_lotto_baxter2"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
+
22
+ spec.metadata["homepage_uri"] = spec.homepage
23
+ spec.metadata["source_code_uri"] = "https://github.com/baxter2/mega_lotto_baxter2"
24
+ spec.metadata["changelog_uri"] = "https://github.com/baxter2/mega_lotto_baxter2"
25
+ else
26
+ raise "RubyGems 2.0 or newer is required to protect against " \
27
+ "public gem pushes."
28
+ end
29
+
30
+ # Specify which files should be added to the gem when it is released.
31
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
32
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
33
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
+ end
35
+ spec.bindir = "exe"
36
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
+ spec.require_paths = ["lib"]
38
+
39
+ spec.add_development_dependency "bundler", "~> 1.16"
40
+ spec.add_development_dependency "rake", "~> 10.0"
41
+ spec.add_development_dependency "rspec", "~> 3.0"
42
+ spec.add_development_dependency "pry"
43
+ end
data/rvm/README.md ADDED
@@ -0,0 +1,133 @@
1
+ <pre><code>
2
+ <b>[~]$ rvm use 2.5.1@MegaLottoBaxter2 --create</b>
3
+ ruby-2.5.1 - #gemset created /Users/mikae/.rvm/gems/ruby-2.5.1@MegaLottoBaxter2
4
+ ruby-2.5.1 - #generating MegaLottoBaxter2 wrappers..........
5
+ Using /Users/mikae/.rvm/gems/ruby-2.5.1 with gemset MegaLottoBaxter2
6
+
7
+ <b>[~]$ gem list</b>
8
+
9
+ ** LOCAL GEMS **
10
+
11
+ bigdecimal (default: 1.3.4)
12
+ bundler-unload (1.0.2)
13
+ cmath (default: 1.0.0)
14
+ csv (default: 1.0.0)
15
+ date (default: 1.0.0)
16
+ dbm (default: 1.0.0)
17
+ did_you_mean (1.2.0)
18
+ etc (default: 1.0.0)
19
+ executable-hooks (1.5.0)
20
+ fcntl (default: 1.0.0)
21
+ fiddle (default: 1.0.0)
22
+ fileutils (default: 1.0.2)
23
+ gdbm (default: 2.0.0)
24
+ gem-wrappers (1.3.2)
25
+ io-console (default: 0.4.6)
26
+ ipaddr (default: 1.2.0)
27
+ json (default: 2.1.0)
28
+ minitest (5.10.3)
29
+ net-telnet (0.1.1)
30
+ openssl (default: 2.1.0)
31
+ power_assert (1.1.1)
32
+ psych (default: 3.0.2)
33
+ rake (12.3.0)
34
+ rdoc (default: 6.0.1)
35
+ rubygems-bundler (1.4.5)
36
+ rvm (1.11.3.9)
37
+ scanf (default: 1.0.0)
38
+ sdbm (default: 1.0.0)
39
+ stringio (default: 0.0.1)
40
+ strscan (default: 1.0.0)
41
+ test-unit (3.2.7)
42
+ webrick (default: 1.4.2)
43
+ xmlrpc (0.3.0)
44
+ zlib (default: 1.0.0)
45
+
46
+ <b>[~]$ rvm gemset list</b>
47
+
48
+ gemsets for ruby-2.5.1 (found in /Users/mikae/.rvm/gems/ruby-2.5.1)
49
+ (default)
50
+ => MegaLottoBaxter2
51
+ global
52
+
53
+ <b>[~]$ which ruby</b>
54
+ /Users/mikae/.rvm/rubies/ruby-2.5.1/bin/ruby
55
+
56
+ <b>[~]$ which gem</b>
57
+ /Users/mikae/.rvm/rubies/ruby-2.5.1/bin/gem
58
+
59
+ <b>[~]$ rvm gemdir</b>
60
+ /Users/mikae/.rvm/gems/ruby-2.5.1@MegaLottoBaxter2
61
+
62
+ <b>[~]$ gem install bundle --no-ri --no-rdoc</b> # Whoops was meant to be 'bundler' not 'bundle'
63
+ Fetching: bundler-1.16.6.gem (100%)
64
+ Successfully installed bundler-1.16.6
65
+ Fetching: bundle-0.0.1.gem (100%)
66
+ Successfully installed bundle-0.0.1
67
+ 2 gems installed
68
+
69
+ <b>[~]$ gem list</b>
70
+ ** LOCAL GEMS **
71
+
72
+ bigdecimal (default: 1.3.4)
73
+ bundle (0.0.1)
74
+ bundler (1.16.6)
75
+ bundler-unload (1.0.2)
76
+ cmath (default: 1.0.0)
77
+ csv (default: 1.0.0)
78
+ date (default: 1.0.0)
79
+ dbm (default: 1.0.0)
80
+ did_you_mean (1.2.0)
81
+ etc (default: 1.0.0)
82
+ executable-hooks (1.5.0)
83
+ fcntl (default: 1.0.0)
84
+ fiddle (default: 1.0.0)
85
+ fileutils (default: 1.0.2)
86
+ gdbm (default: 2.0.0)
87
+ gem-wrappers (1.3.2)
88
+ io-console (default: 0.4.6)
89
+ ipaddr (default: 1.2.0)
90
+ json (default: 2.1.0)
91
+ minitest (5.10.3)
92
+ net-telnet (0.1.1)
93
+ openssl (default: 2.1.0)
94
+ power_assert (1.1.1)
95
+ psych (default: 3.0.2)
96
+ rake (12.3.0)
97
+ rdoc (default: 6.0.1)
98
+ rubygems-bundler (1.4.5)
99
+ rvm (1.11.3.9)
100
+ scanf (default: 1.0.0)
101
+ sdbm (default: 1.0.0)
102
+ stringio (default: 0.0.1)
103
+ strscan (default: 1.0.0)
104
+ test-unit (3.2.7)
105
+ webrick (default: 1.4.2)
106
+ xmlrpc (0.3.0)
107
+ zlib (default: 1.0.0)
108
+
109
+ <b>[~]$ bundle gem mega_lotto_baxter2 --mit --test=rspec</b>
110
+ Creating gem 'mega_lotto_baxter2'...
111
+ MIT License enabled in config
112
+ create mega_lotto_baxter2/Gemfile
113
+ create mega_lotto_baxter2/lib/mega_lotto_baxter2.rb
114
+ create mega_lotto_baxter2/lib/mega_lotto_baxter2/version.rb
115
+ create mega_lotto_baxter2/mega_lotto_baxter2.gemspec
116
+ create mega_lotto_baxter2/Rakefile
117
+ create mega_lotto_baxter2/README.md
118
+ create mega_lotto_baxter2/bin/console
119
+ create mega_lotto_baxter2/bin/setup
120
+ create mega_lotto_baxter2/.gitignore
121
+ create mega_lotto_baxter2/.travis.yml
122
+ create mega_lotto_baxter2/.rspec
123
+ create mega_lotto_baxter2/spec/spec_helper.rb
124
+ create mega_lotto_baxter2/spec/mega_lotto_baxter2_spec.rb
125
+ create mega_lotto_baxter2/LICENSE.txt
126
+ Initializing git repo in /Users/mikae/mega_lotto_baxter2
127
+ Gem 'mega_lotto_baxter2' was successfully created. For more information on making a RubyGem visit https://bundler.io/guides/creating_gem.html
128
+
129
+ <b>[~]$ cd mega_lotto_baxter2/</b>
130
+
131
+ <b>[mega_lotto_baxter2]$ rvm --ruby-version use 2.5.1@MegaLottoBaxter2</b>
132
+ Using /Users/mikae/.rvm/gems/ruby-2.5.1 with gemset MegaLottoBaxter2
133
+ </pre></code>
metadata ADDED
@@ -0,0 +1,121 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mega_lotto_baxter2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - baxter2
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-10-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: ''
70
+ email:
71
+ - baxcallan@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".ruby-gemset"
79
+ - ".ruby-version"
80
+ - ".travis.yml"
81
+ - Gemfile
82
+ - Gemfile.lock
83
+ - LICENSE.txt
84
+ - README.md
85
+ - Rakefile
86
+ - bin/console
87
+ - bin/setup
88
+ - lib/mega_lotto_baxter2.rb
89
+ - lib/mega_lotto_baxter2/drawing.rb
90
+ - lib/mega_lotto_baxter2/version.rb
91
+ - mega_lotto_baxter2.gemspec
92
+ - rvm/README.md
93
+ homepage: https://github.com/baxter2/mega_lotto_baxter2
94
+ licenses:
95
+ - MIT
96
+ metadata:
97
+ allowed_push_host: https://rubygems.org
98
+ homepage_uri: https://github.com/baxter2/mega_lotto_baxter2
99
+ source_code_uri: https://github.com/baxter2/mega_lotto_baxter2
100
+ changelog_uri: https://github.com/baxter2/mega_lotto_baxter2
101
+ post_install_message:
102
+ rdoc_options: []
103
+ require_paths:
104
+ - lib
105
+ required_ruby_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ required_rubygems_version: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ requirements: []
116
+ rubyforge_project:
117
+ rubygems_version: 2.7.6
118
+ signing_key:
119
+ specification_version: 4
120
+ summary: ''
121
+ test_files: []