beta_invite 0.1.0 → 0.1.1

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: 73a29089570d4d67efa3e4998913f2ad58082f39
4
- data.tar.gz: 1ddecea397a0543130e942dbbfcb7d5ee8edaf5b
3
+ metadata.gz: 96d298531b8fa6c1959325ddd159710774b9d14a
4
+ data.tar.gz: a4c8b5d5cee67cd421e0b6d5ad6e672094de5738
5
5
  SHA512:
6
- metadata.gz: c7a0eb71dbdbf08f9eb55c28f5eba32c2939676e927e9034da091c3510395b269747a54cee898440ca867b915069e5bc42e3702d53204545b0ba7a4ff7965f3d
7
- data.tar.gz: 83a4679ab16728bffa3aa5002a1ddad09b5adde872d6c24b085c37e1d0dc553d4a332484bc13d7a4947e0da818ea600d41284d6bc4681e9a3517eb8f8f6f154e
6
+ metadata.gz: b6db7a2543d201223766e5acceedb560cab9666a103723e23edfecea80b7aa30757aa85971ccf540f0c08b2dde1ff07771ee678532d641cf5d9a426e4502103e
7
+ data.tar.gz: 8804d81df686ed652e9d3523b1958468aad6e83680f47c4bbf786a3f27b2a266d3f757afcd79a7c2b7d8c617eef6991941e19b571c58260511cac91f9498a72e
data/README.md CHANGED
@@ -1,3 +1,69 @@
1
1
  #BetaInvite
2
2
 
3
- A simple gem to help you build your __beta_invite__ page up and running in no time
3
+ A simple gem to help you build your __beta_invite__ page up and running in no time
4
+
5
+ ##Instructions
6
+
7
+ ###Installation
8
+
9
+ ```ruby
10
+ gem install beta_invite
11
+ ```
12
+
13
+ or with the use of __Bundler__, you can just write `beta_invite` in your `Gemfile` and run `bundle` command in your CLI.
14
+
15
+ ###Setup
16
+
17
+ ####Migrations
18
+ The setup is very primary as of now. Once installed, you will need to copy the migrations by running this command
19
+
20
+ ```ruby
21
+ rake beta_invite:install:migrations
22
+ ```
23
+
24
+ Run the migrations
25
+
26
+ ```ruby
27
+ rake db:migrate
28
+ ```
29
+
30
+ The above migrations would create a `beta_invites` table in your app
31
+
32
+ ####Mount
33
+ Now mount the `BetaInvite` engine by going into your `routes.rb` file and adding the below line
34
+
35
+ ```ruby
36
+ mount BetaInvite::Engine, at: '/'
37
+ ```
38
+
39
+ ####Views
40
+
41
+
42
+ You can generate the views that the gem has into your rails app by this below command
43
+
44
+ ```ruby
45
+ rails generate beta_invite:views
46
+ ```
47
+
48
+ ___ for version >= 0.1.1 ___
49
+
50
+ You may wanna upgrade your gem at this point in time
51
+
52
+ ```ruby
53
+ gem update beta_invite
54
+ ```
55
+
56
+ Obviously, you can mount it to any route.
57
+
58
+ __You may wanna restart your server__
59
+
60
+ ##Contributing
61
+ ```
62
+ 1. Fork it
63
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
64
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
65
+ 4. Push to the branch (`git push origin my-new-feature`)
66
+ 5. Create new Pull Request
67
+ ```
68
+
69
+ Thank you !
@@ -1,3 +1,3 @@
1
1
  module BetaInvite
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -0,0 +1,16 @@
1
+ require "rails/generators"
2
+
3
+ module BetaInvite
4
+ module Generators
5
+ class ViewsGenerator < Rails::Generators::Base
6
+ source_root File.expand_path('../../../../app/views/beta_invite/beta_invites', __FILE__)
7
+
8
+ desc "this generator would copy all the view files for beta_invite engine into your rails app"
9
+
10
+ def create_views
11
+ copy_file 'new.html.erb', Rails.root.join('app','views','beta_invite','beta_invites','new.html.erb')
12
+ copy_file 'index.html.erb', Rails.root.join('app','views','beta_invite','beta_invites','index.html.erb')
13
+ end
14
+ end
15
+ end
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beta_invite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaushik Thirthappa
@@ -48,6 +48,7 @@ files:
48
48
  - lib/beta_invite/engine.rb
49
49
  - lib/beta_invite/version.rb
50
50
  - lib/beta_invite.rb
51
+ - lib/generators/beta_invite/views_generator.rb
51
52
  - lib/tasks/beta_invite_tasks.rake
52
53
  - MIT-LICENSE
53
54
  - Rakefile