darjeelink 0.11.9 → 0.11.10

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: 755182c208a3023f2f855c3edee1dbee2452577c26514c304e042e88764cdc81
4
- data.tar.gz: e13bd71ccc6ed555314275942aa2e142fa31fe7641789903cac9dc8ddefb7a6a
3
+ metadata.gz: 0bb8e036f92bfb2145607b781537440e1dab86664c300e8313881e4d73f07940
4
+ data.tar.gz: 7b8653822b7c206acc6ce03b4d0ccfad2d7ae7732b08ee597c458440ec4ba255
5
5
  SHA512:
6
- metadata.gz: 7bc60d1375991efafa0ebe224a34f6b2678ddb83dfbc22ead8b512f241bc6ce2b0273e81227036556042c7e35cacc1909db24d0d1a253b2aeccc4960c6339004
7
- data.tar.gz: 768603531afa36e6cbcdb63302a182cc35b2a9e566cff62595ea379e98a21a3d550dca73fa12696934fe0f677d2f2cc904dbce03e3f4568ff175db19dc2fab75
6
+ metadata.gz: 8c64837b6368ac6f72fab25cd3f17bc0f794e74a4bd60cfe9f323dc2785624a82fc107472702ca8b6898e423c64d9ede7f3c7e5ef2a667faf07fe5ae3494b12d
7
+ data.tar.gz: 541fa60fc561f4de4e476673884d9571bc8ccffaecee9b8b73b7696495ec50881da0b2807c5e0b07a32507020b62273c2141b4a84168cf0a75ff30071051f1f8
data/README.md CHANGED
@@ -82,7 +82,7 @@ Note that if you are running in a vagrant VM, most of these steps can be done fr
82
82
  - Update `lib/darjeelink/version.rb` to the new version
83
83
  - Run `bundle install` to pick up the change in Gemfile.lock
84
84
  - Commit the changes to `lib/darjeelink/version.rb` and `Gemfile.lock`, and push them to GitHub
85
- - Go to `https://github.com/38dgs/darjeelink/releases` and create a release tag in GitHub
85
+ - Go to `https://github.com/38degrees/darjeelink/releases` and create a release tag in GitHub
86
86
  - Run `gem build darjeelink.gemspec` this will output a file `darjeelink-X.X.X.gem` the version should match what version.rb and github.
87
87
  - Run `gem push darjeelink-X.X.X.gem`
88
88
 
@@ -50,7 +50,7 @@ module Darjeelink
50
50
  i /= base
51
51
  end
52
52
 
53
- generated_path.join('').reverse
53
+ generated_path.join.reverse
54
54
  end
55
55
  end
56
56
  end
@@ -0,0 +1,26 @@
1
+ {
2
+ "ignored_warnings": [
3
+ {
4
+ "warning_type": "Mass Assignment",
5
+ "warning_code": 70,
6
+ "fingerprint": "4c710243b0d9f3f174b1b0b465dcd19aca14b1f1a9658572b13a1172855b6ed7",
7
+ "check_name": "MassAssignment",
8
+ "message": "Parameters should be whitelisted for mass assignment",
9
+ "file": "app/controllers/darjeelink/short_links_controller.rb",
10
+ "line": 83,
11
+ "link": "https://brakemanscanner.org/docs/warning_types/mass_assignment/",
12
+ "code": "params.permit!",
13
+ "render_path": null,
14
+ "location": {
15
+ "type": "method",
16
+ "class": "Darjeelink::ShortLinksController",
17
+ "method": "build_url"
18
+ },
19
+ "user_input": null,
20
+ "confidence": "Medium",
21
+ "note": "The params aren't being use to create a record, we just use it to merge params that might be present on the shortened url and the source url"
22
+ }
23
+ ],
24
+ "updated": "2020-07-23 16:52:33 +0000",
25
+ "brakeman_version": "4.8.2"
26
+ }
@@ -14,11 +14,11 @@ Darjeelink.configure do |config|
14
14
  'sms-blast': 'SMS Blast',
15
15
  'google-advert': 'Google advert',
16
16
  'instagram-advert': 'Instagram Advert',
17
- 'chatbot': 'Chatbot',
18
- 'template': 'Template',
19
- 'other': 'Other',
20
- 'spotify': 'Spotify',
21
- 'youtube': 'Youtube',
17
+ chatbot: 'Chatbot',
18
+ template: 'Template',
19
+ other: 'Other',
20
+ spotify: 'Spotify',
21
+ youtube: 'Youtube',
22
22
  'google-search': 'Google search',
23
23
  'google-display': 'Google display',
24
24
  'snapchat-advert': 'Snapchat Advert',
@@ -2,11 +2,7 @@
2
2
 
3
3
  module Darjeelink
4
4
  class Configuration
5
- attr_accessor :domain
6
- attr_accessor :source_mediums
7
- attr_accessor :auth_domain
8
- attr_accessor :rebrandly_api_key
9
- attr_accessor :fallback_url
5
+ attr_accessor :domain, :source_mediums, :auth_domain, :rebrandly_api_key, :fallback_url
10
6
 
11
7
  def initialize
12
8
  @domain = nil
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Darjeelink
4
- VERSION = '0.11.9'
4
+ VERSION = '0.11.10'
5
5
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: darjeelink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.9
4
+ version: 0.11.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Hulme
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-30 00:00:00.000000000 Z
11
+ date: 2021-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: omniauth
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: omniauth-google-oauth2
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +122,20 @@ dependencies:
108
122
  - - ">="
109
123
  - !ruby/object:Gem::Version
110
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: brakeman
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
111
139
  - !ruby/object:Gem::Dependency
112
140
  name: bundler-audit
113
141
  requirement: !ruby/object:Gem::Requirement
@@ -164,7 +192,7 @@ dependencies:
164
192
  - - ">="
165
193
  - !ruby/object:Gem::Version
166
194
  version: '0'
167
- description:
195
+ description:
168
196
  email:
169
197
  - james@38degrees.org.uk
170
198
  executables: []
@@ -196,6 +224,7 @@ files:
196
224
  - app/views/darjeelink/short_links/new.html.erb
197
225
  - app/views/darjeelink/tracking_links/new.erb
198
226
  - app/views/layouts/darjeelink/application.html.erb
227
+ - config/brakeman.ignore
199
228
  - config/initializers/darjeelink.rb
200
229
  - config/initializers/omniauth.rb
201
230
  - config/initializers/rebrandly.rb
@@ -209,11 +238,11 @@ files:
209
238
  - lib/darjeelink/engine.rb
210
239
  - lib/darjeelink/version.rb
211
240
  - lib/tasks/darjeelink.rake
212
- homepage: https://github.com/38dgs/darjeelink
241
+ homepage: https://github.com/38degrees/darjeelink
213
242
  licenses:
214
243
  - MIT
215
244
  metadata: {}
216
- post_install_message:
245
+ post_install_message:
217
246
  rdoc_options: []
218
247
  require_paths:
219
248
  - lib
@@ -221,7 +250,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
221
250
  requirements:
222
251
  - - ">="
223
252
  - !ruby/object:Gem::Version
224
- version: '0'
253
+ version: '2.6'
225
254
  required_rubygems_version: !ruby/object:Gem::Requirement
226
255
  requirements:
227
256
  - - ">="
@@ -229,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
258
  version: '0'
230
259
  requirements: []
231
260
  rubygems_version: 3.0.8
232
- signing_key:
261
+ signing_key:
233
262
  specification_version: 4
234
263
  summary: URL Shortener
235
264
  test_files: []