dismissible_helpers 0.1.3 → 0.1.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.
@@ -5,12 +5,12 @@ module DismissibleHelpers::Controllers::DismissedHelpers
5
5
  current_user.save!
6
6
  else
7
7
  if cookies[:dismissed_helpers].present?
8
- dismissed_helpers = YAML.load cookies[:dismissed_helpers]
8
+ dismissed_helpers = cookies[:dismissed_helpers].split '|'
9
9
  dismissed_helpers += [params[:helper]]
10
10
  else
11
11
  dismissed_helpers = [params[:helper]]
12
12
  end
13
- cookies[:dismissed_helpers] = dismissed_helpers.to_yaml
13
+ cookies[:dismissed_helpers] = dismissed_helpers.join '|'
14
14
  end
15
15
 
16
16
  render :json => {}, :status => :ok
@@ -17,7 +17,7 @@ module DismissibleHelpers::Helpers::DismissibleHelpers
17
17
  dismissed_helpers = current_user.dismissed_helpers
18
18
  else
19
19
  if cookies[:dismissed_helpers].present?
20
- dismissed_helpers = YAML.load cookies[:dismissed_helpers]
20
+ dismissed_helpers = cookies[:dismissed_helpers].split '|'
21
21
  else
22
22
  dismissed_helpers = []
23
23
  end
@@ -1,3 +1,3 @@
1
1
  module DismissibleHelpers
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
Binary file
@@ -845,3 +845,83 @@ Served asset /application.js - 304 Not Modified (0ms)
845
845
   (0.1ms) DELETE FROM sqlite_sequence where name = 'identities';
846
846
   (0.8ms) DELETE FROM "users";
