circle_experiment 0.1.0 → 0.1.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: d6e04711d0e265340f7a9fd1efc9d41f8ba90f34a91e54b8800e6f7cad7d27cf
4
- data.tar.gz: b93ac67959864cdbd6fe299d1e8fbdfad06e5db18a090f72f8cf1f5b01d414ca
3
+ metadata.gz: f8f2bf0d3927c120523ca918657d8baa19cf4dd6b29a71d442b6e3244cf03e36
4
+ data.tar.gz: 62677bb44e47a83f7ad5c764d1f5842403cab48d073bd7f3854940e84ef654b4
5
5
  SHA512:
6
- metadata.gz: d7a7040ac5d98efd59a293e389f9ea05429bba35bc7c7d6f84a086b7f249d9f2cdf5b6367d707c2161176e8cc06ece265a914933f3f9f22f9adb5021dee8efa9
7
- data.tar.gz: cf7a9888f9b41bea65a48e090d79ddeb619d9e1e0ac4bc80c088876caea91a9d709b0310ccbeeae4139233f2cde21b585632de3c5e2ee5382048de169586957e
6
+ metadata.gz: 6883ced1a08643e6be0ae76f07f9b17d33d5d85767ba8481e7aac1e787f7faf49acc6db944f0e9ae983309518cd5dad9feab326fb140f8817cf8932d8161ce4f
7
+ data.tar.gz: 66f2decfbe35e8397e1d9f2c957b153e0bbb31ea5ecf48b9da0021842827ba65190ec18ddcb765f75f52eda9ff5216eb6d220a0b0d82e6cd3213bdc74046ed04
@@ -26,11 +26,45 @@ jobs:
26
26
  <<: *test_defaults
27
27
  docker:
28
28
  - image: circleci/ruby:2.3
29
+ publish:
30
+ docker:
31
+ - image: circleci/ruby:2.5
32
+ working_directory: ~/repo
33
+ steps:
34
+ - checkout
35
+ - run:
36
+ name: Setup Rubygems
37
+ command: .circleci/setup_rubygems.sh
38
+ - run:
39
+ name: Publish to Rubygems
40
+ command: |
41
+ set -u
42
+ gem build circle_experiment.gemspec
43
+ gem push "circle_experiment-${CIRCLE_TAG#v}.gem"
29
44
 
30
45
  workflows:
31
46
  version: 2
32
47
  build:
33
48
  jobs:
34
- - "ruby-2.5"
35
- - "ruby-2.4"
36
- - "ruby-2.3"
49
+ - "ruby-2.5":
50
+ filters:
51
+ tags:
52
+ only: /v.*/
53
+ - "ruby-2.4":
54
+ filters:
55
+ tags:
56
+ only: /v.*/
57
+ - "ruby-2.3":
58
+ filters:
59
+ tags:
60
+ only: /v.*/
61
+ - publish:
62
+ requires:
63
+ - "ruby-2.5"
64
+ - "ruby-2.4"
65
+ - "ruby-2.3"
66
+ filters:
67
+ tags:
68
+ only: /v.*/
69
+ branches:
70
+ ignore: /.*/
@@ -0,0 +1,10 @@
1
+ #!/bin/sh
2
+
3
+ set -eu
4
+
5
+ mkdir ~/.gem
6
+ cat <<EOT > ~/.gem/credentials
7
+ ---
8
+ :rubygems_api_key: ${RUBYGEMS_API_KEY}
9
+ EOT
10
+ chmod 0600 /home/circleci/.gem/credentials
@@ -13,15 +13,6 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/alext/circle_experiment"
14
14
  spec.license = "MIT"
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 " \
22
- #"public gem pushes."
23
- #end
24
-
25
16
  # Specify which files should be added to the gem when it is released.
26
17
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
18
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
@@ -1,3 +1,3 @@
1
1
  module CircleExperiment
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circle_experiment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Tomlins
@@ -60,6 +60,7 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".circleci/config.yml"
63
+ - ".circleci/setup_rubygems.sh"
63
64
  - ".gitignore"
64
65
  - ".rspec"
65
66
  - ".travis.yml"