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 +4 -4
- data/app/assets/images/nostalgic/list.png +0 -0
- data/app/assets/images/nostalgic/minus.png +0 -0
- data/app/assets/javascripts/nostalgic.js +19 -0
- data/app/assets/stylesheets/nostalgic.css.scss +10 -0
- data/lib/nostalgic/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +64 -0
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cebfc0dc99b02f2fbe4fbe56a003c3a79721ac0b
|
4
|
+
data.tar.gz: fc403186a7edf6742f87c136b4be0075a2bfcf25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 197d5c3126f20a2f8060483167a0c5c4c81818e598a00b8559cb39dd7b6f12ee73cebf7aada7cb1d182ce86801693ef237d25fdfa5c4d02012030aa99add08ca
|
7
|
+
data.tar.gz: 0d59a60cec91627d1d994d6ffcf391193adc4318a68b62cd30b7148ec28a8209cd72811f39106f45e5c659f9cf2610f77a553f64974c7bb9104cd6858ad9c6e2
|
Binary file
|
Binary file
|
@@ -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
|
+
};
|
data/lib/nostalgic/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -5861,3 +5861,67 @@ NostalgicTest: test_it_does_something_useful
|
|
5861
5861
|
NostalgicTest: test_that_it_has_a_version_number
|
5862
5862
|
------------------------------------------------
|
5863
5863
|
[1m[35m (0.1ms)[0m rollback transaction
|
5864
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5865
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5866
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "nostalgic_attrs"[0m
|
5867
|
+
[1m[35mFixture Insert (0.5ms)[0m 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
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT 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')[0m
|
5869
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "users"[0m
|
5871
|
+
[1m[35mFixture Insert (0.1ms)[0m 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
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
5873
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5874
|
+
--------------------------------------------
|
5875
|
+
NostalgicTest: test_it_does_something_useful
|
5876
|
+
--------------------------------------------
|
5877
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5878
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5879
|
+
------------------------------------------------
|
5880
|
+
NostalgicTest: test_that_it_has_a_version_number
|
5881
|
+
------------------------------------------------
|
5882
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5883
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5884
|
+
-----------------------------------------
|
5885
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
5886
|
+
-----------------------------------------
|
5887
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5888
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5889
|
+
------------------
|
5890
|
+
UserTest: test_tel
|
5891
|
+
------------------
|
5892
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
5893
|
+
[1m[35mNostalgic::Attr Load (0.2ms)[0m 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
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "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[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
5895
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m 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
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "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[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
5897
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5898
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5899
|
+
-------------------
|
5900
|
+
UserTest: test_tels
|
5901
|
+
-------------------
|
5902
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
5903
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "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[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
5904
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5906
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5907
|
+
-----------------------
|
5908
|
+
UserTest: test_save_tel
|
5909
|
+
-----------------------
|
5910
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
5911
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m 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
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "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[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
5913
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5914
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", "2016-08-20 02:31:10.515542"], ["id", 1]]
|
5915
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", "2016-08-20 02:31:10.517977"], ["id", 2]]
|
5917
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5918
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "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[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
5919
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5920
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", "2016-08-20 02:31:10.519864"], ["id", 1]]
|
5921
|
+
[1m[35mNostalgic::Attr Load (0.0ms)[0m 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
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "effective_at", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5924
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1mSELECT "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[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
5925
|
+
[1m[35mNostalgic::Attr Load (0.1ms)[0m 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
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1mSELECT "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[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"]]
|
5927
|
+
[1m[35m (0.2ms)[0m 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.
|
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-
|
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
|