zooniverse_social 1.1.0 → 1.2.0

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: 4ce008db4b4194b1f4cef2abd2d73786cfaccb4e64d2e0eb74969cb8dc49e6b0
4
- data.tar.gz: a2bf6ef01908a53aaf2f80a922672196fd90ad9e93b842fcffc047c7ad515c69
3
+ metadata.gz: 8c84f3ebbd4c2ab8b9d1b6ffc5495f50cbb97e00ec2bbcf5a19c91bb73b438fa
4
+ data.tar.gz: 95953b37a528146bd0db14e09ba4d8e4311481f3e9c5c7583f512ab2812081bc
5
5
  SHA512:
6
- metadata.gz: e05b89fc173c200934bff8258490bccde27d60bc96815880ab2a4a3c2f00290586196d24a8688a8d02241aeaac2b76970d5d97d3a5684ed7488e4f0ac22221c4
7
- data.tar.gz: d640f5a9ca446a388b19a281b6e363d2d16563a42bdb5213d0f1b388f1ccc775fcb2347f13729ec8ae433a0558e914ef5a01f026c3b9292a9930bdb844929b74
6
+ metadata.gz: a148748042d42ffbe1468ac8ce7d00836addd9d06a39b6f0bfbdec547d450bfc7fa19452f01eaec329bafe18f36885baed7271840cad6dc7479ccde50a3c946a
7
+ data.tar.gz: 92f2e66bdc9402069a6edfe29c4af57d0fee613861eff7f17ed3d3b1240b40d4396c9e50604a539483433eea59f7275c62418112d05cb15dee938a94a47b3adc
@@ -0,0 +1,72 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ "master" ]
17
+ pull_request:
18
+ schedule:
19
+ - cron: '26 11 * * 6'
20
+
21
+ jobs:
22
+ analyze:
23
+ name: Analyze
24
+ runs-on: ubuntu-latest
25
+ permissions:
26
+ actions: read
27
+ contents: read
28
+ security-events: write
29
+
30
+ strategy:
31
+ fail-fast: false
32
+ matrix:
33
+ language: [ 'ruby' ]
34
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
35
+ # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
36
+
37
+ steps:
38
+ - name: Checkout repository
39
+ uses: actions/checkout@v3
40
+
41
+ # Initializes the CodeQL tools for scanning.
42
+ - name: Initialize CodeQL
43
+ uses: github/codeql-action/init@v2
44
+ with:
45
+ languages: ${{ matrix.language }}
46
+ # If you wish to specify custom queries, you can do so here or in a config file.
47
+ # By default, queries listed here will override any specified in a config file.
48
+ # Prefix the list here with "+" to use these queries and those in the config file.
49
+
50
+ # Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
51
+ # queries: security-extended,security-and-quality
52
+
53
+
54
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55
+ # If this step fails, then you should remove it and run the build manually (see below)
56
+ - name: Autobuild
57
+ uses: github/codeql-action/autobuild@v2
58
+
59
+ # ℹ️ Command-line programs to run using the OS shell.
60
+ # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
61
+
62
+ # If the Autobuild fails above, remove it and uncomment the following three lines.
63
+ # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
64
+
65
+ # - run: |
66
+ # echo "Run, Build Application using script"
67
+ # ./location_of_script_within_repo/buildscript.sh
68
+
69
+ - name: Perform CodeQL Analysis
70
+ uses: github/codeql-action/analyze@v2
71
+ with:
72
+ category: "/language:${{matrix.language}}"
@@ -0,0 +1,22 @@
1
+ name: Zooni CI
2
+ on:
3
+ pull_request:
4
+ push: { branches: master }
5
+ env:
6
+ RAILS_ENV: test
7
+ jobs:
8
+ test:
9
+ name: Run Tests
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v3
14
+
15
+ - name: Setup Ruby and install gems
16
+ uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: '2.6' # Not needed with a .ruby-version file
19
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
20
+
21
+ - name: Run tests
22
+ run: bundle exec rspec
data/README.md CHANGED
@@ -22,10 +22,23 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ ### Boot the application
26
+ Run the app via the rackup cmd, <https://github.com/sinatra/sinatra#serving-a-modular-application>
27
+
28
+ `bundle exec rackup -p 4567`
29
+
30
+ ### Install dependencies
31
+ `bundle install`
32
+
33
+ ### Test the app
34
+ `bundle exec rspec`
35
+
36
+ ### Publishing to [RubyGems](https://rubygems.org/)
37
+ `rake build` - to create the new gem version locally
38
+ `rake release` - to tag the gem and release it to RubyGems
26
39
 
