rails_core_extensions 0.11.0.beta.11 → 0.11.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: 5ccb364109694e5146403ee03a9083c0702aa442e8e57a0c7530c7729f74a33b
4
- data.tar.gz: 69b3dcaa3c1b31d2bb896d934bbd173e79f1506b1e1c590fce7a96525bd3a9f7
3
+ metadata.gz: '08b7b45e052b4fd8509ad421e7781577474c4313b6a9168cd26714fb2ec147dd'
4
+ data.tar.gz: 59a25f7d6ae73d5392e06e4dfa63950d9314b235c02c13142fa7926e84c5c233
5
5
  SHA512:
6
- metadata.gz: 3cbdd58723a57b2230f74ba5ec42a91256e2ab2152d30c84e271b15cab8a2e910b40adacef32ce48aca90bd372ddddd2cc9a4d0909af04b03942993f4a69af4c
7
- data.tar.gz: c6ad9dd46a34fc8680f681fa19f8b4e412e4df4c90ff167cd126dbb8c6b89d2a4757c01ff235ceb37030ce87165485ef19252a62d649761307ad1e899fadb0b0
6
+ metadata.gz: 7d6deae57b5db102c8de52810703c0a61445c5b7f19f316f3351cabf247836e9e3a614bd36ed3fc0e2eb0443c8e52231ee65164a0ba90e9573620814530d2729
7
+ data.tar.gz: '079894f7e26646ae5eef57d863b354e0e2eddae4d4b68f495bb95bf18c75ecbee18638a793f0f169089941d8e31efc4cf1bc6ab178391ca107f35dc4f06a6161'
@@ -6,7 +6,20 @@ on:
6
6
  - "v*"
7
7
 
8
8
  jobs:
9
+ build:
10
+ name: Build
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Checkout
14
+ uses: actions/checkout@v2
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ bundler-cache: true
18
+ - run: bundle exec rake
19
+
9
20
  release:
21
+ needs: build
22
+ name: Release
10
23
  runs-on: ubuntu-latest
11
24
  steps:
12
25
  - name: Checkout
@@ -26,6 +39,7 @@ jobs:
26
39
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27
40
 
28
41
  publish:
42
+ needs: [build, release]
29
43
  name: Publish
30
44
  runs-on: ubuntu-latest
31
45
 
@@ -1,4 +1,4 @@
1
- name: Build
1
+ name: Build and Test
2
2
  on: [push, pull_request]
3
3
  jobs:
4
4
  test:
@@ -1,9 +1,13 @@
1
1
  # Changelog
2
2
 
3
- ## 0.11.0.beta.11
3
+ ## 0.11.1
4
4
 
5
- * [TT-] Switch from travis to gihthub actions
6
- * [TT-] Add support for Rails 6.1 / Ruby 3
5
+ * [TT-8608] Fix broken rake command in the gem publish stage
6
+
7
+ ## 0.11.0
8
+
9
+ * [TT-8608] Switch from travis to gihthub actions
10
+ * [TT-8608] Add support for Rails 6.1 / Ruby 3
7
11
 
8
12
  ## 0.10.0
9
13
 
data/README.md CHANGED
@@ -1,9 +1,7 @@
1
- Rails Core Extensions
2
- ====================
1
+ # Rails Core Extensions
3
2
 
4
- [![Build Status](https://travis-ci.org/sealink/rails_core_extensions.png?branch=master)](https://travis-ci.org/sealink/rails_core_extensions)
3
+ [![Build Status](https://github.com/sealink/rails_core_extensions/workflows/Build/badge.svg?branch=master)](https://github.com/sealink/rails_core_extensions/actions)
5
4
  [![Coverage Status](https://coveralls.io/repos/sealink/rails_core_extensions/badge.png)](https://coveralls.io/r/sealink/rails_core_extensions)
6
- [![Dependency Status](https://gemnasium.com/sealink/rails_core_extensions.png?travis)](https://gemnasium.com/sealink/rails_core_extensions)
7
5
  [![Code Climate](https://codeclimate.com/github/sealink/rails_core_extensions.png)](https://codeclimate.com/github/sealink/rails_core_extensions)
8
6
 
9
7
  # DESCRIPTION
@@ -30,7 +28,7 @@ end
30
28
 
31
29
  config/routes.rb
32
30
 
33
- In Rails 4/5:
31
+ In Rails 6:
34
32
  resources :types do
35
33
  collection
36
34
  post :sort
@@ -42,18 +40,32 @@ You need to submit a collection of objects named the same as the controller.
42
40
 
43
41
  e.g. for the above the params should be:
44
42
 
43
+ ```ruby
45
44
  types_body[]=1
46
45
  types_body[]=3
47
- etc.
46
+ ```
48
47
 
49
48
  Where the value is the id, and the position of submission is the new order, e.g.
50
49
  In the above, the item of id 3 will be updated to position 2
51
50
 
52
51
  If you have scoped sorts, e.g. sorts within categories you also need to pass in 2 params:
53
- * scope (e.g. category_id)
54
- * a variable by that name, e.g. category_id
52
+
53
+ - scope (e.g. category_id)
54
+ - a variable by that name, e.g. category_id
55
55
 
56
56
  So in the above if you want to upgrade category_id 6, you could submit
57
57
  scope=category_id&category_id=6
58
58
 
59
59
  along with type_body[]=7.. for all the types in category 6
60
+
61
+ # RELEASE
62
+
63
+ To publish a new version of this gem the following steps must be taken.
64
+
65
+ * Update the version in the following files
66
+ ```
67
+ CHANGELOG.md
68
+ lib/rails_core_extensions/version.rb
69
+ ````
70
+ * Create a tag using the format v0.1.0
71
+ * Follow build progress in GitHub actions
@@ -1,3 +1,3 @@
1
1
  module RailsCoreExtensions
2
- VERSION = '0.11.0.beta.11'
2
+ VERSION = '0.11.1'
3
3
  end
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
20
  spec.require_paths = ['lib']
21
+ spec.required_ruby_version = '>= 2.6'
21
22
 
22
23
  spec.add_dependency 'activerecord', ['>= 6.0.0']
23
24
  spec.add_dependency 'actionpack', ['>= 6.0.0']
@@ -31,5 +32,4 @@ Gem::Specification.new do |spec|
31
32
  spec.add_development_dependency 'coveralls'
32
33
  spec.add_development_dependency 'rubocop'
33
34
  spec.add_development_dependency 'sqlite3'
34
- spec.add_development_dependency 'travis'
35
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_core_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0.beta.11
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Noack
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-01-01 00:00:00.000000000 Z
12
+ date: 2021-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
@@ -165,20 +165,6 @@ dependencies:
165
165
  - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
- - !ruby/object:Gem::Dependency
169
- name: travis
170
- requirement: !ruby/object:Gem::Requirement
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- version: '0'
175
- type: :development
176
- prerelease: false
177
- version_requirements: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - ">="
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
168
  description: Set of extensions to core rails libraries.
183
169
  email:
184
170
  - support@travellink.com.au
@@ -186,7 +172,6 @@ executables: []
186
172
  extensions: []
187
173
  extra_rdoc_files: []
188
174
  files:
189
- - ".github/workflows/gem-push.yml"
190
175
  - ".github/workflows/release.yml"
191
176
  - ".github/workflows/ruby.yml"
192
177
  - ".gitignore"
@@ -194,7 +179,6 @@ files:
194
179
  - ".rspec"
195
180
  - ".ruby-style.yml"
196
181
  - ".ruby-version"
197
- - ".travis.yml"
198
182
  - CHANGELOG.md
199
183
  - Gemfile
200
184
  - LICENSE.txt
@@ -248,12 +232,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
248
232
  requirements:
249
233
  - - ">="
250
234
  - !ruby/object:Gem::Version
251
- version: '0'
235
+ version: '2.6'
252
236
  required_rubygems_version: !ruby/object:Gem::Requirement
253
237
  requirements:
254
- - - ">"
238
+ - - ">="
255
239
  - !ruby/object:Gem::Version
256
- version: 1.3.1
240
+ version: '0'
257
241
  requirements: []
258
242
  rubygems_version: 3.2.3
259
243
  signing_key:
@@ -1,25 +0,0 @@
1
- name: Ruby Gem
2
-
3
- on:
4
- release:
5
- types: [created]
6
-
7
- jobs:
8
- build:
9
- name: Build + Publish
10
- runs-on: ubuntu-latest
11
-
12
- steps:
13
- - uses: actions/checkout@v2
14
- - uses: ruby/setup-ruby@v1
15
-
16
- - name: Publish to RubyGems
17
- run: |
18
- mkdir -p $HOME/.gem
19
- touch $HOME/.gem/credentials
20
- chmod 0600 $HOME/.gem/credentials
21
- printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
22
- gem build *.gemspec
23
- gem push *.gem
24
- env:
25
- GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
@@ -1,13 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.6
4
- - 2.7
5
-
6
- script: "bundle exec rake spec"
7
- gemfile:
8
- - gemfiles/rails6.gemfile
9
- sudo: false
10
- cache: bundler
11
- before_install:
12
- - gem update --system
13
- - gem install bundler