File tree Expand file tree Collapse file tree 5 files changed +78
-2
lines changed Expand file tree Collapse file tree 5 files changed +78
-2
lines changed Original file line number Diff line number Diff line change
1
+ version : 2.1
2
+
3
+ jobs :
4
+ build :
5
+ docker :
6
+ - image : circleci/ruby:2.7.1-node
7
+ environment :
8
+ - RAILS_ENV=test
9
+ - RACK_ENV=test
10
+ steps :
11
+ - checkout
12
+ - restore_cache :
13
+ keys :
14
+ - bundle-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
15
+ - run :
16
+ name : Install gems
17
+ command : bundle install --path ~/.cache/bundle
18
+ - save_cache :
19
+ key : bundle-{{.Branch}}-{{ checksum "Gemfile.lock" }}
20
+ paths :
21
+ - ~/.cache/bundle
22
+ - run :
23
+ name : Run tests
24
+ command : bundle exec rspec
25
+ - run :
26
+ name : Check code style
27
+ command : bundle exec rubocop
28
+ deploy :
29
+ docker :
30
+ - image : circleci/ruby:2.7.1-node
31
+ steps :
32
+ - checkout
33
+ - run :
34
+ name : Tag the version
35
+ command : |
36
+ git fetch --tags
37
+ version=$(cat lib/cirro_io/client/version.rb | grep VERSION | awk -F' = ' '{print $2}' | xargs)
38
+ if git rev-parse v"$version" >/dev/null 2>&1; then
39
+ echo "This version already exists. Please update the version";
40
+ exit 1
41
+ else
42
+ git tag v"$version"
43
+ git push origin v"$version"
44
+ fi
45
+ - run :
46
+ name : build gem
47
+ command : gem build cirro-ruby-client.gemspec
48
+ - run :
49
+ name : push to rubygems
50
+ command : |
51
+ version=$(cat lib/cirro_io/client/version.rb | grep VERSION | awk -F' = ' '{print $2}' | xargs)
52
+ echo "gem `gem --version`"
53
+ mkdir ~/.gem
54
+ cat .circleci/gem_credentials | sed -e "s/__RUBYGEMS_API_KEY__/${RUBYGEMS_API_KEY}/" > ~/.gem/credentials
55
+ chmod 0600 ~/.gem/credentials
56
+ gem push cirro-ruby-client-$version.gem
57
+ shred -u ~/.gem/credentials
58
+
59
+ workflows :
60
+ version : 2
61
+ deploy_the_gem :
62
+ jobs :
63
+ - build
64
+ - deploy :
65
+ requires :
66
+ - build
67
+ filters :
68
+ branches :
69
+ only :
70
+ - master
Original file line number Diff line number Diff line change
1
+ ---
2
+ :rubygems_api_key: __RUBYGEMS_API_KEY__
Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- cirro-ruby-client (0.1.0 )
4
+ cirro-ruby-client (0.1.2 )
5
5
json_api_client
6
6
jwt
7
7
Original file line number Diff line number Diff line change 2
2
3
3
This gem provides access to the [ Cirro REST API] ( https://staging.cirro.io/api-docs/v1#cirro-api-documentation ) .
4
4
5
+ [ ![ CircleCI] ( https://circleci.com/gh/test-IO/cirro-ruby-client/tree/master.svg?style=svg )] ( https://circleci.com/gh/test-IO/cirro-ruby-client/tree/master )
6
+
5
7
## Installation
6
8
7
9
Add this line to your application's Gemfile:
Original file line number Diff line number Diff line change
1
+ # rubocop:disable Style/MutableConstant
1
2
module CirroIO
2
3
module Client
3
- VERSION = '0.1.0' . freeze
4
+ VERSION = '0.1.3'
4
5
end
5
6
end
7
+ # rubocop:enable Style/MutableConstant
You can’t perform that action at this time.
0 commit comments