dismissible_helpers 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/assets/javascripts/dismissible_helpers.coffee +6 -3
- data/lib/dismissible_helpers/version.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +90 -0
- data/spec/dummy/tmp/cache/assets/CE3/590/sprockets%2F60f1e97d7008b3ed41f72855a4228bb9 +0 -0
- data/spec/dummy/tmp/cache/assets/D0B/350/sprockets%2F0c6a94a65b00a6e80488b89705ee0c5a +0 -0
- data/spec/dummy/tmp/cache/assets/D23/B10/sprockets%2Fc2a831ed79df487d6485a5c9c52766c2 +0 -0
- data/spec/dummy/tmp/cache/assets/DE9/260/sprockets%2Fadd025ab0eb13a6d4180af43d5df39df +0 -0
- data/spec/dummy/tmp/cache/assets/E72/C10/sprockets%2Fcee94ff2e026b6ecc66c7fcef96c1fc8 +0 -0
- metadata +3 -3
@@ -6,16 +6,19 @@
|
|
6
6
|
else
|
7
7
|
closeSelector = '.close'
|
8
8
|
|
9
|
-
@find(closeSelector).click (event)
|
9
|
+
@find(closeSelector).click (event) ->
|
10
|
+
$target = $ event.target
|
11
|
+
$helper = $target.parent()
|
10
12
|
event.preventDefault()
|
11
|
-
|
13
|
+
|
14
|
+
$helper.dismiss(options)
|
12
15
|
|
13
16
|
$.fn.dismiss = (options) ->
|
14
17
|
name = @.attr('data-dismissible-name')
|
15
18
|
$.ajax
|
16
19
|
url: '/dismissed_helpers'
|
17
20
|
type: 'POST'
|
18
|
-
dataType:
|
21
|
+
dataType: 'json'
|
19
22
|
data:
|
20
23
|
helper: name
|
21
24
|
success: =>
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -755,3 +755,93 @@ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
|
|
755
755
|
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'identities';
|
756
756
|
[1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
|
757
757
|
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
758
|
+
Connecting to database specified by database.yml
|
759
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
760
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
761
|
+
[1m[36mSQL (3.9ms)[0m [1mINSERT INTO "users" ("created_at", "dismissed_helpers", "email", "session_token", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["created_at", Fri, 04 Jan 2013 15:16:55 UTC +00:00], ["dismissed_helpers", nil], ["email", "test@example.com"], ["session_token", nil], ["updated_at", Fri, 04 Jan 2013 15:16:55 UTC +00:00]]
|
762
|
+
[1m[35mIdentities::Password Exists (0.1ms)[0m SELECT 1 AS one FROM "identities" WHERE "identities"."type" IN ('Identities::Password') AND LOWER("identities"."username") = LOWER('test@example.com') LIMIT 1
|
763
|
+
Binary data inserted for `string` type on column `token`
|
764
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "identities" ("account_id", "account_type", "created_at", "remember_token", "reset_token", "token", "type", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["account_id", 1], ["account_type", "User"], ["created_at", Fri, 04 Jan 2013 15:16:55 UTC +00:00], ["remember_token", nil], ["reset_token", nil], ["token", "$2a$10$VUi8RW.3UIJhP7uGolZiheOfRpchc4uyjW5.nSdK0ajY/CN97r3aS"], ["type", "Identities::Password"], ["updated_at", Fri, 04 Jan 2013 15:16:55 UTC +00:00], ["username", "test@example.com"]]
|
765
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
766
|
+
Started GET "/sign_in" for 127.0.0.1 at 2013-01-04 10:16:57 -0500
|
767
|
+
Processing by SessionsController#new as HTML
|
768
|
+
Parameters: {"identity"=>:password}
|
769
|
+
Rendered /Users/dan/.rbenv/versions/1.9.3-p286/lib/ruby/gems/1.9.1/gems/easy_auth-password-0.0.6/app/views/sessions/new.html.erb within layouts/application (10.5ms)
|
770
|
+
Completed 200 OK in 57ms (Views: 55.7ms | ActiveRecord: 0.0ms)
|
771
|
+
Started GET "/assets/application.css" for 127.0.0.1 at 2013-01-04 10:16:57 -0500
|
772
|
+
Served asset /application.css - 200 OK (2ms)
|
773
|
+
Started GET "/assets/application.js" for 127.0.0.1 at 2013-01-04 10:16:57 -0500
|
774
|
+
Compiled dismissible_helpers.js (92ms) (pid 35274)
|
775
|
+
Compiled application.js (57ms) (pid 35274)
|
776
|
+
Served asset /application.js - 200 OK (162ms)
|
777
|
+
Started POST "/sign_in" for 127.0.0.1 at 2013-01-04 10:16:57 -0500
|
778
|
+
Processing by SessionsController#create as HTML
|
779
|
+
Parameters: {"utf8"=>"✓", "identities_password"=>"[FILTERED]", "commit"=>"Submit", "identity"=>:password}
|
780
|
+
[1m[36mIdentities::Password Load (0.2ms)[0m [1mSELECT "identities".* FROM "identities" WHERE "identities"."type" IN ('Identities::Password') AND ("identities"."username" LIKE 'test@example.com') LIMIT 1[0m
|
781
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
|
782
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "users" SET "session_token" = '$2a$10$jdDna0BgKanGzrwIV5g/pexz3SEupi9Q2iv.obN59ChB5tYHQxc4e' WHERE "users"."id" = 1[0m
|
783
|
+
Redirected to http://127.0.0.1:3999/
|
784
|
+
Completed 302 Found in 156ms (ActiveRecord: 0.9ms)
|
785
|
+
Started GET "/" for 127.0.0.1 at 2013-01-04 10:16:57 -0500
|
786
|
+
Processing by LandingController#show as HTML
|
787
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."session_token" = '$2a$10$jdDna0BgKanGzrwIV5g/pexz3SEupi9Q2iv.obN59ChB5tYHQxc4e' LIMIT 1
|
788
|
+
Rendered landing/show.html.erb within layouts/application (1.7ms)
|
789
|
+
Completed 200 OK in 4ms (Views: 4.0ms | ActiveRecord: 0.1ms)
|
790
|
+
Started POST "/dismissed_helpers" for 127.0.0.1 at 2013-01-04 10:16:57 -0500
|
791
|
+
Processing by DismissedHelpersController#create as JSON
|
792
|
+
Parameters: {"helper"=>"helper"}
|
793
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."session_token" = '$2a$10$jdDna0BgKanGzrwIV5g/pexz3SEupi9Q2iv.obN59ChB5tYHQxc4e' LIMIT 1[0m
|
794
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
795
|
+
[1m[36mIdentities::Password Load (0.1ms)[0m [1mSELECT "identities".* FROM "identities" WHERE "identities"."type" IN ('Identities::Password') AND "identities"."account_id" = 1 LIMIT 1[0m
|
796
|
+
[1m[35mIdentities::Password Exists (0.1ms)[0m SELECT 1 AS one FROM "identities" WHERE "identities"."type" IN ('Identities::Password') AND (LOWER("identities"."username") = LOWER('test@example.com') AND "identities"."id" != 1) LIMIT 1
|
797
|
+
[1m[36m (0.1ms)[0m [1mUPDATE "users" SET "dismissed_helpers" = '---
|
798
|
+
- helper
|
799
|
+
', "updated_at" = '2013-01-04 15:16:57.820362' WHERE "users"."id" = 1[0m
|
800
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
801
|
+
Completed 200 OK in 43ms (Views: 0.2ms | ActiveRecord: 0.5ms)
|
802
|
+
Started GET "/" for 127.0.0.1 at 2013-01-04 10:16:58 -0500
|
803
|
+
Processing by LandingController#show as HTML
|
804
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."session_token" = '$2a$10$jdDna0BgKanGzrwIV5g/pexz3SEupi9Q2iv.obN59ChB5tYHQxc4e' LIMIT 1[0m
|
805
|
+
Rendered landing/show.html.erb within layouts/application (1.1ms)
|
806
|
+
Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)
|
807
|
+
Started GET "/assets/application.js" for 127.0.0.1 at 2013-01-04 10:16:58 -0500
|
808
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
809
|
+
Started GET "/sign_out" for 127.0.0.1 at 2013-01-04 10:16:58 -0500
|
810
|
+
Processing by SessionsController#destroy as HTML
|
811
|
+
Redirected to http://127.0.0.1:3999/
|
812
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
813
|
+
Started GET "/" for 127.0.0.1 at 2013-01-04 10:16:58 -0500
|
814
|
+
Processing by LandingController#show as HTML
|
815
|
+
Rendered landing/show.html.erb within layouts/application (0.3ms)
|
816
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
817
|
+
Started GET "/assets/application.js" for 127.0.0.1 at 2013-01-04 10:16:58 -0500
|
818
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
819
|
+
[1m[35m (1.5ms)[0m rollback transaction
|
820
|
+
[1m[36m (1.0ms)[0m [1mDELETE FROM "identities";[0m
|
821
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'identities';
|
822
|
+
[1m[36m (0.6ms)[0m [1mDELETE FROM "users";[0m
|
823
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
824
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
825
|
+
Started GET "/" for 127.0.0.1 at 2013-01-04 10:16:58 -0500
|
826
|
+
Processing by LandingController#show as HTML
|
827
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
828
|
+
Started GET "/assets/application.js" for 127.0.0.1 at 2013-01-04 10:16:58 -0500
|
829
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
830
|
+
Started POST "/dismissed_helpers" for 127.0.0.1 at 2013-01-04 10:16:58 -0500
|
831
|
+
Processing by DismissedHelpersController#create as JSON
|
832
|
+
Parameters: {"helper"=>"helper"}
|
833
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
834
|
+
Started GET "/" for 127.0.0.1 at 2013-01-04 10:16:59 -0500
|
835
|
+
Processing by LandingController#show as HTML
|
836
|
+
Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms)
|
837
|
+
Started GET "/assets/application.js" for 127.0.0.1 at 2013-01-04 10:16:59 -0500
|
838
|
+
Served asset /application.js - 304 Not Modified (0ms)
|
839
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
840
|
+
[1m[36m (2.4ms)[0m [1mDELETE FROM "identities";[0m
|
841
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'identities';
|
842
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
|
843
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
844
|
+
[1m[36m (2.3ms)[0m [1mDELETE FROM "identities";[0m
|
845
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'identities';
|
846
|
+
[1m[36m (0.8ms)[0m [1mDELETE FROM "users";[0m
|
847
|
+
[1m[35m (0.1ms)[0m DELETE FROM sqlite_sequence where name = 'users';
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dismissible_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -297,7 +297,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
297
297
|
version: '0'
|
298
298
|
segments:
|
299
299
|
- 0
|
300
|
-
hash: -
|
300
|
+
hash: -4114213819911262576
|
301
301
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
302
302
|
none: false
|
303
303
|
requirements:
|
@@ -306,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
306
306
|
version: '0'
|
307
307
|
segments:
|
308
308
|
- 0
|
309
|
-
hash: -
|
309
|
+
hash: -4114213819911262576
|
310
310
|
requirements: []
|
311
311
|
rubyforge_project:
|
312
312
|
rubygems_version: 1.8.23
|