economy 4.0.2.1 → 4.0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/economy/money.rb +1 -1
- data/lib/economy/version.rb +1 -1
- data/test/dummy/log/test.log +306 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 604ef31f6b464eba0d5b4d8c8a454df35fd71702
|
4
|
+
data.tar.gz: 8a1a64a988d2512cd3d9153a9fb546423a4f9119
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10e15710522822f0a16ce3593d062f8fdcf3fe8f0a17bcb42726c3bc5b05c35d14b961bf275115c007f16ced00368facfc68eabf5350d82902d365de410923f9
|
7
|
+
data.tar.gz: eb8348a59397084bea84f35228b26b70dbe7d2128f0a2043b40fa9de4f1cce8f4456fa9e633ce006f42ecc3db932669f58d3139870eb373cbff1bcc83edaf8ae
|
data/lib/economy/money.rb
CHANGED
@@ -136,7 +136,7 @@ module Economy
|
|
136
136
|
if rate = Economy.rate(currency, new_currency)
|
137
137
|
Money.new (amount * BigDecimal(rate)), new_currency
|
138
138
|
else
|
139
|
-
raise "Exchange #{currency} => #{new_currency} not found"
|
139
|
+
raise "Exchange #{currency.iso_code} => #{new_currency.iso_code} not found"
|
140
140
|
end
|
141
141
|
else
|
142
142
|
self
|
data/lib/economy/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -4680,3 +4680,309 @@ TaskTest: test_update_rates
|
|
4680
4680
|
GeneratorTest: test_install
|
4681
4681
|
---------------------------
|
4682
4682
|
[1m[35m (0.2ms)[0m ROLLBACK
|
4683
|
+
[1m[36mActiveRecord::SchemaMigration Load (4.8ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4684
|
+
[1m[35m (0.2ms)[0m BEGIN
|
4685
|
+
---------------------------
|
4686
|
+
GeneratorTest: test_install
|
4687
|
+
---------------------------
|
4688
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4689
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4690
|
+
----------------------
|
4691
|
+
RateTest: test_retries
|
4692
|
+
----------------------
|
4693
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4694
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4695
|
+
--------------------
|
4696
|
+
RateTest: test_yahoo
|
4697
|
+
--------------------
|
4698
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4699
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4700
|
+
------------------------
|
4701
|
+
RecordTest: test_helpers
|
4702
|
+
------------------------
|
4703
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4704
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.733183"], ["updated_at", "2016-12-14 06:35:25.733183"]]
|
4705
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4706
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4707
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.739381"], ["updated_at", "2016-12-14 06:35:25.739381"]]
|
4708
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4709
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4710
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4711
|
+
---------------------------
|
4712
|
+
RecordTest: test_validators
|
4713
|
+
---------------------------
|
4714
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4715
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.746903"], ["updated_at", "2016-12-14 06:35:25.746903"]]
|
4716
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4717
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4718
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.748775"], ["updated_at", "2016-12-14 06:35:25.748775"]]
|
4719
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4720
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
4721
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4722
|
+
---------------------------------
|
4723
|
+
RecordTest: test_default_currency
|
4724
|
+
---------------------------------
|
4725
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4726
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.756996"], ["updated_at", "2016-12-14 06:35:25.756996"]]
|
4727
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4728
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4729
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.758677"], ["updated_at", "2016-12-14 06:35:25.758677"]]
|
4730
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4731
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4732
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4733
|
+
---------------------------
|
4734
|
+
RecordTest: test_persistent
|
4735
|
+
---------------------------
|
4736
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4737
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.760958"], ["updated_at", "2016-12-14 06:35:25.760958"]]
|
4738
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4739
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4740
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.762752"], ["updated_at", "2016-12-14 06:35:25.762752"]]
|
4741
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4742
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4743
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "plans" ("monthly_price", "annually_price", "currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["monthly_price", "20.0"], ["annually_price", "200.0"], ["currency", "UYU"], ["created_at", "2016-12-14 06:35:25.770044"], ["updated_at", "2016-12-14 06:35:25.770044"]]
|
4744
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4745
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4746
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "plans" SET "monthly_price" = $1, "updated_at" = $2 WHERE "plans"."id" = $3[0m [["monthly_price", "100.0"], ["updated_at", "2016-12-14 06:35:25.772081"], ["id", 2]]
|
4747
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4748
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4749
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "products" ("price", "price_currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["price", "15.0"], ["price_currency", "UYU"], ["created_at", "2016-12-14 06:35:25.781623"], ["updated_at", "2016-12-14 06:35:25.781623"]]
|
4750
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4751
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4752
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "products" SET "price" = $1, "price_currency" = $2, "updated_at" = $3 WHERE "products"."id" = $4[0m [["price", "5.0"], ["price_currency", "USD"], ["updated_at", "2016-12-14 06:35:25.783980"], ["id", 2]]
|
4753
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4754
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
4755
|
+
[1m[35m (0.1ms)[0m BEGIN
|
4756
|
+
---------------------------
|
4757
|
+
TaskTest: test_update_rates
|
4758
|
+
---------------------------
|
4759
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
4760
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "29.32"], ["created_at", "2016-12-14 06:35:25.812599"], ["updated_at", "2016-12-14 06:35:25.812599"]]
|
4761
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4762
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4763
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.0341"], ["created_at", "2016-12-14 06:35:25.814061"], ["updated_at", "2016-12-14 06:35:25.814061"]]
|
4764
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4765
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "exchanges"[0m
|
4766
|
+
[1m[35mEconomy::Exchange Exists (0.3ms)[0m SELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1 [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", 29.32]]
|
4767
|
+
[1m[36mEconomy::Exchange Exists (0.2ms)[0m [1mSELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1[0m [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", 0.0341]]
|
4768
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4769
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4770
|
+
-------------------------
|
4771
|
+
MoneyTest: test_remainder
|
4772
|
+
-------------------------
|
4773
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4774
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.827131"], ["updated_at", "2016-12-14 06:35:25.827131"]]
|
4775
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4776
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4777
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.828526"], ["updated_at", "2016-12-14 06:35:25.828526"]]
|
4778
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4779
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4780
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4781
|
+
----------------------
|
4782
|
+
MoneyTest: test_divmod
|
4783
|
+
----------------------
|
4784
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4785
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.830899"], ["updated_at", "2016-12-14 06:35:25.830899"]]
|
4786
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4787
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4788
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.832328"], ["updated_at", "2016-12-14 06:35:25.832328"]]
|
4789
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4790
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4791
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4792
|
+
-----------------
|
4793
|
+
MoneyTest: test_*
|
4794
|
+
-----------------
|
4795
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4796
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.834896"], ["updated_at", "2016-12-14 06:35:25.834896"]]
|
4797
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4798
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4799
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.836263"], ["updated_at", "2016-12-14 06:35:25.836263"]]
|
4800
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4801
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4802
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4803
|
+
-------------------
|
4804
|
+
MoneyTest: test_===
|
4805
|
+
-------------------
|
4806
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4807
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.838518"], ["updated_at", "2016-12-14 06:35:25.838518"]]
|
4808
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4809
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4810
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.839829"], ["updated_at", "2016-12-14 06:35:25.839829"]]
|
4811
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4812
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4813
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4814
|
+
------------------------
|
4815
|
+
MoneyTest: test_nonzero?
|
4816
|
+
------------------------
|
4817
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4818
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.841951"], ["updated_at", "2016-12-14 06:35:25.841951"]]
|
4819
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4820
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4821
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.843114"], ["updated_at", "2016-12-14 06:35:25.843114"]]
|
4822
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4823
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4824
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4825
|
+
-----------------
|
4826
|
+
MoneyTest: test_<
|
4827
|
+
-----------------
|
4828
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4829
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.844960"], ["updated_at", "2016-12-14 06:35:25.844960"]]
|
4830
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4831
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4832
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.846042"], ["updated_at", "2016-12-14 06:35:25.846042"]]
|
4833
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4834
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4835
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4836
|
+
-----------------
|
4837
|
+
MoneyTest: test_-
|
4838
|
+
-----------------
|
4839
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4840
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.849242"], ["updated_at", "2016-12-14 06:35:25.849242"]]
|
4841
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4842
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4843
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.850620"], ["updated_at", "2016-12-14 06:35:25.850620"]]
|
4844
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4845
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4846
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4847
|
+
---------------------------
|
4848
|
+
MoneyTest: test_exchange_to
|
4849
|
+
---------------------------
|
4850
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4851
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.852680"], ["updated_at", "2016-12-14 06:35:25.852680"]]
|
4852
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4853
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4854
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.854105"], ["updated_at", "2016-12-14 06:35:25.854105"]]
|
4855
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4856
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4857
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4858
|
+
----------------------------
|
4859
|
+
MoneyTest: test_%_and_modulo
|
4860
|
+
----------------------------
|
4861
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4862
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.856242"], ["updated_at", "2016-12-14 06:35:25.856242"]]
|
4863
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4864
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4865
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.857444"], ["updated_at", "2016-12-14 06:35:25.857444"]]
|
4866
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4867
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4868
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4869
|
+
-------------------
|
4870
|
+
MoneyTest: test_<=>
|
4871
|
+
-------------------
|
4872
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4873
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.859783"], ["updated_at", "2016-12-14 06:35:25.859783"]]
|
4874
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4875
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4876
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.861447"], ["updated_at", "2016-12-14 06:35:25.861447"]]
|
4877
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4878
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4879
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4880
|
+
--------------------
|
4881
|
+
MoneyTest: test_to_s
|
4882
|
+
--------------------
|
4883
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4884
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.863851"], ["updated_at", "2016-12-14 06:35:25.863851"]]
|
4885
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4886
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4887
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.865139"], ["updated_at", "2016-12-14 06:35:25.865139"]]
|
4888
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4889
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
4890
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4891
|
+
------------------
|
4892
|
+
MoneyTest: test_-@
|
4893
|
+
------------------
|
4894
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4895
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.873808"], ["updated_at", "2016-12-14 06:35:25.873808"]]
|
4896
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4897
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4898
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.875386"], ["updated_at", "2016-12-14 06:35:25.875386"]]
|
4899
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4900
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4901
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4902
|
+
-------------------------
|
4903
|
+
MoneyTest: test_positive?
|
4904
|
+
-------------------------
|
4905
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4906
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.877485"], ["updated_at", "2016-12-14 06:35:25.877485"]]
|
4907
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4908
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4909
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.878784"], ["updated_at", "2016-12-14 06:35:25.878784"]]
|
4910
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4911
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4912
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4913
|
+
---------------------
|
4914
|
+
MoneyTest: test_zero?
|
4915
|
+
---------------------
|
4916
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4917
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.880632"], ["updated_at", "2016-12-14 06:35:25.880632"]]
|
4918
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4919
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4920
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.881942"], ["updated_at", "2016-12-14 06:35:25.881942"]]
|
4921
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4922
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4923
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4924
|
+
---------------------------------
|
4925
|
+
MoneyTest: test_abs_and_magnitude
|
4926
|
+
---------------------------------
|
4927
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4928
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.883735"], ["updated_at", "2016-12-14 06:35:25.883735"]]
|
4929
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4930
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4931
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.885049"], ["updated_at", "2016-12-14 06:35:25.885049"]]
|
4932
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4933
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4934
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4935
|
+
-----------------------------------
|
4936
|
+
MoneyTest: test_to_json_and_as_json
|
4937
|
+
-----------------------------------
|
4938
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4939
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.887180"], ["updated_at", "2016-12-14 06:35:25.887180"]]
|
4940
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4941
|
+
[1m[36m (0.6ms)[0m [1mSAVEPOINT active_record_1[0m
|
4942
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.889688"], ["updated_at", "2016-12-14 06:35:25.889688"]]
|
4943
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4944
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4945
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4946
|
+
-------------------------
|
4947
|
+
MoneyTest: test_/_and_div
|
4948
|
+
-------------------------
|
4949
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4950
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.892992"], ["updated_at", "2016-12-14 06:35:25.892992"]]
|
4951
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4952
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4953
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.894454"], ["updated_at", "2016-12-14 06:35:25.894454"]]
|
4954
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4955
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4956
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4957
|
+
----------------------
|
4958
|
+
MoneyTest: test_coerce
|
4959
|
+
----------------------
|
4960
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4961
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.896683"], ["updated_at", "2016-12-14 06:35:25.896683"]]
|
4962
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4963
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4964
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.898087"], ["updated_at", "2016-12-14 06:35:25.898087"]]
|
4965
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4966
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4967
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4968
|
+
-----------------
|
4969
|
+
MoneyTest: test_+
|
4970
|
+
-----------------
|
4971
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4972
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.900530"], ["updated_at", "2016-12-14 06:35:25.900530"]]
|
4973
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4974
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4975
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.901956"], ["updated_at", "2016-12-14 06:35:25.901956"]]
|
4976
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4977
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
4978
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
4979
|
+
-------------------------
|
4980
|
+
MoneyTest: test_negative?
|
4981
|
+
-------------------------
|
4982
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
4983
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.904369"], ["updated_at", "2016-12-14 06:35:25.904369"]]
|
4984
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
4985
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
4986
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.905753"], ["updated_at", "2016-12-14 06:35:25.905753"]]
|
4987
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
4988
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|