selfies 1.4.0 → 1.4.1

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: 66985ccbc3450e808d361485d61ec88b243771533c31b0750e502007682d290d
4
- data.tar.gz: 8e0b8fba74dc5d6af7f37e70443bb28e1208ef8107423bdd9534e6c3a9f347f9
3
+ metadata.gz: 282b90a7c48fc2474db92abbf04de4fcb228070348eeaf7d4fda4addb0a9ddca
4
+ data.tar.gz: 0d70780457c2e0e140e319728af22dcc0f1643116fc56f6baab22ad58bebbdbd
5
5
  SHA512:
6
- metadata.gz: 3d9da9c8255dd6a3b42e7db757b897873384e0f8fca3311d263cf1b4fdb642f43df6710c0fe4a864cf9896b1956217dddfb7a69e0781ecef1e6d0ae080742d63
7
- data.tar.gz: c5e86d76e7d32d47385486228b4128654933fa0a4629938730bb803b678c4771a94eb2e07e174b054161d78e18b389b4c7edef2663b2ab0684476b25118c8174
6
+ metadata.gz: fed21bd211e17a02cf562cc760b318e92f862d5d9c3d223fc1a3153a2ae1c4e21e5a55578c5081a51ca60b81093e68487dc81a4cfa5fd6a5c57e7b9808e70346
7
+ data.tar.gz: b9445fad4bcce8d4246b27aaf49a467340c8f40396ac3d591441a38ad3e8a68faf4eaf688dd1b961f11c8ee2e6515a8c73fe099910b0dba45df317083ee936a4
@@ -0,0 +1,42 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ docker:
5
+ - image: circleci/ruby:2.5.1-node-browsers
6
+
7
+ working_directory: ~/repo
8
+
9
+ steps:
10
+ - checkout
11
+
12
+ - restore_cache:
13
+ keys:
14
+ - v1-dependencies-{{ checksum "Gemfile.lock" }}
15
+ - v1-dependencies-
16
+
17
+ - run:
18
+ name: install dependencies
19
+ command: |
20
+ bundle install --jobs=4 --retry=3 --path vendor/bundle
21
+
22
+ - save_cache:
23
+ paths:
24
+ - ./vendor/bundle
25
+ key: v1-dependencies-{{ checksum "Gemfile.lock" }}
26
+
27
+ - run:
28
+ name: run tests
29
+ command: |
30
+ mkdir /tmp/test-results
31
+ TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
32
+
33
+ bundle exec rspec --format progress \
34
+ --out /tmp/test-results/rspec.xml \
35
+ --format progress \
36
+ $TEST_FILES
37
+
38
+ - store_test_results:
39
+ path: /tmp/test-results
40
+ - store_artifacts:
41
+ path: /tmp/test-results
42
+ destination: test-results
data/Gemfile.lock CHANGED
@@ -1,19 +1,20 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- selfies (1.4.0)
4
+ selfies (1.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  ast (2.4.0)
10
10
  diff-lcs (1.3)
11
- docile (1.3.0)
11
+ docile (1.3.1)
12
+ jaro_winkler (1.5.1)
12
13
  json (2.1.0)
13
14
  parallel (1.12.1)
14
15
  parser (2.5.1.0)
15
16
  ast (~> 2.4.0)
16
- powerpack (0.1.1)
17
+ powerpack (0.1.2)
17
18
  rainbow (3.0.0)
18
19
  rake (12.3.1)
19
20
  rspec (3.7.0)
@@ -29,7 +30,8 @@ GEM
29
30
  diff-lcs (>= 1.2.0, < 2.0)
30
31
  rspec-support (~> 3.7.0)
31
32
  rspec-support (3.7.1)
32
- rubocop (0.55.0)
33
+ rubocop (0.57.2)
34
+ jaro_winkler (~> 1.5.1)
33
35
  parallel (~> 1.10)
34
36
  parser (>= 2.5)
35
37
  powerpack (~> 0.1)
@@ -42,7 +44,7 @@ GEM
42
44
  json (>= 1.8, < 3)
43
45
  simplecov-html (~> 0.10.0)
44
46
  simplecov-html (0.10.2)
45
- unicode-display_width (1.3.2)
47
+ unicode-display_width (1.4.0)
46
48
 
47
49
  PLATFORMS
48
50
  ruby
@@ -51,9 +53,9 @@ DEPENDENCIES
51
53
  bundler (~> 1.16)
52
54
  rake (~> 12.3)
53
55
  rspec (~> 3.7)
54
- rubocop (~> 0.55)
56
+ rubocop (~> 0.57)
55
57
  selfies!
56
58
  simplecov (~> 0.16)
57
59
 
58
60
  BUNDLED WITH
59
- 1.16.1
61
+ 1.16.2
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 Mario D’Arco
3
+ Copyright (c) 2018 Mario D’Arco
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
@@ -14,7 +14,7 @@ all copies or substantial portions of the Software.
14
14
 
15
15
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
16
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
- ![Gem Version](https://badge.fury.io/rb/selfies.svg) ![Build Status](https://gitlab.com/mariodarco/selfies/badges/master/build.svg) ![Coverage report](https://gitlab.com/mariodarco/selfies/badges/master/coverage.svg?job=coverage)
2
-
3
1
  # Selfies
2
+ [![Gem Version](https://badge.fury.io/rb/selfies.svg)](https://badge.fury.io/rb/selfies) [![CircleCI](https://circleci.com/gh/mariodarco/selfies.svg?style=svg)](https://circleci.com/gh/mariodarco/selfies) [![Maintainability](https://api.codeclimate.com/v1/badges/94e80322bd510cec589d/maintainability)](https://codeclimate.com/github/mariodarco/selfies/maintainability)
3
+
4
4
  **A collection of macros for quicker development**
5
5
 
6
6
  Another day at work, or on your personal project, and you need to create yet another class, which comes with the user boilerplate:
7
- - The initialiser needs to be defined, with n parameters
7
+ - The initializer needs to be defined, with n parameters
8
8
  - Inside that, the usual ```@param = param```, multiplied for how many params you've got there
9
9
  - Then it's the turn of the attr_reader for those parameters
10
- - Then you are likely to need a class method that does nothing else than initialising the class and calling an instance method of the same name
10
+ - Then you are likely to need a class method that does nothing else than initializing the class and calling an instance method of the same name
11
11
  - more?
12
12
 
13
13
  This gets boring with the years. So boring that someone might decide to write some macros to reduce the boilerplate.
@@ -51,10 +51,6 @@ You get this:
51
51
  => 8.0
52
52
  ```
53
53
 
54
- ## Disclaimer
55
- In this project you will likely read me using both ```initialize``` and ```initialise```. I'm Italian, I learnt to code from American books and now live in Ireland, to me they both make sense. As a rule of thumb, it's the ```ize``` form in code and ```ise``` form everywhere else. But might mix them so bear with me. Thanks!
56
-
57
-
58
54
  ## Installation
59
55
 
60
56
  Add this line to your application's Gemfile:
@@ -253,7 +249,7 @@ end
253
249
  - Write a command that can initialize a whole class, from creating the file to stub the initial setup;
254
250
 
255
251
  ***more?:***
256
- - If you also often write repetitive bolierplate, and would like some code to get smaller, drop me a line and we might be able to add more macros.
252
+ - If you also often write repetitive boilerplate, and would like some code to get smaller, drop me a line and we might be able to add more macros.
257
253
 
258
254
  ## Development
259
255
 
@@ -275,7 +271,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
275
271
 
276
272
  ## Contributing
277
273
 
278
- Bug reports and pull requests are welcome on GitLab at https://gitlab.com/mariodarco/selfies. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
274
+ Bug reports and pull requests are welcome on GitHub at https://github.com/mariodarco/selfies. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
279
275
 
280
276
  ## License
281
277
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Selfies
4
- VERSION = '1.4.0'
4
+ VERSION = '1.4.1'
5
5
  end
data/selfies.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.email = ['mario.darco.78@gmail.com']
13
13
 
14
14
  spec.summary = 'A collection of macros for quicker development.'
15
- spec.homepage = 'https://gitlab.com/mariodarco/selfies'
15
+ spec.homepage = 'https://github.com/mariodarco/selfies'
16
16
  spec.license = 'MIT'
17
17
  spec.bindir = 'exe'
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'bundler', '~> 1.16'
28
28
  spec.add_development_dependency 'rake', '~> 12.3'
29
29
  spec.add_development_dependency 'rspec', '~> 3.7'
30
- spec.add_development_dependency 'rubocop', '~> 0.55'
30
+ spec.add_development_dependency 'rubocop', '~> 0.57'
31
31
  spec.add_development_dependency 'simplecov', '~> 0.16'
32
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selfies
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario D’Arco
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-20 00:00:00.000000000 Z
11
+ date: 2018-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0.55'
61
+ version: '0.57'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0.55'
68
+ version: '0.57'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -87,8 +87,8 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
+ - ".circleci/config.yml"
90
91
  - ".gitignore"
91
- - ".gitlab-ci.yml"
92
92
  - ".rspec"
93
93
  - ".rubocop.yml"
94
94
  - ".ruby-version"
@@ -106,7 +106,7 @@ files:
106
106
  - lib/selfies/selfie.rb
107
107
  - lib/selfies/version.rb
108
108
  - selfies.gemspec
109
- homepage: https://gitlab.com/mariodarco/selfies
109
+ homepage: https://github.com/mariodarco/selfies
110
110
  licenses:
111
111
  - MIT
112
112
  metadata:
data/.gitlab-ci.yml DELETED
@@ -1,33 +0,0 @@
1
- image: "ruby:2.5.1"
2
-
3
- cache:
4
- paths:
5
- - vendor/ruby
6
-
7
- before_script:
8
- - ruby -v
9
- - gem install bundler --no-ri --no-rdoc
10
- - bundle install -j $(nproc) --path vendor
11
-
12
- rspec:
13
- stage: test
14
- script:
15
- - rspec
16
- artifacts:
17
- paths:
18
- - coverage/
19
-
20
- rubocop:
21
- script:
22
- - bundle exec rubocop
23
-
24
- pages:
25
- stage: deploy
26
- dependencies:
27
- - rspec
28
- script:
29
- - mv coverage/ public/
30
- artifacts:
31
- paths:
32
- - public
33
- expire_in: 30 days