lex-http 0.1.1 → 0.1.2

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: 8f55d40135e3fb6db250f706bcd0e526fbc0bf7b2f785a2d2cace69e0d4e5c22
4
- data.tar.gz: cd0f14a7f7bf477cf35dc387d387ac02e0ed4d3f2fc52c8e115c593e9a68b681
3
+ metadata.gz: 760137febdd85bf4f4734c4d301873e0b054dbe624d95559bff7b84ac3c6fc81
4
+ data.tar.gz: 90078e2a98b02549248804e905baebefb30b53b131f61425f7120e1032272b4e
5
5
  SHA512:
6
- metadata.gz: 840950f6c353d36c3bc829c94cf2e9735d4631393b71de88a9b957c06f7b8396771336d3513d4b8471425522b214be86649721cae7b56fdd555634c03d4441b0
7
- data.tar.gz: 89b7c40212ba69f687541a09e0d962b26d56298cc0edb439d2329417927d9d402111cd2099b1ca94def6c930970526a09582f33ed5f396b23033faa916868401
6
+ metadata.gz: e96ef07725e187affc31b04427d9bf1337f61ca86270197397d63e83b17bb430f737c063e33f96b1a21cd68ccfef1f41c6d97f9843d68c78d70fdc7a97e1d0c4
7
+ data.tar.gz: 1681051a4ce5fb7674b4f314be8dbd7a44c40b0b22408062528928f065a5f1fe3bb8992329346aaa638dd97955e462d666793985259add11b9fc89ed11e705bf
@@ -20,6 +20,7 @@ Style/Documentation:
20
20
  AllCops:
21
21
  TargetRubyVersion: 2.5
22
22
  NewCops: enable
23
+ SuggestExtensions: false
23
24
  Style/FrozenStringLiteralComment:
24
25
  Enabled: false
25
26
  Naming/FileName:
@@ -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'
@@ -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
  {
@@ -1,7 +1,7 @@
1
1
  module Legion
2
2
  module Extensions
3
3
  module Http
4
- VERSION = '0.1.1'.freeze
4
+ VERSION = '0.1.2'.freeze
5
5
  end
6
6
  end
7
7
  end
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.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: 2020-08-25 00:00:00.000000000 Z
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
- - bin/console
127
- - bin/setup
128
- - legion-extensions-http.gemspec
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.2
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: []
@@ -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__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here