api_flashcards 0.0.1.4 → 0.0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/api_flashcards/concerns/user.rb +1 -19
- data/lib/api_flashcards/version.rb +1 -1
- data/spec/dummy/log/test.log +63 -0
- metadata +1 -3
- data/spec/dummy/config/database.yml +0 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66e4d5caa3c8ccc05ee39f32a206a2cb13203617
|
4
|
+
data.tar.gz: 14b1902a40b2a587f0ff40288cba2689fa92d3c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7fbd0ba4b43f8563a874112944e2b152d9169b29e4647973a1cb1860808b2a340ca5b6db0924a94b89344399b28f441dde4dd69c6b892838505336419ed642e
|
7
|
+
data.tar.gz: 2d0f24b9a1d09fe63cf25527c39871888f6607c51eeba0e7bba116ff3c20be13e0beb7e3f4d912fd389b165874a6b13803a02c1c3e345e1ea583b09572d342c8
|
@@ -1,25 +1,7 @@
|
|
1
1
|
module ApiFlashcards
|
2
2
|
module Concerns
|
3
3
|
module User
|
4
|
-
extend ActiveSupport::Concern
|
5
|
-
included do
|
6
|
-
def get_card
|
7
|
-
range = current_block ? current_block.cards : cards
|
8
|
-
range.pending.first || range.repeating.first
|
9
|
-
end
|
10
|
-
|
11
|
-
def has_linked_github?
|
12
|
-
authentications.where(provider: "github").present?
|
13
|
-
end
|
14
|
-
|
15
|
-
def set_current_block(block)
|
16
|
-
update_attribute(:current_block_id, block.id)
|
17
|
-
end
|
18
|
-
|
19
|
-
def reset_current_block
|
20
|
-
update_attribute(:current_block_id, nil)
|
21
|
-
end
|
22
|
-
end
|
4
|
+
extend ActiveSupport::Concern
|
23
5
|
end
|
24
6
|
end
|
25
7
|
end
|
data/spec/dummy/log/test.log
CHANGED
@@ -747,3 +747,66 @@ Processing by ApiFlashcards::TestController#hello as HTML
|
|
747
747
|
Rendered /home/agro/api_flashcards/app/views/api_flashcards/test/hello.html.erb within layouts/api_flashcards/application (0.3ms)
|
748
748
|
Completed 200 OK in 22ms (Views: 9.9ms | ActiveRecord: 0.4ms)
|
749
749
|
[1m[35m (0.3ms)[0m ROLLBACK
|
750
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
751
|
+
Processing by ApiFlashcards::TestController#hello as HTML
|
752
|
+
Filter chain halted as :authenticate_basic rendered or redirected
|
753
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
754
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
755
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
756
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
757
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["email", "test@te.st"], ["password_digest", "$2a$04$WwZRJjbyEuomg5DZWqBBGuEsCjEOk2ngLcP7gxJsv5adJYslBcwvi"], ["created_at", "2015-12-29 18:45:04.192351"], ["updated_at", "2015-12-29 18:45:04.192351"]]
|
758
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
759
|
+
Processing by ApiFlashcards::TestController#hello as HTML
|
760
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["email", "test@te.st"]]
|
761
|
+
Rendered /home/agro/api_flashcards/app/views/api_flashcards/test/hello.html.erb (0.3ms)
|
762
|
+
Completed 200 OK in 27ms (Views: 8.5ms | ActiveRecord: 0.5ms)
|
763
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
764
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
765
|
+
Processing by ApiFlashcards::TestController#hello as HTML
|
766
|
+
Filter chain halted as :authenticate_basic rendered or redirected
|
767
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
768
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
769
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
770
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
771
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
772
|
+
Processing by ApiFlashcards::TestController#hello as HTML
|
773
|
+
Filter chain halted as :authenticate_basic rendered or redirected
|
774
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
775
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
776
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
777
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
778
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["email", "test@te.st"], ["password_digest", "$2a$04$D8qC7sCLMRo3AAx8zFlQxODfLzM/LUht0BiSQW/OAQv.Lz4dzj34y"], ["created_at", "2015-12-29 20:27:15.239113"], ["updated_at", "2015-12-29 20:27:15.239113"]]
|
779
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
780
|
+
Processing by ApiFlashcards::TestController#hello as HTML
|
781
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["email", "test@te.st"]]
|
782
|
+
Rendered /home/agro/api_flashcards/app/views/api_flashcards/test/hello.html.erb (0.5ms)
|
783
|
+
Completed 200 OK in 95ms (Views: 55.2ms | ActiveRecord: 0.5ms)
|
784
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
785
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
786
|
+
Processing by ApiFlashcards::TestController#hello as HTML
|
787
|
+
Filter chain halted as :authenticate_basic rendered or redirected
|
788
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
789
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
790
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
791
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
792
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["email", "test@te.st"], ["password_digest", "$2a$04$o4AcFC8jiHqiQICApU/e1u3vqauIMVU99FDH9fjJhQ6ATHVnqlTYy"], ["created_at", "2015-12-29 20:27:58.611752"], ["updated_at", "2015-12-29 20:27:58.611752"]]
|
793
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
794
|
+
Processing by ApiFlashcards::TestController#hello as HTML
|
795
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["email", "test@te.st"]]
|
796
|
+
Rendered /home/agro/api_flashcards/app/views/api_flashcards/test/hello.html.erb (0.3ms)
|
797
|
+
Completed 200 OK in 20ms (Views: 8.3ms | ActiveRecord: 0.5ms)
|
798
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
799
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
800
|
+
Processing by ApiFlashcards::TestController#hello as HTML
|
801
|
+
Filter chain halted as :authenticate_basic rendered or redirected
|
802
|
+
Completed 401 Unauthorized in 0ms (ActiveRecord: 0.0ms)
|
803
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
804
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
805
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
806
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["email", "test@te.st"], ["password_digest", "$2a$04$heMu1NSx9yYYehj94OIgW.hWRIXbmt/8e7YqzTRmKXi/rN2Oox0ni"], ["created_at", "2015-12-29 20:28:09.424117"], ["updated_at", "2015-12-29 20:28:09.424117"]]
|
807
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
808
|
+
Processing by ApiFlashcards::TestController#hello as HTML
|
809
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m [["email", "test@te.st"]]
|
810
|
+
Rendered /home/agro/api_flashcards/app/views/api_flashcards/test/hello.html.erb (0.3ms)
|
811
|
+
Completed 200 OK in 20ms (Views: 8.4ms | ActiveRecord: 0.4ms)
|
812
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api_flashcards
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shkrt
|
@@ -132,7 +132,6 @@ files:
|
|
132
132
|
- spec/dummy/config.ru
|
133
133
|
- spec/dummy/config/application.rb
|
134
134
|
- spec/dummy/config/boot.rb
|
135
|
-
- spec/dummy/config/database.yml
|
136
135
|
- spec/dummy/config/database.yml.travis
|
137
136
|
- spec/dummy/config/environment.rb
|
138
137
|
- spec/dummy/config/environments/development.rb
|
@@ -210,7 +209,6 @@ test_files:
|
|
210
209
|
- spec/dummy/config/environments/production.rb
|
211
210
|
- spec/dummy/config/environments/test.rb
|
212
211
|
- spec/dummy/config/environments/development.rb
|
213
|
-
- spec/dummy/config/database.yml
|
214
212
|
- spec/dummy/config/initializers/assets.rb
|
215
213
|
- spec/dummy/config/initializers/mime_types.rb
|
216
214
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
@@ -1,23 +0,0 @@
|
|
1
|
-
default: &default
|
2
|
-
adapter: postgresql
|
3
|
-
pool: 5
|
4
|
-
timeout: 5000
|
5
|
-
encoding: utf8
|
6
|
-
username: postgres
|
7
|
-
password: qwerty
|
8
|
-
host: localhost
|
9
|
-
|
10
|
-
development:
|
11
|
-
<<: *default
|
12
|
-
database: dummy_development
|
13
|
-
|
14
|
-
# Warning: The database defined as "test" will be erased and
|
15
|
-
# re-generated from your development database when you run "rake".
|
16
|
-
# Do not set this db to the same as development or production.
|
17
|
-
test:
|
18
|
-
<<: *default
|
19
|
-
database: dummy_test
|
20
|
-
|
21
|
-
production:
|
22
|
-
<<: *default
|
23
|
-
database: dummy_production
|