phcmembers 37.0.0 → 38.0.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: 07ce1e676d1a1275db90f1bdd04ad1e7767111db1c09829e2aa418502ff6c217
4
- data.tar.gz: 0f88ce7aeae6152ef15ecd6b46d37ad50486185ec716b57c39a3030b50d41fc0
3
+ metadata.gz: fe0f985421bd9435cabdf84fa1690002c74e0cc3336cd471cbca508626567f98
4
+ data.tar.gz: 7932d707300a833edbe7934158306790b76d7d77aac6fd486374207bbb65863a
5
5
  SHA512:
6
- metadata.gz: cce6edcafdb53f6f75947c056a642252ac9a2e5e20620af2899af40e3798ff8c2eb148dd91ac05f2e8c21c18895c3026912cfc44b450ee35e691324bf03df71c
7
- data.tar.gz: c159d46cd02f23bf65f2ab582e1e8e964a4271b4830b869643368d917644a9dbdd1500bf45fb7c9c3c2b8b6520ab71406780f52ad58f861a85454c9c7003dae3
6
+ metadata.gz: ad3401dd1529dae19d6d7bf6a4e4079116536030d270f5eab189962257b079c747d9814e837077a5ec01247aa55587bd487a3d91bdeea30372735348f228d0b3
7
+ data.tar.gz: 1016f8b82b0df911dee57c7dcfac615eb8fabb8f0de867441e32995caf5f9cca3b47fcfdcf295fda474842f074ce6717560172709f7cb440d14bad01159538ed
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2016-2018 BradPotts - PHCNetworks
1
+ Copyright 2012-2018 BradPotts - PHCNetworks
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -13,7 +13,7 @@ PHCMembers(2018) rails engine to manage membership information and directory lis
13
13
 
14
14
  #### Step 1 - Add PHCMembers to your gemfile and run the commands below.
15
15
 
16
- gem 'phcmembers', '~> 37.0'
16
+ gem 'phcmembers', '~> 38.0'
17
17
  bundle install
18
18
 
19
19
  #### Step 2 - Add PHCMembers Database Tables
data/Rakefile CHANGED
@@ -1,12 +1,10 @@
1
1
  begin
2
- require 'bundler/setup'
3
-
2
+ require 'bundler/setup'
4
3
  rescue LoadError
5
4
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
5
  end
7
6
 
8
7
  require 'rdoc/task'
9
-
10
8
  RDoc::Task.new(:rdoc) do |rdoc|
11
9
  rdoc.rdoc_dir = 'rdoc'
12
10
  rdoc.title = 'Phcmembers'
@@ -15,9 +13,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
15
13
  rdoc.rdoc_files.include('lib/**/*.rb')
16
14
  end
17
15
 
18
- APP_RAKEFILE = File.expand_path("../spec/testapp/Rakefile", __FILE__)
19
-
16
+ APP_RAKEFILE = File.expand_path("spec/test_app/Rakefile", __dir__)
20
17
  load 'rails/tasks/engine.rake'
21
18
  load 'rails/tasks/statistics.rake'
22
-
23
19
  require 'bundler/gem_tasks'
@@ -2,7 +2,7 @@ module Phcmembers
2
2
  class Engine < ::Rails::Engine
3
3
 
4
4
  # Main Dependencies
5
- require 'devise'
5
+ require 'phcaccountspro'
6
6
  require 'paper_trail'
7
7
 
8
8
  # PHCEngines & Theme Dependencies
@@ -1,3 +1,3 @@
1
1
  module Phcmembers
2
- VERSION = "37.0.0"
2
+ VERSION = "38.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcmembers
3
3
  version: !ruby/object:Gem::Version
4
- version: 37.0.0
4
+ version: 38.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - BradPotts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-24 00:00:00.000000000 Z
11
+ date: 2018-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -311,95 +311,19 @@ dependencies:
311
311
  - !ruby/object:Gem::Version
312
312
  version: 0.21.0
313
313
  - !ruby/object:Gem::Dependency
314
- name: devise
314
+ name: phcaccounts
315
315
  requirement: !ruby/object:Gem::Requirement
316
316
  requirements:
317
317
  - - "~>"
