gemaker 0.5.0 → 0.6.0

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: 7808ab481a5eea8e03c6f842ddd21dcf8c16c2889e68bb12610bcec170cd7e0a
4
- data.tar.gz: b2977d7237813d9d8986e42b75d4fdd59373d32496ee042eb09a8860f87b6789
3
+ metadata.gz: fb31e9e02bd392be816bdb3b4904355f89b926eecedb0e0918fcdac2351ce4ce
4
+ data.tar.gz: bde39f52db8b09791583962070e2d81ae055a26acd6fafab69f88d41362cecfb
5
5
  SHA512:
6
- metadata.gz: 2ff221ceab1401b6aba4f624d0885025d7b3966ef59892f0100d64cf5705183b4966a87551365158a823fafb43cb4a8e015d2c37e33c32aa79a4ddba032b937f
7
- data.tar.gz: f70e5545aa90c82d5aec3996e90c718822f8c5f55391a0ed219ad21f2409aa4e129594913031ed9f306b5e170e88dca691c1140ae72e47973f9be40de67e157d
6
+ metadata.gz: 2bf4ca7385ca880bf2f8336fdc9bbb5e9ab5e7e4c8d5f47f2ee8d7c1205dc9a3e3b40c299b603019f780a90fd0c27b109044476ca2e08d88d01ad326c3cb1fd2
7
+ data.tar.gz: 98b159f8d73b187172c7f0f6d6813646b6cec8af7c00133a9f15f292c3fbebf15edf8486d29b2db615232f796ce31a0368d5b69e82fedfbb112061a79af4c944
@@ -0,0 +1,103 @@
1
+ version: 2.1
2
+
3
+ env-vars: &env-vars
4
+ RAILS_ENV: test
5
+ NODE_ENV: test
6
+ BUNDLE_PATH: vendor/bundle
7
+
8
+ orbs:
9
+ ruby: circleci/ruby@0.1.2
10
+ browser-tools: circleci/browser-tools@1.1.3
11
+
12
+ executors:
13
+ main-executor:
14
+ parameters:
15
+ ruby-version:
16
+ description: "Ruby version"
17
+ default: "2.7"
18
+ type: string
19
+ docker:
20
+ - image: circleci/ruby:<<parameters.ruby-version>>-node
21
+ environment: *env-vars
22
+
23
+ commands:
24
+ setup:
25
+ description: checkout code and install dependencies
26
+ steps:
27
+ - checkout
28
+ - run:
29
+ name: Install bundle dependencies
30
+ command: |
31
+ gem install bundler:2.2.15
32
+ bundle install
33
+
34
+ jobs:
35
+ lint:
36
+ executor: main-executor
37
+ steps:
38
+ - setup
39
+ - run:
40
+ name: Install reviewdog
41
+ command: |
42
+ curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b ./bin
43
+ - run:
44
+ name: Get files to lint
45
+ command: |
46
+ mkdir tmp
47
+ git diff origin/master --name-only --diff-filter=d > tmp/files_to_lint
48
+ - run:
49
+ name: Run rubocop
50
+ shell: /bin/bash
51
+ command: |
52
+ cat tmp/files_to_lint | grep -E '.+\.(rb)$' | xargs bundle exec rubocop --force-exclusion \
53
+ | ./bin/reviewdog -reporter=github-pr-review -f=rubocop
54
+ test:
55
+ parameters:
56
+ ruby-version:
57
+ description: "Ruby version"
58
+ default: "2.7"
59
+ type: string
60
+ executor:
61
+ name: main-executor
62
+ ruby-version: <<parameters.ruby-version>>
63
+ steps:
64
+ - setup
65
+ - run:
66
+ name: Run Tests
67
+ command: |
68
+ RSPEC_JUNIT_ARGS="-r rspec_junit_formatter -f RspecJunitFormatter -o test_results/rspec.xml"
69
+ RSPEC_FORMAT_ARGS="-f progress --no-color -p 10"
70
+ bundle exec rspec ./spec $RSPEC_FORMAT_ARGS $RSPEC_JUNIT_ARGS
71
+ - store_test_results:
72
+ path: test_results
73
+ deploy:
74
+ executor: main-executor
75
+ steps:
76
+ - setup
77
+ - run:
78
+ name: Setup rubygems
79
+ command: bash .circleci/setup-rubygems.sh
80
+ - run:
81
+ name: Publish to rubygems
82
+ command: |
83
+ GEM_FILE_NAME="gemaker-$(git describe --tags).gem"
84
+ gem build gemaker.gemspec -o $GEM_FILE_NAME
85
+ gem push $GEM_FILE_NAME
86
+
87
+ workflows:
88
+ version: 2
89
+ test_and_lint:
90
+ jobs:
91
+ - lint:
92
+ context: org-global
93
+ - test:
94
+ matrix:
95
+ parameters:
96
+ ruby-version: ["2.5", "2.6", "2.7"]
97
+ - deploy:
98
+ context: org-global
99
+ filters:
100
+ tags:
101
+ only: /.*/
102
+ branches:
103
+ ignore: /.*/
@@ -0,0 +1,3 @@
1
+ mkdir ~/.gem
2
+ echo -e "---\r\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
3
+ chmod 0600 /home/circleci/.gem/credentials
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3
1
+ 2.7
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ### 0.6.0
6
+
7
+ ##### Changed
8
+
9
+ * Replace travis with circleci.
10
+
5
11
  ### v0.5.0