27
40
  ## License
28
41
 
29
- Copyright 2016 by the Zooniverse
42
+ Copyright 2022 by the Zooniverse
30
43
 
31
44
  The gem is available as open source under the terms of the [Apache License v2](https://opensource.org/licenses/Apache-2.0).
@@ -1,3 +1,3 @@
1
1
  module ZooniverseSocial
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
@@ -20,17 +20,17 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
 
22
22
  spec.add_runtime_dependency 'puma'
23
- spec.add_runtime_dependency 'sinatra', '~> 1.4'
23
+ spec.add_runtime_dependency 'sinatra', '>= 2.2'
24
24
  spec.add_runtime_dependency 'twitter', '~> 5.16'
25
25
  spec.add_runtime_dependency 'faraday', '~> 0.9'
26
26
  spec.add_runtime_dependency 'concurrent-ruby', '~> 1.0'
27
27
  spec.add_runtime_dependency 'concurrent-ruby-ext', '~> 1.0'
28
28
 
29
- spec.add_development_dependency 'bundler', '~> 1.12'
30
- spec.add_development_dependency 'rake', '~> 10.0'
31
- spec.add_development_dependency 'rspec', '~> 3.4'
32
- spec.add_development_dependency 'rspec-its', '~> 1.2'
33
- spec.add_development_dependency 'rack-test', '~> 0.6'
34
- spec.add_development_dependency 'webmock', '~> 2.1'
29
+ spec.add_development_dependency 'bundler'
30
+ spec.add_development_dependency 'rake'
31
+ spec.add_development_dependency 'rspec'
32
+ spec.add_development_dependency 'rspec-its'
33
+ spec.add_development_dependency 'rack-test'
34
+ spec.add_development_dependency 'webmock'
35
35
  spec.add_development_dependency 'pry'
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zooniverse_social
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Parrish
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-21 00:00:00.000000000 Z
11
+ date: 2022-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puma
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: sinatra
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.4'
33
+ version: '2.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.4'
40
+ version: '2.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: twitter
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -98,86 +98,86 @@ dependencies:
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '1.12'
103
+ version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '1.12'
110
+ version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '10.0'
117
+ version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - "~>"
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: '10.0'
124
+ version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: '3.4'
131
+ version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: '3.4'
138
+ version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec-its
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: '1.2'
145
+ version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: '1.2'
152
+ version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rack-test
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - "~>"
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: '0.6'
159
+ version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - "~>"
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
- version: '0.6'
166
+ version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: webmock
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: '2.1'
173
+ version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: '2.1'
180
+ version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: pry
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -199,9 +199,10 @@ executables: []
199
199
  extensions: []
200
200
  extra_rdoc_files: []
201
201
  files:
202
+ - ".github/workflows/codeql-analysis.yml"
203
+ - ".github/workflows/run_tests_CI.yml"
202
204
  - ".gitignore"
203
205
  - ".rspec"
204
- - ".travis.yml"
205
206
  - Gemfile
206
207
  - LICENSE
207
208
  - README.md
@@ -223,7 +224,7 @@ homepage: https://github.com/zooniverse/Social
223
224
  licenses:
224
225
  - Apache 2
225
226
  metadata: {}
226
- post_install_message:
227
+ post_install_message:
227
228
  rdoc_options: []
228
229
  require_paths:
229
230
  - lib
@@ -238,8 +239,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
239
  - !ruby/object:Gem::Version
239
240
  version: '0'
240
241
  requirements: []
241
- rubygems_version: 3.0.3
242
- signing_key:
242
+ rubygems_version: 3.0.9
243
+ signing_key:
243
244
  specification_version: 4
244
245
  summary: Social media aggregation service for the Zooniverse
245
246
  test_files: []
data/.travis.yml DELETED
@@ -1,7 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache:
4
- - bundler
5
- rvm:
6
- - 2.6
7
- script: bundle exec rspec