318
318
  - !ruby/object:Gem::Version
319
- version: '4.4'
320
- - - ">="
321
- - !ruby/object:Gem::Version
322
- version: 4.4.3
323
- type: :runtime
324
- prerelease: false
325
- version_requirements: !ruby/object:Gem::Requirement
326
- requirements:
327
- - - "~>"
328
- - !ruby/object:Gem::Version
329
- version: '4.4'
330
- - - ">="
331
- - !ruby/object:Gem::Version
332
- version: 4.4.3
333
- - !ruby/object:Gem::Dependency
334
- name: simple_token_authentication
335
- requirement: !ruby/object:Gem::Requirement
336
- requirements:
337
- - - "~>"
338
- - !ruby/object:Gem::Version
339
- version: '1.15'
340
- type: :runtime
341
- prerelease: false
342
- version_requirements: !ruby/object:Gem::Requirement
343
- requirements:
344
- - - "~>"
345
- - !ruby/object:Gem::Version
346
- version: '1.15'
347
- - !ruby/object:Gem::Dependency
348
- name: omniauth-facebook
349
- requirement: !ruby/object:Gem::Requirement
350
- requirements:
351
- - - "~>"
352
- - !ruby/object:Gem::Version
353
- version: '5.0'
354
- type: :runtime
355
- prerelease: false
356
- version_requirements: !ruby/object:Gem::Requirement
357
- requirements:
358
- - - "~>"
359
- - !ruby/object:Gem::Version
360
- version: '5.0'
361
- - !ruby/object:Gem::Dependency
362
- name: omniauth-github
363
- requirement: !ruby/object:Gem::Requirement
364
- requirements:
365
- - - "~>"
366
- - !ruby/object:Gem::Version
367
- version: '1.3'
368
- type: :runtime
369
- prerelease: false
370
- version_requirements: !ruby/object:Gem::Requirement
371
- requirements:
372
- - - "~>"
373
- - !ruby/object:Gem::Version
374
- version: '1.3'
375
- - !ruby/object:Gem::Dependency
376
- name: omniauth-instagram
377
- requirement: !ruby/object:Gem::Requirement
378
- requirements:
379
- - - "~>"
380
- - !ruby/object:Gem::Version
381
- version: '1.3'
382
- type: :runtime
383
- prerelease: false
384
- version_requirements: !ruby/object:Gem::Requirement
385
- requirements:
386
- - - "~>"
387
- - !ruby/object:Gem::Version
388
- version: '1.3'
389
- - !ruby/object:Gem::Dependency
390
- name: omniauth-twitter
391
- requirement: !ruby/object:Gem::Requirement
392
- requirements:
393
- - - "~>"
394
- - !ruby/object:Gem::Version
395
- version: '1.4'
319
+ version: '6.0'
396
320
  type: :runtime
397
321
  prerelease: false
398
322
  version_requirements: !ruby/object:Gem::Requirement
399
323
  requirements:
400
324
  - - "~>"
401
325
  - !ruby/object:Gem::Version
402
- version: '1.4'
326
+ version: '6.0'
403
327
  - !ruby/object:Gem::Dependency
404
328
  name: rspec-rails
405
329
  requirement: !ruby/object:Gem::Requirement
@@ -682,22 +606,7 @@ files:
682
606
  - app/views/phcmembers/member/profiles/new.html.erb
683
607
  - app/views/phcmembers/member/profiles/show.html.erb
684
608
  - app/views/phcmembers/modules/dashboards/index.html.erb
685
- - config/initializers/friendly_id.rb
686
- - config/initializers/locale.rb
687
- - config/initializers/paper_trail.rb
688
- - config/locales/defaults/en.yml
689
609
  - config/routes.rb
