power_visit 0.0.2 → 1.0.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.
@@ -1,3 +1,3 @@
1
1
  module PowerVisit
2
- VERSION = "0.0.2"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -0,0 +1,4 @@
1
+ class User < ActiveRecord::Base
2
+ attr_accessible :uname
3
+ acts_as_visitor
4
+ end
@@ -0,0 +1,9 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ t.string :uname
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,22 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20130612125344) do
15
+
16
+ create_table "users", :force => true do |t|
17
+ t.string "uname"
18
+ t.datetime "created_at", :null => false
19
+ t.datetime "updated_at", :null => false
20
+ end
21
+
22
+ end
@@ -1 +1,14 @@
1
1
  Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+ Connecting to database specified by database.yml
4
+  (0.2ms) select sqlite_version(*)
5
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
6
+  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
+  (19.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
8
+ Migrating to CreateUsers (20130612125344)
9
+  (0.1ms) begin transaction
10
+  (3.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "uname" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
11
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130612125344')
12
+  (1.1ms) commit transaction
13
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
14
+ Connecting to database specified by database.yml
@@ -0,0 +1,7 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
2
+
3
+ one:
4
+ uname: MyString
5
+
6
+ two:
7
+ uname: MyString
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class UserTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power_visit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -68,6 +68,7 @@ files:
68
68
  - test/dummy/app/assets/stylesheets/application.css
69
69
  - test/dummy/app/controllers/application_controller.rb
70
70
  - test/dummy/app/helpers/application_helper.rb
71
+ - test/dummy/app/models/user.rb
71
72
  - test/dummy/app/views/layouts/application.html.erb
72
73
  - test/dummy/config/application.rb
73
74
  - test/dummy/config/boot.rb
@@ -86,6 +87,8 @@ files:
86
87
  - test/dummy/config/routes.rb
87
88
  - test/dummy/config.ru
88
89
  - test/dummy/db/development.sqlite3
90
+ - test/dummy/db/migrate/20130612125344_create_users.rb
91
+ - test/dummy/db/schema.rb
89
92
  - test/dummy/log/development.log
90
93
  - test/dummy/public/404.html
91
94
  - test/dummy/public/422.html
@@ -94,6 +97,8 @@ files:
94
97
  - test/dummy/Rakefile
95
98
  - test/dummy/README.rdoc
96
99
  - test/dummy/script/rails
100
+ - test/dummy/test/fixtures/users.yml
101
+ - test/dummy/test/unit/user_test.rb
97
102
  - test/power_visit_test.rb
98
103
  - test/test_helper.rb
99
104
  homepage: http://www.aotianlong.com
@@ -125,6 +130,7 @@ test_files:
125
130
  - test/dummy/app/assets/stylesheets/application.css
126
131
  - test/dummy/app/controllers/application_controller.rb
127
132
  - test/dummy/app/helpers/application_helper.rb
133
+ - test/dummy/app/models/user.rb
128
134
  - test/dummy/app/views/layouts/application.html.erb
129
135
  - test/dummy/config/application.rb
130
136
  - test/dummy/config/boot.rb
@@ -143,6 +149,8 @@ test_files:
143
149
  - test/dummy/config/routes.rb
144
150
  - test/dummy/config.ru
145
151
  - test/dummy/db/development.sqlite3
152
+ - test/dummy/db/migrate/20130612125344_create_users.rb
153
+ - test/dummy/db/schema.rb
146
154
  - test/dummy/log/development.log
147
155
  - test/dummy/public/404.html
148
156
  - test/dummy/public/422.html
@@ -151,5 +159,7 @@ test_files:
151
159
  - test/dummy/Rakefile
152
160
  - test/dummy/README.rdoc
153
161
  - test/dummy/script/rails
162
+ - test/dummy/test/fixtures/users.yml
163
+ - test/dummy/test/unit/user_test.rb
154
164
  - test/power_visit_test.rb
155
165
  - test/test_helper.rb