nth_permutation 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 70fb61dd1639af9f5427ebad985fde1d9154eb7c
4
+ data.tar.gz: 33a32853d5334caa178989d33f0e99cb31c86e54
5
+ SHA512:
6
+ metadata.gz: 7d7e510e18d99b51313e6f1741f47f55f2f53a9440703e594eb667a9aac77c64a3852ec851dc9b775b12e1f48d819767aaf889ee73f0cb77492c1b8e2b884a1c
7
+ data.tar.gz: 366fe29d549705bfe5633846e95381bf372437d818c765936da9e56c95254c4c1b9ee534a842c66862d0e0657df735c683c6810329767a7eecded14df8c347fa
@@ -0,0 +1,2 @@
1
+ service_name: travis-ci
2
+ repo_token: cLGXVCqLrmplxb7TwmmGSwAW57IsXaoC9
@@ -0,0 +1,12 @@
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
12
+ *.gem
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.16.0
@@ -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 tanvir002700@gmail.com. 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 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 nth_permutation.gemspec
6
+ gemspec
@@ -0,0 +1,56 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ nth_permutation (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ coveralls (0.8.21)
10
+ json (>= 1.8, < 3)
11
+ simplecov (~> 0.14.1)
12
+ term-ansicolor (~> 1.3)
13
+ thor (~> 0.19.4)
14
+ tins (~> 1.6)
15
+ diff-lcs (1.3)
16
+ docile (1.1.5)
17
+ json (2.1.0)
18
+ rake (10.5.0)
19
+ rake-compiler (1.0.4)
20
+ rake
21
+ rspec (3.7.0)
22
+ rspec-core (~> 3.7.0)
23
+ rspec-expectations (~> 3.7.0)
24
+ rspec-mocks (~> 3.7.0)
25
+ rspec-core (3.7.1)
26
+ rspec-support (~> 3.7.0)
27
+ rspec-expectations (3.7.0)
28
+ diff-lcs (>= 1.2.0, < 2.0)
29
+ rspec-support (~> 3.7.0)
30
+ rspec-mocks (3.7.0)
31
+ diff-lcs (>= 1.2.0, < 2.0)
32
+ rspec-support (~> 3.7.0)
33
+ rspec-support (3.7.1)
34
+ simplecov (0.14.1)
35
+ docile (~> 1.1.0)
36
+ json (>= 1.8, < 3)
37
+ simplecov-html (~> 0.10.0)
38
+ simplecov-html (0.10.2)
39
+ term-ansicolor (1.6.0)
40
+ tins (~> 1.0)
41
+ thor (0.19.4)
42
+ tins (1.16.3)
43
+
44
+ PLATFORMS
45
+ ruby
46
+
47
+ DEPENDENCIES
48
+ bundler (~> 1.16)
49
+ coveralls (~> 0.8.21)
50
+ nth_permutation!
51
+ rake (~> 10.0)
52
+ rake-compiler (~> 1.0, >= 1.0.0)
53
+ rspec (~> 3.0)
54
+
55
+ BUNDLED WITH
56
+ 1.16.0
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 tanvir hasan
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.
@@ -0,0 +1,56 @@
1
+ # NthPermutation
2
+ [![Build Status](https://travis-ci.org/tanvir002700/nth_permutation.svg?branch=master)](https://travis-ci.org/tanvir002700/nth_permutation)
3
+ [![Maintainability](https://api.codeclimate.com/v1/badges/69f40101eeb294c05163/maintainability)](https://codeclimate.com/github/tanvir002700/nth_permutation/maintainability)
4
+ [![Coverage Status](https://coveralls.io/repos/github/tanvir002700/nth_permutation/badge.svg?branch=master)](https://coveralls.io/github/tanvir002700/nth_permutation?branch=master)
5
+ [![Gem Version](https://badge.fury.io/rb/nth_permutation.svg)](https://badge.fury.io/rb/nth_permutation)
6
+ [![Downloads](https://img.shields.io/gem/dt/nth_permutation.svg)](https://rubygems.org/gems/nth_permutation)
7
+ [![GitHub last commit (branch)](https://img.shields.io/github/last-commit/tanvir002700/nth_permutation/master.svg)](https://github.com/tanvir002700/nth_permutation)
8
+ [![license](https://img.shields.io/github/license/tanvir002700/nth_permutation.svg)](https://github.com/tanvir002700/nth_permutation/blob/master/LICENSE)
9
+
10
+ This gem is NthPermutation implemanted with c Extension. A super first permutation finding library in ruby.
11
+
12
+ ## Installation
13
+
14
+ Add this line to your application's Gemfile:
15
+
16
+ ```ruby
17
+ gem 'nth_permutation'
18
+ ```
19
+
20
+ And then execute:
21
+
22
+ $ bundle
23
+
24
+ Or install it yourself as:
25
+
26
+ $ gem install nth_permutation
27
+
28
+ ## Usage
29
+
30
+ ``` ruby
31
+ require nth_permutation
32
+ p = NthPermutation::String.new 'abc'
33
+ p.permutation 2 #=> 'acb'
34
+ p.possible_permutation #=> 6
35
+ ```
36
+ ## Limitation
37
+
38
+ Can't handle more than 20 character longer string.
39
+
40
+ ## Development
41
+
42
+ 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.
43
+
44
+ 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).
45
+
46
+ ## Contributing
47
+
48
+ Bug reports and pull requests are welcome on GitHub at https://github.com/tanvir002700/nth-permutation. 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.
49
+
50
+ ## License
51
+
52
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
53
+
54
+ ## Code of Conduct
55
+
56
+ Everyone interacting in the Nth::Permutation project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/tanvir002700/nth-permutation/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,12 @@
1
+ require "rake/extensiontask"
2
+
3
+ Rake::ExtensionTask.new "nth_permutation" do |ext|
4
+ ext.lib_dir = "lib/nth_permutation"
5
+ end
6
+
7
+ require "bundler/gem_tasks"
8
+ require "rspec/core/rake_task"
9
+
10
+ RSpec::Core::RakeTask.new(:spec)
11
+
12
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "nth_permutation"
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,3 @@
1
+ require "mkmf"
2
+
3
+ create_makefile "nth_permutation/nth_permutation"
@@ -0,0 +1,14 @@
1
+ #include<ruby.h>
2
+ #include<permutation_string.h>
3
+
4
+ VALUE test()
5
+ {
6
+ return rb_str_new2("test method");
7
+ }
8
+
9
+ void Init_nth_permutation()
10
+ {
11
+ VALUE mNthPermutation = rb_define_module("NthPermutation");
12
+ rb_define_singleton_method(mNthPermutation, "test", test, 0);
13
+ Init_permutation_string(mNthPermutation);
14
+ }
@@ -0,0 +1,142 @@
1
+ #include<ruby.h>
2
+ #include<string.h>
3
+
4
+ const int CHACARTERS = 257;
5
+ const int LIMIT = 21;
6
+
7
+ struct Str
8
+ {
9
+ long long int * factorial;
10
+ long long int possible_permutation;
11
+ int * frequency;
12
+ char *ptr;
13
+ int len;
14
+ };
15
+
16
+ static void deallocate(struct Str *str)
17
+ {
18
+ if(str->factorial) free(str->factorial);
19
+ if(str->frequency) free(str->frequency);
20
+ if(str->ptr) free(str->ptr);
21
+ free(str);
22
+ }
23
+
24
+ static VALUE allocate(VALUE klass)
25
+ {
26
+ struct Str * str = (struct Str *)malloc(sizeof(struct Str));
27
+ VALUE obj = Data_Make_Struct(klass, struct Str, NULL, deallocate, str);
28
+ str->ptr = NULL;
29
+ str->factorial = NULL;
30
+ str->frequency = NULL;
31
+ str->len = 0;
32
+ str->possible_permutation = 0;
33
+ return obj;
34
+ }
35
+
36
+ int * factorial()
37
+ {
38
+ long long int * fact = (long long int *) calloc(LIMIT, sizeof(long long int));
39
+
40
+ fact[0] = 1;
41
+ for(int i=1; i<LIMIT; i++) fact[i] = fact[i-1] * i;
42
+
43
+ return fact;
44
+ }
45
+
46
+ int * frequency(char * str)
47
+ {
48
+ int * freq = (int *) calloc(CHACARTERS, sizeof(int));
49
+ for(int i=0; str[i]; i++) freq[str[i]]++;
50
+ return freq;
51
+ }
52
+
53
+ long long int number_of_permutation(const long long int * factorial, const int * freq, int len)
54
+ {
55
+ long long int fact = factorial[len];
56
+ for(int i=0; i<CHACARTERS; i++) fact /= factorial[freq[i]];
57
+ return fact;
58
+ }
59
+
60
+ static VALUE permutation(VALUE self, VALUE rb_nth)
61
+ {
62
+ struct Str * str;
63
+ Data_Get_Struct(self, struct Str, str);
64
+
65
+ Check_Type(rb_nth, T_FIXNUM);
66
+ long long int nth = NUM2LL(rb_nth);
67
+ if(nth > str->possible_permutation) rb_raise(rb_eRangeError, "there's no such nth permutation.");
68
+ if(nth < 0) rb_raise(rb_eRangeError, "negative term of permutation isn't possible.");
69
+
70
+ int * freq = (int *) calloc(CHACARTERS, sizeof(int));
71
+ memcpy(freq, str->frequency, CHACARTERS*sizeof(int));
72
+
73
+ int len = strlen(str->ptr);
74
+
75
+ char * nth_permutation = (char *) calloc(len + 1, sizeof(char));
76
+ int indx = 0;
77
+
78
+ while(len)
79
+ {
80
+ long long upto = 0;
81
+ for(int i=0; i<CHACARTERS; i++)
82
+ {
83
+ if(!freq[i])continue;
84
+ freq[i] -= 1;
85
+
86
+ long long int now_permutation = number_of_permutation(str->factorial, freq, len-1);
87
+ if(upto + now_permutation >= nth)
88
+ {
89
+ nth -= upto;
90
+ nth_permutation[indx++] = (char) i;
91
+ len--;
92
+ break;
93
+ }
94
+ else
95
+ {
96
+ upto += now_permutation;
97
+ freq[i] += 1;
98
+ }
99
+ }
100
+ }
101
+ nth_permutation[str->len] = NULL;
102
+
103
+ free(freq);
104
+
105
+ return rb_str_new2(nth_permutation);
106
+ }
107
+
108
+ static VALUE initialize(VALUE self, VALUE rb_string)
109
+ {
110
+ struct Str * str;
111
+
112
+ Check_Type(rb_string, T_STRING);
113
+ if(RSTRING_LEN(rb_string) >= LIMIT) rb_raise(rb_eRangeError, "can't handle more than 20 character length string");
114
+ Data_Get_Struct(self, struct Str, str);
115
+
116
+ str->ptr = calloc(RSTRING_LEN(rb_string) + 1 , sizeof(char));
117
+ memcpy(str->ptr, StringValuePtr(rb_string), RSTRING_LEN(rb_string));
118
+
119
+ str->len = strlen(str->ptr);
120
+ str->factorial = factorial();
121
+ str->frequency = frequency(str->ptr);
122
+ str->possible_permutation = number_of_permutation(str->factorial, str->frequency, str->len);
123
+
124
+ rb_iv_set(self, "@str", rb_string);
125
+ rb_iv_set(self, "@length", INT2NUM(RSTRING_LEN(rb_string)));
126
+ rb_iv_set(self, "@possible_permutation", LL2NUM(str->possible_permutation));
127
+
128
+ return self;
129
+ }
130
+
131
+ void Init_permutation_string(VALUE mNthPermutation)
132
+ {
133
+ VALUE cPermutationString = rb_define_class_under(mNthPermutation, "String", rb_cObject);
134
+
135
+ rb_define_alloc_func(cPermutationString, allocate);
136
+ rb_define_method(cPermutationString, "initialize", initialize, 1);
137
+ rb_define_method(cPermutationString, "permutation", permutation, 1);
138
+ rb_define_attr(cPermutationString, "str", 1, 0);
139
+ rb_define_attr(cPermutationString, "length", 1, 0);
140
+ rb_define_attr(cPermutationString, "possible_permutation", 1, 0);
141
+ }
142
+
@@ -0,0 +1,8 @@
1
+ #ifndef KPERMUTATION_STRING
2
+ #define KPERMUTATION_STRING
3
+
4
+ #include<ruby.h>
5
+
6
+ void Init_permutation_string(VALUE mNthPermutation);
7
+ #endif
8
+
@@ -0,0 +1,3 @@
1
+ require 'nth_permutation/version'
2
+ require 'nth_permutation/string'
3
+ require 'nth_permutation/nth_permutation'
@@ -0,0 +1,7 @@
1
+ module NthPermutation
2
+ class String
3
+ def inspect
4
+ str
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module NthPermutation
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,39 @@
1
+ lib = File.expand_path("../lib", __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "nth_permutation/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "nth_permutation"
7
+ spec.version = NthPermutation::VERSION
8
+ spec.authors = ["tanvir hasan"]
9
+ spec.email = ["tanvir002700@gmail.com"]
10
+
11
+ spec.summary = %q{A permutation finding library in Ruby.}
12
+ spec.description = %q{Nth permutation finding algorithm, which is implemented in ruby c-extension.}
13
+ spec.homepage = "https://rubygems.org/gems/nth_permutation"
14
+ spec.license = "MIT"
15
+ spec.metadata = { 'source_code_uri' => 'https://github.com/tanvir002700/nth_permutation' }
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.16"
34
+ spec.add_development_dependency 'coveralls', '~> 0.8.21'
35
+ spec.add_development_dependency "rake", "~> 10.0"
36
+ spec.add_development_dependency "rspec", "~> 3.0"
37
+ spec.add_development_dependency 'rake-compiler', '~> 1.0', '>= 1.0.0'
38
+ spec.extensions = %w[ext/nth_permutation/extconf.rb]
39
+ end
metadata ADDED
@@ -0,0 +1,144 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nth_permutation
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - tanvir hasan
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-02-20 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: coveralls
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.8.21
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.8.21
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake-compiler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.0'
76
+ - - ">="
77
+ - !ruby/object:Gem::Version
78
+ version: 1.0.0
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - "~>"
84
+ - !ruby/object:Gem::Version
85
+ version: '1.0'
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: 1.0.0
89
+ description: Nth permutation finding algorithm, which is implemented in ruby c-extension.
90
+ email:
91
+ - tanvir002700@gmail.com
92
+ executables: []
93
+ extensions:
94
+ - ext/nth_permutation/extconf.rb
95
+ extra_rdoc_files: []
96
+ files:
97
+ - ".coveralls.yml"
98
+ - ".gitignore"
99
+ - ".rspec"
100
+ - ".travis.yml"
101
+ - CODE_OF_CONDUCT.md
102
+ - Gemfile
103
+ - Gemfile.lock
104
+ - LICENSE.txt
105
+ - README.md
106
+ - Rakefile
107
+ - bin/console
108
+ - bin/setup
109
+ - ext/nth_permutation/extconf.rb
110
+ - ext/nth_permutation/nth_permutation.c
111
+ - ext/nth_permutation/permutation_string.c
112
+ - ext/nth_permutation/permutation_string.h
113
+ - lib/nth_permutation.rb
114
+ - lib/nth_permutation/nth_permutation.so
115
+ - lib/nth_permutation/string.rb
116
+ - lib/nth_permutation/version.rb
117
+ - nth_permutation.gemspec
118
+ homepage: https://rubygems.org/gems/nth_permutation
119
+ licenses:
120
+ - MIT
121
+ metadata:
122
+ source_code_uri: https://github.com/tanvir002700/nth_permutation
123
+ allowed_push_host: https://rubygems.org
124
+ post_install_message:
125
+ rdoc_options: []
126
+ require_paths:
127
+ - lib
128
+ required_ruby_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ required_rubygems_version: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ requirements: []
139
+ rubyforge_project:
140
+ rubygems_version: 2.6.11
141
+ signing_key:
142
+ specification_version: 4
143
+ summary: A permutation finding library in Ruby.
144
+ test_files: []