ramda-ruby 0.1.0.alpha → 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,105 @@
1
+ require 'spec_helper'
2
+
3
+ describe Ramda do
4
+ def self.r(method)
5
+ it "Ramda.#{method}" do
6
+ expect(described_class).to be_respond_to(method)
7
+ end
8
+ end
9
+
10
+ r(:add)
11
+ r(:all)
12
+ r(:all_pass)
13
+ r(:always)
14
+ r(:and)
15
+ r(:any)
16
+ r(:any_pass)
17
+ r(:append)
18
+ r(:assoc)
19
+ r(:clone)
20
+ r(:comparator)
21
+ r(:compose)
22
+ r(:concat)
23
+ r(:construct)
24
+ r(:contains)
25
+ r(:converge)
26
+ r(:count_by)
27
+ r(:curry)
28
+ r(:dec)
29
+ r(:difference)
30
+ r(:difference_with)
31
+ r(:dissoc)
32
+ r(:divide)
33
+ r(:drop)
34
+ r(:eq_by)
35
+ r(:eq_props)
36
+ r(:equals)
37
+ r(:filter)
38
+ r(:find)
39
+ r(:flatten)
40
+ r(:flip)
41
+ r(:group_by)
42
+ r(:gt)
43
+ r(:gte)
44
+ r(:head)
45
+ r(:identity)
46
+ r(:if_else)
47
+ r(:inc)
48
+ r(:index_of)
49
+ r(:intersection)
50
+ r(:invoker)
51
+ r(:is_empty)
52
+ r(:join)
53
+ r(:keys)
54
+ r(:last_index_of)
55
+ r(:length)
56
+ r(:lt)
57
+ r(:lte)
58
+ r(:map)
59
+ r(:match)
60
+ r(:max)
61
+ r(:memoize)
62
+ r(:merge)
63
+ r(:min)
64
+ r(:multiply)
65
+ r(:n_ary)
66
+ r(:not)
67
+ r(:nth)
68
+ r(:omit)
69
+ r(:once)
70
+ r(:or)
71
+ r(:pick)
72
+ r(:pick_all)
73
+ r(:pipe)
74
+ r(:pluck)
75
+ r(:prepend)
76
+ r(:product)
77
+ r(:project)
78
+ r(:prop)
79
+ r(:prop_eq)
80
+ r(:props)
81
+ r(:range)
82
+ r(:reduce)
83
+ r(:reduce_right)
84
+ r(:reject)
85
+ r(:reverse)
86
+ r(:sort)
87
+ r(:sort_by)
88
+ r(:split)
89
+ r(:subtract)
90
+ r(:sum)
91
+ r(:tail)
92
+ r(:take)
93
+ r(:take_while)
94
+ r(:tap)
95
+ r(:to_lower)
96
+ r(:to_upper)
97
+ r(:union)
98
+ r(:union_with)
99
+ r(:uniq)
100
+ r(:use_with)
101
+ r(:values)
102
+ r(:xprod)
103
+ r(:zip)
104
+ r(:zip_with)
105
+ end
@@ -0,0 +1,18 @@
1
+ require 'bundler/setup'
2
+ require 'ramda'
3
+ require 'pry'
4
+
5
+ R = Ramda
6
+
7
+ require 'coveralls'
8
+ Coveralls.wear!
9
+
10
+ RSpec.configure do |config|
11
+ config.order = 'random'
12
+ # Enable flags like --only-failures and --next-failure
13
+ # config.example_status_persistence_file_path = '.rspec_status'
14
+
15
+ config.expect_with :rspec do |c|
16
+ c.syntax = :expect
17
+ end
18
+ end
metadata CHANGED
@@ -1,45 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ramda-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vadim Lazebny
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-16 00:00:00.000000000 Z
11
+ date: 2017-06-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A gem for porting RamdaJs tools for Ruby.
14
14
  email:
15
15
  - vadim.lazebny@gmail.com
16
16
  executables: []
17
17
  extensions: []
