nostalgic 0.1.3 → 0.1.4

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: b0f5c1b2d484ccbb20b2c5325c1d53919f9762f1
4
- data.tar.gz: 2c619a38306ad3d63b9ea1ab1626c3162820c678
3
+ metadata.gz: cebfc0dc99b02f2fbe4fbe56a003c3a79721ac0b
4
+ data.tar.gz: fc403186a7edf6742f87c136b4be0075a2bfcf25
5
5
  SHA512:
6
- metadata.gz: bd93d1d171054652007844043c59997ee29eadad39e441adddacb35d5d7d1f77d5e918693fcc644a87eae0fcf06b951877365ed38a27b05d614600109bf35b63
7
- data.tar.gz: 93369f9a9acc05533eff8c2f4d6147c98bc571815e6b70c7eee4426c0f91297c675cbab1f23fc8688fab4fd3d6d75907a31ca2abe663ec2ab8766393f01a4919
6
+ metadata.gz: 197d5c3126f20a2f8060483167a0c5c4c81818e598a00b8559cb39dd7b6f12ee73cebf7aada7cb1d182ce86801693ef237d25fdfa5c4d02012030aa99add08ca
7
+ data.tar.gz: 0d59a60cec91627d1d994d6ffcf391193adc4318a68b62cd30b7148ec28a8209cd72811f39106f45e5c659f9cf2610f77a553f64974c7bb9104cd6858ad9c6e2
@@ -0,0 +1,19 @@
1
+ var nostalgic = [];
2
+
3
+ nostalgic.remove_row = function(trigger) {
4
+ var tr = $(trigger).closest('tr');
5
+ tr.find('input[name*="\[_destroy\]"]').val(true);
6
+ tr.hide();
7
+ };
8
+
9
+ nostalgic.edit_nostalgic_attr = function(trigger) {
10
+ var table = $(trigger).closest('table');
11
+
12
+ table.find('tbody').toggle();
13
+ if (table.find('tbody').is(':visible')) {
14
+ $(trigger).siblings().show();
15
+ hyacc.init_datepicker_within(table);
16
+ } else {
17
+ $(trigger).siblings().hide();
18
+ }
19
+ };
@@ -0,0 +1,10 @@
1
+ table.nostalgic {
2
+ border: none;
3
+ margin: 0;
4
+ padding: 0;
5
+ td {
6
+ border: none;
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+ }
@@ -1,3 +1,3 @@
1
1
  module Nostalgic
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
Binary file
@@ -5861,3 +5861,67 @@ NostalgicTest: test_it_does_something_useful
5861
5861
  NostalgicTest: test_that_it_has_a_version_number
5862
5862
  ------------------------------------------------
5863
5863
   (0.1ms) rollback transaction
5864
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
5865
+  (0.1ms) begin transaction
5866
+ Fixture Delete (0.4ms) DELETE FROM "nostalgic_attrs"
5867
+ Fixture Insert (0.5ms) INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2016-07-20', '2016-08-20 02:31:10', '2016-08-20 02:31:10')
5868
+ Fixture Insert (0.1ms) INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2016-08-20', '2016-08-20 02:31:10', '2016-08-20 02:31:10')
5869
+ Fixture Insert (0.1ms) INSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2016-08-21', '2016-08-20 02:31:10', '2016-08-20 02:31:10')
5870
+ Fixture Delete (0.1ms) DELETE FROM "users"
5871
+ Fixture Insert (0.1ms) INSERT INTO "users" ("id", "email", "tel", "created_at", "updated_at") VALUES (1, 'test1@example.com', '222-123-4567', '2016-08-20 02:31:10', '2016-08-20 02:31:10')
5872
+  (2.6ms) commit transaction
5873
+  (0.1ms) begin transaction
5874
+ --------------------------------------------
5875
+ NostalgicTest: test_it_does_something_useful
5876
+ --------------------------------------------
5877
+  (0.0ms) rollback transaction
5878
+  (0.0ms) begin transaction
5879
+ ------------------------------------------------
5880
+ NostalgicTest: test_that_it_has_a_version_number
5881
+ ------------------------------------------------
5882
+  (0.0ms) rollback transaction
5883
+  (0.0ms) begin transaction
5884
+ -----------------------------------------
5885
+ Nostalgic::AttrTest: test_nostalgic_model
5886
+ -----------------------------------------
5887
+  (0.1ms) rollback transaction
5888
+  (0.1ms) begin transaction
5889
+ ------------------
5890
+ UserTest: test_tel
5891
+ ------------------
5892
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
5893
+ Nostalgic::Attr Load (0.2ms) SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-08-20') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
5894
+ Nostalgic::Attr Load (0.1ms) SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-08-19') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
5895
+ Nostalgic::Attr Load (0.1ms) SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-08-20') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
5896
+ Nostalgic::Attr Load (0.1ms) SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-08-21') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
5897
+  (0.0ms) rollback transaction
5898
+  (0.0ms) begin transaction
5899
+ -------------------
5900
+ UserTest: test_tels
5901
+ -------------------
5902
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
5903
+ Nostalgic::Attr Load (0.1ms) SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-08-20') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
5904
+  (0.2ms) SELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
5905
+  (0.1ms) rollback transaction
5906
+  (0.0ms) begin transaction
5907
+ -----------------------
5908
+ UserTest: test_save_tel
5909
+ -----------------------
5910
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
5911
+ Nostalgic::Attr Load (0.1ms) SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-08-20') ORDER BY effective_at desc LIMIT 1 [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
5912
+ Nostalgic::Attr Load (0.1ms) SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-08-20') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
5913
+  (0.0ms) SAVEPOINT active_record_1
5914
+ SQL (0.2ms) UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "444-123-4567"], ["updated_at", "2016-08-20 02:31:10.515542"], ["id", 1]]
5915
+ Nostalgic::Attr Load (0.1ms) SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-08-20"]]
5916
+ SQL (0.1ms) UPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ? [["value", "444-123-4567"], ["updated_at", "2016-08-20 02:31:10.517977"], ["id", 2]]
5917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5918
+ Nostalgic::Attr Load (0.1ms) SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-08-20') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
5919
+  (0.1ms) SAVEPOINT active_record_1
5920
+ SQL (0.1ms) UPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ? [["tel", "555-123-4567"], ["updated_at", "2016-08-20 02:31:10.519864"], ["id", 1]]
5921
+ Nostalgic::Attr Load (0.0ms) SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-08-22"]]
5922
+ SQL (0.2ms) INSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["effective_at", "2016-08-22"], ["value", "555-123-4567"], ["created_at", "2016-08-20 02:31:10.521854"], ["updated_at", "2016-08-20 02:31:10.521854"]]
5923
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5924
+ Nostalgic::Attr Load (0.1ms) SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-08-20') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
5925
+ Nostalgic::Attr Load (0.1ms) SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-08-21') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
5926
+ Nostalgic::Attr Load (0.2ms) SELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2016-08-22') ORDER BY effective_at desc LIMIT 1 [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
5927
+  (0.2ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nostalgic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-19 00:00:00.000000000 Z
11
+ date: 2016-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -95,7 +95,11 @@ extra_rdoc_files: []
95
95
  files:
96
96
  - README.md
97
97
  - Rakefile
98
+ - app/assets/images/nostalgic/list.png
99
+ - app/assets/images/nostalgic/minus.png
100
+ - app/assets/javascripts/nostalgic.js
98
101
  - app/assets/javascripts/nostalgic/application.js
102
+ - app/assets/stylesheets/nostalgic.css.scss
99
103
  - app/assets/stylesheets/nostalgic/application.css
100
104
  - app/controllers/nostalgic/application_controller.rb
101
105
  - app/helpers/nostalgic/application_helper.rb