eufycam 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/default.yml +8 -4
- data/Gemfile.lock +3 -1
- data/README.md +1 -4
- data/eufycam.gemspec +1 -0
- data/lib/eufycam/version.rb +1 -1
- data/lib/tasks/version.rake +20 -3
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b577e85b8d9067709afbbbb262165142355407c222223269142fff40b450ea47
|
4
|
+
data.tar.gz: df586188720ac10d594ecb565b728fa24699f002ee43e7028d08f0210eb51884
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 698f55c4fed95fd52e6a5dbf9ac5e905998b939026981b091b14b063a989c301a37bb2d20bb657b296e147088c7bbab3db9fd2d1dd046d64a2d31ddf3fe5c674
|
7
|
+
data.tar.gz: d2aed35f0834c33fb740d7d036f2e2bcca85e848288fa4541c2c1505c5a13789d3a249e2277f9cba2c205241006d1c8f7cfb4606c2409438707d8d8366f051e0
|
@@ -26,7 +26,7 @@ jobs:
|
|
26
26
|
- name: Bundle Install
|
27
27
|
run: bundle install --jobs 4 --retry 3
|
28
28
|
- name: Set EUFYCAM_VERSION
|
29
|
-
run: echo ::set-env name=EUFYCAM_VERSION::$(bundle exec rake version)
|
29
|
+
run: echo ::set-env name=EUFYCAM_VERSION::$(bundle exec rake version:current)
|
30
30
|
- name: Build
|
31
31
|
run: bundle exec rake build
|
32
32
|
- name: Upload Gem
|
@@ -97,6 +97,11 @@ jobs:
|
|
97
97
|
uses: actions/setup-ruby@v1
|
98
98
|
with:
|
99
99
|
ruby-version: 2.6.x
|
100
|
+
- uses: actions/cache@v1
|
101
|
+
with:
|
102
|
+
path: vendor/bundle
|
103
|
+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
104
|
+
restore-keys: ${{ runner.os }}-gems-
|
100
105
|
- name: Install Bundler
|
101
106
|
run: gem install bundler
|
102
107
|
- name: Configure Bundler
|
@@ -109,15 +114,14 @@ jobs:
|
|
109
114
|
chmod 0600 $HOME/.gem/credentials
|
110
115
|
printf -- "---\n:rubygems_api_key: ${{secrets.RUBYGEMS_API_KEY}}\n:github: Bearer ${{secrets.PERSONAL_ACCESS_TOKEN}}" > $HOME/.gem/credentials
|
111
116
|
|
112
|
-
- name: Bundle
|
117
|
+
- name: Bundle Install
|
113
118
|
run: bundle install --jobs 4 --retry 3
|
114
119
|
- name: Set EUFYCAM_VERSION
|
115
|
-
run: echo ::set-env name=EUFYCAM_VERSION::$(bundle exec rake version)
|
120
|
+
run: echo ::set-env name=EUFYCAM_VERSION::$(bundle exec rake version:current)
|
116
121
|
- uses: actions/download-artifact@v1
|
117
122
|
with:
|
118
123
|
name: eufycam-${{ env.EUFYCAM_VERSION }}.gem
|
119
124
|
path: /tmp
|
120
|
-
- run: ls /tmp
|
121
125
|
- run: mv /tmp/eufycam-${{ env.EUFYCAM_VERSION }}.gem .
|
122
126
|
- name: Push Gem to Rubygems
|
123
127
|
run: bundle exec rake release[rubygems]
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eufycam (0.
|
4
|
+
eufycam (0.4.0)
|
5
5
|
colorize (~> 0.8)
|
6
6
|
gli (~> 2.19)
|
7
7
|
terminal-table (~> 1.8)
|
@@ -75,6 +75,7 @@ GEM
|
|
75
75
|
ruby-progressbar (~> 1.7)
|
76
76
|
unicode-display_width (>= 1.4.0, < 2.0)
|
77
77
|
ruby-progressbar (1.10.1)
|
78
|
+
semantic (1.6.1)
|
78
79
|
shellany (0.0.1)
|
79
80
|
simplecov (0.18.5)
|
80
81
|
docile (~> 1.1)
|
@@ -96,6 +97,7 @@ DEPENDENCIES
|
|
96
97
|
rake (~> 13.0)
|
97
98
|
rspec (~> 3.0)
|
98
99
|
rubocop (~> 0.81)
|
100
|
+
semantic (~> 1.5)
|
99
101
|
simplecov (~> 0.18)
|
100
102
|
|
101
103
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
# eufycam
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
3
|
+
![Default](https://github.com/kyledecot/eufycam/workflows/Default/badge.svg)
|
7
4
|
## Installation
|
8
5
|
|
9
6
|
Add this line to your application's Gemfile:
|
data/eufycam.gemspec
CHANGED
@@ -35,5 +35,6 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_development_dependency 'rake', '~> 13.0'
|
36
36
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
37
37
|
spec.add_development_dependency 'rubocop', '~> 0.81'
|
38
|
+
spec.add_development_dependency 'semantic', '~> 1.5'
|
38
39
|
spec.add_development_dependency 'simplecov', '~> 0.18'
|
39
40
|
end
|
data/lib/eufycam/version.rb
CHANGED
data/lib/tasks/version.rake
CHANGED
@@ -1,8 +1,25 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'eufycam/version'
|
4
|
+
require 'semantic'
|
4
5
|
|
5
|
-
|
6
|
-
|
7
|
-
|
6
|
+
namespace :version do
|
7
|
+
desc 'Print current version'
|
8
|
+
task :current do
|
9
|
+
puts Eufycam::VERSION
|
10
|
+
end
|
11
|
+
|
12
|
+
desc 'Increment version'
|
13
|
+
task :increment do
|
14
|
+
version = Semantic::Version.new(Eufycam::VERSION)
|
15
|
+
path = File.expand_path(File.join('..', 'eufycam', 'version.rb'), __dir__)
|
16
|
+
|
17
|
+
File.open(path, 'r+') do |file|
|
18
|
+
contents = file.read
|
19
|
+
contents.gsub!(Eufycam::VERSION, version.increment!(:minor).to_s)
|
20
|
+
|
21
|
+
file.rewind
|
22
|
+
file.write(contents)
|
23
|
+
end
|
24
|
+
end
|
8
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eufycam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Decot
|
@@ -136,6 +136,20 @@ dependencies:
|
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0.81'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: semantic
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '1.5'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '1.5'
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: simplecov
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|