royce 1.0.3 → 1.0.4

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.
@@ -4,6 +4,7 @@ ENV["RAILS_ENV"] = "test"
4
4
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
5
  require "rails/test_help"
6
6
  require "minitest/rails"
7
+ require "pry"
7
8
 
8
9
  Rails.backtrace_cleaner.remove_silencers!
9
10
 
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: royce
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Nash
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-23 00:00:00.000000000 Z
11
+ date: 2014-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 4.1.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 4.1.4
27
27
  - !ruby/object:Gem::Dependency
@@ -52,6 +52,48 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry-doc
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry-byebug
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
55
97
  description: Roles.
56
98
  email:
57
99
  - martin.j.nash@gmail.com
@@ -101,12 +143,11 @@ files:
101
143
  - test/dummy/config/locales/en.yml
102
144
  - test/dummy/config/routes.rb
103
145
  - test/dummy/config/secrets.yml
104
- - test/dummy/db/development.sqlite3
105
146
  - test/dummy/db/migrate/20140817214831_create_users.rb
106
147
  - test/dummy/db/migrate/20140821050450_create_royce.rb
107
148
  - test/dummy/db/schema.rb
149
+ - test/dummy/db/seeds.rb
108
150
  - test/dummy/db/test.sqlite3
109
- - test/dummy/log/development.log
110
151
  - test/dummy/log/test.log
111
152
  - test/dummy/public/404.html
112
153
  - test/dummy/public/422.html
@@ -169,12 +210,11 @@ test_files:
169
210
  - test/dummy/config/routes.rb
170
211
  - test/dummy/config/secrets.yml
171
212
  - test/dummy/config.ru
172
- - test/dummy/db/development.sqlite3
173
213
  - test/dummy/db/migrate/20140817214831_create_users.rb
174
214
  - test/dummy/db/migrate/20140821050450_create_royce.rb
175
215
  - test/dummy/db/schema.rb
216
+ - test/dummy/db/seeds.rb
176
217
  - test/dummy/db/test.sqlite3
177
- - test/dummy/log/development.log
178
218
  - test/dummy/log/test.log
179
219
  - test/dummy/public/404.html
180
220
  - test/dummy/public/422.html
@@ -186,3 +226,4 @@ test_files:
186
226
  - test/roller_test.rb
187
227
  - test/scopes_test.rb
188
228
  - test/test_helper.rb
