strava-cli 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitlab-ci.yml +27 -0
- data/lib/strava/app.rb +3 -1
- data/lib/strava/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 16ac5a9c5b4b3fae8dab24e4a54a9d34a4770a761178a9ae65e0c258477ce21c
|
4
|
+
data.tar.gz: 4ba6df9b65642ffe710f336a316642b5af214c2b15c21cb7838c6d7ea454bb93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9587d159550540f9116fa85d7f458448338183821859cb766f5954a3c7cd45425917c84c4678e88924e5707b6c02f890fbf0010ab02b98486e90a251419fd0e7
|
7
|
+
data.tar.gz: f109fde28982978cb86d90a2deb3823f25ced8dd5477a02ee443d166a981c828321e4fbc87c8e06a064f682da8ed3e160539af51afae8a71de2ccb918f949873
|
data/.gitlab-ci.yml
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
image: ruby:2.4
|
2
|
+
|
3
|
+
build:gem:
|
4
|
+
stage: build
|
5
|
+
script:
|
6
|
+
- gem build *.gemspec
|
7
|
+
artifacts:
|
8
|
+
name: "${CI_PROJECT_NAME}"
|
9
|
+
paths:
|
10
|
+
- "*.gem"
|
11
|
+
expire_in: 4 weeks
|
12
|
+
only:
|
13
|
+
- tags
|
14
|
+
|
15
|
+
publish:gem:
|
16
|
+
stage: deploy
|
17
|
+
dependencies:
|
18
|
+
- "build:gem"
|
19
|
+
when: manual
|
20
|
+
before_script:
|
21
|
+
- mkdir -p ~/.gem
|
22
|
+
- curl -u "${RUBYGEMS_USER}:${RUBYGEMS_PASS}" https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials
|
23
|
+
- chmod 0600 ~/.gem/credentials
|
24
|
+
script:
|
25
|
+
- gem push *.gem
|
26
|
+
only:
|
27
|
+
- tags
|
data/lib/strava/app.rb
CHANGED
@@ -155,7 +155,9 @@ module Strava
|
|
155
155
|
def select_activities(type)
|
156
156
|
activities.select do |activity|
|
157
157
|
activity.type == type &&
|
158
|
-
|
158
|
+
(
|
159
|
+
@scope.nil? || !activity.private ^ (@scope == 'private')
|
160
|
+
)
|
159
161
|
end
|
160
162
|
end
|
161
163
|
|
data/lib/strava/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strava-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Bonaud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: easy_app_helper
|
@@ -313,6 +313,7 @@ extensions: []
|
|
313
313
|
extra_rdoc_files: []
|
314
314
|
files:
|
315
315
|
- ".gitignore"
|
316
|
+
- ".gitlab-ci.yml"
|
316
317
|
- Gemfile
|
317
318
|
- bin/strava
|
318
319
|
- lib/strava.rb
|
@@ -341,7 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
341
342
|
version: '0'
|
342
343
|
requirements: []
|
343
344
|
rubyforge_project:
|
344
|
-
rubygems_version: 2.
|
345
|
+
rubygems_version: 2.7.5
|
345
346
|
signing_key:
|
346
347
|
specification_version: 4
|
347
348
|
summary: Generate strava dashboards.
|