lex-http 0.1.1 → 0.1.2
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 +4 -4
- data/.rubocop.yml +1 -0
- data/Dockerfile +10 -0
- data/bitbucket-pipelines.yml +21 -0
- data/docker_deploy.rb +12 -0
- data/{legion-extensions-http.gemspec → lex-http.gemspec} +0 -1
- data/lib/legion/extensions/http.rb +1 -2
- data/lib/legion/extensions/http/version.rb +1 -1
- metadata +10 -9
- data/bin/console +0 -14
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 760137febdd85bf4f4734c4d301873e0b054dbe624d95559bff7b84ac3c6fc81
|
4
|
+
data.tar.gz: 90078e2a98b02549248804e905baebefb30b53b131f61425f7120e1032272b4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e96ef07725e187affc31b04427d9bf1337f61ca86270197397d63e83b17bb430f737c063e33f96b1a21cd68ccfef1f41c6d97f9843d68c78d70fdc7a97e1d0c4
|
7
|
+
data.tar.gz: 1681051a4ce5fb7674b4f314be8dbd7a44c40b0b22408062528928f065a5f1fe3bb8992329346aaa638dd97955e462d666793985259add11b9fc89ed11e705bf
|
data/.rubocop.yml
CHANGED
data/Dockerfile
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
FROM ruby:2.7-alpine
|
2
|
+
LABEL maintainer="Matthew Iverson <matthewdiverson@gmail.com>"
|
3
|
+
|
4
|
+
RUN mkdir /etc/legionio
|
5
|
+
RUN apk update && apk add build-base tzdata gcc git
|
6
|
+
|
7
|
+
COPY . ./
|
8
|
+
RUN gem install legionio tzinfo-data tzinfo --no-document --no-prerelease
|
9
|
+
RUN gem install lex-http --no-document --no-prerelease
|
10
|
+
CMD legionio
|
@@ -0,0 +1,21 @@
|
|
1
|
+
image: ruby:2.7
|
2
|
+
|
3
|
+
pipelines:
|
4
|
+
tags:
|
5
|
+
"v*":
|
6
|
+
- step:
|
7
|
+
name: Push to RubyGems
|
8
|
+
deployment: RubyGems
|
9
|
+
script:
|
10
|
+
- gem install gem-release
|
11
|
+
- (umask 077 ; echo $gem_creds | base64 --decode > ~/.gem/credentials)
|
12
|
+
- gem release
|
13
|
+
artifacts:
|
14
|
+
- pkg/**
|
15
|
+
- step:
|
16
|
+
name: Push to Docker
|
17
|
+
deployment: Docker
|
18
|
+
script:
|
19
|
+
- 'apt-get update'
|
20
|
+
- 'apt-get install -y docker-ce'
|
21
|
+
- './docker_deploy.rb'
|
data/docker_deploy.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
version = Legion::Extensions::Http::VERSION
|
4
|
+
name = 'http'
|
5
|
+
|
6
|
+
require "./lib/legion/extensions/#{name}/version"
|
7
|
+
puts "Building docker image for Legion v#{version}"
|
8
|
+
system("docker build --tag legionio/lex-#{name}:v#{version} .")
|
9
|
+
puts 'Pushing to hub.docker.com'
|
10
|
+
system("docker push legionio/lex-#{name}:v#{version}")
|
11
|
+
system("docker push legionio/lex-#{name}:latest")
|
12
|
+
puts 'completed'
|
@@ -19,7 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
20
20
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
21
21
|
end
|
22
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
22
|
spec.require_paths = ['lib']
|
24
23
|
|
25
24
|
spec.add_development_dependency 'rake'
|
@@ -1,10 +1,9 @@
|
|
1
1
|
require 'legion/extensions/http/version'
|
2
|
-
require 'legion/extensions'
|
3
2
|
|
4
3
|
module Legion
|
5
4
|
module Extensions
|
6
5
|
module Http
|
7
|
-
extend Legion::Extensions::Core
|
6
|
+
extend Legion::Extensions::Core if Legion::Extensions.const_defined? :Core
|
8
7
|
|
9
8
|
def self.default_settings
|
10
9
|
{
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lex-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esity
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -119,13 +119,14 @@ files:
|
|
119
119
|
- ".rspec"
|
120
120
|
- ".rubocop.yml"
|
121
121
|
- CODE_OF_CONDUCT.md
|
122
|
+
- Dockerfile
|
122
123
|
- Gemfile
|
123
124
|
- LICENSE.txt
|
124
125
|
- README.md
|
125
126
|
- Rakefile
|
126
|
-
-
|
127
|
-
-
|
128
|
-
-
|
127
|
+
- bitbucket-pipelines.yml
|
128
|
+
- docker_deploy.rb
|
129
|
+
- lex-http.gemspec
|
129
130
|
- lib/legion/extensions/http.rb
|
130
131
|
- lib/legion/extensions/http/runners/http.rb
|
131
132
|
- lib/legion/extensions/http/version.rb
|
@@ -136,7 +137,7 @@ metadata:
|
|
136
137
|
homepage_uri: https://bitbucket.org/legion-io/lex-http/src
|
137
138
|
source_code_uri: https://bitbucket.org/legion-io/lex-http/src
|
138
139
|
changelog_uri: https://bitbucket.org/legion-io/lex-http/src/master/CHANGELOG.md
|
139
|
-
post_install_message:
|
140
|
+
post_install_message:
|
140
141
|
rdoc_options: []
|
141
142
|
require_paths:
|
142
143
|
- lib
|
@@ -151,8 +152,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
152
|
- !ruby/object:Gem::Version
|
152
153
|
version: '0'
|
153
154
|
requirements: []
|
154
|
-
rubygems_version: 3.1.
|
155
|
-
signing_key:
|
155
|
+
rubygems_version: 3.1.4
|
156
|
+
signing_key:
|
156
157
|
specification_version: 4
|
157
158
|
summary: LEX HTTP
|
158
159
|
test_files: []
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'bundler/setup'
|
4
|
-
require 'legion/extensions/http'
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require 'irb'
|
14
|
-
IRB.start(__FILE__)
|