incline 0.1.9 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5eab0545dc5284817c3d643d66b0dcf601b5dda1
4
- data.tar.gz: bcc4ab52f95fd42af068801189bd7578f0a03d42
3
+ metadata.gz: 300e4465ce0f50f40f653c0745360883e4dbac04
4
+ data.tar.gz: 7687e46f578f349f292dbf2509822ae8a6657d88
5
5
  SHA512:
6
- metadata.gz: 160c49ccb2e8e6d58bda5eb1610f218f417358a71dc0df62e13e393184df8cb2845fece77b9c810a542d358d40d09635a422b9e15366cf195ec118015b61e84b
7
- data.tar.gz: 831f5e7f87af0fe3feb22753fff9e6db66a58c2c42e82bf5097f49d56a6a6004e7337aff7ae1814eb5b24c361ab203b07608f163699149ec044a32662d466992
6
+ metadata.gz: 12756d6bbb6f3031afbf5d192319577ef1ef1162327b10f3e4f239377d2090ff0d8bb2471be5577fb92d9a3e624241fb358656db3f0f8cffd8aadaa6a780e704
7
+ data.tar.gz: 1df7d314dd004917c93a2bf9de2c0016cd2bf187043fef9e2228708abc3fe67cec164a4208104031e08b1c586e96ad654e728653a3936780376a2df653928e19
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- incline (0.1.9)
4
+ incline (0.2.3)
5
5
  ansi (~> 1.5.0)
6
6
  bcrypt
7
7
  bootstrap-sass
@@ -1,12 +1,13 @@
1
1
  class CreateInclineUserLoginHistories < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :incline_user_login_histories do |t|
4
- t.belongs_to :user, null: false, index: true, foreign_key: true
4
+ t.belongs_to :user, null: false, index: true
5
5
  t.string :ip_address, null: false, limit: 64
6
6
  t.boolean :successful
7
7
  t.string :message, limit: 200
8
8
 
9
9
  t.timestamps null: false
10
10
  end
11
+ add_foreign_key :incline_user_login_histories, :incline_users, column: :user_id, name: 'fk_i_user_login_hist_user'
11
12
  end
12
13
  end
@@ -7,5 +7,7 @@ class CreateInclineAccessGroupUserMembers < ActiveRecord::Migration
7
7
  t.timestamps null: false
8
8
  end
9
9
  add_index :incline_access_group_user_members, [ :group_id, :member_id ], unique: true, name: 'ux_incline_access_group_user_members'
10
+ add_foreign_key :incline_access_group_user_members, :incline_access_groups, column: :group_id, name: 'fk_i_access_group_users_group'
11
+ add_foreign_key :incline_access_group_user_members, :incline_users, column: :member_id, name: 'fk_i_access_group_users_member'
10
12
  end
11
13
  end
@@ -7,5 +7,7 @@ class CreateInclineAccessGroupGroupMembers < ActiveRecord::Migration
7
7
  t.timestamps null: false
8
8
  end
9
9
  add_index :incline_access_group_group_members, [ :group_id, :member_id ], unique: true, name: 'ux_incline_access_group_group_members'
10
+ add_foreign_key :incline_access_group_group_members, :incline_access_groups, column: :group_id, name: 'fk_i_access_group_groups_group'
11
+ add_foreign_key :incline_access_group_group_members, :incline_access_groups, column: :member_id, name: 'fk_i_access_group_groups_member'
10
12
  end
11
13
  end
@@ -1,11 +1,13 @@
1
1
  class CreateInclineActionGroups < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :incline_action_groups do |t|
4
- t.belongs_to :action_security, null: false, index: true, foreign_key: true
5
- t.belongs_to :access_group, null: false, index: true, foreign_key: true
4
+ t.belongs_to :action_security, null: false, index: true
5
+ t.belongs_to :access_group, null: false, index: true
6
6
 
7
7
  t.timestamps null: false
8
8
  end
9
9
  add_index :incline_action_groups, [ :action_security_id, :access_group_id ], unique: true, name: 'ux_incline_action_groups'
10
+ add_foreign_key :incline_action_groups, :incline_action_securities, column: :action_security_id, name: 'fk_i_action_groups_security'
11
+ add_foreign_key :incline_action_groups, :incline_access_groups, column: :access_group_id, name: 'fk_i_action_groups_group'
10
12
  end
11
13
  end
@@ -138,6 +138,13 @@ module Incline::Extensions
138
138
  setting_for_action require_anon, action
139
139
  end
140
140
 
141
+ ##
142
+ # Determines if the current request can be allowed via HTTP (non-SSL).
143
+ def allow_http_for?(action)
144
+ setting_for_action allow_non_ssl, action
145
+ end
146
+
147
+
141
148
  private
142
149
 
143
150
  def setting_value(args)
@@ -346,7 +353,7 @@ module Incline::Extensions
346
353
  ##
347
354
  # Determines if the current request can be allowed via HTTP (non-SSL).
348
355
  def allow_http_for_request? #:doc:
349
- self.class.setting_for_action self.class.allow_non_ssl, params[:action]
356
+ self.class.allow_http_for? params[:action]
350
357
  end
351
358
 
352
359
  ##
@@ -1,3 +1,3 @@
1
1
  module Incline
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beau Barker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-03 00:00:00.000000000 Z
11
+ date: 2017-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -253,6 +253,7 @@ email:
253
253
  - beau@barkerest.com
254
254
  executables:
255
255
  - new_incline_app
256
+ - incline
256
257
  extensions: []
257
258
  extra_rdoc_files: []
258
259
  files:
@@ -586,7 +587,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
586
587
  version: '0'
587
588
  requirements: []
588
589
  rubyforge_project:
589
- rubygems_version: 2.5.2
590
+ rubygems_version: 2.6.11
590
591
  signing_key:
591
592
  specification_version: 4
592
593
  summary: A gem designed to get off to an even quicker start with Rails.