wordl-solver 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 27d24a898b6667f0aef5f318d23d51b07d299e2d9a2e6c1b1398965671a2059b
4
+ data.tar.gz: 4d59e47e469591c1f79ffd0affb4dae511510a8af0bec17dbe7704dca53cb696
5
+ SHA512:
6
+ metadata.gz: 1d15bf561869a0190edfe77b955825af9cf3cff0eb16015ca546719413c562d87de00131973ed1717e2be156d974d56f57bbb62554fc55d536f8e519a028cd2a
7
+ data.tar.gz: 3d6d0176fa01f2e4e6110ccf25782f7b1649fc5926438051dee0d0d25b4196c63dc8536f1b7c0604679ec4bd1618a3c90f421cb609e3241766796986a489d9d3
data/.document ADDED
@@ -0,0 +1,5 @@
1
+ lib/**/*.rb
2
+ bin/*
3
+ -
4
+ features/**/*.feature
5
+ LICENSE.txt
data/Gemfile ADDED
@@ -0,0 +1,14 @@
1
+ source "https://rubygems.org"
2
+ # Add dependencies required to use your gem here.
3
+ # Example:
4
+ # gem "activesupport", ">= 2.3.5"
5
+
6
+ # Add dependencies to develop your gem here.
7
+ # Include everything needed to run rake, tests, features, etc.
8
+ group :development do
9
+ gem "shoulda", ">= 0"
10
+ gem "rdoc", "~> 3.12"
11
+ gem "bundler", "~> 1.0"
12
+ gem "juwelier", "~> 2.1.0"
13
+ gem "simplecov", ">= 0"
14
+ end
data/Gemfile.lock ADDED
@@ -0,0 +1,113 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ activesupport (7.0.2.3)
5
+ concurrent-ruby (~> 1.0, >= 1.0.2)
6
+ i18n (>= 1.6, < 2)
7
+ minitest (>= 5.1)
8
+ tzinfo (~> 2.0)
9
+ addressable (2.8.0)
10
+ public_suffix (>= 2.0.2, < 5.0)
11
+ builder (3.2.4)
12
+ concurrent-ruby (1.1.10)
13
+ descendants_tracker (0.0.4)
14
+ thread_safe (~> 0.3, >= 0.3.1)
15
+ docile (1.4.0)
16
+ faraday (1.10.0)
17
+ faraday-em_http (~> 1.0)
18
+ faraday-em_synchrony (~> 1.0)
19
+ faraday-excon (~> 1.1)
20
+ faraday-httpclient (~> 1.0)
21
+ faraday-multipart (~> 1.0)
22
+ faraday-net_http (~> 1.0)
23
+ faraday-net_http_persistent (~> 1.0)
24
+ faraday-patron (~> 1.0)
25
+ faraday-rack (~> 1.0)
26
+ faraday-retry (~> 1.0)
27
+ ruby2_keywords (>= 0.0.4)
28
+ faraday-em_http (1.0.0)
29
+ faraday-em_synchrony (1.0.0)
30
+ faraday-excon (1.1.0)
31
+ faraday-httpclient (1.0.1)
32
+ faraday-multipart (1.0.3)
33
+ multipart-post (>= 1.2, < 3)
34
+ faraday-net_http (1.0.1)
35
+ faraday-net_http_persistent (1.2.0)
36
+ faraday-patron (1.0.0)
37
+ faraday-rack (1.0.0)
38
+ faraday-retry (1.0.3)
39
+ git (1.10.2)
40
+ rchardet (~> 1.8)
41
+ github_api (0.19.0)
42
+ addressable (~> 2.4)
43
+ descendants_tracker (~> 0.0.4)
44
+ faraday (>= 0.8, < 2)
45
+ hashie (~> 3.5, >= 3.5.2)
46
+ oauth2 (~> 1.0)
47
+ hashie (3.6.0)
48
+ highline (2.0.3)
49
+ i18n (1.10.0)
50
+ concurrent-ruby (~> 1.0)
51
+ json (1.8.6)
52
+ juwelier (2.1.3)
53
+ builder
54
+ bundler (>= 1.13)
55
+ git (>= 1.2.5)
56
+ github_api
57
+ highline (>= 1.6.15)
58
+ nokogiri (>= 1.5.10)
59
+ rake
60
+ rdoc
61
+ semver
62
+ jwt (2.3.0)
63
+ mini_portile2 (2.8.0)
64
+ minitest (5.15.0)
65
+ multi_json (1.15.0)
66
+ multi_xml (0.6.0)
67
+ multipart-post (2.1.1)
68
+ nokogiri (1.13.3)
69
+ mini_portile2 (~> 2.8.0)
70
+ racc (~> 1.4)
71
+ oauth2 (1.4.9)
72
+ faraday (>= 0.17.3, < 3.0)
73
+ jwt (>= 1.0, < 3.0)
74
+ multi_json (~> 1.3)
75
+ multi_xml (~> 0.5)
76
+ rack (>= 1.2, < 3)
77
+ public_suffix (4.0.6)
78
+ racc (1.6.0)
79
+ rack (2.2.3)
80
+ rake (13.0.6)
81
+ rchardet (1.8.0)
82
+ rdoc (3.12.2)
83
+ json (~> 1.4)
84
+ ruby2_keywords (0.0.5)
85
+ semver (1.0.1)
86
+ shoulda (4.0.0)
87
+ shoulda-context (~> 2.0)
88
+ shoulda-matchers (~> 4.0)
89
+ shoulda-context (2.0.0)
90
+ shoulda-matchers (4.5.1)
91
+ activesupport (>= 4.2.0)
92
+ simplecov (0.21.2)
93
+ docile (~> 1.1)
94
+ simplecov-html (~> 0.11)
95
+ simplecov_json_formatter (~> 0.1)
96
+ simplecov-html (0.12.3)
97
+ simplecov_json_formatter (0.1.4)
98
+ thread_safe (0.3.6)
99
+ tzinfo (2.0.4)
100
+ concurrent-ruby (~> 1.0)
101
+
102
+ PLATFORMS
103
+ ruby
104
+
105
+ DEPENDENCIES
106
+ bundler (~> 1.0)
107
+ juwelier (~> 2.1.0)
108
+ rdoc (~> 3.12)
109
+ shoulda
110
+ simplecov
111
+
112
+ BUNDLED WITH
113
+ 1.17.3
data/LICENSE.txt ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2022 george kosmopoulos
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,18 @@
1
+ = wordl-solver
2
+
3
+ Description goes here.
4
+
5
+ == Contributing to wordl-solver
6
+
7
+ * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
+ * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
+ * Fork the project.
10
+ * Start a feature/bugfix branch.
11
+ * Commit and push until you are happy with your contribution.
12
+ * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
+ * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
+
15
+ == Copyright
16
+
17
+ Copyright (c) 2022 george kosmopoulos. See LICENSE.txt for
18
+ further details.
data/Rakefile ADDED
@@ -0,0 +1,51 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ begin
6
+ Bundler.setup(:default, :development)
7
+ rescue Bundler::BundlerError => e
8
+ $stderr.puts e.message
9
+ $stderr.puts "Run `bundle install` to install missing gems"
10
+ exit e.status_code
11
+ end
12
+ require 'rake'
13
+ require 'juwelier'
14
+ Juwelier::Tasks.new do |gem|
15
+ # gem is a Gem::Specification... see http://guides.rubygems.org/specification-reference/ for more options
16
+ gem.name = "wordl-solver"
17
+ gem.homepage = "http://github.com/gkosmo/wordl-solver"
18
+ gem.license = "MIT"
19
+ gem.summary = "This gem solves wordl puzzles."
20
+ gem.description = "This gem helps you solve wordl puzzles. It does so by asking you for the letters position you know, the letters you know exists and the ones you know don't exists. It then proposes words depending on how good they are by weighting the letters by their frequency in the english language."
21
+ gem.email = "gkosmo1@hotmail.com"
22
+ gem.authors = ["george kosmopoulos"]
23
+
24
+ # dependencies defined in Gemfile
25
+ gem.executables = ['wordl-solver']
26
+ end
27
+ Juwelier::RubygemsDotOrgTasks.new
28
+ require 'rake/testtask'
29
+ Rake::TestTask.new(:test) do |test|
30
+ test.libs << 'lib' << 'test'
31
+ test.pattern = 'test/**/test_*.rb'
32
+ test.verbose = true
33
+ end
34
+
35
+ desc "Code coverage detail"
36
+ task :simplecov do
37
+ ENV['COVERAGE'] = "true"
38
+ Rake::Task['test'].execute
39
+ end
40
+
41
+ task :default => :test
42
+
43
+ require 'rdoc/task'
44
+ Rake::RDocTask.new do |rdoc|
45
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
46
+
47
+ rdoc.rdoc_dir = 'rdoc'
48
+ rdoc.title = "wordl-solver #{version}"
49
+ rdoc.rdoc_files.include('README*')
50
+ rdoc.rdoc_files.include('lib/**/*.rb')
51
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
data/bin/wordl-solver ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'wordl-solver'
4
+ WordlSolver.run