algorithmix 00 → 0.0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52529dd29d76d830de5255c516535ce363d36451
4
- data.tar.gz: b72d4ccf8df15a7fa7ff2c3129298585efeb72f4
3
+ metadata.gz: a24575f97c049c71963bab72100c81e205970249
4
+ data.tar.gz: 8fdc66e3238f5dd4442208ce7607d6f115413cb3
5
5
  SHA512:
6
- metadata.gz: 44bc5cdd34cf3d27aaacc72e784d8d5eed5409784362418ec1c47f742f21e3a52f766e92af47c9f960ad2a8fdc9fffb783802912ef4aaabc0dd48ad7b0c9c6ce
7
- data.tar.gz: 393c63ef0cb3d140e3959a6664e45944a81318df1d5c18786888576511c306bfc58e043d2c0cd86b41a968f7edb0dee7d1fd8e13b06d812ffbf20c1682813c66
6
+ metadata.gz: 6c3ef71e4be3c66742c9dbc5baf89f47be04857a73567cb7eaabb72e91df73c456fe733296f7a1033b30c6a19dbe00b49569b15c5572da1c8f2f33daa2b8f11b
7
+ data.tar.gz: eccf1833bcfd65c0b77fc24c69aa4509278179bccc4b5091d03743b76c795cca563d38fa9e757f0d41a3362313a1944adb5c960f271d50d13f62bbc0a7b5102e
data/.gitignore CHANGED
@@ -1,9 +1,13 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
7
6
  /pkg/
8
7
  /spec/reports/
9
8
  /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
12
+
13
+ algorithmix-*.gem
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.4
5
+ before_install: gem install bundler -v 1.16.2
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at milieva@tuta.io. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile CHANGED
@@ -1,4 +1,6 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/monzita/algirithmix" }
2
4
 
3
5
  # Specify your gem's dependencies in algorithmix.gemspec
4
6
  gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Monika Ilieva
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 CHANGED
@@ -1,8 +1,15 @@
1
1
  # Algorithmix
