aadhar 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MTU5ZmNiZWUyZjJmMTFlMDcwMjlmNzg0NmVlY2ExMTgzYWNmZjk4MA==
5
+ data.tar.gz: !binary |-
6
+ Njk4YWEwOTQyZjc5NWI4MGI4ZjFhYmJkNjAyZTg0Nzk0MjVmZGNkNw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YjcwYWQ2ZTMyMzA5NTczOGQyNmRlZWIxZDkzMjQ3MThmODBjMWI1ODA3MGU2
10
+ MWNmZWYyNGIwMWQ1MjU2NmU0NWI2NjFkOWY4ZjIzYzVmNWJkNTc3OWQ4M2I2
11
+ NDQ5MTg4NWI4MTY0YThmNzQ0OTA0MTFiYTg1YzdiYTZmZTI3NTQ=
12
+ data.tar.gz: !binary |-
13
+ NTFiY2EwZWJhZTViZDBhZTRjOWY4MjVmMTdjZGVjNzViNDA3MzZlM2UxZTU5
14
+ MWY3NzEzZTgyYzdiYzYxOTdmZmU1MWJmNDg1YmRkMWYwM2FjYmJjMDViYTkx
15
+ NmI1N2JhODE5OGQ5MTI4NWQ5NDMyNzMwYzllYzQzYjUyZjE1MGU=
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in aadhar.gemspec
4
+ gemspec
@@ -0,0 +1,29 @@
1
+ # Aadhar
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'aadhar'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install aadhar
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it ( https://github.com/[my-github-username]/aadhar/fork )
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create a new Pull Request
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,6 @@
1
+ require "aadhar/version"
2
+ require "aadhar/user"
3
+
4
+ module Aadhar
5
+ # Your code goes here...
6
+ end
@@ -0,0 +1,7 @@
1
+ module Aadhar
2
+ class User
3
+ def self.hi
4
+ puts "HIIII"
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,3 @@
1
+ module Aadhar
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,21 @@
1
+ require 'rails/generators/migration'
2
+
3
+ module Aadhar
4
+ module Generators
5
+ class InstallGenerator < ::Rails::Generators::Base
6
+
7
+ include Rails::Generators::Migration
8
+
9
+ source_root File.expand_path('../templates', __FILE__)
10
+ desc "add the migrations"
11
+
12
+ def self.next_migration_number(path)
13
+ Time.now.utc.strftime("%Y%m%d%H%M%S")
14
+ end
15
+
16
+ def copy_migrations
17
+ migration_template "create_users.rb", "db/migrate/create_users.rb"
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,18 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :users do |t|
4
+ t.string :name
5
+ t.string :email
6
+ t.string :password_hash
7
+ t.string :password_salt
8
+ t.string :authentication_token
9
+ t.boolean :change_password, default: false
10
+
11
+ t.timestamps null: false
12
+ end
13
+ end
14
+
15
+ def self.down
16
+ drop_table :users
17
+ end
18
+ end
metadata ADDED
@@ -0,0 +1,81 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aadhar
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Krunal
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Token base authentication.
42
+ email:
43
+ - krunal.shah@hotmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - Gemfile
49
+ - README.md
50
+ - Rakefile
51
+ - lib/aadhar.rb
52
+ - lib/aadhar/user.rb
53
+ - lib/aadhar/version.rb
54
+ - lib/generators/aadhar/install/install_generator.rb
55
+ - lib/generators/aadhar/install/templates/create_users.rb
56
+ homepage: ''
57
+ licenses:
58
+ - MIT
59
+ metadata: {}
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ! '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubyforge_project:
76
+ rubygems_version: 2.2.2
77
+ signing_key:
78
+ specification_version: 4
79
+ summary: Token base authentication.
80
+ test_files: []
81
+ has_rdoc: