rsgem 0.3.0 → 0.4.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad493db4ccc39d3453ed0f1dd0d4e4b594809c2c322b8907c187e53a01e33425
4
- data.tar.gz: 59855a9d4d9efc2d2d28849bbafa1f172634ae5e9d84ec88d2569e7c0698bdb4
3
+ metadata.gz: 2ad88cbeee0dce25fc811974b5f22e451988013b120e8ff7bd070ebbc57d984d
4
+ data.tar.gz: 8b5af2dfea737d332e119abf472047a39357f33c604d57f4f731822d6f9bd77b
5
5
  SHA512:
6
- metadata.gz: 223a728398f98c295676a9ca723149a01668df08582eb686fb4cebac2255cf12ce0e632406836f6d784db474c515523d85fab30049ef142530400280ca7a1e7e
7
- data.tar.gz: 26ffb08fe6eea56092c4eca3976e42cde0bdeac8ac3f14b9e15a9aa737819ca4e5430f6f1826c19a29352dc5eb910ecb8679fa33568b4dfa14ca898e4f375237
6
+ metadata.gz: 5cf866d216669b2cefd81efe24eb24801d776683ad49736bd8d377d924476eb8cf358232636a638a7acbc36ef498d978fd8e0333c21a56edc2244e9d6b88d1ad
7
+ data.tar.gz: ed0d4cd9c34b6ab9a85be7d4a81a260bc842b4ced79b3563c4c0c46c15a49721d0ab3b99ecf06442e47d7179bffdf72540457a9afd441b6b18ad253ebffa880d
@@ -1,5 +1,11 @@
1
1
  # master
2
2
 
3
+ # 0.4.0
4
+
5
+ * Cache bundler directory for 24hs in Github Actions
6
+
7
+ *Martín Rubí*
8
+
3
9
  # 0.3.0
4
10
 
5
11
  * Add task to replace system user name in LICENSE.txt with Rootstrap name
@@ -1,6 +1,6 @@
1
1
  name: ci
2
2
 
3
- on: push
3
+ on: [push, pull_request]
4
4
 
5
5
  jobs:
6
6
  build:
@@ -15,6 +15,11 @@ jobs:
15
15
  uses: actions/setup-ruby@v1
16
16
  with:
17
17
  ruby-version: ${{ matrix.ruby_version }}
18
+ - name: Calculate variable dynamic values
19
+ id: dynamic_values
20
+ run: |
21
+ echo "::set-output name=installed_ruby_version::$(ruby -e 'print RUBY_VERSION')"
22
+ echo "::set-output name=cacheTimeAnchor::$(ruby -e 'require %Q{date}; cacheExpirationSeconds = 60*60*24; print (Time.now.to_i / cacheExpirationSeconds)')"
18
23
  - name: Download CodeClimate reporter
19
24
  run: |
20
25
  curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
@@ -22,12 +27,25 @@ jobs:
22
27
  ./cc-test-reporter before-build
23
28
  env:
24
29
  CC_TEST_REPORTER_ID: get_a_test_reporter_id_from_code_climate
25
- - name: Build and test
30
+ - name: Install and config bundler
26
31
  run: |
27
32
  gem install bundler:1.17.3
28
- bundle update
33
+ - name: Generate 'Gemfile.lock' before caching gems
34
+ run: |
35
+ bundle lock --update
36
+ - uses: actions/cache@v2
37
+ with:
38
+ path: vendor/bundle
39
+ key: ${{ runner.os }}-ruby_v${{ steps.dynamic_values.outputs.installed_ruby_version }}-time_${{steps.dynamic_values.outputs.cacheTimeAnchor}}-gems-${{ hashFiles('**/Gemfile.lock') }}
40
+ - name: Install dependencies
41
+ run: |
42
+ bundle config set path 'vendor/bundle'
29
43
  bundle install --jobs 4 --retry 3
44
+ - name: Run code analysis
45
+ run: |
30
46
  bundle exec rake code_analysis
47
+ - name: Run tests
48
+ run: |
31
49
  bundle exec rspec
32
50
  - name: Report to CodeClimate
33
51
  run: |
@@ -2,7 +2,7 @@
2
2
 
3
3
  module RSGem
4
4
  MAJOR = 0
5
- MINOR = 3
5
+ MINOR = 4
6
6
  PATCH = 0
7
7
  VERSION = [MAJOR, MINOR, PATCH].join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsgem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Manuel Ramallo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-20 00:00:00.000000000 Z
11
+ date: 2020-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-cli