rubysh_mathematica 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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4b7076b8d549ed5151158da8ae412020da683445
4
+ data.tar.gz: 4949be4d70aec85194052ef4bc88c98aa10662ef
5
+ SHA512:
6
+ metadata.gz: 22d5992e839838ff52592d2d78c0dc752990112bcbb0b926dc10271f8baf7ddaea50b3abeb3ea9c6964c683a599efe659bd49150e7667740732b58a883806d50
7
+ data.tar.gz: 8489198a0159176259ee9abe58eb9e1dac177e5f5b1e7689657511373dd6c0821bd535d381addcef13d438a26918ae3200eff87a8fff2fb1650c297a2788fd36
@@ -0,0 +1,138 @@
1
+ # Created by .ignore support plugin (hsz.mobi)
2
+ ### JetBrains template
3
+ # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
4
+ # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
5
+
6
+ # User-specific stuff:
7
+ .idea
8
+ .idea/**/workspace.xml
9
+ .idea/**/tasks.xml
10
+ .idea/dictionaries
11
+
12
+ # Sensitive or high-churn files:
13
+ .idea/**/dataSources/
14
+ .idea/**/dataSources.ids
15
+ .idea/**/dataSources.xml
16
+ .idea/**/dataSources.local.xml
17
+ .idea/**/sqlDataSources.xml
18
+ .idea/**/dynamic.xml
19
+ .idea/**/uiDesigner.xml
20
+
21
+ # Gradle:
22
+ .idea/**/gradle.xml
23
+ .idea/**/libraries
24
+
25
+ # Mongo Explorer plugin:
26
+ .idea/**/mongoSettings.xml
27
+
28
+ ## File-based project format:
29
+ *.iws
30
+
31
+ ## Plugin-specific files:
32
+
33
+ # IntelliJ
34
+ /out/
35
+
36
+ # mpeltonen/sbt-idea plugin
37
+ .idea_modules/
38
+
39
+ # JIRA plugin
40
+ atlassian-ide-plugin.xml
41
+
42
+ # Crashlytics plugin (for Android Studio and IntelliJ)
43
+ com_crashlytics_export_strings.xml
44
+ crashlytics.properties
45
+ crashlytics-build.properties
46
+ fabric.properties
47
+ ### Rails template
48
+ *.rbc
49
+ capybara-*.html
50
+ .rspec
51
+ /log
52
+ /tmp
53
+ /db/*.sqlite3
54
+ /db/*.sqlite3-journal
55
+ /public/system
56
+ /coverage/
57
+ /spec/tmp
58
+ **.orig
59
+ rerun.txt
60
+ pickle-email-*.html
61
+
62
+ # TODO Comment out this rule if you are OK with secrets being uploaded to the repo
63
+ config/initializers/secret_token.rb
64
+
65
+ # Only include if you have production secrets in this file, which is no longer a Rails default
66
+ # config/secrets.yml
67
+
68
+ # dotenv
69
+ # TODO Comment out this rule if environment variables can be committed
70
+ .env
71
+
72
+ ## Environment normalization:
73
+ /.bundle
74
+ /vendor/bundle
75
+
76
+ # these should all be checked in to normalize the environment:
77
+ # Gemfile.lock, .ruby-version, .ruby-gemset
78
+
79
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
80
+ .rvmrc
81
+
82
+ # if using bower-rails ignore default bower_components path bower.json files
83
+ /vendor/assets/bower_components
84
+ *.bowerrc
85
+ bower.json
86
+
87
+ # Ignore pow environment settings
88
+ .powenv
89
+
90
+ # Ignore Byebug command history file.
91
+ .byebug_history
92
+ ### Ruby template
93
+ *.gem
94
+ /.config
95
+ /InstalledFiles
96
+ /pkg/
97
+ /spec/reports/
98
+ /spec/examples.txt
99
+ /test/tmp/
100
+ /test/version_tmp/
101
+ /tmp/
102
+
103
+ # Used by dotenv library to load environment variables.
104
+ # .env
105
+
106
+ ## Specific to RubyMotion:
107
+ .dat*
108
+ .repl_history
109
+ build/
110
+ *.bridgesupport
111
+ build-iPhoneOS/
112
+ build-iPhoneSimulator/
113
+
114
+ ## Specific to RubyMotion (use of CocoaPods):
115
+ #
116
+ # We recommend against adding the Pods directory to your .gitignore. However
117
+ # you should judge for yourself, the pros and cons are mentioned at:
118
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
119
+ #
120
+ # vendor/Pods/
121
+
122
+ ## Documentation cache and generated files:
123
+ /.yardoc/
124
+ /_yardoc/
125
+ /doc/
126
+ /rdoc/
127
+
128
+ ## Environment normalization:
129
+ /.bundle/
130
+ /lib/bundler/man/
131
+
132
+ # for a library or gem, you might want to ignore these files since the code is
133
+ # intended to run in multiple environments; otherwise, check them in:
134
+ # Gemfile.lock
135
+ # .ruby-version
136
+ # .ruby-gemset
137
+
138
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
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 rubysh_mathematica.gemspec
6
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Rubysh
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 all
13
+ 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 THE
21
+ SOFTWARE.
@@ -0,0 +1,39 @@
1
+ # RubyshMathematica
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/rubysh_mathematica`. 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 'rubysh_mathematica'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install rubysh_mathematica
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 test` 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]/rubysh_mathematica.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "rubysh_mathematica"
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__)
@@ -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,6 @@
1
+ require('rubysh_mathematica/version')
2
+ require('rubysh_mathematica/Overloads/Integer/integer_overload')
3
+
4
+ module RubyshMathematica
5
+ # Your code goes here...
6
+ end
@@ -0,0 +1,7 @@
1
+ # Integer class method overloading.
2
+ class Integer
3
+ # Returns true if self is a divisor of number.
4
+ def self.divisor_of?(number)
5
+ (number % self).zero?
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # Integer class method overloading.
2
+ class Integer
3
+ # Returns true if self is a multiple of number.
4
+ def self.multiple_of?(number)
5
+ (number % self).zero?
6
+ end
7
+ end
@@ -0,0 +1,2 @@
1
+ require_relative('is_multiple_of')
2
+ require_relative('is_divisor_of')
@@ -0,0 +1 @@
1
+ require_relative('Multiples/multiples')
@@ -0,0 +1,3 @@
1
+ module RubyshMathematica
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,36 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "rubysh_mathematica/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "rubysh_mathematica"
8
+ spec.version = RubyshMathematica::VERSION
9
+ spec.authors = ["Rubysh"]
10
+ spec.email = ["rubyshammed@gmail.com"]
11
+
12
+ spec.summary = %q{A simple to use mathematical ruby library}
13
+ spec.description = %q{Provides various overloads, classes and methods to allow for more complex mathematics}
14
+ spec.homepage = "https://github.com/Ruby-sh/RubyshMathematica"
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
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.15"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "minitest", "~> 5.0"
36
+ end
metadata ADDED
@@ -0,0 +1,102 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rubysh_mathematica
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Rubysh
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-08-03 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.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
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: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ description: Provides various overloads, classes and methods to allow for more complex
56
+ mathematics
57
+ email:
58
+ - rubyshammed@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - Gemfile
65
+ - LICENSE
66
+ - README.md
67
+ - Rakefile
68
+ - bin/console
69
+ - bin/setup
70
+ - lib/rubysh_mathematica.rb
71
+ - lib/rubysh_mathematica/Overloads/Integer/Multiples/is_divisor_of.rb
72
+ - lib/rubysh_mathematica/Overloads/Integer/Multiples/is_multiple_of.rb
73
+ - lib/rubysh_mathematica/Overloads/Integer/Multiples/multiples.rb
74
+ - lib/rubysh_mathematica/Overloads/Integer/integer_overload.rb
75
+ - lib/rubysh_mathematica/version.rb
76
+ - rubysh_mathematica.gemspec
77
+ homepage: https://github.com/Ruby-sh/RubyshMathematica
78
+ licenses:
79
+ - MIT
80
+ metadata:
81
+ allowed_push_host: https://rubygems.org/
82
+ post_install_message:
83
+ rdoc_options: []
84
+ require_paths:
85
+ - lib
86
+ required_ruby_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ required_rubygems_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ requirements: []
97
+ rubyforge_project:
98
+ rubygems_version: 2.6.8
99
+ signing_key:
100
+ specification_version: 4
101
+ summary: A simple to use mathematical ruby library
102
+ test_files: []