my_gems 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7165275ef768b485a890022d9ee082cf30ed2d56b4e1cb2ac8a9d233602c83fc
4
- data.tar.gz: 1e754e2e3eef371edb98501edf9776549153c5aefd3c1ed0a2442746f563572d
3
+ metadata.gz: 0f2631dd3f5212aaccbd6b87296c3ac1c92236c2e3ad14d1229e070ecf3edd60
4
+ data.tar.gz: a100f8055ffa327efc7554de9710625c438da051814b7d439a290632908e9f91
5
5
  SHA512:
6
- metadata.gz: d17599e2d241ec69475825440fddcf8cc9a3e7f4274ae2627bd4175ccc4d8b159808f6ba3e1a9406025a27f7412da73d72f73d57adf1ff0f9c2bb7a08a6867a2
7
- data.tar.gz: 2035e7ba0b4332041eff8472f137cee57c11cedd1c04f45551113cdfc65e0a2c9be3fa072de9698df14908bac2f13fe0989feef68527874cb32a630f28db3936
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
@@ -0,0 +1,4 @@
1
+ version: "2"
2
+ plugins:
3
+ rubocop:
4
+ enabled: true
@@ -0,0 +1,15 @@
1
+ AllCops:
2
+ Exclude:
3
+ - "bin/*"
4
+ - "spec/spec_helper.rb"
5
+ - "Guardfile"
6
+ - "Gemfile"
7
+ - "*.gemspec"
8
+ - "Rakefile"
9
+
10
+ Style/Documentation:
11
+ Enabled: false
12
+
13
+ Metrics/BlockLength:
14
+ Exclude:
15
+ - "spec/**/*"
@@ -4,4 +4,4 @@ language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
6
  - 2.5.1
7
- before_install: gem install bundler -v 1.16.4
7
+ before_install: gem install bundler -v 1.16.5
@@ -0,0 +1,8 @@
1
+ FROM ruby:2.5.1
2
+ RUN apt-get update -qq && apt-get install -y locales
3
+ RUN sed -i 's/#.*ja_JP\.UTF/ja_JP\.UTF/' /etc/locale.gen
4
+ RUN locale-gen && update-locale LANG=ja_JP.UTF-8
5
+ RUN mkdir /my_app
6
+ WORKDIR /my_app
7
+ COPY . /my_app
8
+ RUN bundle install
data/Gemfile CHANGED
@@ -1,10 +1,12 @@
1
- # frozen_string_literal: true
1
+ source "https://rubygems.org"
2
2
 
3
- source 'https://rubygems.org'
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
@@ -1,13 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- my_gems (0.2.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 (~> 3.0)
95
+ rspec
96
+ rspec_junit_formatter
97
+ rubocop
98
+ simplecov
70
99
 
71
100
  BUNDLED WITH
72
- 1.16.4
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: 'bundle exec rspec' do
30
- require 'guard/rspec/dsl'
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[erb haml slim])
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] || 'spec/acceptance'
68
+ Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
71
69
  end
72
70
  end
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 ogom
3
+ Copyright (c) 2018 TODO: Write your name
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # MyGems
2
2
 
3
- [![Build Status](https://travis-ci.org/ogom/my_gems.svg?branch=master)](https://travis-ci.org/ogom/my_gems)
3
+ [![CircleCI](https://circleci.com/gh/ogom/my_gems.svg?style=svg)](https://circleci.com/gh/ogom/my_gems)
4
+ [![Maintainability](https://api.codeclimate.com/v1/badges/6f5c5954dab8565b1a9c/maintainability)](https://codeclimate.com/github/ogom/my_gems/maintainability)
5
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/6f5c5954dab8565b1a9c/test_coverage)](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
@@ -1,8 +1,6 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
5
3
 
6
4
  RSpec::Core::RakeTask.new(:spec)
7
5
 
8
- task default: :spec
6
+ task :default => :spec
@@ -1,8 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
2
 
4
- require 'bundler/setup'
5
- require 'my_gems'
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 'irb'
13
+ require "irb"
15
14
  IRB.start(__FILE__)
@@ -0,0 +1,9 @@
1
+ version: "3"
2
+ services:
3
+ app:
4
+ build: .
5
+ volumes:
6
+ - .:/my_app
7
+ environment:
8
+ - LANG=ja_JP.UTF-8
9
+ - LC_CTYPE=ja_JP.UTF-8
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  require 'my_gems/version'
4
2
 
5
3
  module MyGems
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module MyGems
4
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'.freeze
5
3
  end
@@ -1,39 +1,38 @@
1
- # frozen_string_literal: true
2
1
 
3
- lib = File.expand_path('lib', __dir__)
2
+ lib = File.expand_path("../lib", __FILE__)
4
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'my_gems/version'
4
+ require "my_gems/version"
6
5
 
7
6
  Gem::Specification.new do |spec|
8
- spec.name = 'my_gems'
7
+ spec.name = "my_gems"
9
8
  spec.version = MyGems::VERSION
10
- spec.authors = ['ogom']
11
- spec.email = ['ogom@outlook.com']
9
+ spec.authors = ["ogom"]
10
+ spec.email = ["ogom@outlook.com"]
12
11
 
13
- spec.summary = 'my gems of short summary.'
14
- spec.description = 'my gems of longer description.'
15
- spec.homepage = 'https://github.com/ogom/my_gems.git'
16
- spec.license = 'MIT'
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
- # if spec.respond_to?(:metadata)
21
- # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
22
- # else
23
- # raise "RubyGems 2.0 or newer is required to protect against " \
24
- # "public gem pushes."
25
- # end
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(__dir__)) do
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 = 'exe'
31
+ spec.bindir = "exe"
33
32
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
34
- spec.require_paths = ['lib']
33
+ spec.require_paths = ["lib"]
35
34
 
36
- spec.add_development_dependency 'bundler', '~> 1.16'
37
- spec.add_development_dependency 'rake', '~> 10.0'
38
- spec.add_development_dependency 'rspec', '~> 3.0'
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.1
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-14 00:00:00.000000000 Z
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: