dismissible_helpers 0.1.1 → 0.1.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.
@@ -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
- @.dismiss(options)
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: 'json'
21
+ dataType: 'json'
19
22
  data:
20
23
  helper: name
21
24
  success: =>
@@ -1,3 +1,3 @@
1
1
  module DismissibleHelpers
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
Binary file
@@ -755,3 +755,93 @@ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
755
755
   (0.1ms) DELETE FROM sqlite_sequence where name = 'identities';
756
756
   (0.8ms) DELETE FROM "users";
757
757
   (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
758
+ Connecting to database specified by database.yml
759
+  (0.1ms) begin transaction
760
+  (0.0ms) SAVEPOINT active_record_1
761
+ SQL (3.9ms) INSERT INTO "users" ("created_at", "dismissed_helpers", "email", "session_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["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
+ Identities::Password Exists (0.1ms) 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
+ SQL (0.4ms) INSERT INTO "identities" ("account_id", "account_type", "created_at", "remember_token", "reset_token", "token", "type", "updated_at", "username") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["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
+  (0.0ms) 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
+ Identities::Password Load (0.2ms) SELECT "identities".* FROM "identities" WHERE "identities"."type" IN ('Identities::Password') AND ("identities"."username" LIKE 'test@example.com') LIMIT 1
781
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
782
+ SQL (0.6ms) UPDATE "users" SET "session_token" = '$2a$10$jdDna0BgKanGzrwIV5g/pexz3SEupi9Q2iv.obN59ChB5tYHQxc4e' WHERE "users"."id" = 1
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
+ User Load (0.1ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."session_token" = '$2a$10$jdDna0BgKanGzrwIV5g/pexz3SEupi9Q2iv.obN59ChB5tYHQxc4e' LIMIT 1
794
+  (0.0ms) SAVEPOINT active_record_1
795
+ Identities::Password Load (0.1ms) SELECT "identities".* FROM "identities" WHERE "identities"."type" IN ('Identities::Password') AND "identities"."account_id" = 1 LIMIT 1
796
+ Identities::Password Exists (0.1ms) 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
+  (0.1ms) UPDATE "users" SET "dismissed_helpers" = '---
798
+ - helper
799
+ ', "updated_at" = '2013-01-04 15:16:57.820362' WHERE "users"."id" = 1
800
+  (0.0ms) 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
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."session_token" = '$2a$10$jdDna0BgKanGzrwIV5g/pexz3SEupi9Q2iv.obN59ChB5tYHQxc4e' LIMIT 1
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
+  (1.5ms) rollback transaction
820
+  (1.0ms) DELETE FROM "identities";
821
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'identities';
822
+  (0.6ms) DELETE FROM "users";
823
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
824
+  (0.0ms) begin transaction
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
+  (0.1ms) rollback transaction
840
+  (2.4ms) DELETE FROM "identities";
841
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'identities';
842
+  (0.8ms) DELETE FROM "users";
843
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
844
+  (2.3ms) DELETE FROM "identities";
845
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'identities';
846
+  (0.8ms) DELETE FROM "users";
847
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
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.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: -1949885104442183790
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: -1949885104442183790
309
+ hash: -4114213819911262576
310
310
  requirements: []
311
311
  rubyforge_project:
312
312
  rubygems_version: 1.8.23