handsome_fencer-crypto 0.1.3 → 0.1.8

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
- SHA256:
3
- metadata.gz: 8becb119f1cb1e27254a7b51d683e21100ef79cd6de37b1c379787fa7d90e3ce
4
- data.tar.gz: ee28860fea0fcab274af59ebbfc13ec99418c3c1757a77719de2c98a2827fbfb
2
+ SHA1:
3
+ metadata.gz: 2f089b4a1d6ba18086f1577144858e72b2e31bcd
4
+ data.tar.gz: 69a8a0e3e65ed8dedf5418b57e66aae6b9d3d489
5
5
  SHA512:
6
- metadata.gz: 03ca486a6c848d7d3fa0639c0842a32a5dc388dded64fcde54f699994f5ce169f3ab009b4ed058bd59b7eba63e628fd4a4a40cbd7a6e310653a29e35c1a5d010
7
- data.tar.gz: be4a1bbb70b34ab03e182b69e6ff7ff04ee9a4d77791c4781c79bec7912a67d0326038c1fe543fd8aa19d1a0cdfdeea98756a1911db75a1c3e3306083f018416
6
+ metadata.gz: 910d19357dc3a320edb85097342659e46334236b53de08fd2e9fe2806d47bd12889dd53d27bafa5424e5dd98a95bd4c97979498c160cc4ec112a275c1369d1ca
7
+ data.tar.gz: 68a55c0da4f3829bc203853354e40097605be214ed3ecce266f69bcb456cfcbc062c3281e44a359aa464d648494d4aebab3bda9e6db0d962dd6dfa2ff682a0a6
File without changes
@@ -0,0 +1,48 @@
1
+ version: 2.1
2
+
3
+ jobs:
4
+
5
+ build:
6
+ machine: true
7
+ steps:
8
+ - checkout
9
+
10
+ test:
11
+ machine: true
12
+ steps:
13
+ - checkout
14
+ - run: RUBY_IMAGE=ruby:2.5-alpine docker-compose build ruby_gem
15
+ - run: RUBY_IMAGE=ruby:2.5-alpine docker-compose run ruby_gem ruby -v
16
+ - run: RUBY_IMAGE=ruby:2.5-alpine docker-compose run ruby_gem rake test
17
+ - run: RUBY_IMAGE=ruby:2.6-alpine docker-compose build ruby_gem
18
+ - run: RUBY_IMAGE=ruby:2.6-alpine docker-compose run ruby_gem ruby -v
19
+ - run: RUBY_IMAGE=ruby:2.6-alpine docker-compose run ruby_gem rake test
20
+ - run: RUBY_IMAGE=ruby:2.7-alpine docker-compose build ruby_gem
21
+ - run: RUBY_IMAGE=ruby:2.7-alpine docker-compose run ruby_gem ruby -v
22
+ - run: RUBY_IMAGE=ruby:2.7-alpine docker-compose run ruby_gem rake test
23
+
24
+ release:
25
+ machine: true
26
+ steps:
27
+ - checkout
28
+ - run: gem install roro
29
+ - run: roro generate::exposed ci
30
+ - run: echo 'source roro/containers/ruby_image/ci.env' >> $BASH_ENV
31
+ - run: printenv RUBYGEMS_API_KEY
32
+ - run: chmod +x ./.circleci/setup-gem-credentials.sh
33
+ - run: ./.circleci/setup-gem-credentials.sh
34
+ - run: cat ~/.gem/credentials
35
+ - run: git checkout .
36
+ - run: gem release
37
+
38
+ workflows:
39
+ version: 2
40
+
41
+ build-release:
42
+ jobs:
43
+ - build
44
+ - test
45
+ - release:
46
+ filters:
47
+ branches:
48
+ only: release
@@ -0,0 +1,3 @@
1
+ mkdir ~/.gem
2
+ echo -e "---\r\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
3
+ chmod 0600 /home/circleci/.gem/credentials
data/.gitignore CHANGED
@@ -7,3 +7,12 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  .byebug_history
10
+
11
+ Gemfile.lock
12
+ roro/**/*.env
13
+ roro/**/*.key
14
+
15
+ tmp/*
16
+ !tmp/.keep
17
+ sandbox/*
18
+ !sandbox/.keep
@@ -0,0 +1,11 @@
1
+ version: '3.2'
2
+
3
+ services:
4
+
5
+ ruby_gem:
6
+ build:
7
+ context: .
8
+ dockerfile: roro/containers/ruby_image/Dockerfile
9
+ environment:
10
+ - RUBY_IMAGE=${RUBY_IMAGE}
11
+ command: bundle exec rake test
@@ -29,8 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency "guard"
30
30
  spec.add_dependency "guard-minitest"
31
31
 
32
- spec.add_development_dependency "bundler", "~> 1.17"
33
- spec.add_development_dependency "rake", "~> 10.0"
32
+ spec.add_development_dependency "bundler"
33
+ spec.add_development_dependency "rake", "~> 13.0"
34
34
  spec.add_development_dependency "handsome_fencer-test"
35
- spec.add_development_dependency "byebug"
36
35
  end
@@ -2,7 +2,6 @@
2
2
  require "handsome_fencer/crypto/version"
3
3
  require "openssl"
4
4
  require "base64"
5
- require 'byebug'
6
5
  module HandsomeFencer::Crypto
7
6
 
8
7
  class << self
@@ -69,7 +68,7 @@ module HandsomeFencer::Crypto
69
68
  when ENV[env_key]
70
69
  ENV[env_key]
71
70
  when File.exist?(key_file)
72
- File.read(key_file)
71
+ File.read(key_file).strip
73
72
  end
74
73
  end
75
74
  end
@@ -1,5 +1,5 @@
1
1
  module HandsomeFencer
2
2
  module Crypto
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
File without changes
@@ -0,0 +1,16 @@
1
+ ARG RUBY_IMAGE=ruby:2.7-alpine
2
+ FROM $RUBY_IMAGE
3
+
4
+ RUN apk add --no-cache --update build-base linux-headers git
5
+
6
+ ENV APP_HOME /usr/src/app/
7
+
8
+ RUN mkdir ${APP_HOME}
9
+
10
+
11
+ WORKDIR ${APP_HOME}
12
+
13
+
14
+ COPY . ${APP_HOME}
15
+ RUN gem update bundler
16
+ RUN bundle
@@ -0,0 +1,2 @@
1
+ n5SOO1+q/1asUJSb3XdObuR7CZnbCymod8h0ze9yJOonCW3+jbXmuspGtLlf
2
+ V5qiUSvPJrJghOYoRL4U8F0EZw==
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handsome_fencer-crypto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - schadenfred
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-01 00:00:00.000000000 Z
11
+ date: 2020-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -42,30 +42,30 @@ dependencies:
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '1.17'
47
+ version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '1.17'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
61
+ version: '13.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: '13.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: handsome_fencer-test
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: byebug
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
83
  description: Used by HFCI.
98
84
  email:
99
85
  - fred.schoeneman@gmail.com
@@ -102,20 +88,29 @@ extensions: []
102
88
  extra_rdoc_files: []
103
89
  files:
104
90
  - ".byebug_history"
91
+ - ".circleci/.keep"
92
+ - ".circleci/config.yml"
93
+ - ".circleci/setup-gem-credentials.sh"
105
94
  - ".gitignore"
106
95
  - ".travis.yml"
107
96
  - CODE_OF_CONDUCT.md
108
97
  - Gemfile
109
- - Gemfile.lock
110
98
  - Guardfile
111
99
  - LICENSE.txt
112
100
  - README.md
113
101
  - Rakefile
114
102
  - bin/console
115
103
  - bin/setup
104
+ - docker-compose.yml
105
+ - handsome_fencer-crypto-0.1.7.gem
116
106
  - handsome_fencer-crypto.gemspec
117
107
  - lib/handsome_fencer/crypto.rb
118
108
  - lib/handsome_fencer/crypto/version.rb
109
+ - roro/containers/.keep
110
+ - roro/containers/ruby_image/Dockerfile
111
+ - roro/containers/ruby_image/ci.env.enc
112
+ - roro/keys/.keep
113
+ - tmp/.keep
119
114
  homepage: https://github.com/schadenfred/handsome_fencer-crypto
120
115
  licenses:
121
116
  - MIT
@@ -136,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
131
  version: '0'
137
132
  requirements: []
138
133
  rubyforge_project:
139
- rubygems_version: 2.7.7
134
+ rubygems_version: 2.6.13
140
135
  signing_key:
141
136
  specification_version: 4
142
137
  summary: Crypto using OpenSSL
@@ -1,155 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- handsome_fencer-crypto (0.1.2)
5
- guard
6
- guard-minitest
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionpack (5.2.2)
12
- actionview (= 5.2.2)
13
- activesupport (= 5.2.2)
14
- rack (~> 2.0)
15
- rack-test (>= 0.6.3)
16
- rails-dom-testing (~> 2.0)
17
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
18
- actionview (5.2.2)
19
- activesupport (= 5.2.2)
20
- builder (~> 3.1)
21
- erubi (~> 1.4)
22
- rails-dom-testing (~> 2.0)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
24
- activesupport (5.2.2)
25
- concurrent-ruby (~> 1.0, >= 1.0.2)
26
- i18n (>= 0.7, < 2)
27
- minitest (~> 5.1)
28
- tzinfo (~> 1.1)
29
- addressable (2.5.2)
30
- public_suffix (>= 2.0.2, < 4.0)
31
- builder (3.2.3)
32
- byebug (10.0.2)
33
- coderay (1.1.2)
34
- concurrent-ruby (1.1.3)
35
- crass (1.0.4)
36
- em-websocket (0.5.1)
37
- eventmachine (>= 0.12.9)
38
- http_parser.rb (~> 0.6.0)
39
- erubi (1.7.1)
40
- eventmachine (1.2.7)
41
- ffi (1.9.25)
42
- formatador (0.2.5)
43
- given_core (3.8.0)
44
- sorcerer (>= 0.3.7)
45
- guard (2.15.0)
46
- formatador (>= 0.2.4)
47
- listen (>= 2.7, < 4.0)
48
- lumberjack (>= 1.0.12, < 2.0)
49
- nenv (~> 0.1)
50
- notiffany (~> 0.0)
51
- pry (>= 0.9.12)
52
- shellany (~> 0.0)
53
- thor (>= 0.18.1)
54
- guard-compat (1.2.1)
55
- guard-livereload (2.5.2)
56
- em-websocket (~> 0.5)
57
- guard (~> 2.8)
58
- guard-compat (~> 1.0)
59
- multi_json (~> 1.8)
60
- guard-minitest (2.4.6)
61
- guard-compat (~> 1.2)
62
- minitest (>= 3.0)
63
- handsome_fencer-test (0.1.1)
64
- guard
65
- guard-livereload
66
- guard-minitest
67
- launchy
68
- minitest-given
69
- minitest-matchers_vaccine
70
- minitest-rails
71
- rack-livereload
72
- shoulda
73
- shoulda-matchers
74
- thor
75
- http_parser.rb (0.6.0)
76
- i18n (1.2.0)
77
- concurrent-ruby (~> 1.0)
78
- launchy (2.4.3)
79
- addressable (~> 2.3)
80
- listen (3.1.5)
81
- rb-fsevent (~> 0.9, >= 0.9.4)
82
- rb-inotify (~> 0.9, >= 0.9.7)
83
- ruby_dep (~> 1.2)
84
- loofah (2.2.3)
85
- crass (~> 1.0.2)
86
- nokogiri (>= 1.5.9)
87
- lumberjack (1.0.13)
88
- method_source (0.9.2)
89
- mini_portile2 (2.3.0)
90
- minitest (5.11.3)
91
- minitest-given (3.8.0)
92
- given_core (= 3.8.0)
93
- minitest (> 4.3)
94
- minitest-matchers_vaccine (1.0.4)
95
- minitest (~> 5.0)
96
- minitest-rails (3.0.0)
97
- minitest (~> 5.8)
98
- railties (~> 5.0)
99
- multi_json (1.13.1)
100
- nenv (0.3.0)
101
- nokogiri (1.8.5)
102
- mini_portile2 (~> 2.3.0)
103
- notiffany (0.1.1)
104
- nenv (~> 0.1)
105
- shellany (~> 0.0)
106
- pry (0.12.2)
107
- coderay (~> 1.1.0)
108
- method_source (~> 0.9.0)
109
- public_suffix (3.0.3)
110
- rack (2.0.6)
111
- rack-livereload (0.3.17)
112
- rack
113
- rack-test (1.1.0)
114
- rack (>= 1.0, < 3)
115
- rails-dom-testing (2.0.3)
116
- activesupport (>= 4.2.0)
117
- nokogiri (>= 1.6)
118
- rails-html-sanitizer (1.0.4)
119
- loofah (~> 2.2, >= 2.2.2)
120
- railties (5.2.2)
121
- actionpack (= 5.2.2)
122
- activesupport (= 5.2.2)
123
- method_source
124
- rake (>= 0.8.7)
125
- thor (>= 0.19.0, < 2.0)
126
- rake (10.5.0)
127
- rb-fsevent (0.10.3)
128
- rb-inotify (0.9.10)
129
- ffi (>= 0.5.0, < 2)
130
- ruby_dep (1.5.0)
131
- shellany (0.0.1)
132
- shoulda (3.6.0)
133
- shoulda-context (~> 1.0, >= 1.0.1)
134
- shoulda-matchers (~> 3.0)
135
- shoulda-context (1.2.2)
136
- shoulda-matchers (3.1.2)
137
- activesupport (>= 4.0.0)
138
- sorcerer (1.0.2)
139
- thor (0.20.3)
140
- thread_safe (0.3.6)
141
- tzinfo (1.2.5)
142
- thread_safe (~> 0.1)
143
-
144
- PLATFORMS
145
- ruby
146
-
147
- DEPENDENCIES
148
- bundler (~> 1.17)
149
- byebug
150
- handsome_fencer-crypto!
151
- handsome_fencer-test
152
- rake (~> 10.0)
153
-
154
- BUNDLED WITH
155
- 1.17.3