2
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/algorithmix`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ ![Gem](https://img.shields.io/gem/v/algorithmix.svg?style=flat-square) ![Gem](https://img.shields.io/gem/dt/algorithmix.svg?style=flat-square) ![Gem](https://img.shields.io/gem/dtv/algorithmix.svg?style=flat-square) ![Gem download rank (daily)](https://img.shields.io/gem/rd/algorithmix.svg?style=flat-square) ![Gem download rank](https://img.shields.io/gem/rt/algorithmix.svg?style=flat-square) ![Travis (.org)](https://img.shields.io/travis/monzita/algorithmix.svg?style=flat-square)
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ The gem contains various implementations of known and unknown data structures and algorithms.
6
+
7
+ # Minor versions
8
+
9
+ :construction: Because the gem is still not ready, with each new implementation of a data structure or an algorithm, a new
10
+ minor version will be released.
11
+
12
+ ![Gem](https://img.shields.io/badge/min-0.0.0.1-green.svg) A [**Stack**](https://github.com/monzita/algorithmix/wiki/Stack) implementation is released.
6
13
 
7
14
  ## Installation
8
15
 
@@ -22,15 +29,22 @@ Or install it yourself as:
22
29
 
23
30
  ## Usage
24
31
 
25
- TODO: Write usage instructions here
32
+ For more information how to use the gem, check the [official documentation](https://github.com/monzita/algorithmix/wiki).
26
33
 
27
34
  ## Development
28
35
 
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
36
+ 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
37
 
31
38
  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
39
 
33
40
  ## Contributing
34
41
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/algorithmix.
42
+ Bug reports and pull requests are welcome on GitHub at [the official github page of the gem](https://github.com/monzita/algorithmix). This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
43
+
44
+ ## License
45
+
46
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
47
+
48
+ ## Code of Conduct
36
49
 
50
+ Everyone interacting in the Algorithmix project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/monzita/algorithmix/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -1,2 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
2
6
  task :default => :spec
data/algorithmix.gemspec CHANGED
@@ -1,26 +1,39 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'algorithmix/version'
4
+ require "algorithmix/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "algorithmix"
8
8
  spec.version = Algorithmix::VERSION
9
9
  spec.authors = ["Monika Ilieva"]
10
- spec.email = ["milieva@tuta.io"]
10
+ spec.email = ["*@*.*"]
11
11
 
12
- spec.summary = %q{Various data structures and algorithms.}
13
- spec.description = %q{ :under_construction: The Gem contains various implementations of useful data structures and algorithms.}
14
- spec.homepage = "https://github.com/monzita/algorithmix"
12
+ spec.summary = %q{The gem contains various implementations of known and uknown data structure and algorithms}
13
+ spec.description = %q{The gem contains various implementations of known and uknown data structure and algorithms, which will be useful for developers.}
14
+ spec.homepage = "https://github.com/monzita/algorithmix/wiki"
15
+ spec.license = "MIT"
15
16
 
16
- # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
17
- # delete this section to allow pushing this gem to any host.
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
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
18
25
 
19
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ # Specify which files should be added to the gem when it is released.
27
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
28
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
29
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
30
+ end
20
31
  spec.bindir = "exe"
21
32
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
33
  spec.require_paths = ["lib"]
23
34
 
24
- spec.add_development_dependency "bundler", "~> 1.11"
35
+ spec.add_development_dependency "bundler", "~> 1.16"
25
36
  spec.add_development_dependency "rake", "~> 10.0"
37
+ spec.add_development_dependency "rspec", "~> 3.0"
38
+ spec.add_development_dependency "require_all", ">=2.0.0"
26
39
  end
data/bin/console CHANGED
@@ -11,4 +11,4 @@ require "algorithmix"
11
11
  # Pry.start
12
12
 
13
13
  require "irb"
14
- IRB.start
14
+ IRB.start(__FILE__)
data/bin/setup CHANGED
File without changes
data/lib/algorithmix.rb CHANGED
@@ -1,5 +1,3 @@
1
- require "algorithmix/version"
1
+ require "require_all"
2
2
 
3
- module Algorithmix
4
- # Your code goes here...
5
- end
3
+ require_all "./lib"
@@ -1,3 +1,3 @@
1
1
  module Algorithmix
2
- VERSION = "00"
2
+ VERSION = "0.0.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algorithmix
3
3
  version: !ruby/object:Gem::Version
4
- version: '00'
4
+ version: 0.0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Monika Ilieva
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-04 00:00:00.000000000 Z
11
+ date: 2018-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.11'
19
+ version: '1.16'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.11'
26
+ version: '1.16'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,16 +38,48 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- description: " :under_construction: The Gem contains various implementations of useful
42
- data structures and algorithms."
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: require_all
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 2.0.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 2.0.0
69
+ description: The gem contains various implementations of known and uknown data structure
70
+ and algorithms, which will be useful for developers.
43
71
  email:
44
- - milieva@tuta.io
72
+ - "*@*.*"
45
73
  executables: []
46
74
  extensions: []
47
75
  extra_rdoc_files: []
48
76
  files:
49
77
  - ".gitignore"
78
+ - ".rspec"
79
+ - ".travis.yml"
80
+ - CODE_OF_CONDUCT.md
50
81
  - Gemfile
82
+ - LICENSE.txt
51
83
  - README.md
52
84
  - Rakefile
53
85
  - algorithmix.gemspec
@@ -55,9 +87,11 @@ files:
55
87
  - bin/setup
56
88
  - lib/algorithmix.rb
57
89
  - lib/algorithmix/version.rb
58
- homepage: https://github.com/monzita/algorithmix
59
- licenses: []
60
- metadata: {}
90
+ homepage: https://github.com/monzita/algorithmix/wiki
91
+ licenses:
92
+ - MIT
93
+ metadata:
94
+ allowed_push_host: https://rubygems.org
61
95
  post_install_message:
62
96
  rdoc_options: []
63
97
  require_paths:
@@ -74,8 +108,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
108
  version: '0'
75
109
  requirements: []
76
110
  rubyforge_project:
77
- rubygems_version: 2.5.2.1
111
+ rubygems_version: 2.6.14.1
78
112
  signing_key:
79
113
  specification_version: 4
80
- summary: Various data structures and algorithms.
114
+ summary: The gem contains various implementations of known and uknown data structure
115
+ and algorithms
81
116
  test_files: []