invitation 0.5.1 → 0.6.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
- SHA1:
3
- metadata.gz: fbddc3baff748f38bf1c2f2d01b5052d7d946420
4
- data.tar.gz: b77baeadf399cbae794c617cf9c81a7c57c04894
2
+ SHA256:
3
+ metadata.gz: 9328677bd2e812aa2989652555faf6c7c4387b4c010c3de3b0c23f2ef6a0a820
4
+ data.tar.gz: 65172c70d01f9b7ccce2f282c4353490780f01b420f7a3cbf79242582dd0fdbb
5
5
  SHA512:
6
- metadata.gz: 8550c0c2ba9b99212ec3a10e1504b98573c665cf4b4f4403205d246ab5cd3c2698e8bd051971b2ca55a0d8b7ae58c32290219ca0b255d9d1f649d41163461009
7
- data.tar.gz: d34f3acd286d2a977b8c6d38a3e2968557aa1fc10e844ca0a1707ec0fae96193143f9d38649fd535661bdc7231b8a67fe34227ce02ca327967df1ba8cdecbaeb
6
+ metadata.gz: 43ce4389d83c9a23363c7e1853be9785ff9ac752aae44415e1593a08fdf2691f55a930b4af8712fb51630d2b463a9d21b79597b39c84c0a7e81514de86d41614
7
+ data.tar.gz: '08a3670c9ee7c5fca90c98a6e48991c1ef6188a1615054b7f6bc513e8ea6086b7d4f69be346a6165e09c6f71dc5fd55bc3061a677fafc0eadfacb55fdd30e7be'
data/Rakefile CHANGED
@@ -24,12 +24,3 @@ RSpec::Core::RakeTask.new(:spec)
24
24
 
25
25
  desc 'Run all specs in spec directory (excluding plugin specs)'
26
26
  task default: :spec
27
-
28
-
29
- task :build do
30
- system "gem build invitation.gemspec"
31
- end
32
-
33
- task release: :build do
34
- system "gem push bundler-#{Invitation::VERSION}"
35
- end
@@ -30,7 +30,6 @@ module Invitation
30
30
  invites.each { |invite| invite.save ? do_invite(invite) : failures << invite.email }
31
31
  end
32
32
 
33
- logger.info "!!!!!!!!!!!!!!!!!!!!! INSIDE CREATE: current_user: #{current_user.inspect}"
34
33
  respond_to do |format|
35
34
  format.html do
36
35
  if failures.empty?
@@ -14,7 +14,7 @@ class Invite < ActiveRecord::Base
14
14
  end
15
15
 
16
16
  before_create :generate_token
17
- before_save :set_email_case, on: :create
17
+ before_save :set_email_case, if: :email_changed?
18
18
  before_save :check_recipient_existence
19
19
 
20
20
  validates :email, presence: true
@@ -1,3 +1,3 @@
1
1
  module Invitation
2
- VERSION = '0.5.1'.freeze
2
+ VERSION = '0.6.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invitation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Tomich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-07 00:00:00.000000000 Z
11
+ date: 2019-05-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -17,9 +17,9 @@ dependencies:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
- - - "<"
20
+ - - "<="
21
21
  - !ruby/object:Gem::Version
22
- version: '5.3'
22
+ version: '6.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +27,9 @@ dependencies:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '4.0'
30
- - - "<"
30
+ - - "<="
31
31
  - !ruby/object:Gem::Version
32
- version: '5.3'
32
+ version: '6.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: factory_girl
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -255,8 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
255
  - !ruby/object:Gem::Version
256
256
  version: '0'
257
257
  requirements: []
258
- rubyforge_project:
259
- rubygems_version: 2.5.2
258
+ rubygems_version: 3.0.3
260
259
  signing_key:
261
260
  specification_version: 4
262
261
  summary: Allow users to invite other users to join your organization