6
12
 
7
13
  ##### Added
data/README.md CHANGED
@@ -1,4 +1,9 @@
1
- # Gemaker [![Gem Version](https://badge.fury.io/rb/gemaker.svg)](https://badge.fury.io/rb/gemaker) [![Build Status](https://travis-ci.org/platanus/gemaker.svg?branch=master)](https://travis-ci.org/platanus/gemaker) [![Coverage Status](https://coveralls.io/repos/github/platanus/gemaker/badge.svg)](https://coveralls.io/github/platanus/gemaker)
1
+ # Gemaker
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/gemaker.svg)](https://badge.fury.io/rb/gemaker)
4
+ [![CircleCI](https://circleci.com/gh/platanus/gemaker.svg?style=shield)](https://app.circleci.com/pipelines/github/platanus/gemaker)
5
+ [![Coverage Status](https://coveralls.io/repos/github/platanus/gemaker/badge.svg)](https://coveralls.io/github/platanus/gemaker)
6
+
2
7
  Ruby CLI created to build Platanus' gems.
3
8
 
4
9
  ## Installation
data/gemaker.gemspec CHANGED
@@ -13,26 +13,21 @@ Gem::Specification.new do |spec|
13
13
  spec.description = "Ruby CLI created to build Platanus' gems"
14
14
  spec.homepage = "https://github.com/platanus/gemaker"
15
15
 
16
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
17
- # to allow pushing to a single host or delete this section to allow pushing to any host.
18
- if spec.respond_to?(:metadata)
19
- spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
20
- else
21
- raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
22
- end
23
-
24
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
17
  spec.bindir = "exe"
26
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27
19
  spec.require_paths = ["lib"]
28
20
 
29
- spec.add_dependency "power-types", "~> 0.1", ">= 0.1.0"
30
- spec.add_dependency "commander", "~> 4.4", ">= 4.4.0"
31
- spec.add_dependency "activesupport", "~> 4.2", ">= 4.2.6"
21
+ spec.add_dependency "power-types"
22
+ spec.add_dependency "commander"
23
+ spec.add_dependency "activesupport"
32
24
  spec.add_dependency "colorize", "~> 0.7", ">= 0.7.7"
33
25
  spec.add_dependency "artii", "~> 2.1", ">= 2.1.1"
34
- spec.add_development_dependency "bundler", "~> 1.12"
26
+
27
+ spec.add_development_dependency "bundler", "~> 2.2.15"
35
28
  spec.add_development_dependency "rake", "~> 10.0"
36
29
  spec.add_development_dependency "rspec", "~> 3.0"
30
+ spec.add_development_dependency "rspec_junit_formatter"
31
+ spec.add_development_dependency "rubocop", "~> 0.65.0"
37
32
  spec.add_development_dependency "coveralls"
38
33
  end
@@ -1,4 +1,4 @@
1
1
  module Gemaker
2
- VERSION = "0.5.0"
2
+ VERSION = "0.6.0"
3
3
  RAILS_VERSION = "5.1.5"
4
4
  end
metadata CHANGED
@@ -1,75 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Segovia
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-28 00:00:00.000000000 Z
11
+ date: 2021-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: power-types
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '0.1'
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 0.1.0
19
+ version: '0'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: '0.1'
30
24
  - - ">="
31
25
  - !ruby/object:Gem::Version
32
- version: 0.1.0
26
+ version: '0'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: commander
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '4.4'
40
31
  - - ">="
41
32
  - !ruby/object:Gem::Version
42
- version: 4.4.0
33
+ version: '0'
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '4.4'
50
38
  - - ">="
51
39
  - !ruby/object:Gem::Version
52
- version: 4.4.0
40
+ version: '0'
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: activesupport
55
43
  requirement: !ruby/object:Gem::Requirement
56
44
  requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '4.2'
60
45
  - - ">="
61
46
  - !ruby/object:Gem::Version
62
- version: 4.2.6
47
+ version: '0'
63
48
  type: :runtime
64
49
  prerelease: false
65
50
  version_requirements: !ruby/object:Gem::Requirement
66
51
  requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '4.2'
70
52
  - - ">="
71
53
  - !ruby/object:Gem::Version
72
- version: 4.2.6
54
+ version: '0'
73
55
  - !ruby/object:Gem::Dependency
74
56
  name: colorize
75
57
  requirement: !ruby/object:Gem::Requirement
@@ -116,14 +98,14 @@ dependencies:
116
98
  requirements:
117
99
  - - "~>"
118
100
  - !ruby/object:Gem::Version
119
- version: '1.12'
101
+ version: 2.2.15
120
102
  type: :development
121
103
  prerelease: false
122
104
  version_requirements: !ruby/object:Gem::Requirement
123
105
  requirements:
124
106
  - - "~>"
125
107
  - !ruby/object:Gem::Version
126
- version: '1.12'
108
+ version: 2.2.15
127
109
  - !ruby/object:Gem::Dependency
128
110
  name: rake
129
111
  requirement: !ruby/object:Gem::Requirement
@@ -152,6 +134,34 @@ dependencies:
152
134
  - - "~>"
153
135
  - !ruby/object:Gem::Version
154
136
  version: '3.0'
137
+ - !ruby/object:Gem::Dependency
138
+ name: rspec_junit_formatter
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - ">="
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ type: :development
145
+ prerelease: false
146
+ version_requirements: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: '0'
151
+ - !ruby/object:Gem::Dependency
152
+ name: rubocop
153
+ requirement: !ruby/object:Gem::Requirement
154
+ requirements:
155
+ - - "~>"
156
+ - !ruby/object:Gem::Version
157
+ version: 0.65.0
158
+ type: :development
159
+ prerelease: false
160
+ version_requirements: !ruby/object:Gem::Requirement
161
+ requirements:
162
+ - - "~>"
163
+ - !ruby/object:Gem::Version
164
+ version: 0.65.0
155
165
  - !ruby/object:Gem::Dependency
156
166
  name: coveralls
157
167
  requirement: !ruby/object:Gem::Requirement
@@ -174,13 +184,14 @@ executables:
174
184
  extensions: []
175
185
  extra_rdoc_files: []
176
186
  files:
187
+ - ".circleci/config.yml"
188
+ - ".circleci/setup-rubygems.sh"
177
189
  - ".coveralls.yml"
178
190
  - ".gitignore"
179
191
  - ".hound.yml"
180
192
  - ".rspec"
181
193
  - ".rubocop.yml"
182
194
  - ".ruby-version"
183
- - ".travis.yml"
184
195
  - CHANGELOG.md
185
196
  - Gemfile
186
197
  - LICENSE.txt
@@ -245,8 +256,7 @@ files:
245
256
  - lib/gemaker/version.rb
246
257
  homepage: https://github.com/platanus/gemaker
247
258
  licenses: []
248
- metadata:
249
- allowed_push_host: 'TODO: Set to ''http://mygemserver.com'''
259
+ metadata: {}
250
260
  post_install_message:
251
261
  rdoc_options: []
252
262
  require_paths:
@@ -262,8 +272,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
262
272
  - !ruby/object:Gem::Version
263
273
  version: '0'
264
274
  requirements: []
265
- rubyforge_project:
266
- rubygems_version: 2.7.6
275
+ rubygems_version: 3.1.6
267
276
  signing_key:
268
277
  specification_version: 4
269
278
  summary: Gem to build gems
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3.1
5
- before_install: gem install bundler -v 1.12.5
6
- deploy:
7
- provider: rubygems
8
- api_key:
9
- secure: QxgXB+CvSvCvGyjBKFDaA0SW9uk7W6WTuYoXxqCpwe/zVgOuhID1GtqX8F6WPZsBtxcyPh7Sv5yZaUJ9QbwURyrmDHsWpYkjSqc8YV/upuL853tUTcSnXGYbJSjkgPod4jULUJAJD1T1pP8UJStijxuLUQip3SkjTeGzyDcl4i8F9TLevXK/tZqs/FOzFkbaFWHhm117DIaaV3nH/tyIOhhyI7hXelGWNivo7+k3qQsRVKZn62fJjJC7dl1ER6pfl+92rCZ62cWuu0JUAVC86iaTnzMQpBF3tOHisGK0SFm9MBl/RQE4Tvy2JXsy4DoezWK5Iy4HOB0xrLJ+enw6qU0+iTPgtf5C//4XtDK5Ejj9hhrlxydIc83ALoW5Xk+QaQi65zdMPaATyB0r4gb6dub1eAa1TGTqh62fXEaIKRLF7OFBiVSbyNgx3T1VHvk/NPkWYiCk/1VJ3p7hu+M0dOjRTHLVTNcBuUx8yRFCgJbO86M2kNuzW4+NK9oa0KJGqgweRjNuqwA2KxwiARpnQYpHxvcVzRbIt23VQIaPM+W1yKdadNIAlXuSwDDlvbaYQLhR1yuBPhm1IjyNGMWKkak3ssQFfG9os5wsMzsz+oQLIm9XIvGaXqUpKrP6gFVS7CTLub1NawvEj5IT3BGsMddSpr+d5tsPaPNyaTMoLpA=
10
- gem: gemaker
11
- on:
12
- tags: true
13
- repo: platanus/gemaker