beta_invite 0.1.1 → 0.1.2

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: 96d298531b8fa6c1959325ddd159710774b9d14a
4
- data.tar.gz: a4c8b5d5cee67cd421e0b6d5ad6e672094de5738
3
+ metadata.gz: 2cbbd6e8201b97124364c75da584ae86e53ae17d
4
+ data.tar.gz: 39d22b03419a455938fd7d90c0a8ba6b7c1d9070
5
5
  SHA512:
6
- metadata.gz: b6db7a2543d201223766e5acceedb560cab9666a103723e23edfecea80b7aa30757aa85971ccf540f0c08b2dde1ff07771ee678532d641cf5d9a426e4502103e
7
- data.tar.gz: 8804d81df686ed652e9d3523b1958468aad6e83680f47c4bbf786a3f27b2a266d3f757afcd79a7c2b7d8c617eef6991941e19b571c58260511cac91f9498a72e
6
+ metadata.gz: 6278215e4a20fb331619c0db2fd7965176711062bcc6adcfb958a009e615b394af4d93953945be37a2b78ffb55afadeff2cbb507b39513ada3ca972ae54d8ffe
7
+ data.tar.gz: eef72e83afb9b97f1e4de7b26f97d2c38b0dcc04368450e423cea1ed345b616bfd620216ae324eff8d631f719b0a45fe5a30b78f8090f5e40e97f826770ab813
data/README.md CHANGED
@@ -38,6 +38,7 @@ mount BetaInvite::Engine, at: '/'
38
38
 
39
39
  ####Views
40
40
 
41
+ ___for version >= 0.1.1___
41
42
 
42
43
  You can generate the views that the gem has into your rails app by this below command
43
44
 
@@ -45,8 +46,6 @@ You can generate the views that the gem has into your rails app by this below co
45
46
  rails generate beta_invite:views
46
47
  ```
47
48
 
48
- ___ for version >= 0.1.1 ___
49
-
50
49
  You may wanna upgrade your gem at this point in time
51
50
 
52
51
  ```ruby
@@ -57,6 +56,8 @@ Obviously, you can mount it to any route.
57
56
 
58
57
  __You may wanna restart your server__
59
58
 
59
+ ###[Changelogs](https://github.com/ktkaushik/beta_invite/wiki/Changelog)
60
+
60
61
  ##Contributing
61
62
  ```
62
63
  1. Fork it
@@ -66,4 +67,4 @@ __You may wanna restart your server__
66
67
  5. Create new Pull Request
67
68
  ```
68
69
 
69
- Thank you !
70
+ Thank you !
@@ -17,7 +17,7 @@ module BetaInvite
17
17
  redirect_to beta_invites_path
18
18
  else
19
19
  flash[:alert] = beta_invite.errors.full_messages
20
- render :new
20
+ redirect_to new_beta_invite_path
21
21
  end
22
22
  end
23
23
  end
@@ -1,5 +1,8 @@
1
1
  module BetaInvite
2
2
  class BetaInvite < ActiveRecord::Base
3
3
  attr_accessible :email, :token
4
+
5
+ # validating email with presence, uniqueness and format
6
+ validates :email, presence: true, uniqueness: true, format: { with: /\A[^@]+@([^@\.]+\.)+[^@\.]+\z/ }
4
7
  end
5
- end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module BetaInvite
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -13,4 +13,4 @@ module BetaInvite
13
13
  end
14
14
  end
15
15
  end
16
- end
16
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beta_invite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaushik Thirthappa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-19 00:00:00.000000000 Z
11
+ date: 2013-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails