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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc69f945d9e60fb1789d05dd8bb49372f30c945a
4
- data.tar.gz: c9d8a2ebd3da026072d6eaba089b5891a70282ec
3
+ metadata.gz: 66e4d5caa3c8ccc05ee39f32a206a2cb13203617
4
+ data.tar.gz: 14b1902a40b2a587f0ff40288cba2689fa92d3c2
5
5
  SHA512:
6
- metadata.gz: fe7de087fef2e72770ae843ab598faeaf1442aa4915f066e19dd44734cecb09c8115ee1d137f401b67a42d2eb6b18c23e6b24c9b459846ef3e75f9eff3688a0d
7
- data.tar.gz: 4179dfd78e1ff02bb541be2f3f44330992a23d1500a27d9566d7730b4f0dbdd7184460ab5fbcd2c53e6bcdca9c733a8d8651d6a73280b3e7a20cbe3cd6783e25
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
@@ -1,3 +1,3 @@
1
1
  module ApiFlashcards
2
- VERSION = "0.0.1.4"
2
+ VERSION = "0.0.1.5"
3
3
  end
@@ -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
   (0.3ms) ROLLBACK
750
+  (0.2ms) BEGIN
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
+  (0.2ms) ROLLBACK
755
+  (0.2ms) BEGIN
756
+  (0.2ms) SAVEPOINT active_record_1
757
+ SQL (0.6ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
759
+ Processing by ApiFlashcards::TestController#hello as HTML
760
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["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
+  (0.3ms) ROLLBACK
764
+  (0.2ms) BEGIN
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
+  (0.4ms) ROLLBACK
769
+  (0.3ms) BEGIN
770
+  (0.3ms) ROLLBACK
771
+  (0.1ms) BEGIN
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
+  (0.2ms) ROLLBACK
776
+  (0.1ms) BEGIN
777
+  (0.3ms) SAVEPOINT active_record_1
778
+ SQL (0.7ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
780
+ Processing by ApiFlashcards::TestController#hello as HTML
781
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["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
+  (0.3ms) ROLLBACK
785
+  (0.1ms) BEGIN
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
+  (0.3ms) ROLLBACK
790
+  (0.1ms) BEGIN
791
+  (0.2ms) SAVEPOINT active_record_1
792
+ SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
794
+ Processing by ApiFlashcards::TestController#hello as HTML
795
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["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
+  (0.3ms) ROLLBACK
799
+  (0.1ms) BEGIN
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
+  (0.2ms) ROLLBACK
804
+  (0.1ms) BEGIN
805
+  (0.2ms) SAVEPOINT active_record_1
806
+ SQL (0.5ms) INSERT INTO "users" ("email", "password_digest", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["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
+  (0.2ms) RELEASE SAVEPOINT active_record_1
808
+ Processing by ApiFlashcards::TestController#hello as HTML
809
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["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
+  (0.3ms) 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
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