steppy 0.0.1

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
+ SHA256:
3
+ metadata.gz: 1e1028f03816d488f2dc95fa32b6735e9ee991143a4b50d29a6d26e2464c1514
4
+ data.tar.gz: 495da8ede3f4163b17ddfc41ff5fd6c5cdece3a05302515ab4d678581e154e0f
5
+ SHA512:
6
+ metadata.gz: 74a8ae97737d34d4490ae84a681dc49003c3f780c6a024af2d797dd72ce9142acea49cbb15a53bbad66f0b0e4e98633d159ffaf5c741abb0479573ebad27e0e7
7
+ data.tar.gz: ed69ffa9dc400b3377f4b4e9aeb651b82ade6cd12e281c49beb6899bcc288836734f21cac026f25ed85a8a9fbfcad9c94be193af6f1df93b9d2dfe783baccc69
@@ -0,0 +1,14 @@
1
+ # ignore these files/folders
2
+ /.bundle/
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ .*
10
+ # allow these files/folders
11
+ !.gitignore
12
+ !.rubocop.yml
13
+ !.rubocop_airbnb.yml
14
+ !.reek
@@ -0,0 +1,18 @@
1
+ inherit_from:
2
+ - .rubocop_airbnb.yml
3
+
4
+ Metrics/LineLength:
5
+ Max: 100
6
+ IgnoredPatterns: ['#', 'ENV']
7
+
8
+ Style/FrozenStringLiteralComment:
9
+ Enabled: true
10
+ EnforcedStyle: always
11
+ SupportedStyles:
12
+ - always
13
+
14
+ Style/StringLiterals:
15
+ Enabled: true
16
+
17
+ AllCops:
18
+ TargetRubyVersion: 2.5
@@ -0,0 +1,2 @@
1
+ require:
2
+ - rubocop-airbnb
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in steppy.gemspec
8
+ gemspec
@@ -0,0 +1,67 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ steppy (0.0.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.0)
10
+ axiom-types (0.1.1)
11
+ descendants_tracker (~> 0.0.4)
12
+ ice_nine (~> 0.11.0)
13
+ thread_safe (~> 0.3, >= 0.3.1)
14
+ codeclimate-engine-rb (0.4.1)
15
+ virtus (~> 1.0)
16
+ coercible (1.0.0)
17
+ descendants_tracker (~> 0.0.1)
18
+ descendants_tracker (0.0.4)
19
+ thread_safe (~> 0.3, >= 0.3.1)
20
+ equalizer (0.0.11)
21
+ ice_nine (0.11.2)
22
+ minitest (5.11.3)
23
+ parallel (1.12.1)
24
+ parser (2.5.1.0)
25
+ ast (~> 2.4.0)
26
+ powerpack (0.1.1)
27
+ rainbow (3.0.0)
28
+ rake (10.5.0)
29
+ reek (4.8.1)
30
+ codeclimate-engine-rb (~> 0.4.0)
31
+ parser (>= 2.5.0.0, < 2.6)
32
+ rainbow (>= 2.0, < 4.0)
33
+ rubocop (0.52.1)
34
+ parallel (~> 1.10)
35
+ parser (>= 2.4.0.2, < 3.0)
36
+ powerpack (~> 0.1)
37
+ rainbow (>= 2.2.2, < 4.0)
38
+ ruby-progressbar (~> 1.7)
39
+ unicode-display_width (~> 1.0, >= 1.0.1)
40
+ rubocop-airbnb (1.0.0)
41
+ rubocop (= 0.52.1)
42
+ rubocop-rspec (= 1.22.1)
43
+ rubocop-rspec (1.22.1)
44
+ rubocop (>= 0.52.1)
45
+ ruby-progressbar (1.9.0)
46
+ thread_safe (0.3.6)
47
+ unicode-display_width (1.3.2)
48
+ virtus (1.0.5)
49
+ axiom-types (~> 0.1)
50
+ coercible (~> 1.0)
51
+ descendants_tracker (~> 0.0, >= 0.0.3)
52
+ equalizer (~> 0.0, >= 0.0.9)
53
+
54
+ PLATFORMS
55
+ ruby
56
+
57
+ DEPENDENCIES
58
+ bundler (~> 1.16)
59
+ minitest (~> 5.0)
60
+ rake (~> 10.0)
61
+ reek (~> 4.8.1)
62
+ rubocop (~> 0.52.1)
63
+ rubocop-airbnb
64
+ steppy!
65
+
66
+ BUNDLED WITH
67
+ 1.16.1
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 CJ Lazell (@cj)
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,39 @@
1
+ # Steppy
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/steppy`. 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 'steppy'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install steppy
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/cj/steppy.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rake/testtask'
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << 'test'
8
+ t.libs << 'lib'
9
+ t.test_files = FileList['test/**/*_test.rb']
10
+ end
11
+
12
+ task :default => :test
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'steppy'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ 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
+
7
+ bundle install
8
+ cd .git/hooks && ln -sf ../../hooks/pre-commit ./pre-commit
@@ -0,0 +1,39 @@
1
+ #!/bin/sh
2
+
3
+ pass=true
4
+ RED='\033[1;31m'
5
+ GREEN='\033[0;32m'
6
+ NC='\033[0m'
7
+
8
+ echo "Running Linters:"
9
+
10
+ # Run rubocop and get the output and return code
11
+ rubocop=$(git status | grep -v deleted | xargs ls -1 2>/dev/null | grep '\.rb$' | xargs bundle exec rubocop --parallel --force-exclusion --format simple ${suspects})
12
+ return_code=$?
13
+
14
+ if [ $return_code != 0 ]; then
15
+ echo "$rubocop\n"
16
+ printf "\n${RED}Rubocop failed, please fix and then re-commit${NC}\n"
17
+ pass=false
18
+ else
19
+ printf "${GREEN}Rubocop passed.${NC}\n"
20
+ fi
21
+
22
+ # Run reek and get the output and return code
23
+ reek=$(git status | grep -v deleted | xargs ls -1 2>/dev/null | grep '\.rb$' | xargs bundle exec bundle exec reek --force-exclusion)
24
+ return_code=$?
25
+
26
+ if [ $return_code != 0 ]; then
27
+ echo "$reek\n"
28
+ printf "\n${RED}Reek failed, please fix and then re-commit.${NC}\n"
29
+ pass=false
30
+ else
31
+ printf "${GREEN}Reek passed.${NC}\n"
32
+ fi
33
+
34
+ # If you reach this point, everything was cool and means you are a good player
35
+ if $pass; then
36
+ exit 0
37
+ fi
38
+
39
+ exit 1
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'steppy/version'
4
+
5
+ module Steppy
6
+ # Your code goes here...
7
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Steppy
4
+ VERSION = '0.0.1'
5
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'steppy/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'steppy'
9
+ spec.version = Steppy::VERSION
10
+ spec.authors = ['cj']
11
+ spec.email = ['cjlazell@gmail.com']
12
+
13
+ spec.summary = %q()
14
+ spec.description = %q()
15
+ spec.homepage = 'https://github.com/cj/steppy'
16
+ spec.license = 'MIT'
17
+
18
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
+ f.match(%r{^(test|spec|features)/})
20
+ end
21
+ spec.bindir = 'exe'
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ['lib']
24
+
25
+ spec.add_development_dependency 'bundler', '~> 1.16'
26
+ spec.add_development_dependency 'rake', '~> 10.0'
27
+ spec.add_development_dependency 'minitest', '~> 5.0'
28
+ spec.add_development_dependency 'reek', '~> 4.8.1'
29
+ spec.add_development_dependency 'rubocop', '~> 0.52.1'
30
+ spec.add_development_dependency 'rubocop-airbnb'
31
+ end
metadata ADDED
@@ -0,0 +1,143 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: steppy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - cj
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-05-27 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: 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
+ - !ruby/object:Gem::Dependency
56
+ name: reek
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 4.8.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 4.8.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.52.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.52.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-airbnb
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: ''
98
+ email:
99
+ - cjlazell@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rubocop.yml"
106
+ - ".rubocop_airbnb.yml"
107
+ - ".travis.yml"
108
+ - Gemfile
109
+ - Gemfile.lock
110
+ - LICENSE.txt
111
+ - README.md
112
+ - Rakefile
113
+ - bin/console
114
+ - bin/setup
115
+ - hooks/pre-commit
116
+ - lib/steppy.rb
117
+ - lib/steppy/version.rb
118
+ - steppy.gemspec
119
+ homepage: https://github.com/cj/steppy
120
+ licenses:
121
+ - MIT
122
+ metadata: {}
123
+ post_install_message:
124
+ rdoc_options: []
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ requirements: []
138
+ rubyforge_project:
139
+ rubygems_version: 2.7.6
140
+ signing_key:
141
+ specification_version: 4
142
+ summary: ''
143
+ test_files: []