sbds-rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +41 -0
  3. data/README.md +1 -1
  4. data/Rakefile +1 -1
  5. data/app/models/sbds/account_create.rb +1 -0
  6. data/app/models/sbds/account_create_with_delegation.rb +1 -0
  7. data/app/models/sbds/account_update.rb +1 -0
  8. data/app/models/sbds/account_witness_proxy.rb +1 -0
  9. data/app/models/sbds/account_witness_vote.rb +1 -0
  10. data/app/models/sbds/acts_as_transaction.rb +0 -2
  11. data/app/models/sbds/cancel_transfer_from_savings.rb +1 -0
  12. data/app/models/sbds/change_recovery_account.rb +1 -0
  13. data/app/models/sbds/claim_reward_balance.rb +1 -0
  14. data/app/models/sbds/comment.rb +1 -0
  15. data/app/models/sbds/comment_options.rb +1 -1
  16. data/app/models/sbds/convert.rb +1 -0
  17. data/app/models/sbds/core_block.rb +1 -1
  18. data/app/models/sbds/custom.rb +1 -0
  19. data/app/models/sbds/custom_json.rb +1 -0
  20. data/app/models/sbds/decline_voting_rights.rb +1 -0
  21. data/app/models/sbds/delegate_vesting_share.rb +1 -0
  22. data/app/models/sbds/delete_comment.rb +1 -0
  23. data/app/models/sbds/escrow_approve.rb +1 -0
  24. data/app/models/sbds/escrow_dispute.rb +1 -0
  25. data/app/models/sbds/escrow_release.rb +1 -0
  26. data/app/models/sbds/escrow_transfer.rb +1 -0
  27. data/app/models/sbds/feed_publish.rb +1 -0
  28. data/app/models/sbds/limit_order_cancel.rb +1 -0
  29. data/app/models/sbds/limit_order_create.rb +1 -0
  30. data/app/models/sbds/pow.rb +1 -0
  31. data/app/models/sbds/pow2.rb +1 -0
  32. data/app/models/sbds/recover_account.rb +1 -0
  33. data/app/models/sbds/request_account_recovery.rb +1 -0
  34. data/app/models/sbds/transfer.rb +1 -0
  35. data/app/models/sbds/transfer_from_savings.rb +1 -0
  36. data/app/models/sbds/transfer_to_savings.rb +1 -0
  37. data/app/models/sbds/transfer_to_vesting.rb +1 -0
  38. data/app/models/sbds/vote.rb +1 -0
  39. data/app/models/sbds/withdraw_vesting.rb +1 -0
  40. data/app/models/sbds/withdraw_vesting_route.rb +1 -0
  41. data/app/models/sbds/witness_update.rb +1 -0
  42. data/lib/sbds.rb +1 -1
  43. data/lib/sbds/engine.rb +1 -0
  44. data/lib/sbds/version.rb +1 -1
  45. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23dc7fa810edb6ba037e54bf4a7ecddf838e23c5
4
- data.tar.gz: 41f8d63b235b3e99c75d6de68d05fd591556666b
3
+ metadata.gz: 1bdf0a7ea68fcff2239d993db1689e7b5a76becf
4
+ data.tar.gz: 11512c237e361a384c36bfdb7708ac18b6d397d0
5
5
  SHA512:
6
- metadata.gz: 6af87d0dc81087f817c60085051a2cb3ed6e2d77ecfc694d49027110e8f5dcb5a5b83230e867d52a7df84a757a56b506bdf942cf99d8fa26a728a449cb25af56
7
- data.tar.gz: bba59ae091bc69edcec35154eb2202ae8bf3d56906a6f3b40ddd20d88e8e70c9204ac6a541494a77bbebb72e88b812c3099ac7f3c9243f35eda878cd8f55e523
6
+ metadata.gz: 9790cd282761ed6200847e246d3d2b55f63f6a747ea6739634c874e97ad35e55c1f33224aedca9467be7c3d231b61c5d3060991e48bc4996e1b61899403606b9
7
+ data.tar.gz: a4f5dae8009faad39245a53bc89a1acac5ba4fba5dae3a0636c85a127a2e6875f714b54ee1a24955da3cf1793e8572e4425386e38f6cce5db0d0345a4e063b00
data/LICENSE ADDED
@@ -0,0 +1,41 @@
1
+ CC0 1.0 Universal (CC0 1.0)
2
+ Public Domain Dedication
3
+ https://creativecommons.org/publicdomain/zero/1.0/
4
+
5
+ This is a human-readable summary of the Legal Code:
6
+ https://creativecommons.org/publicdomain/zero/1.0/legalcode
7
+
8
+ Disclaimer
9
+
10
+ The Commons Deed is not a legal instrument. It is simply a handy reference for
11
+ understanding the CC0 Legal Code, a human-readable expression of some of its key
12
+ terms. Think of it as the user-friendly interface to the CC0 Legal Code beneath.
13
+ This Deed itself has no legal value, and its contents do not appear in CC0.
14
+ Creative Commons is not a law firm and does not provide legal services.
15
+ Distributing, displaying, or linking to this Commons Deed does not create an
16
+ attorney-client relationship.
17
+
18
+ Creative Commons has not verified the copyright status of any work to which CC0
19
+ has been applied. CC makes no warranties about any work or its copyright status
20
+ in any jurisdiction, and disclaims all liability for all uses of any work.
21
+
22
+ No Copyright
23
+
24
+ The person who associated a work with this deed has dedicated the work to the
25
+ public domain by waiving all of his or her rights to the work worldwide under
26
+ copyright law, including all related and neighboring rights, to the extent
27
+ allowed by law.
28
+
29
+ You can copy, modify, distribute and perform the work, even for commercial
30
+ purposes, all without asking permission. See Other Information below.
31
+
32
+ Other Information
33
+
34
+ * In no way are the patent or trademark rights of any person affected by CC0,
35
+ nor are the rights that other persons may have in the work or in how the work
36
+ is used, such as publicity or privacy rights.
37
+ * Unless expressly stated otherwise, the person who associated a work with this
38
+ deed makes no warranties about the work, and disclaims liability for all uses
39
+ of the work, to the fullest extent permitted by applicable law.
40
+ * When using or citing the work, you should not imply endorsement by the author
41
+ or the affirmer.
data/README.md CHANGED
@@ -15,7 +15,7 @@ Assuming you already have an existing rails project,
15
15
  Add this line to your application's Gemfile:
