simple_symbolize 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +33 -0
- data/.github/workflows/ruby_gem.yml +51 -0
- data/Gemfile +0 -3
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/lib/simple_symbolize/version.rb +1 -1
- data/simple_symbolize.gemspec +1 -0
- metadata +21 -6
- data/.drone.yml +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07aae9ef22a012d4b461cac6145bd8c1a9a12310473d000d1618a23cf53db064
|
4
|
+
data.tar.gz: b18868b5d50109402449b3c92c98ca6246ecdefe66d979c50bd5902936b57c19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f03737f6f4d6a4fa170a1ffe3b685ea8f2c10899f3c125a50595b265479131e0b52cd1ea6ae25cbf7ebdeb6be237487e42e23fd104546fd68f3968bce1fc30fa
|
7
|
+
data.tar.gz: 27e9c7e2e6fea1d041d02b082cde749767577ec71bca85a6ba0033e93aa21914e6e6f8ad200679671267d2af54e5ab4d699cf59592aa6744d12907c80a3a81e3
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches-ignore:
|
13
|
+
- 'main'
|
14
|
+
|
15
|
+
jobs:
|
16
|
+
test:
|
17
|
+
|
18
|
+
runs-on: ubuntu-latest
|
19
|
+
strategy:
|
20
|
+
matrix:
|
21
|
+
ruby-version: ['2.6', '2.7', '3.0']
|
22
|
+
|
23
|
+
steps:
|
24
|
+
- uses: actions/checkout@v2
|
25
|
+
- name: Set up Ruby
|
26
|
+
uses: ruby/setup-ruby@v1
|
27
|
+
with:
|
28
|
+
ruby-version: ${{ matrix.ruby-version }}
|
29
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
30
|
+
- name: Rubocop
|
31
|
+
run: bundle exec rubocop
|
32
|
+
- name: Run tests
|
33
|
+
run: bundle exec rake
|
@@ -0,0 +1,51 @@
|
|
1
|
+
name: Ruby Gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ main ]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
test:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
strategy:
|
11
|
+
matrix:
|
12
|
+
ruby-version: [ '2.6', '2.7', '3.0' ]
|
13
|
+
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@v2
|
16
|
+
- name: Set up Ruby
|
17
|
+
uses: ruby/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: ${{ matrix.ruby-version }}
|
20
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
21
|
+
- name: Rubocop
|
22
|
+
run: bundle exec rubocop
|
23
|
+
- name: Run tests
|
24
|
+
run: bundle exec rake
|
25
|
+
|
26
|
+
deploy:
|
27
|
+
needs: test
|
28
|
+
name: Build + Publish
|
29
|
+
runs-on: ubuntu-latest
|
30
|
+
permissions:
|
31
|
+
packages: write
|
32
|
+
contents: read
|
33
|
+
|
34
|
+
steps:
|
35
|
+
- uses: actions/checkout@v2
|
36
|
+
- name: Set up Ruby 3.0.1
|
37
|
+
uses: ruby/setup-ruby@v1
|
38
|
+
with:
|
39
|
+
ruby-version: 3.0.1
|
40
|
+
bundler-cache: true
|
41
|
+
|
42
|
+
- name: Publish to RubyGems
|
43
|
+
run: |
|
44
|
+
mkdir -p $HOME/.gem
|
45
|
+
touch $HOME/.gem/credentials
|
46
|
+
chmod 0600 $HOME/.gem/credentials
|
47
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
48
|
+
gem build *.gemspec
|
49
|
+
gem push *.gem
|
50
|
+
env:
|
51
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
simple_symbolize (1.0.
|
4
|
+
simple_symbolize (1.0.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -47,7 +47,7 @@ PLATFORMS
|
|
47
47
|
|
48
48
|
DEPENDENCIES
|
49
49
|
rake (~> 12.0)
|
50
|
-
rspec (~> 3.
|
50
|
+
rspec (~> 3.2)
|
51
51
|
rubocop (~> 1.18.0)
|
52
52
|
simple_symbolize!
|
53
53
|
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Wait, doesn't String already have a `to_sym` method?
|
|
8
8
|
Correct! However, this gem takes it one step further by transforming special characters and whitespace to give you a
|
9
9
|
simple easy to work with Symbol.
|
10
10
|
|
11
|
-
It works by
|
11
|
+
It works by removing special characters in a String like `'!'` and underscoring any whitespace.
|
12
12
|
|
13
13
|
#### Example
|
14
14
|
|
data/simple_symbolize.gemspec
CHANGED
@@ -31,6 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
32
32
|
spec.require_paths = ['lib']
|
33
33
|
|
34
|
+
spec.add_development_dependency 'rake', '~> 12.0'
|
34
35
|
spec.add_development_dependency 'rspec', '~> 3.2'
|
35
36
|
spec.add_development_dependency 'rubocop', '~> 1.18.0'
|
36
37
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_symbolize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- alexo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '12.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '12.0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rspec
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,7 +61,8 @@ executables: []
|
|
47
61
|
extensions: []
|
48
62
|
extra_rdoc_files: []
|
49
63
|
files:
|
50
|
-
- ".
|
64
|
+
- ".github/workflows/ruby.yml"
|
65
|
+
- ".github/workflows/ruby_gem.yml"
|
51
66
|
- ".gitignore"
|
52
67
|
- ".rspec"
|
53
68
|
- ".rubocop.yml"
|
@@ -70,7 +85,7 @@ licenses:
|
|
70
85
|
metadata:
|
71
86
|
homepage_uri: https://github.com/dvla/simple-symbolize
|
72
87
|
source_code_uri: https://github.com/dvla/simple-symbolize
|
73
|
-
post_install_message:
|
88
|
+
post_install_message:
|
74
89
|
rdoc_options: []
|
75
90
|
require_paths:
|
76
91
|
- lib
|
@@ -86,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
101
|
version: '0'
|
87
102
|
requirements: []
|
88
103
|
rubygems_version: 3.2.15
|
89
|
-
signing_key:
|
104
|
+
signing_key:
|
90
105
|
specification_version: 4
|
91
106
|
summary: Turns Strings into Symbols.
|
92
107
|
test_files: []
|
data/.drone.yml
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
---
|
2
|
-
kind: pipeline
|
3
|
-
name: default
|
4
|
-
|
5
|
-
platform:
|
6
|
-
os: linux
|
7
|
-
arch: amd64
|
8
|
-
|
9
|
-
steps:
|
10
|
-
- name: unit tests
|
11
|
-
pull: if-not-exists
|
12
|
-
image: ecr.tooling.dvla.gov.uk/base-images/qe-ruby:2.7.0-1
|
13
|
-
commands:
|
14
|
-
- bundle --jobs 5 --quiet
|
15
|
-
- bundle exec rspec
|
16
|
-
when:
|
17
|
-
event:
|
18
|
-
- push
|
19
|
-
|
20
|
-
- name: build and deploy
|
21
|
-
pull: if-not-exists
|
22
|
-
image: ecr.tooling.dvla.gov.uk/base-images/qe-ruby:2.7.0-1
|
23
|
-
commands:
|
24
|
-
- apk add --update git unzip alpine-sdk jq --no-cache
|
25
|
-
- gem install bundler
|
26
|
-
- gem install nexus
|
27
|
-
- bundle --jobs 5 --quiet
|
28
|
-
- gem build simple_symbolize.gemspec
|
29
|
-
- gem nexus --url https://nexus.tooling.dvla.gov.uk/repository/gem-private/ simple_symbolize*gem
|
30
|
-
when:
|
31
|
-
branch:
|
32
|
-
- master
|