my_gems 0.2.1 → 0.2.2
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 +4 -4
- data/.circleci/config.yml +49 -0
- data/.codeclimate.yml +4 -0
- data/.rubocop.yml +15 -0
- data/.travis.yml +1 -1
- data/Dockerfile +8 -0
- data/Gemfile +6 -4
- data/Gemfile.lock +32 -3
- data/Guardfile +4 -6
- data/LICENSE.txt +1 -1
- data/README.md +3 -11
- data/Rakefile +3 -5
- data/bin/console +3 -4
- data/docker-compose.yml +9 -0
- data/lib/my_gems.rb +0 -2
- data/lib/my_gems/version.rb +1 -3
- data/my_gems.gemspec +21 -22
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f2631dd3f5212aaccbd6b87296c3ac1c92236c2e3ad14d1229e070ecf3edd60
|
4
|
+
data.tar.gz: a100f8055ffa327efc7554de9710625c438da051814b7d439a290632908e9f91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cecbb7d2141c7ec2fde340b5a7c93bb02a02733e15f7a6b2c8c1d43f79527de17a3b9539e714e82ddc1af478992c9f9a52f835d6ce2166015ff702cc113828aa
|
7
|
+
data.tar.gz: 492d01cc956eaa1150a0633b15876971d936b5281045d74e2f1e39d80d5e7f397863b04053962132c162d1d0f3ff098992ad1d062db7aa29aad7781d1dd0a31f
|
@@ -0,0 +1,49 @@
|
|
1
|
+
version: 2
|
2
|
+
jobs:
|
3
|
+
build:
|
4
|
+
docker:
|
5
|
+
- image: circleci/ruby:2.5.1-node-browsers
|
6
|
+
working_directory: ~/repo
|
7
|
+
|
8
|
+
steps:
|
9
|
+
- checkout
|
10
|
+
|
11
|
+
- restore_cache:
|
12
|
+
keys:
|
13
|
+
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
14
|
+
- v1-dependencies-
|
15
|
+
|
16
|
+
- run:
|
17
|
+
name: Install Dependencies
|
18
|
+
command: |
|
19
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
20
|
+
|
21
|
+
- run:
|
22
|
+
name: Setup Code Climate test-reporter
|
23
|
+
command: |
|
24
|
+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
25
|
+
chmod +x ./cc-test-reporter
|
26
|
+
|
27
|
+
- save_cache:
|
28
|
+
paths:
|
29
|
+
- ./vendor/bundle
|
30
|
+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
31
|
+
|
32
|
+
- run:
|
33
|
+
name: Run Tests
|
34
|
+
command: |
|
35
|
+
mkdir /tmp/test-results
|
36
|
+
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
|
37
|
+
./cc-test-reporter before-build
|
38
|
+
bundle exec rspec --format progress \
|
39
|
+
--format RspecJunitFormatter \
|
40
|
+
--out /tmp/test-results/rspec.xml \
|
41
|
+
--format progress \
|
42
|
+
$TEST_FILES
|
43
|
+
./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
|
44
|
+
|
45
|
+
- store_test_results:
|
46
|
+
path: /tmp/test-results
|
47
|
+
- store_artifacts:
|
48
|
+
path: /tmp/test-results
|
49
|
+
destination: test-results
|
data/.codeclimate.yml
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
CHANGED
data/Dockerfile
ADDED
data/Gemfile
CHANGED
@@ -1,10 +1,12 @@
|
|
1
|
-
|
1
|
+
source "https://rubygems.org"
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
3
|
+
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
|
6
4
|
|
7
5
|
# Specify your gem's dependencies in my_gems.gemspec
|
8
6
|
gemspec
|
9
7
|
|
10
8
|
gem 'guard-rspec', require: false, group: %i[development test]
|
9
|
+
gem 'rspec', group: :test
|
10
|
+
gem 'rspec_junit_formatter', group: :test
|
11
|
+
gem 'rubocop', require: false, group: %i[development test]
|
12
|
+
gem 'simplecov', require: false, group: :test
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
my_gems (0.
|
4
|
+
my_gems (0.1.0)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
+
ast (2.4.0)
|
9
10
|
coderay (1.1.2)
|
10
11
|
diff-lcs (1.3)
|
12
|
+
docile (1.3.1)
|
11
13
|
ffi (1.9.25)
|
12
14
|
formatador (0.2.5)
|
13
15
|
guard (2.14.2)
|
@@ -24,6 +26,8 @@ GEM
|
|
24
26
|
guard (~> 2.1)
|
25
27
|
guard-compat (~> 1.1)
|
26
28
|
rspec (>= 2.99.0, < 4.0)
|
29
|
+
jaro_winkler (1.5.1)
|
30
|
+
json (2.1.0)
|
27
31
|
listen (3.1.5)
|
28
32
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
29
33
|
rb-inotify (~> 0.9, >= 0.9.7)
|
@@ -34,9 +38,14 @@ GEM
|
|
34
38
|
notiffany (0.1.1)
|
35
39
|
nenv (~> 0.1)
|
36
40
|
shellany (~> 0.0)
|
41
|
+
parallel (1.12.1)
|
42
|
+
parser (2.5.1.2)
|
43
|
+
ast (~> 2.4.0)
|
44
|
+
powerpack (0.1.2)
|
37
45
|
pry (0.11.3)
|
38
46
|
coderay (~> 1.1.0)
|
39
47
|
method_source (~> 0.9.0)
|
48
|
+
rainbow (3.0.0)
|
40
49
|
rake (10.5.0)
|
41
50
|
rb-fsevent (0.10.3)
|
42
51
|
rb-inotify (0.9.10)
|
@@ -54,9 +63,26 @@ GEM
|
|
54
63
|
diff-lcs (>= 1.2.0, < 2.0)
|
55
64
|
rspec-support (~> 3.8.0)
|
56
65
|
rspec-support (3.8.0)
|
66
|
+
rspec_junit_formatter (0.4.1)
|
67
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
68
|
+
rubocop (0.59.1)
|
69
|
+
jaro_winkler (~> 1.5.1)
|
70
|
+
parallel (~> 1.10)
|
71
|
+
parser (>= 2.5, != 2.5.1.1)
|
72
|
+
powerpack (~> 0.1)
|
73
|
+
rainbow (>= 2.2.2, < 4.0)
|
74
|
+
ruby-progressbar (~> 1.7)
|
75
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
76
|
+
ruby-progressbar (1.10.0)
|
57
77
|
ruby_dep (1.5.0)
|
58
78
|
shellany (0.0.1)
|
79
|
+
simplecov (0.16.1)
|
80
|
+
docile (~> 1.1)
|
81
|
+
json (>= 1.8, < 3)
|
82
|
+
simplecov-html (~> 0.10.0)
|
83
|
+
simplecov-html (0.10.2)
|
59
84
|
thor (0.20.0)
|
85
|
+
unicode-display_width (1.4.0)
|
60
86
|
|
61
87
|
PLATFORMS
|
62
88
|
ruby
|
@@ -66,7 +92,10 @@ DEPENDENCIES
|
|
66
92
|
guard-rspec
|
67
93
|
my_gems!
|
68
94
|
rake (~> 10.0)
|
69
|
-
rspec
|
95
|
+
rspec
|
96
|
+
rspec_junit_formatter
|
97
|
+
rubocop
|
98
|
+
simplecov
|
70
99
|
|
71
100
|
BUNDLED WITH
|
72
|
-
1.16.
|
101
|
+
1.16.5
|
data/Guardfile
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
1
|
# A sample Guardfile
|
4
2
|
# More info at https://github.com/guard/guard#readme
|
5
3
|
|
@@ -26,8 +24,8 @@
|
|
26
24
|
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
27
25
|
# * 'just' rspec: 'rspec'
|
28
26
|
|
29
|
-
guard :rspec, cmd:
|
30
|
-
require
|
27
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
28
|
+
require "guard/rspec/dsl"
|
31
29
|
dsl = Guard::RSpec::Dsl.new(self)
|
32
30
|
|
33
31
|
# Feel free to open issues for suggestions and improvements
|
@@ -43,7 +41,7 @@ guard :rspec, cmd: 'bundle exec rspec' do
|
|
43
41
|
dsl.watch_spec_files_for(ruby.lib_files)
|
44
42
|
|
45
43
|
# Rails files
|
46
|
-
rails = dsl.rails(view_extensions: %w
|
44
|
+
rails = dsl.rails(view_extensions: %w(erb haml slim))
|
47
45
|
dsl.watch_spec_files_for(rails.app_files)
|
48
46
|
dsl.watch_spec_files_for(rails.views)
|
49
47
|
|
@@ -67,6 +65,6 @@ guard :rspec, cmd: 'bundle exec rspec' do
|
|
67
65
|
# Turnip features and steps
|
68
66
|
watch(%r{^spec/acceptance/(.+)\.feature$})
|
69
67
|
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
70
|
-
Dir[File.join("**/#{m[1]}.feature")][0] ||
|
68
|
+
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
71
69
|
end
|
72
70
|
end
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# MyGems
|
2
2
|
|
3
|
-
[](https://circleci.com/gh/ogom/my_gems)
|
4
|
+
[](https://codeclimate.com/github/ogom/my_gems/maintainability)
|
5
|
+
[](https://codeclimate.com/github/ogom/my_gems/test_coverage)
|
4
6
|
|
5
7
|
An example of Fizz Buzz.
|
6
8
|
|
@@ -31,16 +33,6 @@ fizz_buzz = MyGems::FizzBuzz.new(3)
|
|
31
33
|
fizz_buzz.say # "Fizz"
|
32
34
|
```
|
33
35
|
|
34
|
-
## Development
|
35
|
-
|
36
|
-
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.
|
37
|
-
|
38
|
-
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).
|
39
|
-
|
40
|
-
## Contributing
|
41
|
-
|
42
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/ogom/my_gems.
|
43
|
-
|
44
36
|
## License
|
45
37
|
|
46
38
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
CHANGED
data/bin/console
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
2
|
|
4
|
-
require
|
5
|
-
require
|
3
|
+
require "bundler/setup"
|
4
|
+
require "my_gems"
|
6
5
|
|
7
6
|
# You can add fixtures and/or initialization code here to make experimenting
|
8
7
|
# with your gem easier. You can also use a different console, if you like.
|
@@ -11,5 +10,5 @@ require 'my_gems'
|
|
11
10
|
# require "pry"
|
12
11
|
# Pry.start
|
13
12
|
|
14
|
-
require
|
13
|
+
require "irb"
|
15
14
|
IRB.start(__FILE__)
|
data/docker-compose.yml
ADDED
data/lib/my_gems.rb
CHANGED
data/lib/my_gems/version.rb
CHANGED
data/my_gems.gemspec
CHANGED
@@ -1,39 +1,38 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
1
|
|
3
|
-
lib = File.expand_path(
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
4
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require
|
4
|
+
require "my_gems/version"
|
6
5
|
|
7
6
|
Gem::Specification.new do |spec|
|
8
|
-
spec.name =
|
7
|
+
spec.name = "my_gems"
|
9
8
|
spec.version = MyGems::VERSION
|
10
|
-
spec.authors = [
|
11
|
-
spec.email = [
|
9
|
+
spec.authors = ["ogom"]
|
10
|
+
spec.email = ["ogom@outlook.com"]
|
12
11
|
|
13
|
-
spec.summary =
|
14
|
-
spec.description =
|
15
|
-
spec.homepage =
|
16
|
-
spec.license =
|
12
|
+
spec.summary = %q{my gems of short summary.}
|
13
|
+
spec.description = %q{my gems of longer description.}
|
14
|
+
spec.homepage = "https://github.com/ogom/my_gems.git"
|
15
|
+
spec.license = "MIT"
|
17
16
|
|
18
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
19
18
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
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
|
26
25
|
|
27
26
|
# Specify which files should be added to the gem when it is released.
|
28
27
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
29
|
-
spec.files = Dir.chdir(File.expand_path(
|
28
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
30
29
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
31
30
|
end
|
32
|
-
spec.bindir =
|
31
|
+
spec.bindir = "exe"
|
33
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
34
|
-
spec.require_paths = [
|
33
|
+
spec.require_paths = ["lib"]
|
35
34
|
|
36
|
-
spec.add_development_dependency
|
37
|
-
spec.add_development_dependency
|
38
|
-
spec.add_development_dependency
|
35
|
+
spec.add_development_dependency "bundler", "~> 1.16"
|
36
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
37
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
39
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: my_gems
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ogom
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -59,9 +59,13 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
+
- ".circleci/config.yml"
|
63
|
+
- ".codeclimate.yml"
|
62
64
|
- ".gitignore"
|
63
65
|
- ".rspec"
|
66
|
+
- ".rubocop.yml"
|
64
67
|
- ".travis.yml"
|
68
|
+
- Dockerfile
|
65
69
|
- Gemfile
|
66
70
|
- Gemfile.lock
|
67
71
|
- Guardfile
|
@@ -70,13 +74,15 @@ files:
|
|
70
74
|
- Rakefile
|
71
75
|
- bin/console
|
72
76
|
- bin/setup
|
77
|
+
- docker-compose.yml
|
73
78
|
- lib/my_gems.rb
|
74
79
|
- lib/my_gems/version.rb
|
75
80
|
- my_gems.gemspec
|
76
81
|
homepage: https://github.com/ogom/my_gems.git
|
77
82
|
licenses:
|
78
83
|
- MIT
|
79
|
-
metadata:
|
84
|
+
metadata:
|
85
|
+
allowed_push_host: https://rubygems.org/
|
80
86
|
post_install_message:
|
81
87
|
rdoc_options: []
|
82
88
|
require_paths:
|