16
16
 
17
17
  ```ruby
18
- gem 'sbds-rails'
18
+ gem 'sbds-rails', require: 'sbds'
19
19
  ```
20
20
 
21
21
  And then execute:
data/Rakefile CHANGED
@@ -36,7 +36,7 @@ task :build do
36
36
  end
37
37
 
38
38
  task :push do
39
- exec "gem push sbds-rails-#{Sbd::VERSION}.gem"
39
+ exec "gem push sbds-rails-#{Sbds::VERSION}.gem"
40
40
  end
41
41
 
42
42
  # We're not going to yank on a regular basis, but this is how it's done if you
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class AccountCreate < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_account_creates'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class AccountCreateWithDelegation < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_account_create_with_delegations'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class AccountUpdate < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_account_updates'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class AccountWitnessProxy < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_account_witness_proxies'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class AccountWitnessVote < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_account_witness_votes'
4
5
  end
5
6
  end
@@ -1,8 +1,6 @@
1
1
  module Sbds
2
2
  module ActsAsTransaction
3
3
  def self.included(base)
4
- def base.table_name_prefix; 'sbds_tx_'; end
5
-
6
4
  def base.default_scope
7
5
  order(timestamp: :asc)
8
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class CancelTransferFromSavings < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_cancel_transfer_from_savings'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class ChangeRecoveryAccount < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_change_recovery_accounts'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class ClaimRewardBalance < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_claim_reward_balances'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class Comment < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_comments'
4
5
  end
5
6
  end
@@ -1,6 +1,6 @@
1
1
  module Sbds
2
2
  class CommentOptions < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
- def self.table_name; 'sbds_tx_comments_options'; end
4
+ self.table_name = 'sbds_tx_comments_options'
5
5
  end
6
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class Convert < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_converts'
4
5
  end
5
6
  end
@@ -1,5 +1,5 @@
1
1
  module Sbds
2
2
  class CoreBlock < ActiveRecord::Base
3
- def self.table_name_prefix; 'sbds_'; end
3
+ self.table_name = 'sbds_core_blocks'
4
4
  end
5
5
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class Custom < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_customs'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class CustomJson < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_custom_jsons'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class DeclineVotingRights < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_decline_voting_rights'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class DelegateVestingShare < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_delegate_vesting_shares'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class DeleteComment < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_delete_comments'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class EscrowApprove < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_escrow_approves'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class EscrowDispute < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_escrow_disputes'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class EscrowRelease < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_escrow_releases'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class EscrowTransfer < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_escrow_transfers'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class FeedPublish < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_feed_publishes'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class LimitOrderCancel < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_limit_order_cancels'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class LimitOrderCreate < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_limit_order_creates'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class Pow < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_pows'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class Pow2 < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_pow2s'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class RecoverAccount < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_recover_accounts'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class RequestAccountRecovery < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_request_account_recoveries'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class Transfer < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_transfers'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class TransferFromSavings < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_transfer_from_savings'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class TransferToSavings < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_transfer_to_savings'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class TransferToVesting < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_transfer_to_vestings'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class Vote < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_votes'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class WithdrawVesting < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_withdraw_vestings'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class WithdrawVestingRoute < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_withdraw_vesting_routes'
4
5
  end
5
6
  end
@@ -1,5 +1,6 @@
1
1
  module Sbds
2
2
  class WitnessUpdate < ActiveRecord::Base
3
3
  include ActsAsTransaction
4
+ self.table_name = 'sbds_tx_witness_updates'
4
5
  end
5
6
  end
@@ -1,4 +1,4 @@
1
- require "sbds/engine"
1
+ require 'sbds/engine'
2
2
 
3
3
  module Sbds
4
4
  end
@@ -1,4 +1,5 @@
1
1
  module Sbds
2
2
  class Engine < ::Rails::Engine
3
+ isolate_namespace Sbds
3
4
  end
4
5
  end
@@ -1,3 +1,3 @@
1
1
  module Sbds
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sbds-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anthony Martin
@@ -85,6 +85,7 @@ executables: []
85
85
  extensions: []
86
86
  extra_rdoc_files: []
87
87
  files:
88
+ - LICENSE
88
89
  - README.md
89
90
  - Rakefile
90
91
  - app/assets/config/sbds_manifest.js
@@ -130,7 +131,7 @@ files:
130
131
  - lib/sbds/engine.rb
131
132
  - lib/sbds/version.rb
132
133
  - lib/tasks/sbds_tasks.rake
133
- homepage: http://github.com/inertia186/sbds-rails
134
+ homepage: https://github.com/steem-third-party/sbds-rails
134
135
  licenses:
135
136
  - CC0-1.0
136
137
  metadata: {}