229
+ has_rdoc:
@@ -1,136 +0,0 @@
1
-  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
-  (0.1ms) select sqlite_version(*)
3
-  (0.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
5
- Migrating to CreateRoller (20140817214440)
6
-  (0.1ms) begin transaction
7
-  (0.4ms) CREATE TABLE "roller" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
8
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140817214440"]]
9
-  (0.8ms) commit transaction
10
- Migrating to CreateUsers (20140817214831)
11
-  (0.0ms) begin transaction
12
-  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
13
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140817214831"]]
14
-  (0.6ms) commit transaction
15
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
16
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
17
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
18
-  (7.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
19
-  (0.1ms) select sqlite_version(*)
20
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
21
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
22
- Migrating to CreateRoller (20140817214440)
23
-  (0.0ms) begin transaction
24
-  (0.3ms) CREATE TABLE "roller" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "created_at" datetime, "updated_at" datetime)
25
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140817214440"]]
26
-  (0.8ms) commit transaction
27
- Migrating to CreateUsers (20140817214831)
28
-  (0.0ms) begin transaction
29
-  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
30
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140817214831"]]
31
-  (0.7ms) commit transaction
32
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
33
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
35
-  (7.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
36
-  (0.1ms) select sqlite_version(*)
37
-  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
38
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
39
- Migrating to CreateUsers (20140817214831)
40
-  (0.1ms) begin transaction
41
-  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
42
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140817214831"]]
43
-  (0.8ms) commit transaction
44
- Migrating to CreateRoller (20140817232923)
45
-  (0.0ms) begin transaction
46
-  (0.3ms) CREATE TABLE "roller_role" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "rolleable_id" integer, "rolleable_type" varchar(255), "created_at" datetime, "updated_at" datetime)
47
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140817232923"]]
48
-  (0.8ms) commit transaction
49
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
50
-  (7.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
51
-  (0.1ms) select sqlite_version(*)
52
-  (1.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
53
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
54
- Migrating to CreateUsers (20140817214831)
55
-  (0.1ms) begin transaction
56
-  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
57
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140817214831"]]
58
-  (0.8ms) commit transaction
59
- Migrating to CreateRoller (20140817232923)
60
-  (0.0ms) begin transaction
61
-  (0.3ms) CREATE TABLE "roller_role" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "rolleable_id" integer, "rolleable_type" varchar(255), "created_at" datetime, "updated_at" datetime)
62
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140817232923"]]
63
-  (0.7ms) commit transaction
64
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
65
- Roller::Role Load (1.9ms) SELECT "roller_role".* FROM "roller_role"
66
- Roller::Role Load (0.2ms) SELECT "roller_role".* FROM "roller_role" WHERE "roller_role"."name" = 'user' LIMIT 1
67
- SQLite3::SQLException: no such column: roller_role.name: SELECT "roller_role".* FROM "roller_role" WHERE "roller_role"."name" = 'user' LIMIT 1
68
- Roller::Role Load (0.2ms) SELECT "roller_role".* FROM "roller_role" WHERE "roller_role"."name" = 'user' LIMIT 1
69
- SQLite3::SQLException: no such column: roller_role.name: SELECT "roller_role".* FROM "roller_role" WHERE "roller_role"."name" = 'user' LIMIT 1
70
- Roller::Role Load (0.3ms) SELECT "roller_role".* FROM "roller_role" WHERE "roller_role"."name" = 'user' LIMIT 1
71
- SQLite3::SQLException: no such column: roller_role.name: SELECT "roller_role".* FROM "roller_role" WHERE "roller_role"."name" = 'user' LIMIT 1
72
- Roller::Role Load (0.3ms) SELECT "roller_role".* FROM "roller_role" WHERE "roller_role"."name" = 'user' LIMIT 1
73
- SQLite3::SQLException: no such column: roller_role.name: SELECT "roller_role".* FROM "roller_role" WHERE "roller_role"."name" = 'user' LIMIT 1
74
-  (1.1ms) CREATE TABLE "royce_connector" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "roleable_id" integer NOT NULL, "roleable_type" varchar(255) NOT NULL, "role_id" integer NOT NULL) 
75
-  (0.1ms) select sqlite_version(*)
76
-  (0.8ms) CREATE INDEX "index_royce_connector_on_role_id" ON "royce_connector" ("role_id")
77
-  (0.1ms) SELECT sql
78
- FROM sqlite_master
79
- WHERE name='index_royce_connector_on_role_id' AND type='index'
80
- UNION ALL
81
- SELECT sql
82
- FROM sqlite_temp_master
83
- WHERE name='index_royce_connector_on_role_id' AND type='index'
84
-
85
-  (0.9ms) CREATE INDEX "index_royce_connector_on_roleable_id_and_roleable_type" ON "royce_connector" ("roleable_id", "roleable_type")
86
-  (0.8ms) CREATE TABLE "royce_role" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255) NOT NULL, "created_at" datetime, "updated_at" datetime)
87
-  (0.8ms) CREATE INDEX "index_royce_role_on_name" ON "royce_role" ("name")
88
-  (0.8ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
89
-  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
90
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
91
-  (0.1ms) SELECT version FROM "schema_migrations"
92
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140821050450')
93
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140817214831')
94
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
95
-  (7.1ms) CREATE TABLE "royce_connector" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "roleable_id" integer NOT NULL, "roleable_type" varchar(255) NOT NULL, "role_id" integer NOT NULL) 
96
-  (0.1ms) select sqlite_version(*)
97
-  (1.0ms) CREATE INDEX "index_royce_connector_on_role_id" ON "royce_connector" ("role_id")
98
-  (0.1ms) SELECT sql
99
- FROM sqlite_master
100
- WHERE name='index_royce_connector_on_role_id' AND type='index'
101
- UNION ALL
102
- SELECT sql
103
- FROM sqlite_temp_master
104
- WHERE name='index_royce_connector_on_role_id' AND type='index'
105
-
106
-  (0.9ms) CREATE INDEX "index_royce_connector_on_roleable_id_and_roleable_type" ON "royce_connector" ("roleable_id", "roleable_type")
107
-  (0.8ms) CREATE TABLE "royce_role" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255) NOT NULL, "created_at" datetime, "updated_at" datetime)
108
-  (0.8ms) CREATE INDEX "index_royce_role_on_name" ON "royce_role" ("name")
109
-  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
110
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
111
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
112
-  (0.1ms) SELECT version FROM "schema_migrations"
113
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140821050450')
114
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140817214831')
115
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
116
-  (7.1ms) CREATE TABLE "royce_connector" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "roleable_id" integer NOT NULL, "roleable_type" varchar(255) NOT NULL, "role_id" integer NOT NULL) 
117
-  (0.1ms) select sqlite_version(*)
118
-  (1.0ms) CREATE INDEX "index_royce_connector_on_role_id" ON "royce_connector" ("role_id")
119
-  (0.2ms) SELECT sql
120
- FROM sqlite_master
121
- WHERE name='index_royce_connector_on_role_id' AND type='index'
122
- UNION ALL
123
- SELECT sql
124
- FROM sqlite_temp_master
125
- WHERE name='index_royce_connector_on_role_id' AND type='index'
126
-
127
-  (1.0ms) CREATE INDEX "index_royce_connector_on_roleable_id_and_roleable_type" ON "royce_connector" ("roleable_id", "roleable_type")
128
-  (1.0ms) CREATE TABLE "royce_role" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(255), "name" varchar(255) NOT NULL, "created_at" datetime, "updated_at" datetime)
129
-  (0.9ms) CREATE INDEX "index_royce_role_on_name" ON "royce_role" ("name")
130
-  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime)
131
-  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
132
-  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
133
-  (0.1ms) SELECT version FROM "schema_migrations"
134
-  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140821050450')
135
-  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20140817214831')
136
- ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"