18
- extra_rdoc_files: []
18
+ extra_rdoc_files:
19
+ - README.md
20
+ - LICENSE.txt
21
+ - CHANGELOG.md
22
+ - ROADMAP.md
23
+ - docs/FUNCTIONS.md
19
24
  files:
20
- - ".bashrc.docker"
21
- - ".coveralls.yml"
22
- - ".gitignore"
23
- - ".overcommit.yml"
24
- - ".pryrc.docker"
25
- - ".rspec"
26
- - ".rubocop.yml"
27
- - ".travis.yml"
28
25
  - CHANGELOG.md
29
- - Dockerfile
30
- - Gemfile
31
- - Gemfile.dev
32
- - Gemfile.dev.lock
33
26
  - LICENSE.txt
34
27
  - README.md
35
28
  - ROADMAP.md
36
- - Rakefile
37
- - appveyor.yml
38
- - bin/console
39
- - bin/setup
40
- - codeclimate.yml
41
- - docker-compose.override.yml
42
- - docker-compose.yml
43
29
  - docs/FUNCTIONS.md
44
30
  - lib/ramda.rb
45
31
  - lib/ramda/function.rb
@@ -52,7 +38,16 @@ files:
52
38
  - lib/ramda/relation.rb
53
39
  - lib/ramda/string.rb
54
40
  - lib/ramda/version.rb
55
- - ramda-ruby.gemspec
41
+ - spec/ramda/function_spec.rb
42
+ - spec/ramda/internal/curried_method_spec.rb
43
+ - spec/ramda/list_spec.rb
44
+ - spec/ramda/logic_spec.rb
45
+ - spec/ramda/math_spec.rb
46
+ - spec/ramda/object_spec.rb
47
+ - spec/ramda/relation_spec.rb
48
+ - spec/ramda/string_spec.rb
49
+ - spec/ramda_spec.rb
50
+ - spec/spec_helper.rb
56
51
  homepage: https://github.com/lazebny/ramda-ruby
57
52
  licenses:
58
53
  - MIT
@@ -65,16 +60,26 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
60
  requirements:
66
61
  - - ">="
67
62
  - !ruby/object:Gem::Version
68
- version: '0'
63
+ version: 1.9.3
69
64
  required_rubygems_version: !ruby/object:Gem::Requirement
70
65
  requirements:
71
- - - ">"
66
+ - - ">="
72
67
  - !ruby/object:Gem::Version
73
- version: 1.3.1
68
+ version: '0'
74
69
  requirements: []
75
70
  rubyforge_project:
76
- rubygems_version: 2.5.1
71
+ rubygems_version: 2.6.6
77
72
  signing_key:
78
73
  specification_version: 4
79
74
  summary: RamdaJs implementation for Ruby.
80
- test_files: []
75
+ test_files:
76
+ - spec/ramda_spec.rb
77
+ - spec/ramda/math_spec.rb
78
+ - spec/ramda/logic_spec.rb
79
+ - spec/ramda/string_spec.rb
80
+ - spec/ramda/list_spec.rb
81
+ - spec/ramda/object_spec.rb
82
+ - spec/ramda/function_spec.rb
83
+ - spec/ramda/relation_spec.rb
84
+ - spec/ramda/internal/curried_method_spec.rb
85
+ - spec/spec_helper.rb
data/.bashrc.docker DELETED
@@ -1,2 +0,0 @@
1
- # alias rspec='bundle exec rspec'
2
- alias rspec='bin/rspec'
data/.coveralls.yml DELETED
@@ -1 +0,0 @@
1
- repo_token: qbj8mnKMve9qMSJWG6IgHeeRUREVib06U
data/.gitignore DELETED
@@ -1,14 +0,0 @@
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 DELETED
@@ -1,73 +0,0 @@
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 DELETED
@@ -1 +0,0 @@
1
- Pry.config.history.file = "~/.pry_history"
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --format progress
2
- --color
data/.rubocop.yml DELETED
@@ -1,42 +0,0 @@
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 DELETED
@@ -1,35 +0,0 @@
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/Dockerfile DELETED
@@ -1,24 +0,0 @@
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 DELETED
@@ -1,23 +0,0 @@
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