690
- - db/migrate/20160724220339_create_phcmembers_member_profiles.rb
691
- - db/migrate/20160725153306_create_phcmembers_member_addresses.rb
692
- - db/migrate/20160725182257_create_phcmembers_directory_categories.rb
693
- - db/migrate/20160727024006_create_phcmembers_member_listings.rb
694
- - db/migrate/20160727042756_create_phcmembers_directory_categorylistings.rb
695
- - db/migrate/20170509002355_create_phcmembers_friendly_id_slugs.rb
696
- - db/migrate/20170517064030_create_phcmembers_profile_versions.rb
697
- - db/migrate/20170517064049_create_phcmembers_listing_versions.rb
698
- - db/migrate/20170517064114_create_phcmembers_address_versions.rb
699
- - db/migrate/20170517064208_create_phcmembers_categorylisting_versions.rb
700
- - db/migrate/20170517064427_create_phcmembers_category_versions.rb
701
610
  - lib/phcmembers.rb
702
611
  - lib/phcmembers/engine.rb
703
612
  - lib/phcmembers/version.rb
@@ -1,92 +0,0 @@
1
- # FriendlyId Global Configuration
2
- #
3
- # Use this to set up shared configuration options for your entire application.
4
- # Any of the configuration options shown here can also be applied to single
5
- # models by passing arguments to the `friendly_id` class method or defining
6
- # methods in your model.
7
- #
8
- # To learn more, check out the guide:
9
- #
10
- # http://norman.github.io/friendly_id/file.Guide.html
11
-
12
- FriendlyId.defaults do |config|
13
- # ## Reserved Words
14
- #
15
- # Some words could conflict with Rails's routes when used as slugs, or are
16
- # undesirable to allow as slugs. Edit this list as needed for your app.
17
- config.use :reserved
18
-
19
- config.reserved_words = %w(new edit index session login logout users admin
20
- stylesheets assets javascripts images)
21
-
22
- # ## Friendly Finders
23
- #
24
- # Uncomment this to use friendly finders in all models. By default, if
25
- # you wish to find a record by its friendly id, you must do:
26
- #
27
- # MyModel.friendly.find('foo')
28
- #
29
- # If you uncomment this, you can do:
30
- #
31
- # MyModel.find('foo')
32
- #
33
- # This is significantly more convenient but may not be appropriate for
34
- # all applications, so you must explicity opt-in to this behavior. You can
35
- # always also configure it on a per-model basis if you prefer.
36
- #
37
- # Something else to consider is that using the :finders addon boosts
38
- # performance because it will avoid Rails-internal code that makes runtime
39
- # calls to `Module.extend`.
40
- #
41
- config.use :finders
42
- #
43
- # ## Slugs
44
- #
45
- # Most applications will use the :slugged module everywhere. If you wish
46
- # to do so, uncomment the following line.
47
- #
48
- config.use :slugged
49
- #
50
- # By default, FriendlyId's :slugged addon expects the slug column to be named
51
- # 'slug', but you can change it if you wish.
52
- #
53
- # config.slug_column = 'slug'
54
- #
55
- # When FriendlyId can not generate a unique ID from your base method, it appends
56
- # a UUID, separated by a single dash. You can configure the character used as the
57
- # separator. If you're upgrading from FriendlyId 4, you may wish to replace this
58
- # with two dashes.
59
- #
60
- # config.sequence_separator = '-'
61
- #
62
- # Note that you must use the :slugged addon **prior** to the line which
63
- # configures the sequence separator, or else FriendlyId will raise an undefined
64
- # method error.
65
- #
66
- # ## Tips and Tricks
67
- #
68
- # ### Controlling when slugs are generated
69
- #
70
- # As of FriendlyId 5.0, new slugs are generated only when the slug field is
71
- # nil, but if you're using a column as your base method can change this
72
- # behavior by overriding the `should_generate_new_friendly_id?` method that
73
- # FriendlyId adds to your model. The change below makes FriendlyId 5.0 behave
74
- # more like 4.0.
75
- #
76
- # config.use Module.new {
77
- # def should_generate_new_friendly_id?
78
- # slug.blank? || <your_column_name_here>_changed?
79
- # end
80
- # }
81
- #
82
- # FriendlyId uses Rails's `parameterize` method to generate slugs, but for
83
- # languages that don't use the Roman alphabet, that's not usually sufficient.
84
- # Here we use the Babosa library to transliterate Russian Cyrillic slugs to
85
- # ASCII. If you use this, don't forget to add "babosa" to your Gemfile.
86
- #
87
- # config.use Module.new {
88
- # def normalize_friendly_id(text)
89
- # text.to_slug.normalize! :transliterations => [:russian, :latin]
90
- # end
91
- # }
92
- end
@@ -1,10 +0,0 @@
1
- # config/initializers/locale.rb
2
-
3
- # Where the I18n library should search for translation files
4
- I18n.load_path += Dir[Rails.root.join('lib', 'locale', '*.{rb,yml}')]
5
-
6
- # Whitelist locales available for the application
7
- I18n.available_locales = [:en, :pt]
8
-
9
- # Set default locale to something other than :en
10
- I18n.default_locale = :en
@@ -1 +0,0 @@
1
- PaperTrail.config.track_associations = false
@@ -1,10 +0,0 @@
1
- en:
2
- activerecord:
3
- attributes:
4
- member/profile:
5
- Mfirstname: "Member First Name"
6
- mlastname: "Member Last Name"
7
- mtitle: "Member Title"
8
- memail: "Member Email"
9
- mphone: "Member Phone Number"
10
- mnotes: "Member Notes"
@@ -1,22 +0,0 @@
1
- class CreatePhcmembersMemberProfiles < ActiveRecord::Migration[5.2]
2
- def change
3
-
4
- create_table :phcmembers_member_profiles do |t|
5
-
6
- t.string :mfirstname
7
- t.string :mlastname
8
- t.string :mtitle
9
- t.string :memail
10
- t.string :mphone
11
- t.string :mnotes
12
-
13
- t.string :slug
14
-
15
- t.string :user_id
16
-
17
- t.timestamps
18
-
19
- end
20
-
21
- end
22
- end
@@ -1,25 +0,0 @@
1
- class CreatePhcmembersMemberAddresses < ActiveRecord::Migration[5.2]
2
- def change
3
-
4
- create_table :phcmembers_member_addresses do |t|
5
-
6
- t.string :mcaddressl1
7
- t.string :mcaddressl2
8
- t.string :mccity
9
- t.string :mcprovince
10
- t.string :mccountry
11
- t.string :mcpostalcode
12
- t.string :mctype
13
-
14
- t.references :profile
15
-
16
- t.string :slug
17
-
18
- t.string :user_id
19
-
20
- t.timestamps
21
-
22
- end
23
-
24
- end
25
- end
@@ -1,17 +0,0 @@
1
- class CreatePhcmembersDirectoryCategories < ActiveRecord::Migration[5.2]
2
- def change
3
-
4
- create_table :phcmembers_directory_categories do |t|
5
-
6
- t.string :catname
7
-
8
- t.string :slug
9
-
10
- t.string :user_id
11
-
12
- t.timestamps
13
-
14
- end
15
-
16
- end
17
- end
@@ -1,29 +0,0 @@
1
- class CreatePhcmembersMemberListings < ActiveRecord::Migration[5.2]
2
- def change
3
-
4
- create_table :phcmembers_member_listings do |t|
5
-
6
- t.string :mbcompanyname
7
- t.string :mbcontactname
8
- t.string :mbaddressl1
9
- t.string :mbaddressl2
10
- t.string :mbcity
11
- t.string :mbprovince
12
- t.string :mbcountry
13
- t.string :mbpostalcode
14
- t.string :mbphone
15
- t.string :mbcontactemail
16
- t.string :mbwebsite
17
-
18
- t.references :profile
19
-
20
- t.string :slug
21
-
22
- t.string :user_id
23
-
24
- t.timestamps
25
-
26
- end
27
-
28
- end
29
- end
@@ -1,16 +0,0 @@
1
- class CreatePhcmembersDirectoryCategorylistings < ActiveRecord::Migration[5.2]
2
- def change
3
-
4
- create_table :phcmembers_directory_categorylistings do |t|
5
-
6
- t.references :category
7
- t.references :listing
8
-
9
- t.string :slug
10
-
11
- t.timestamps
12
-
13
- end
14
-
15
- end
16
- end
@@ -1,18 +0,0 @@
1
- class CreatePhcmembersFriendlyIdSlugs < ActiveRecord::Migration[5.2]
2
- def change
3
-
4
- create_table :phcmembers_friendly_id_slugs do |t|
5
- t.string :slug, :null => false
6
- t.integer :sluggable_id, :null => false
7
- t.string :sluggable_type, :limit => 50
8
- t.string :scope
9
- t.datetime :created_at
10
- end
11
-
12
- add_index :phcmembers_friendly_id_slugs, :sluggable_id
13
- add_index :phcmembers_friendly_id_slugs, [:slug, :sluggable_type], length: { slug: 140, sluggable_type: 50 }
14
- add_index :phcmembers_friendly_id_slugs, [:slug, :sluggable_type, :scope], name: 'fri_id_slugable_scope_type', length: { slug: 70, sluggable_type: 50, scope: 70 }, unique: true
15
- add_index :phcmembers_friendly_id_slugs, :sluggable_type
16
-
17
- end
18
- end
@@ -1,17 +0,0 @@
1
- class CreatePhcmembersProfileVersions < ActiveRecord::Migration[5.2]
2
- TEXT_BYTES = 1_073_741_823
3
- def change
4
-
5
- create_table :phcmembers_profile_versions do |t|
6
- t.string :item_type, {:null=>false}
7
- t.integer :item_id, null: false
8
- t.string :event, null: false
9
- t.string :whodunnit
10
- t.text :object, limit: TEXT_BYTES
11
- t.datetime :created_at
12
- end
13
-
14
- add_index :phcmembers_profile_versions, %i(item_type item_id), :name => 'mem_profile_versions'
15
-
16
- end
17
- end
@@ -1,17 +0,0 @@
1
- class CreatePhcmembersListingVersions < ActiveRecord::Migration[5.2]
2
- TEXT_BYTES = 1_073_741_823
3
- def change
4
-
5
- create_table :phcmembers_listing_versions do |t|
6
- t.string :item_type, {:null=>false}
7
- t.integer :item_id, null: false
8
- t.string :event, null: false
9
- t.string :whodunnit
10
- t.text :object, limit: TEXT_BYTES
11
- t.datetime :created_at
12
- end
13
-
14
- add_index :phcmembers_listing_versions, %i(item_type item_id), :name => 'mem_listing_versions'
15
-
16
- end
17
- end
@@ -1,17 +0,0 @@
1
- class CreatePhcmembersAddressVersions < ActiveRecord::Migration[5.2]
2
- TEXT_BYTES = 1_073_741_823
3
- def change
4
-
5
- create_table :phcmembers_address_versions do |t|
6
- t.string :item_type, {:null=>false}
7
- t.integer :item_id, null: false
8
- t.string :event, null: false
9
- t.string :whodunnit
10
- t.text :object, limit: TEXT_BYTES
11
- t.datetime :created_at
12
- end
13
-
14
- add_index :phcmembers_address_versions, %i(item_type item_id), :name => 'mem_address_versions'
15
-
16
- end
17
- end
@@ -1,17 +0,0 @@
1
- class CreatePhcmembersCategorylistingVersions < ActiveRecord::Migration[5.2]
2
- TEXT_BYTES = 1_073_741_823
3
- def change
4
-
5
- create_table :phcmembers_categorylisting_versions do |t|
6
- t.string :item_type, {:null=>false}
7
- t.integer :item_id, null: false
8
- t.string :event, null: false
9
- t.string :whodunnit
10
- t.text :object, limit: TEXT_BYTES
11
- t.datetime :created_at
12
- end
13
-
14
- add_index :phcmembers_categorylisting_versions, %i(item_type item_id), :name => 'mem_catlisting_versions'
15
-
16
- end
17
- end
@@ -1,17 +0,0 @@
1
- class CreatePhcmembersCategoryVersions < ActiveRecord::Migration[5.2]
2
- TEXT_BYTES = 1_073_741_823
3
- def change
4
-
5
- create_table :phcmembers_category_versions do |t|
6
- t.string :item_type, {:null=>false}
7
- t.integer :item_id, null: false
8
- t.string :event, null: false
9
- t.string :whodunnit
10
- t.text :object, limit: TEXT_BYTES
11
- t.datetime :created_at
12
- end
13
-
14
- add_index :phcmembers_category_versions, %i(item_type item_id), :name => 'mem_category_versions'
15
-
16
- end
17
- end