ramda-ruby 0.1.0.alpha

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
+ SHA1:
3
+ metadata.gz: 00738383c28ec2a3917c0154c2cd68f8243435b9
4
+ data.tar.gz: b10e359516a0af531fd0f8d0ed96a928bcb4cbef
5
+ SHA512:
6
+ metadata.gz: 7b7018823bd8db0091106355b1d50262a1ce1deb6fc78ce0c5dbd6e4e2714c526a8991bf39547dde74f64d3ac6ae995c4b152ea541ffecc8f94d05a78d0508db
7
+ data.tar.gz: 26cd80e631e8cbf847672612a2340a34447746548a3b6d20bb1b940f34efdd5c24a9759b24ab80691cf4df01f6549572b532e169529675e64377659db60eeba5
data/.bashrc.docker ADDED
@@ -0,0 +1,2 @@
1
+ # alias rspec='bundle exec rspec'
2
+ alias rspec='bin/rspec'
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ repo_token: qbj8mnKMve9qMSJWG6IgHeeRUREVib06U
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
13
+ .bash_history.docker
14
+ .pry_history.docker
data/.overcommit.yml ADDED
@@ -0,0 +1,73 @@
1
+ # Use this file to configure the Overcommit hooks you wish to use. This will
2
+ # extend the default configuration defined in:
3
+ # https://github.com/brigade/overcommit/blob/master/config/default.yml
4
+ #
5
+ # At the topmost level of this YAML file is a key representing type of hook
6
+ # being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
7
+ # customize each hook, such as whether to only run it on certain files (via
8
+ # `include`), whether to only display output if it fails (via `quiet`), etc.
9
+ #
10
+ # For a complete list of hooks, see:
11
+ # https://github.com/brigade/overcommit/tree/master/lib/overcommit/hook
12
+ #
13
+ # For a complete list of options that you can use to customize hooks, see:
14
+ # https://github.com/brigade/overcommit#configuration
15
+ #
16
+ # Uncomment the following lines to make the configuration take effect.
17
+
18
+ PreCommit:
19
+ ForbiddenBranches:
20
+ enabled: true
21
+ on_warn: fail
22
+ branch_patterns:
23
+ - master
24
+ - staging
25
+ - production
26
+ HardTabs:
27
+ enabled: true
28
+ on_warn: fail
29
+ JsonSyntax:
30
+ enabled: true
31
+ on_warn: fail
32
+ LocalPathsInGemfile:
33
+ enabled: true
34
+ on_warn: fail
35
+ RuboCop:
36
+ enabled: true
37
+ on_warn: fail
38
+ # RubyLint:
39
+ # enabled: true
40
+ # on_warn: fail
41
+ # ShellCheck:
42
+ # enabled: true
43
+ # on_warn: fail
44
+ TrailingWhitespace:
45
+ enabled: true
46
+ on_warn: fail
47
+ YamlSyntax:
48
+ enabled: true
49
+ on_warn: fail
50
+
51
+ CommitMsg:
52
+ # MessageFormat:
53
+ # enabled: true
54
+ # pattern: '^[A-Z]+-\d+: \w+'
55
+ # expected_pattern_message: '<Commit Message Description>'
56
+ # sample_message: ''
57
+ HardTabs:
58
+ enabled: true
59
+ RussianNovel:
60
+ enabled: true
61
+ # SpellCheck:
62
+ # enabled: true
63
+
64
+ # TrailingWhitespace:
65
+ # exclude:
66
+ # - '**/db/structure.sql' # Ignore trailing whitespace in generated files
67
+ #
68
+ #PostCheckout:
69
+ # ALL: # Special hook name that customizes all hooks of this type
70
+ # quiet: true # Change all post-checkout hooks to only display output on failure
71
+ #
72
+ # IndexTags:
73
+ # enabled: true # Generate a tags file with `ctags` each time HEAD changes
data/.pryrc.docker ADDED
@@ -0,0 +1 @@
1
+ Pry.config.history.file = "~/.pry_history"
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format progress
2
+ --color
data/.rubocop.yml ADDED
@@ -0,0 +1,42 @@
1
+ # This is the configuration used to check the rubocop source code.
2
+
3
+ require: rubocop-rspec
4
+ # inherit_from:
5
+ # - .rubocop_todo.yml
6
+
7
+ AllCops:
8
+ Exclude:
9
+ - '**/*.yml'
10
+ - 'tmp/**/*'
11
+ - 'docker-compose/**/*'
12
+ TargetRubyVersion: 2.1
13
+ DefaultFormatter: fuubar
14
+
15
+ # Style/Encoding:
16
+ # Enabled: true
17
+
18
+ Metrics/BlockLength:
19
+ Exclude:
20
+ - 'spec/**/*'
21
+ - 'Rakefile'
22
+ - 'ramda-ruby.gemspec'
23
+
24
+ # Offense count: 431
25
+ # Configuration parameters: AllowURI, URISchemes.
26
+ Metrics/LineLength:
27
+ Max: 100
28
+
29
+ Style/SymbolArray:
30
+ EnforcedStyle: brackets
31
+
32
+ Style/WordArray:
33
+ EnforcedStyle: brackets
34
+
35
+ RSpec/ExampleLength:
36
+ Enabled: false
37
+
38
+ RSpec/MultipleExpectations:
39
+ Enabled: false
40
+
41
+ RSpec/MessageSpies:
42
+ EnforcedStyle: receive
data/.travis.yml ADDED
@@ -0,0 +1,35 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ - jruby-9.1.10.0
6
+
7
+ # older versions
8
+ - 2.3.4
9
+ - 2.2.7
10
+ - 2.1.9
11
+ - 2.0.0
12
+ - 1.9.3
13
+
14
+ - jruby-9.0.5.0
15
+ - jruby-1.7.27
16
+
17
+ - ruby-head
18
+ - jruby-head
19
+
20
+ - rbx
21
+
22
+ matrix:
23
+ include:
24
+ - rvm: 2.3.4
25
+ jdk: oraclejdk8
26
+ env: COVERAGE=1
27
+
28
+ allow_failures:
29
+ - rvm: ruby-head
30
+ - rvm: jruby-head
31
+ # FIXME
32
+ - rvm: jruby-1.7.27
33
+ - rvm: rbx
34
+
35
+ before_install: gem install bundler -v 1.15.1
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ Release 0.1.0
2
+ ---------------
3
+ Added functions from Ramda Js v0.1.0
data/Dockerfile ADDED
@@ -0,0 +1,24 @@
1
+ FROM ruby:2.1.9
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ build-essential \
5
+
6
+ # debug tools
7
+ vim
8
+
9
+ RUN gem install bundler -v 1.15.1
10
+ RUN gem install rubocop -v 0.48.0
11
+ RUN gem install rubocop-rspec -v 1.15.1
12
+
13
+ ENV APP_HOME /srv/app
14
+
15
+ ENV CI_REPORTS=shippable/testresults
16
+ ENV COVERAGE_REPORTS=shippable/codecoverage
17
+
18
+ # RUN mkdir $APP_HOME
19
+
20
+ WORKDIR $APP_HOME
21
+
22
+ ENV BUNDLE_GEMFILE=$APP_HOME/Gemfile \
23
+ BUNDLE_JOBS=8 \
24
+ BUNDLE_PATH=/bundle_cache
data/Gemfile ADDED
@@ -0,0 +1,23 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in ramda-ruby.gemspec
4
+ gemspec
5
+
6
+ group :development do
7
+ gem 'rake', '~> 10.0'
8
+ end
9
+
10
+ group :testing do
11
+ gem 'pry', '~> 0.10.4'
12
+ gem 'rspec', '~> 3.6.0'
13
+ gem 'simplecov', '~> 0.10.0', platforms: :mri, require: false
14
+ gem 'codeclimate-test-reporter', '~> 0.4.7', group: :test, require: nil
15
+ gem 'coveralls', '~> 0.8.2', require: false
16
+ end
17
+
18
+ group :documentation do
19
+ # gem 'countloc', '~> 0.4.0', platforms: :mri, require: false
20
+ # gem 'yard', '~> 0.8.7.6', require: false
21
+ # gem 'inch', '~> 0.6.3', platforms: :mri, require: false
22
+ # gem 'redcarpet', '~> 3.3.2', platforms: :mri # understands github markdown
23
+ end
data/Gemfile.dev ADDED
@@ -0,0 +1,6 @@
1
+ # encoding: utf-8
2
+ source 'https://rubygems.org'
3
+
4
+ gem 'rubocop', '= 0.48.0'
5
+ gem 'rubocop-rspec', '= 1.15.1'
6
+ gem 'overcommit', '= 0.33'
data/Gemfile.dev.lock ADDED
@@ -0,0 +1,38 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ ast (2.3.0)
5
+ childprocess (0.5.9)
6
+ ffi (~> 1.0, >= 1.0.11)
7
+ ffi (1.9.18)
8
+ iniparse (1.4.3)
9
+ overcommit (0.33.0)
10
+ childprocess (~> 0.5.8)
11
+ iniparse (~> 1.4)
12
+ parser (2.4.0.0)
13
+ ast (~> 2.2)
14
+ powerpack (0.1.1)
15
+ rainbow (2.2.2)
16
+ rake
17
+ rake (12.0.0)
18
+ rubocop (0.48.0)
19
+ parser (>= 2.3.3.1, < 3.0)
20
+ powerpack (~> 0.1)
21
+ rainbow (>= 1.99.1, < 3.0)
22
+ ruby-progressbar (~> 1.7)
23
+ unicode-display_width (~> 1.0, >= 1.0.1)
24
+ rubocop-rspec (1.15.1)
25
+ rubocop (>= 0.42.0)
26
+ ruby-progressbar (1.8.1)
27
+ unicode-display_width (1.2.1)
28
+
29
+ PLATFORMS
30
+ ruby
31
+
32
+ DEPENDENCIES
33
+ overcommit (= 0.33)
34
+ rubocop (= 0.48.0)
35
+ rubocop-rspec (= 1.15.1)
36
+
37
+ BUNDLED WITH
38
+ 1.14.6
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Vadim Lazebny
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,68 @@
1
+ Ramda Ruby
2
+ =============
3
+
4
+ This is ruby version of of Ramda library from (http://ramdajs.com)
5
+
6
+
7
+ [![Gem Version](https://badge.fury.io/rb/ramda-ruby.svg)](http://badge.fury.io/rb/ramda-ruby)
8
+ [![Travis badge](https://travis-ci.org/lazebny/ramda-ruby.svg?branch=master)](https://travis-ci.org/lazebny/ramda-ruby)
9
+ [![AppVeyor status](https://ci.appveyor.com/api/projects/status/ponccdax7aj4ufw2?svg=true)](https://ci.appveyor.com/project/lazebny/ramda-ruby)
10
+ [![Coverage Status](https://coveralls.io/repos/lazebny/ramda-ruby/badge.png)](https://coveralls.io/r/lazebny/ramda-ruby)
11
+ [![Code Climate Badge](https://codeclimate.com/github/lazebny/ramda-ruby.svg)](https://codeclimate.com/github/lazebny/ramda-ruby)
12
+ [![Inch CI](http://inch-ci.org/github/lazebny/ramda-ruby.svg)](http://inch-ci.org/github/lazebny/ramda-ruby)
13
+ [![Dependency Status](https://gemnasium.com/lazebny/ramda-ruby.svg)](https://gemnasium.com/lazebny/ramda-ruby)
14
+ [![License](https://img.shields.io/badge/license-MIT-green.svg)](http://opensource.org/licenses/MIT)
15
+
16
+
17
+ Installation
18
+ ------------
19
+
20
+ Add this line to your application's Gemfile:
21
+
22
+ ```ruby
23
+ gem 'ramda-ruby'
24
+ ```
25
+
26
+ And then execute:
27
+
28
+ $ bundle
29
+
30
+ Or install it yourself as:
31
+
32
+ $ gem install ramda-ruby
33
+
34
+ And then require:
35
+
36
+ ```ruby
37
+ reuire 'ramda'
38
+ ```
39
+
40
+ ## Documentation
41
+
42
+ This gem tries to follow the same versions as ramdajs has.
43
+
44
+ [Implemeted Functions](docs/FUNCTIONS.md)
45
+
46
+ Currently this project doesn't have own documentation but it tries to follow
47
+ specification from http://ramdajs.com/docs/. You could use this resource as a
48
+ source of documentation. Examples exist in spec directory.
49
+
50
+ ## Usage
51
+
52
+ TODO: Write usage instructions here
53
+
54
+ ## Development
55
+
56
+ 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.
57
+
58
+ 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).
59
+
60
+ ## Contributing
61
+
62
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ramda-ruby.
63
+
64
+
65
+ ## License
66
+
67
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
68
+
data/ROADMAP.md ADDED
@@ -0,0 +1,14 @@
1
+ ### Add all specs from https://github.com/ramda/ramda/tree/master/test ###
2
+
3
+ ### Add documentation ###
4
+
5
+ * Get in touch with Ramdajs authors
6
+ * Find out suitable documentation format
7
+
8
+ ### Add CHANGELOG.md ###
9
+
10
+ ### Performance Tests ###
11
+
12
+ * find out amout of memory which gem uses
13
+
14
+ ### Prepare 0.1.0 Release ###
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task default: :spec
data/appveyor.yml ADDED
@@ -0,0 +1,26 @@
1
+ install:
2
+ - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
3
+ - SET PATH=C:\MinGW\bin;%PATH%
4
+ - SET RAKEOPT=-rdevkit
5
+ - ruby --version
6
+ - gem --version
7
+ - bundle install
8
+
9
+ build: off
10
+
11
+ test_script:
12
+ - bundle exec rake
13
+
14
+ environment:
15
+ matrix:
16
+ - ruby_version: "193"
17
+ - ruby_version: "200"
18
+ - ruby_version: "200-x64"
19
+ - ruby_version: "21"
20
+ - ruby_version: "21-x64"
21
+ - ruby_version: "22"
22
+ - ruby_version: "22-x64"
23
+
24
+ # matrix:
25
+ # allow_failures:
26
+ # - ruby_version: "193"
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'ramda/ruby'
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__)