Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #11

Closed
wants to merge 26 commits into from
Closed

Test #11

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/build_release_pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build and release ruby gem

on:
pull_request:
branches: [ v1.8.x ]
push:
workflow_dispatch:

jobs:
build-release-pipeline:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
rubygems: 3.1.4
bundler-cache: true

- name: Build
id: build
if: success()
run: |
gem build memcached.gemspec
echo "::set-output name=gem_version::v$(bundle exec rake version)"

- name: Release
if: success() && github.ref == 'refs/heads/v1.8.x'
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem push vinted-memcached-*.gem -V
env:
GEM_HOST_API_KEY: "${{ secrets.RUBYGEMS_AUTH_TOKEN }}"

- name: Tag repo with new gem version
if: success() && github.ref == 'refs/heads/v1.8.x'
uses: actions/github-script@v3
with:
github-token: ${{ github.token }}
script: |
github.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/${{ steps.build.outputs.gem_version }}",
sha: context.sha
})
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0-p353
2.7.2
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

7 changes: 0 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,3 @@ source 'https://rubygems.org'
gemspec

gem 'echoe', '>= 4.6.5'

group :benchmark do
gem "remix-stash", '~> 1.1.3'
gem "dalli", '~> 2.6.4'
gem "memcache", '= 1.4.1'
gem "memcache-client", '~> 1.8.5'
end
49 changes: 27 additions & 22 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,45 +1,50 @@
PATH
remote: .
specs:
memcached (1.8.0)
vinted-memcached (1.8.0)

GEM
remote: https://rubygems.org/
specs:
activesupport (3.2.6)
i18n (~> 0.6)
multi_json (~> 1.0)
activesupport (7.0.7.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
allison (2.0.3)
dalli (2.6.4)
echoe (4.6.5)
concurrent-ruby (1.2.2)
echoe (4.6.6)
allison (>= 2.0.3)
rake (>= 0.9.2)
rdoc (>= 2.5.11)
rubyforge (>= 2.0.4)
i18n (0.6.0)
json_pure (1.8.1)
memcache (1.4.1)
memcache-client (1.8.5)
metaclass (0.0.4)
mocha (1.0.0)
metaclass (~> 0.0.1)
multi_json (1.3.6)
rake (0.9.2.2)
rdoc (4.1.0)
remix-stash (1.1.3)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
json_pure (2.6.3)
minitest (5.19.0)
mocha (2.1.0)
ruby2_keywords (>= 0.0.5)
psych (5.1.0)
stringio
rake (13.0.6)
rdoc (6.5.0)
psych (>= 4.0.0)
ruby2_keywords (0.0.5)
rubyforge (2.0.4)
json_pure (>= 1.1.7)
stringio (3.0.8)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)

PLATFORMS
ruby

DEPENDENCIES
activesupport
dalli (~> 2.6.4)
echoe (>= 4.6.5)
memcache (= 1.4.1)
memcache-client (~> 1.8.5)
memcached!
mocha
rake
remix-stash (~> 1.1.3)
vinted-memcached!

BUNDLED WITH
2.3.26
2 changes: 1 addition & 1 deletion Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ lib/memcached/experimental.rb
lib/memcached/marshal_codec.rb
lib/memcached/memcached.rb
lib/memcached/rails.rb
lib/memcached/version.rb
memcached.gemspec
memcached.pem
test/profile/benchmark.rb
test/profile/c_profiler.rb
test/profile/exercise.rb
Expand Down
7 changes: 5 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
require 'echoe'

ENV["GEM_CERTIFICATE_CHAIN"]="memcached.pem"

Echoe.new("memcached") do |p|
p.author = "Evan Weaver"
p.project = "evan"
Expand Down Expand Up @@ -132,3 +130,8 @@ def run(cmd, reason)
puts cmd
raise "'#{cmd}' failed" unless system(cmd)
end

task :version do |t|
require 'memcached/version'
puts Memcached::VERSION
end
2 changes: 1 addition & 1 deletion lib/memcached.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module Rlibmemcached
class Memcached
Lib = Rlibmemcached
raise "libmemcached 0.32 required; you somehow linked to #{Lib.memcached_lib_version}." unless "0.32" == Lib.memcached_lib_version
VERSION = File.read("#{File.dirname(__FILE__)}/../CHANGELOG")[/v([\d\.]+)\./, 1]
end

require 'memcached/exceptions'
Expand All @@ -31,3 +30,4 @@ class Memcached
require 'memcached/memcached'
require 'memcached/rails'
require 'memcached/experimental'
require 'memcached/version'
3 changes: 3 additions & 0 deletions lib/memcached/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Memcached
VERSION = '1.8.0'
end
Binary file modified memcached.gemspec
Binary file not shown.
21 changes: 0 additions & 21 deletions memcached.pem

This file was deleted.

Loading