847
847
   (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
848
+ Connecting to database specified by database.yml
849
+  (0.1ms) begin transaction
850
+  (0.1ms) SAVEPOINT active_record_1
851
+ SQL (9.6ms) INSERT INTO "users" ("created_at", "dismissed_helpers", "email", "session_token", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Wed, 09 Jan 2013 11:58:54 UTC +00:00], ["dismissed_helpers", nil], ["email", "test@example.com"], ["session_token", nil], ["updated_at", Wed, 09 Jan 2013 11:58:54 UTC +00:00]]
852
+ Identities::Password Exists (0.4ms) SELECT 1 AS one FROM "identities" WHERE "identities"."type" IN ('Identities::Password') AND LOWER("identities"."username") = LOWER('test@example.com') LIMIT 1
853
+ Binary data inserted for `string` type on column `token`
854
+ SQL (1.2ms) 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", Wed, 09 Jan 2013 11:58:54 UTC +00:00], ["remember_token", nil], ["reset_token", nil], ["token", "$2a$10$aUk/1ezExe2Xt2XMr3BkQe3TwwurANd/.mwXjxXq1oq0aqgCO5/SS"], ["type", "Identities::Password"], ["updated_at", Wed, 09 Jan 2013 11:58:54 UTC +00:00], ["username", "test@example.com"]]
855
+  (0.0ms) RELEASE SAVEPOINT active_record_1
856
+ Started GET "/sign_in" for ::ffff:127.0.0.1 at 2013-01-09 06:58:56 -0500
857
+ Processing by SessionsController#new as HTML
858
+ Parameters: {"identity"=>:password}
859
+ 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 (15.3ms)
860
+ Completed 200 OK in 31ms (Views: 29.9ms | ActiveRecord: 0.0ms)
861
+ Started GET "/assets/application.css" for ::ffff:127.0.0.1 at 2013-01-09 06:58:56 -0500
862
+ Served asset /application.css - 200 OK (4ms)
863
+ Started GET "/assets/application.js" for ::ffff:127.0.0.1 at 2013-01-09 06:58:56 -0500
864
+ Served asset /application.js - 200 OK (47ms)
865
+ Started POST "/sign_in" for ::ffff:127.0.0.1 at 2013-01-09 06:58:56 -0500
866
+ Processing by SessionsController#create as HTML
867
+ Parameters: {"utf8"=>"✓", "identities_password"=>"[FILTERED]", "commit"=>"Submit", "identity"=>:password}
868
+ Identities::Password Load (0.2ms) SELECT "identities".* FROM "identities" WHERE "identities"."type" IN ('Identities::Password') AND ("identities"."username" LIKE 'test@example.com') LIMIT 1
869
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
870
+ SQL (0.4ms) UPDATE "users" SET "session_token" = '$2a$10$Ag/90ru.Covq89NBE9uG/.nJLnaFNt7HiH0J5ufbg8OzjKMvK.RHS' WHERE "users"."id" = 1
871
+ Redirected to http://127.0.0.1:3999/
872
+ Completed 302 Found in 189ms (ActiveRecord: 0.7ms)
873
+ Started GET "/" for ::ffff:127.0.0.1 at 2013-01-09 06:58:56 -0500
874
+ Processing by LandingController#show as HTML
875
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."session_token" = '$2a$10$Ag/90ru.Covq89NBE9uG/.nJLnaFNt7HiH0J5ufbg8OzjKMvK.RHS' LIMIT 1
876
+ Rendered landing/show.html.erb within layouts/application (1.7ms)
877
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.1ms)
878
+ Started POST "/dismissed_helpers" for ::ffff:127.0.0.1 at 2013-01-09 06:58:57 -0500
879
+ Processing by DismissedHelpersController#create as JSON
880
+ Parameters: {"helper"=>"helper"}
881
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."session_token" = '$2a$10$Ag/90ru.Covq89NBE9uG/.nJLnaFNt7HiH0J5ufbg8OzjKMvK.RHS' LIMIT 1
882
+  (0.0ms) SAVEPOINT active_record_1
883
+ Identities::Password Load (0.2ms) SELECT "identities".* FROM "identities" WHERE "identities"."type" IN ('Identities::Password') AND "identities"."account_id" = 1 LIMIT 1
884
+ 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
885
+  (0.1ms) UPDATE "users" SET "dismissed_helpers" = '---
886
+ - helper
887
+ ', "updated_at" = '2013-01-09 11:58:57.046299' WHERE "users"."id" = 1
888
+  (0.0ms) RELEASE SAVEPOINT active_record_1
889
+ Completed 200 OK in 13ms (Views: 0.1ms | ActiveRecord: 0.5ms)
890
+ Started GET "/" for ::ffff:127.0.0.1 at 2013-01-09 06:58:58 -0500
891
+ Processing by LandingController#show as HTML
892
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."session_token" = '$2a$10$Ag/90ru.Covq89NBE9uG/.nJLnaFNt7HiH0J5ufbg8OzjKMvK.RHS' LIMIT 1
893
+ Rendered landing/show.html.erb within layouts/application (1.1ms)
894
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.1ms)
895
+ Started GET "/sign_out" for ::ffff:127.0.0.1 at 2013-01-09 06:58:58 -0500
896
+ Processing by SessionsController#destroy as HTML
897
+ Redirected to http://127.0.0.1:3999/
898
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
899
+ Started GET "/" for ::ffff:127.0.0.1 at 2013-01-09 06:58:58 -0500
900
+ Processing by LandingController#show as HTML
901
+ Rendered landing/show.html.erb within layouts/application (0.3ms)
902
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
903
+  (1.9ms) rollback transaction
904
+  (1.1ms) DELETE FROM "identities";
905
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'identities';
906
+  (0.7ms) DELETE FROM "users";
907
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
908
+  (0.1ms) begin transaction
909
+ Started GET "/" for ::ffff:127.0.0.1 at 2013-01-09 06:58:58 -0500
910
+ Processing by LandingController#show as HTML
911
+ Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms)
912
+ Started POST "/dismissed_helpers" for ::ffff:127.0.0.1 at 2013-01-09 06:58:58 -0500
913
+ Processing by DismissedHelpersController#create as JSON
914
+ Parameters: {"helper"=>"helper"}
915
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
916
+ Started GET "/" for ::ffff:127.0.0.1 at 2013-01-09 06:58:59 -0500
917
+ Processing by LandingController#show as HTML
918
+ Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms)
919
+  (0.1ms) rollback transaction
920
+  (2.6ms) DELETE FROM "identities";
921
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'identities';
922
+  (0.9ms) DELETE FROM "users";
923
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'users';
924
+  (2.8ms) DELETE FROM "identities";
925
+  (0.2ms) DELETE FROM sqlite_sequence where name = 'identities';
926
+  (1.0ms) DELETE FROM "users";
927
+  (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.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-04 00:00:00.000000000 Z
12
+ date: 2013-01-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -297,7 +297,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
297
297
  version: '0'
298
298
  segments:
299
299
  - 0
300
- hash: 2121948433761923556
300
+ hash: -4551748036911891700
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: 2121948433761923556
309
+ hash: -4551748036911891700
310
310
  requirements: []
311
311
  rubyforge_project:
312
312
  rubygems_version: 1.8.23