jive_add_ons 0.0.6 → 0.0.7

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
  SHA1:
3
- metadata.gz: 22e591672d206318b86d91a1b206b75a192f8171
4
- data.tar.gz: 3922a65e5a1f5fbd894f3952373dd377df702358
3
+ metadata.gz: 8d2b038910cbf11aa539299974946d0a3e6a0c46
4
+ data.tar.gz: 33f3ebb2e78b73dd4c4faae7ac0528b47e77a08b
5
5
  SHA512:
6
- metadata.gz: 11f814ea8b47b956afb5cac7c97bd53d6ed5841692e818ef83d82e64f47dcab49eeb9aab6db6f98aeeb3d887335a181851a724bbc665cd068aba5d04a6e1dc1f
7
- data.tar.gz: e72de89f2a879345812386e0407e52b3fda73b45aebd54139a493808f9b6a8acd94478393415dd94d993433d65a0622aea77895b7a8446ab3e219827c601f896
6
+ metadata.gz: 793b0aa7f4faabe731a14d153cee032061e4980f21a5640dd48e869375755b65cbe82cf55501c2bfa0fba60493fd31c7b4fb5020267919145e028e737be18170
7
+ data.tar.gz: 346dde8a792dc9cff1dcb09eb4aa6a49fdec29fe607d70dee93ac6422b3918af05da4e708653bf6cb8a887a7476e562e0df3ef1fbe9085309083a74ef9b67140
@@ -26,11 +26,11 @@ module JiveAddOns
26
26
  protected
27
27
  def validate_add_on_name
28
28
  # Add on name is whitelisted
29
- if JiveAddOns.config.whitelist.length > 0 && !JiveAddOns.config.whitelist.include?(params[:name])
29
+ if JiveAddOns.config.respond_to?(:whitelist) && JiveAddOns.config.whitelist.length > 0 && !JiveAddOns.config.whitelist.include?(params[:name])
30
30
  raise ActionController::UnknownController
31
31
  end
32
32
  # Add on name is blacklisted
33
- if JiveAddOns.config.blacklist.length > 0 && JiveAddOns.config.blacklist.include?(params[:name])
33
+ if JiveAddOns.config.respond_to?(:blacklist) && JiveAddOns.config.blacklist.length > 0 && JiveAddOns.config.blacklist.include?(params[:name])
34
34
  raise ActionController::UnknownController
35
35
  end
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module JiveAddOns
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jive_add_ons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Butch Marshall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-02 00:00:00.000000000 Z
11
+ date: 2016-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -124,7 +124,6 @@ files:
124
124
  - app/helpers/jive_add_ons/application_helper.rb
125
125
  - app/views/layouts/jive_add_ons/application.html.erb
126
126
  - config/routes.rb
127
- - db/migrate/20160102045039_add_jive_add_ons_0_1_0_migration.rb
128
127
  - lib/jive_add_ons.rb
129
128
  - lib/jive_add_ons/concerns/controllers/add_ons.rb
130
129
  - lib/jive_add_ons/engine.rb
@@ -150,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
149
  version: '0'
151
150
  requirements: []
152
151
  rubyforge_project:
153
- rubygems_version: 2.4.8
152
+ rubygems_version: 2.4.6
154
153
  signing_key:
155
154
  specification_version: 4
156
155
  summary: Rails Engine for handling Jive add-ons.
@@ -1,22 +0,0 @@
1
- class AddJiveAddOns010Migration < ActiveRecord::Migration
2
- def self.up
3
- create_table :jive_add_ons do |t|
4
- t.string :name
5
- t.string :tenant_id
6
- t.string :client_id
7
- t.string :client_secret
8
- t.string :jive_signature
9
- t.string :jive_signature_url
10
- t.string :jive_url
11
- t.string :timestamp
12
- t.boolean :uninstalled
13
- t.integer :attempt
14
-
15
- t.timestamps null: false
16
- end
17
- end
18
-
19
- def self.down
20
- drop_table :jive_add_ons
21
- end
22
- end