diff --git a/.env b/.env
index b42b0ff..c1eaff7 100644
--- a/.env
+++ b/.env
@@ -3,3 +3,4 @@ FIRST_CHAIN_MAINTAINER=YOUR_NAME
CONTRACTS_LIMIT=2
SIGNATURES_LIMIT=5
REDIS_URL=redis://redis:6379
+ENV_MACHINE=docker
diff --git a/app/controllers/api/v1/block_confirmations_controller.rb b/app/controllers/api/v1/block_confirmations_controller.rb
index 224226c..c89b333 100644
--- a/app/controllers/api/v1/block_confirmations_controller.rb
+++ b/app/controllers/api/v1/block_confirmations_controller.rb
@@ -11,15 +11,15 @@ def confirm_block
assign_contract
end
- def transactions_to_mine
- return unauthorized_response unless find_user_by_header
- ticket = Ticket.find_by(user_id: @user.id)
- return ticket_not_found_response unless ticket.present?
- transactions_ids = ticket.transaction_id_list
- transactions = Transaction.where(id: transactions_ids)
- transactions_json = transactions.to_json
- render json: transactions_json, status: :ok
- end
+ # def transactions_to_mine
+ # return unauthorized_response unless find_user_by_header
+ # ticket = Ticket.find_by(user_id: @user.id)
+ # return ticket_not_found_response unless ticket.present?
+ # transactions_ids = ticket.transaction_id_list
+ # transactions = Transaction.where(id: transactions_ids)
+ # transactions_json = transactions.to_json
+ # render json: transactions_json, status: :ok
+ # end
def info_to_mine
return unauthorized_response unless find_user_by_header
@@ -31,11 +31,11 @@ def info_to_mine
private
def find_user_by_header
- return unless request.headers["X-Api-Key"].present?
- api_key = request.headers["X-Api-Key"]
+ return unless request.headers["X-API-KEY"].present?
+ api_key = request.headers["X-API-KEY"]
@user = User.find_by(api_key: api_key)
return unless @user.present?
- @user.api_secret == request.headers["X-Api-Secret"]
+ @user.api_secret == request.headers["X-API-SECRET"]
end
def unauthorized_response
diff --git a/app/controllers/contracts_controller.rb b/app/controllers/contracts_controller.rb
index 4e6221c..da9e243 100644
--- a/app/controllers/contracts_controller.rb
+++ b/app/controllers/contracts_controller.rb
@@ -17,9 +17,4 @@ def show
def set_contract
@contract = Contract.find(params[:id])
end
-
- # Only allow a list of trusted parameters through.
- def contract_params
- params.require(:contract).permit(:first_sig, :second_sig, :third_sig, :fourth_sig, :status, :transaction_id)
- end
end
diff --git a/app/controllers/pools_controller.rb b/app/controllers/pools_controller.rb
index f7595de..30695e0 100644
--- a/app/controllers/pools_controller.rb
+++ b/app/controllers/pools_controller.rb
@@ -13,61 +13,9 @@ def index
def show
end
- # GET /pools/new
- def new
- @pool = Pool.new
- end
-
- # GET /pools/1/edit
- def edit
- end
-
- # POST /pools or /pools.json
- def create
- @pool = Pool.new(pool_params)
-
- respond_to do |format|
- if @pool.save
- format.html { redirect_to pool_url(@pool), notice: "Pool was successfully created." }
- format.json { render :show, status: :created, location: @pool }
- else
- format.html { render :new, status: :unprocessable_entity }
- format.json { render json: @pool.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # PATCH/PUT /pools/1 or /pools/1.json
- def update
- respond_to do |format|
- if @pool.update(pool_params)
- format.html { redirect_to pool_url(@pool), notice: "Pool was successfully updated." }
- format.json { render :show, status: :ok, location: @pool }
- else
- format.html { render :edit, status: :unprocessable_entity }
- format.json { render json: @pool.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # DELETE /pools/1 or /pools/1.json
- def destroy
- @pool.destroy
-
- respond_to do |format|
- format.html { redirect_to pools_url, notice: "Pool was successfully destroyed." }
- format.json { head :no_content }
- end
- end
-
private
# Use callbacks to share common setup or constraints between actions.
def set_pool
@pool = Pool.find(params[:id])
end
-
- # Only allow a list of trusted parameters through.
- def pool_params
- params.require(:pool).permit(:block_id, :users_count, :signatures_count, :amount, :stage)
- end
end
diff --git a/app/controllers/signatures_controller.rb b/app/controllers/signatures_controller.rb
index 7c18c9d..32f4d18 100644
--- a/app/controllers/signatures_controller.rb
+++ b/app/controllers/signatures_controller.rb
@@ -17,9 +17,4 @@ def show
def set_signature
@signature = Signature.find(params[:id])
end
-
- # Only allow a list of trusted parameters through.
- def signature_params
- params.require(:signature).permit(:signature, :time_ref, :contract_id, :common_word, :symbol_sequence, :number_sequence, :verify_sig, :block_hash, :signature_hash)
- end
end
diff --git a/app/controllers/tickets_controller.rb b/app/controllers/tickets_controller.rb
index bcb3080..b88dff0 100644
--- a/app/controllers/tickets_controller.rb
+++ b/app/controllers/tickets_controller.rb
@@ -18,10 +18,6 @@ def new
@ticket = Ticket.new
end
- # GET /tickets/1/edit
- def edit
- end
-
# POST /tickets or /tickets.json
def create
return no_transactions_response if block_transactions.empty?
@@ -29,29 +25,6 @@ def create
redirect_to tickets_path, notice: "Processing ticket, please wait, wait a minute and refresh the page"
end
- # PATCH/PUT /tickets/1 or /tickets/1.json
- def update
- respond_to do |format|
- if @ticket.update(ticket_params)
- format.html { redirect_to ticket_url(@ticket), notice: "Ticket was successfully updated." }
- format.json { render :show, status: :ok, location: @ticket }
- else
- format.html { render :edit, status: :unprocessable_entity }
- format.json { render json: @ticket.errors, status: :unprocessable_entity }
- end
- end
- end
-
- # DELETE /tickets/1 or /tickets/1.json
- def destroy
- @ticket.destroy
-
- respond_to do |format|
- format.html { redirect_to tickets_url, notice: "Ticket was successfully destroyed." }
- format.json { head :no_content }
- end
- end
-
private
def create_ticket
CreateTicketWorker.perform_async(current_user.id, current_pool.id, time_ref)
diff --git a/app/views/transactions/_transaction.html.slim b/app/views/transactions/_transaction.html.slim
index ed7b57d..5b9c3f6 100644
--- a/app/views/transactions/_transaction.html.slim
+++ b/app/views/transactions/_transaction.html.slim
@@ -3,9 +3,8 @@ div id="#{dom_id transaction}"
strong Sended by:
=< transaction.sender
p
- strong Receiver By:
+ strong Receiver By:
=< transaction.receiver
- / only show the information below if the Show page is being rendered
- if action_name == "show"
p
strong Amount:
diff --git a/app/views/users/registrations/new.html.erb b/app/views/users/registrations/new.html.erb
index c012d03..5cc4058 100644
--- a/app/views/users/registrations/new.html.erb
+++ b/app/views/users/registrations/new.html.erb
@@ -5,7 +5,7 @@
<%= render "users/shared/error_messages", resource: resource %>
<%= f.label :username, class: "text-white" %>
- (10 characters minimum)
+ (10 characters minimum)
<%= f.text_field :username, autofocus: true, autocomplete: "username",class: "px-4 py-2 rounded text-black border-2 border-purple-300 focus_border-purple-900" %>
diff --git a/config/routes/api.rb b/config/routes/api.rb
index a11a8b5..d701a1b 100644
--- a/config/routes/api.rb
+++ b/config/routes/api.rb
@@ -3,7 +3,7 @@
namespace :api do
namespace :v1 do
post "confirm_block", to: "block_confirmations#confirm_block"
- get "tr_to_mine", to: "block_confirmations#transactions_to_mine"
+ # get "tr_to_mine", to: "block_confirmations#transactions_to_mine"
get "info_to_mine", to: "block_confirmations#info_to_mine"
end
end
diff --git a/coverage/.last_run.json b/coverage/.last_run.json
index 8b6d1e7..d07b8d2 100644
--- a/coverage/.last_run.json
+++ b/coverage/.last_run.json
@@ -1,5 +1,5 @@
{
"result": {
- "line": 70.1
+ "line": 80.9
}
}
diff --git a/coverage/.resultset.json b/coverage/.resultset.json
index 51fa512..747e8d6 100644
--- a/coverage/.resultset.json
+++ b/coverage/.resultset.json
@@ -1,7 +1,7 @@
{
"RSpec": {
"coverage": {
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/user.rb": {
+ "/myapp/app/models/user.rb": {
"lines": [
null,
null,
@@ -23,33 +23,33 @@
null,
1,
1,
- 0,
+ 71,
null,
null,
1,
- 0,
- 0,
- 0,
+ 71,
+ 71,
+ 71,
null,
- 0,
+ 71,
null,
- 0,
+ 71,
null,
- 0,
+ 71,
null,
- 0,
- 0,
- 0,
+ 71,
+ 71,
+ 71,
null,
null,
1,
- 0,
- 0,
+ 71,
+ 71,
null,
null
]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/application_record.rb": {
+ "/myapp/app/models/application_record.rb": {
"lines": [
null,
null,
@@ -58,7 +58,7 @@
null
]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/helpers/application_helper.rb": {
+ "/myapp/app/helpers/application_helper.rb": {
"lines": [
null,
null,
@@ -66,7 +66,7 @@
null
]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/helpers/blocks_helper.rb": {
+ "/myapp/app/helpers/blocks_helper.rb": {
"lines": [
null,
null,
@@ -74,7 +74,7 @@
null
]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/helpers/chains_helper.rb": {
+ "/myapp/app/helpers/chains_helper.rb": {
"lines": [
null,
null,
@@ -82,7 +82,7 @@
null
]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/helpers/contracts_helper.rb": {
+ "/myapp/app/helpers/contracts_helper.rb": {
"lines": [
null,
null,
@@ -90,7 +90,7 @@
null
]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/helpers/pools_helper.rb": {
+ "/myapp/app/helpers/pools_helper.rb": {
"lines": [
null,
null,
@@ -98,7 +98,7 @@
null
]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/helpers/signatures_helper.rb": {
+ "/myapp/app/helpers/signatures_helper.rb": {
"lines": [
null,
null,
@@ -106,7 +106,7 @@
null
]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/helpers/tickets_helper.rb": {
+ "/myapp/app/helpers/tickets_helper.rb": {
"lines": [
null,
null,
@@ -114,7 +114,7 @@
null
]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/helpers/transactions_helper.rb": {
+ "/myapp/app/helpers/transactions_helper.rb": {
"lines": [
null,
null,
@@ -122,7 +122,7 @@
null
]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/helpers/wallets_helper.rb": {
+ "/myapp/app/helpers/wallets_helper.rb": {
"lines": [
null,
null,
@@ -130,579 +130,263 @@
null
]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/lib/osbc/osbc.rb": {
+ "/myapp/app/controllers/application_controller.rb": {
"lines": [
null,
null,
+ null,
+ 1,
+ 1,
1,
1,
1,
null,
null,
1,
- null
- ]
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/lib/outerspace/blockchain.rb": {
- "lines": [
+ 1,
+ null,
+ null,
+ 1,
+ 0,
+ 0,
+ 0,
+ 0,
null,
null,
1,
null,
+ null,
1,
+ null,
1,
1,
+ 35,
null,
null,
- null
- ]
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/lib/outerspace/blockchain/version.rb": {
- "lines": [
+ 1,
+ 36,
null,
null,
1,
+ 105,
+ null,
+ null,
1,
+ 35,
+ null,
+ null,
1,
+ 35,
null,
- null
- ]
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/api/v1/block_confirmations_controller.rb": {
- "lines": [
null,
+ 1,
+ 35,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 35,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 35,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
+ 35,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 35,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
+ 1,
+ 1,
+ 1,
+ null,
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/application_controller.rb": {
+ "/myapp/app/controllers/transactions_controller.rb": {
"lines": [
null,
null,
+ 1,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
+ 1,
null,
null,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 2,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
+ 1,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
+ null,
+ null,
+ 1,
+ 2,
+ null,
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/blocks_controller.rb": {
+ "/myapp/app/controllers/users/confirmations_controller.rb": {
"lines": [
null,
null,
- 0,
- 0,
+ 1,
null,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
- 0,
null,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/chains_controller.rb": {
- "lines": [
null,
null,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
null,
- 0,
- 0,
- 0,
- null,
- null,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/contracts_controller.rb": {
+ "/myapp/app/controllers/users/omniauth_callbacks_controller.rb": {
"lines": [
null,
null,
- 0,
- 0,
- null,
- null,
- 0,
- 0,
- 0,
- null,
- null,
- 0,
- 0,
+ 1,
null,
- 0,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/pools_controller.rb": {
- "lines": [
null,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/signatures_controller.rb": {
+ "/myapp/app/controllers/users/passwords_controller.rb": {
"lines": [
null,
null,
- 0,
- 0,
- null,
+ 1,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
- 0,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/tickets_controller.rb": {
- "lines": [
null,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/transactions_controller.rb": {
+ "/myapp/app/controllers/users/registrations_controller.rb": {
"lines": [
null,
null,
- 0,
- 0,
- 0,
+ 1,
+ 1,
null,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
null,
null,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/users/confirmations_controller.rb": {
- "lines": [
null,
null,
- 0,
null,
null,
null,
@@ -722,30 +406,34 @@
null,
null,
null,
+ 1,
null,
+ 1,
+ 1,
null,
null,
null,
null,
null,
null,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/users/omniauth_callbacks_controller.rb": {
- "lines": [
null,
null,
- 0,
+ 1,
+ 1,
+ null,
null,
null,
null,
null,
null,
+ null
+ ]
+ },
+ "/myapp/app/controllers/users/sessions_controller.rb": {
+ "lines": [
null,
null,
+ 1,
null,
null,
null,
@@ -765,20 +453,18 @@
null,
null,
null,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/users/passwords_controller.rb": {
- "lines": [
null,
null,
- 0,
null,
null,
+ null
+ ]
+ },
+ "/myapp/app/controllers/users/unlocks_controller.rb": {
+ "lines": [
null,
null,
+ 1,
null,
null,
null,
@@ -805,116 +491,285 @@
null,
null,
null,
- 0
- ],
- "branches": {
- }
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/users/registrations_controller.rb": {
+ "/myapp/app/controllers/wallets_controller.rb": {
"lines": [
null,
null,
- 0,
- 0,
+ 1,
+ 1,
+ 1,
null,
+ 1,
+ 2,
null,
null,
+ 1,
null,
null,
+ 1,
+ 1,
+ 1,
null,
+ null
+ ]
+ },
+ "/myapp/app/mailers/application_mailer.rb": {
+ "lines": [
null,
null,
- 0,
- 0,
- 0,
+ 1,
+ 1,
+ 1,
+ null
+ ]
+ },
+ "/myapp/app/models/acceptable_number_sequence.rb": {
+ "lines": [
+ null,
+ null,
+ 1,
+ null
+ ]
+ },
+ "/myapp/app/models/acceptable_symbol_sequence.rb": {
+ "lines": [
null,
null,
+ 1,
+ null
+ ]
+ },
+ "/myapp/app/models/acceptable_word.rb": {
+ "lines": [
null,
null,
+ 1,
+ null
+ ]
+ },
+ "/myapp/app/models/block.rb": {
+ "lines": [
null,
null,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
null,
+ 1,
+ 1,
+ 68,
null,
+ null
+ ]
+ },
+ "/myapp/app/models/chain.rb": {
+ "lines": [
null,
null,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
null,
+ 1,
+ null
+ ]
+ },
+ "/myapp/app/models/contract.rb": {
+ "lines": [
null,
null,
+ 1,
+ 1,
+ 1,
+ 1,
+ null
+ ]
+ },
+ "/myapp/app/models/pool.rb": {
+ "lines": [
null,
null,
+ 1,
+ 1,
+ null
+ ]
+ },
+ "/myapp/app/models/signature.rb": {
+ "lines": [
null,
null,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
null,
null,
null,
null,
+ null
+ ]
+ },
+ "/myapp/app/models/ticket.rb": {
+ "lines": [
null,
null,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
null,
+ 1,
+ null
+ ]
+ },
+ "/myapp/app/models/transaction.rb": {
+ "lines": [
null,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
null,
+ 1,
+ 2,
null,
null,
+ 1,
+ 2,
null,
null,
+ 1,
+ 42,
null,
+ null
+ ]
+ },
+ "/myapp/app/models/concerns/wallet_exists_validator.rb": {
+ "lines": [
null,
- 0,
- 0,
- 0,
null,
+ 1,
+ 1,
+ 52,
+ 13,
null,
null,
+ 52,
+ 13,
null,
null,
- 0
- ],
- "branches": {
- }
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/users/sessions_controller.rb": {
+ "/myapp/app/models/wallet.rb": {
"lines": [
null,
null,
- 0,
+ 1,
+ 1,
null,
+ 1,
+ 1,
+ 1,
null,
+ 1,
null,
+ 1,
null,
null,
+ 1,
null,
+ 1,
+ 59,
+ 57,
+ 57,
null,
null,
+ 59,
+ 59,
null,
+ 59,
+ 1,
null,
+ 58,
+ 58,
null,
null,
+ null
+ ]
+ },
+ "/myapp/lib/osbc/osbc.rb": {
+ "lines": [
null,
null,
+ 1,
+ 1,
+ 1,
null,
null,
+ 1,
+ null
+ ]
+ },
+ "/myapp/lib/outerspace/blockchain.rb": {
+ "lines": [
null,
null,
+ 1,
null,
+ 1,
+ 1,
+ 1,
null,
null,
+ null
+ ]
+ },
+ "/myapp/lib/outerspace/blockchain/version.rb": {
+ "lines": [
null,
null,
- 0
- ],
- "branches": {
- }
+ 1,
+ 1,
+ 1,
+ null,
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/users/unlocks_controller.rb": {
+ "/myapp/app/controllers/api/v1/block_confirmations_controller.rb": {
"lines": [
null,
null,
- 0,
+ 1,
+ 1,
+ 5,
+ 4,
+ 4,
+ 3,
+ 3,
+ 2,
+ 1,
null,
null,
null,
@@ -927,674 +782,821 @@
null,
null,
null,
+ 1,
+ 3,
+ 1,
+ 1,
+ 1,
+ 1,
null,
null,
+ 1,
+ 1,
+ 8,
+ 8,
+ 8,
+ 8,
+ 6,
null,
null,
+ 1,
+ 3,
null,
null,
+ 1,
+ 1,
null,
null,
+ 1,
+ 1,
null,
null,
+ 1,
+ 1,
+ 1,
null,
null,
+ 1,
+ 1,
null,
null,
- 0
- ],
- "branches": {
- }
+ 1,
+ 3,
+ null,
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/controllers/wallets_controller.rb": {
+ "/myapp/app/controllers/blocks_controller.rb": {
"lines": [
null,
null,
- 0,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/mailers/application_mailer.rb": {
- "lines": [
null,
null,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/acceptable_number_sequence.rb": {
- "lines": [
+ 1,
null,
null,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/acceptable_symbol_sequence.rb": {
- "lines": [
+ 1,
null,
+ 1,
+ 1,
null,
- 0,
- 0
- ],
- "branches": {
- }
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/acceptable_word.rb": {
+ "/myapp/app/controllers/chains_controller.rb": {
"lines": [
null,
null,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/block.rb": {
- "lines": [
+ 1,
+ 1,
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/chain.rb": {
- "lines": [
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
null,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/concerns/sequences_validator.rb": {
- "lines": [
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/concerns/wallet_exists_validator.rb": {
- "lines": [
null,
+ 1,
+ 4,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 4,
+ 4,
+ 4,
+ 2,
null,
- 0,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/contract.rb": {
- "lines": [
+ 4,
+ 2,
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/pool.rb": {
- "lines": [
null,
null,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/signature.rb": {
- "lines": [
null,
+ 1,
+ 3,
+ 3,
+ 4,
+ 2,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 2,
+ 1,
null,
null,
null,
null,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/ticket.rb": {
- "lines": [
null,
+ 1,
+ 2,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 2,
+ 4,
+ 2,
null,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/transaction.rb": {
- "lines": [
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
null,
- 0,
- 0,
- 0,
+ 1,
+ 7,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
+ null,
+ 1,
+ 7,
+ null,
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/models/wallet.rb": {
+ "/myapp/app/controllers/contracts_controller.rb": {
"lines": [
null,
null,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
+ 1,
+ 1,
null,
- 0,
null,
null,
- 0,
+ 1,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
+ 1,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
+ 1,
+ 1,
+ null,
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/services/application_service.rb": {
+ "/myapp/app/controllers/pools_controller.rb": {
"lines": [
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
+ 1,
0,
null,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ null,
+ 1,
+ 1,
+ null,
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/services/assign_contracts_service.rb": {
+ "/myapp/app/controllers/signatures_controller.rb": {
"lines": [
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
null,
- 0,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
+ null
+ ]
+ },
+ "/myapp/app/controllers/tickets_controller.rb": {
+ "lines": [
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
+ 1,
0,
null,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
+ 1,
0,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
+ 1,
0,
0,
0,
null,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 1,
0,
null,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 1,
+ null,
null,
+ 1,
0,
+ null,
+ null,
+ 1,
0,
+ null,
+ null,
+ null,
+ 1,
0,
+ null,
+ null
+ ]
+ },
+ "/myapp/app/services/application_service.rb": {
+ "lines": [
+ null,
+ null,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ null,
+ null,
+ null,
+ 1,
0,
+ null,
+ null,
+ 1,
+ 12,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null
+ ]
+ },
+ "/myapp/app/services/assign_contracts_service.rb": {
+ "lines": [
+ null,
+ null,
+ 1,
+ 1,
+ 11,
+ 11,
+ null,
+ null,
+ 1,
+ 11,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ 1,
+ 236,
+ null,
+ null,
+ 1,
+ 22,
+ null,
+ null,
+ 1,
+ 184,
+ null,
+ null,
+ 1,
+ 150,
+ null,
+ null,
+ 1,
+ 10,
+ null,
+ null,
+ 1,
+ 300,
+ null,
+ null,
+ 1,
+ 2,
+ null,
+ null,
+ null,
+ null,
+ 1,
+ 12,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ null,
+ null,
+ 1,
+ 77,
+ null,
+ null,
+ 1,
+ 75,
+ null,
+ null,
+ 1,
+ 86,
+ null,
+ null,
+ 1,
+ 2,
+ null,
+ null,
+ 1,
+ 75,
+ null,
+ null,
+ 1,
+ 87,
+ null,
+ null,
+ 1,
+ 2,
+ 2,
+ 2,
+ 2,
+ 20,
+ 10,
+ 10,
+ 10,
+ 10,
+ null,
+ 20,
+ 20,
+ 20,
+ null,
+ null,
+ 2,
+ null,
+ null,
+ 1,
+ 4,
+ null,
+ null,
+ 1,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 10,
+ 10,
+ 10,
+ 2,
+ 2,
+ null,
+ 8,
+ null,
+ null,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ null,
+ null,
+ null,
+ 1,
+ 75,
+ 75,
+ null,
+ null,
+ 1,
+ 75,
+ 75,
+ null,
+ null,
+ 1,
+ 75,
+ 75,
+ 75,
+ null,
+ null,
+ 1,
+ 75,
+ 75,
+ null,
+ null,
+ 1,
+ 11,
+ 11,
+ null,
+ null,
+ 1,
+ 11,
+ 75,
+ 75,
+ null,
+ 11,
+ 11,
+ 75,
+ null,
+ null,
+ null
+ ]
+ },
+ "/myapp/app/services/create_wallet_service.rb": {
+ "lines": [
+ null,
+ null,
+ 1,
+ 1,
+ 2,
+ null,
+ null,
+ null,
+ 1,
+ 2,
+ 2,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ 1,
+ 2,
+ null,
+ null
+ ]
+ },
+ "/myapp/app/services/transaction_to_block_service.rb": {
+ "lines": [
+ null,
+ null,
+ 1,
+ 1,
+ 3,
+ 3,
+ 3,
+ 3,
+ null,
+ null,
+ 1,
+ 3,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ 1,
+ 4,
+ 3,
+ 2,
+ 2,
+ 2,
+ 2,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ 11,
+ null,
+ null,
+ 1,
+ 4,
+ null,
+ null,
+ 1,
+ 2,
+ null,
+ null,
+ 1,
+ 6,
+ null,
+ null,
+ 1,
+ 3,
+ null,
+ null,
+ 1,
+ 2,
+ null,
+ null,
+ 1,
+ 4,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null
+ ]
+ },
+ "/myapp/lib/tasks/task_helpers/compose_taskhelper.rb": {
+ "lines": [
+ null,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ 2,
+ 2,
+ null,
+ 1,
0,
+ null,
+ null
+ ]
+ },
+ "/myapp/lib/tasks/task_helpers/taskhelper.rb": {
+ "lines": [
+ null,
+ null,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ 1,
0,
0,
0,
+ null,
+ null,
+ null,
+ 1,
0,
+ null,
+ null,
+ null
+ ]
+ },
+ "/myapp/app/workers/application_worker.rb": {
+ "lines": [
+ null,
+ null,
+ 1,
+ 1,
+ 1,
+ null,
+ 1,
+ 1,
+ 3,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ 2,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ 2,
+ null,
+ null,
+ null,
+ 1,
+ null,
+ 1,
+ 4,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null,
+ 1,
+ 3,
+ null,
+ null,
+ 1,
+ 1,
+ 1,
+ 1,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ 2,
+ null,
+ null,
+ 1,
0,
- 0
- ],
- "branches": {
- }
+ null,
+ null,
+ 1,
+ 5,
+ null,
+ 1,
+ null,
+ null,
+ 1,
+ 10,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ null
+ ]
+ },
+ "/myapp/app/workers/create_wallet_worker.rb": {
+ "lines": [
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ 1,
+ 2,
+ 2,
+ 1,
+ 1,
+ null,
+ null,
+ null,
+ 1,
+ 1,
+ null,
+ 1,
+ 1,
+ null,
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/services/create_ticket_service.rb": {
+ "/myapp/app/workers/transaction_to_block_worker.rb": {
"lines": [
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 5,
+ 5,
+ 5,
+ 5,
+ 5,
null,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
+ 1,
+ 5,
+ 4,
+ 3,
+ 1,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
+ 4,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
+ 1,
+ 1,
+ 1,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 5,
null,
- 0,
- 0,
- 0,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 3,
+ 3,
null,
- 0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
+ null,
+ 1,
+ 1,
+ null,
+ null
+ ]
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/services/create_wallet_service.rb": {
+ "/myapp/app/workers/assign_contract_worker.rb": {
"lines": [
null,
null,
- 0,
- 0,
+ 1,
+ 1,
0,
0,
null,
null,
- 0,
- 0,
- 0,
- 0,
+ 1,
+ 1,
null,
- 0,
+ 1,
0,
null,
+ null,
+ 1,
0,
- 0,
- 0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/services/transaction_to_block_service.rb": {
- "lines": [
null,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ 1,
0,
null,
- 0,
- 0,
- 0,
null,
- 0,
+ 1,
0,
null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
+ null
+ ]
+ },
+ "/myapp/app/models/concerns/sequences_validator.rb": {
+ "lines": [
+ null,
null,
0,
0,
0,
- null,
- 0,
0,
0,
- null,
0,
0,
0,
null,
0,
0,
- 0,
null,
0,
0,
@@ -1616,52 +1618,13 @@
"branches": {
}
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/workers/application_worker.rb": {
+ "/myapp/app/services/create_ticket_service.rb": {
"lines": [
null,
null,
0,
0,
0,
- null,
- 0,
- 0,
- 0,
- 0,
- 0,
- null,
- 0,
- 0,
- 0,
- 0,
- 0,
- null,
- 0,
- 0,
- 0,
- 0,
- 0,
- null,
- 0,
- 0,
- 0,
- 0,
- 0,
- null,
- 0,
- 0,
- 0,
- 0,
- 0,
- null,
- 0,
- null,
- 0,
- 0,
- 0,
- 0,
- 0,
- null,
0,
0,
0,
@@ -1669,7 +1632,6 @@
0,
0,
0,
- null,
0,
0,
0,
@@ -1680,7 +1642,6 @@
null,
0,
0,
- 0,
null,
0,
0,
@@ -1689,8 +1650,6 @@
0,
0,
0,
- 0,
- 0,
null,
0,
0,
@@ -1699,23 +1658,10 @@
0,
0,
0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/workers/assign_contract_worker.rb": {
- "lines": [
- null,
null,
0,
0,
0,
- 0,
- 0,
- null,
- 0,
- 0,
null,
0,
0,
@@ -1728,19 +1674,9 @@
0,
0,
0,
- null,
0,
0,
0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/workers/create_ticket_worker.rb": {
- "lines": [
- null,
- null,
0,
0,
null,
@@ -1753,26 +1689,10 @@
0,
0,
0,
- 0,
- null,
- 0,
- 0,
null,
0,
0,
0,
- 0
- ],
- "branches": {
- }
- },
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/workers/create_wallet_worker.rb": {
- "lines": [
- null,
- null,
- null,
- 0,
- 0,
null,
0,
0,
@@ -1781,8 +1701,6 @@
0,
0,
0,
- null,
- 0,
0,
null,
0,
@@ -1793,7 +1711,7 @@
"branches": {
}
},
- "/home/jesusgautamah/Projects/outerspace-blockchain/app/workers/transaction_to_block_worker.rb": {
+ "/myapp/app/workers/create_ticket_worker.rb": {
"lines": [
null,
null,
@@ -1807,37 +1725,12 @@
0,
0,
0,
- null,
- 0,
- 0,
- null,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- null,
- 0,
- 0,
- 0,
- null,
- 0,
- 0,
- 0,
- 0,
- null,
0,
0,
0,
null,
0,
0,
- 0,
- 0,
null,
0,
0,
@@ -1848,6 +1741,6 @@
}
}
},
- "timestamp": 1668993590
+ "timestamp": 1669310702
}
}
diff --git a/coverage/index.html b/coverage/index.html
index 2f269f6..66973e4 100644
--- a/coverage/index.html
+++ b/coverage/index.html
@@ -1,11 +1,11 @@
- Code coverage for Outerspace-blockchain
+ Code coverage for Myapp
-
+
@@ -14,7 +14,7 @@
-
Generated
2022-11-20T22:19:51-03:00
+
Generated
2022-11-24T17:25:02+00:00
@@ -675,15 +697,15 @@
Controllers
(
-
- 0.0%
+
+ 93.3%
covered at
-
- 0.0
+
+ 3.38
hits/line
)
@@ -696,11 +718,11 @@
- 371 relevant lines,
- 0 lines covered and
- 371 lines missed.
- (
- 0.0%
+ 209 relevant lines,
+ 195 lines covered and
+ 14 lines missed.
+ (
+ 93.3%
)
@@ -724,178 +746,178 @@
- app/controllers/api/v1/block_confirmations_controller.rb |
- 0.00 % |
+ app/controllers/api/v1/block_confirmations_controller.rb |
+ 100.00 % |
65 |
- 54 |
+ 35 |
+ 35 |
0 |
- 54 |
- 0.00 |
+ 2.54 |
- app/controllers/application_controller.rb |
- 0.00 % |
+ app/controllers/application_controller.rb |
+ 89.47 % |
72 |
- 52 |
- 0 |
- 52 |
- 0.00 |
+ 38 |
+ 34 |
+ 4 |
+ 11.71 |
- app/controllers/blocks_controller.rb |
- 0.00 % |
+ app/controllers/blocks_controller.rb |
+ 100.00 % |
20 |
- 12 |
+ 8 |
+ 8 |
0 |
- 12 |
- 0.00 |
+ 1.00 |
- app/controllers/chains_controller.rb |
- 0.00 % |
+ app/controllers/chains_controller.rb |
+ 100.00 % |
72 |
- 50 |
+ 33 |
+ 33 |
0 |
- 50 |
- 0.00 |
+ 2.33 |
- app/controllers/contracts_controller.rb |
- 0.00 % |
- 25 |
- 15 |
+ app/controllers/contracts_controller.rb |
+ 100.00 % |
+ 20 |
+ 8 |
+ 8 |
0 |
- 15 |
- 0.00 |
+ 1.00 |
- app/controllers/pools_controller.rb |
- 0.00 % |
- 73 |
- 51 |
- 0 |
- 51 |
- 0.00 |
+ app/controllers/pools_controller.rb |
+ 88.89 % |
+ 21 |
+ 9 |
+ 8 |
+ 1 |
+ 0.89 |
- app/controllers/signatures_controller.rb |
- 0.00 % |
- 25 |
- 15 |
+ app/controllers/signatures_controller.rb |
+ 100.00 % |
+ 20 |
+ 8 |
+ 8 |
0 |
- 15 |
- 0.00 |
+ 1.00 |
- app/controllers/tickets_controller.rb |
- 0.00 % |
- 76 |
- 53 |
- 0 |
- 53 |
- 0.00 |
+ app/controllers/tickets_controller.rb |
+ 60.87 % |
+ 49 |
+ 23 |
+ 14 |
+ 9 |
+ 0.61 |
- app/controllers/transactions_controller.rb |
- 0.00 % |
+ app/controllers/transactions_controller.rb |
+ 100.00 % |
48 |
- 33 |
+ 24 |
+ 24 |
0 |
- 33 |
- 0.00 |
+ 1.08 |
- app/controllers/users/confirmations_controller.rb |
- 0.00 % |
+ app/controllers/users/confirmations_controller.rb |
+ 100.00 % |
30 |
- 2 |
+ 1 |
+ 1 |
0 |
- 2 |
- 0.00 |
+ 1.00 |
- app/controllers/users/omniauth_callbacks_controller.rb |
- 0.00 % |
+ app/controllers/users/omniauth_callbacks_controller.rb |
+ 100.00 % |
30 |
- 2 |
+ 1 |
+ 1 |
0 |
- 2 |
- 0.00 |
+ 1.00 |
- app/controllers/users/passwords_controller.rb |
- 0.00 % |
+ app/controllers/users/passwords_controller.rb |
+ 100.00 % |
34 |
- 2 |
+ 1 |
+ 1 |
0 |
- 2 |
- 0.00 |
+ 1.00 |
- app/controllers/users/registrations_controller.rb |
- 0.00 % |
+ app/controllers/users/registrations_controller.rb |
+ 100.00 % |
61 |
- 13 |
+ 9 |
+ 9 |
0 |
- 13 |
- 0.00 |
+ 1.00 |
- app/controllers/users/sessions_controller.rb |
- 0.00 % |
+ app/controllers/users/sessions_controller.rb |
+ 100.00 % |
27 |
- 2 |
+ 1 |
+ 1 |
0 |
- 2 |
- 0.00 |
+ 1.00 |
- app/controllers/users/unlocks_controller.rb |
- 0.00 % |
+ app/controllers/users/unlocks_controller.rb |
+ 100.00 % |
30 |
- 2 |
+ 1 |
+ 1 |
0 |
- 2 |
- 0.00 |
+ 1.00 |
- app/controllers/wallets_controller.rb |
- 0.00 % |
+ app/controllers/wallets_controller.rb |
+ 100.00 % |
18 |
- 13 |
+ 9 |
+ 9 |
0 |
- 13 |
- 0.00 |
+ 1.11 |
@@ -967,15 +989,15 @@
Models
(
-
- 11.04%
+
+ 82.44%
covered at
-
- 0.11
+
+ 12.53
hits/line
)
@@ -988,11 +1010,11 @@
- 154 relevant lines,
- 17 lines covered and
- 137 lines missed.
- (
- 11.04%
+ 131 relevant lines,
+ 108 lines covered and
+ 23 lines missed.
+ (
+ 82.44%
)
@@ -1016,40 +1038,40 @@
- app/models/acceptable_number_sequence.rb |
- 0.00 % |
+ app/models/acceptable_number_sequence.rb |
+ 100.00 % |
4 |
- 2 |
+ 1 |
+ 1 |
0 |
- 2 |
- 0.00 |
+ 1.00 |
- app/models/acceptable_symbol_sequence.rb |
- 0.00 % |
+ app/models/acceptable_symbol_sequence.rb |
+ 100.00 % |
4 |
- 2 |
+ 1 |
+ 1 |
0 |
- 2 |
- 0.00 |
+ 1.00 |
- app/models/acceptable_word.rb |
- 0.00 % |
+ app/models/acceptable_word.rb |
+ 100.00 % |
4 |
- 2 |
+ 1 |
+ 1 |
0 |
- 2 |
- 0.00 |
+ 1.00 |
- app/models/application_record.rb |
+ app/models/application_record.rb |
100.00 % |
5 |
2 |
@@ -1060,29 +1082,29 @@
- app/models/block.rb |
- 0.00 % |
+ app/models/block.rb |
+ 100.00 % |
17 |
- 14 |
+ 12 |
+ 12 |
0 |
- 14 |
- 0.00 |
+ 6.58 |
- app/models/chain.rb |
- 0.00 % |
+ app/models/chain.rb |
+ 100.00 % |
10 |
- 7 |
+ 6 |
+ 6 |
0 |
- 7 |
- 0.00 |
+ 1.00 |
- app/models/concerns/sequences_validator.rb |
+ app/models/concerns/sequences_validator.rb |
0.00 % |
30 |
23 |
@@ -1093,90 +1115,90 @@
- app/models/concerns/wallet_exists_validator.rb |
- 0.00 % |
+ app/models/concerns/wallet_exists_validator.rb |
+ 100.00 % |
13 |
- 10 |
+ 6 |
+ 6 |
0 |
- 10 |
- 0.00 |
+ 22.00 |
- app/models/contract.rb |
- 0.00 % |
+ app/models/contract.rb |
+ 100.00 % |
7 |
- 5 |
+ 4 |
+ 4 |
0 |
- 5 |
- 0.00 |
+ 1.00 |
- app/models/pool.rb |
- 0.00 % |
+ app/models/pool.rb |
+ 100.00 % |
5 |
- 3 |
+ 2 |
+ 2 |
0 |
- 3 |
- 0.00 |
+ 1.00 |
- app/models/signature.rb |
- 0.00 % |
+ app/models/signature.rb |
+ 100.00 % |
12 |
- 6 |
+ 5 |
+ 5 |
0 |
- 6 |
- 0.00 |
+ 1.00 |
- app/models/ticket.rb |
- 0.00 % |
+ app/models/ticket.rb |
+ 100.00 % |
11 |
- 8 |
+ 7 |
+ 7 |
0 |
- 8 |
- 0.00 |
+ 1.00 |
- app/models/transaction.rb |
- 0.00 % |
+ app/models/transaction.rb |
+ 100.00 % |
25 |
- 20 |
+ 16 |
+ 16 |
0 |
- 20 |
- 0.00 |
+ 3.69 |
- app/models/user.rb |
- 55.56 % |
+ app/models/user.rb |
+ 100.00 % |
44 |
27 |
- 15 |
- 12 |
- 0.56 |
+ 27 |
+ 0 |
+ 32.11 |
- app/models/wallet.rb |
- 0.00 % |
+ app/models/wallet.rb |
+ 100.00 % |
33 |
- 23 |
+ 18 |
+ 18 |
0 |
- 23 |
- 0.00 |
+ 26.44 |
@@ -1190,15 +1212,15 @@
Mailers
(
-
- 0.0%
+
+ 100.0%
covered at
-
- 0.0
+
+ 1.0
hits/line
)
@@ -1211,11 +1233,11 @@
- 4 relevant lines,
- 0 lines covered and
- 4 lines missed.
- (
- 0.0%
+ 3 relevant lines,
+ 3 lines covered and
+ 0 lines missed.
+ (
+ 100.0%
)
@@ -1239,13 +1261,13 @@
- app/mailers/application_mailer.rb |
- 0.00 % |
+ app/mailers/application_mailer.rb |
+ 100.00 % |
6 |
- 4 |
+ 3 |
+ 3 |
0 |
- 4 |
- 0.00 |
+ 1.00 |
@@ -1308,7 +1330,7 @@
- app/helpers/application_helper.rb |
+ app/helpers/application_helper.rb |
100.00 % |
4 |
1 |
@@ -1319,7 +1341,7 @@
- app/helpers/blocks_helper.rb |
+ app/helpers/blocks_helper.rb |
100.00 % |
4 |
1 |
@@ -1330,7 +1352,7 @@
- app/helpers/chains_helper.rb |
+ app/helpers/chains_helper.rb |
100.00 % |
4 |
1 |
@@ -1341,7 +1363,7 @@
- app/helpers/contracts_helper.rb |
+ app/helpers/contracts_helper.rb |
100.00 % |
4 |
1 |
@@ -1352,7 +1374,7 @@
- app/helpers/pools_helper.rb |
+ app/helpers/pools_helper.rb |
100.00 % |
4 |
1 |
@@ -1363,7 +1385,7 @@
- app/helpers/signatures_helper.rb |
+ app/helpers/signatures_helper.rb |
100.00 % |
4 |
1 |
@@ -1374,7 +1396,7 @@
- app/helpers/tickets_helper.rb |
+ app/helpers/tickets_helper.rb |
100.00 % |
4 |
1 |
@@ -1385,7 +1407,7 @@
- app/helpers/transactions_helper.rb |
+ app/helpers/transactions_helper.rb |
100.00 % |
4 |
1 |
@@ -1396,7 +1418,7 @@
- app/helpers/wallets_helper.rb |
+ app/helpers/wallets_helper.rb |
100.00 % |
4 |
1 |
@@ -1417,14 +1439,14 @@
Jobs
(
- 0.0%
+ 78.07%
covered at
-
- 0.0
+
+ 1.35
hits/line
)
@@ -1437,11 +1459,11 @@
- 156 relevant lines,
- 0 lines covered and
- 156 lines missed.
+ 114 relevant lines,
+ 89 lines covered and
+ 25 lines missed.
(
- 0.0%
+ 78.07%
)
@@ -1465,29 +1487,29 @@
- app/workers/application_worker.rb |
- 0.00 % |
+ app/workers/application_worker.rb |
+ 97.62 % |
82 |
- 65 |
- 0 |
- 65 |
- 0.00 |
+ 42 |
+ 41 |
+ 1 |
+ 1.52 |
- app/workers/assign_contract_worker.rb |
- 0.00 % |
+ app/workers/assign_contract_worker.rb |
+ 57.14 % |
27 |
- 20 |
- 0 |
- 20 |
- 0.00 |
+ 14 |
+ 8 |
+ 6 |
+ 0.57 |
- app/workers/create_ticket_worker.rb |
+ app/workers/create_ticket_worker.rb |
0.00 % |
23 |
18 |
@@ -1498,24 +1520,24 @@
- app/workers/create_wallet_worker.rb |
- 0.00 % |
+ app/workers/create_wallet_worker.rb |
+ 100.00 % |
21 |
- 15 |
+ 11 |
+ 11 |
0 |
- 15 |
- 0.00 |
+ 1.18 |
- app/workers/transaction_to_block_worker.rb |
- 0.00 % |
+ app/workers/transaction_to_block_worker.rb |
+ 100.00 % |
48 |
- 38 |
+ 29 |
+ 29 |
0 |
- 38 |
- 0.00 |
+ 2.38 |
@@ -1529,15 +1551,15 @@
Libraries
(
-
- 100.0%
+
+ 86.11%
covered at
-
- 1.0
+
+ 0.92
hits/line
)
@@ -1546,15 +1568,15 @@
- 3 files in total.
+ 5 files in total.
- 11 relevant lines,
- 11 lines covered and
- 0 lines missed.
- (
- 100.0%
+ 36 relevant lines,
+ 31 lines covered and
+ 5 lines missed.
+ (
+ 86.11%
)
@@ -1578,7 +1600,7 @@
- lib/osbc/osbc.rb |
+ lib/osbc/osbc.rb |
100.00 % |
9 |
4 |
@@ -1589,7 +1611,7 @@
- lib/outerspace/blockchain.rb |
+ lib/outerspace/blockchain.rb |
100.00 % |
10 |
4 |
@@ -1600,7 +1622,7 @@
- lib/outerspace/blockchain/version.rb |
+ lib/outerspace/blockchain/version.rb |
100.00 % |
7 |
3 |
@@ -1610,6 +1632,28 @@
+
+ lib/tasks/task_helpers/compose_taskhelper.rb |
+ 92.31 % |
+ 22 |
+ 13 |
+ 12 |
+ 1 |
+ 1.08 |
+
+
+
+
+ lib/tasks/task_helpers/taskhelper.rb |
+ 66.67 % |
+ 23 |
+ 12 |
+ 8 |
+ 4 |
+ 0.67 |
+
+
+
@@ -1621,14 +1665,14 @@
Services
(
- 0.0%
+ 68.14%
covered at
-
- 0.0
+
+ 11.76
hits/line
)
@@ -1641,11 +1685,11 @@
- 282 relevant lines,
- 0 lines covered and
- 282 lines missed.
+ 226 relevant lines,
+ 154 lines covered and
+ 72 lines missed.
(
- 0.0%
+ 68.14%
)
@@ -1669,57 +1713,57 @@
- app/services/application_service.rb |
- 0.00 % |
+ app/services/application_service.rb |
+ 91.67 % |
23 |
- 18 |
- 0 |
- 18 |
- 0.00 |
+ 12 |
+ 11 |
+ 1 |
+ 1.83 |
- app/services/assign_contracts_service.rb |
- 0.00 % |
- 163 |
- 134 |
+ app/services/assign_contracts_service.rb |
+ 100.00 % |
+ 162 |
+ 98 |
+ 98 |
0 |
- 134 |
- 0.00 |
+ 25.94 |
- app/services/create_ticket_service.rb |
+ app/services/create_ticket_service.rb |
0.00 % |
- 83 |
- 67 |
+ 87 |
+ 71 |
0 |
- 67 |
+ 71 |
0.00 |
- app/services/create_wallet_service.rb |
- 0.00 % |
+ app/services/create_wallet_service.rb |
+ 100.00 % |
20 |
- 14 |
+ 10 |
+ 10 |
0 |
- 14 |
- 0.00 |
+ 1.40 |
- app/services/transaction_to_block_service.rb |
- 0.00 % |
+ app/services/transaction_to_block_service.rb |
+ 100.00 % |
62 |
- 49 |
+ 35 |
+ 35 |
0 |
- 49 |
- 0.00 |
+ 2.26 |
@@ -1734,14 +1778,14 @@
Workers
(
- 0.0%
+ 78.07%
covered at
-
- 0.0
+
+ 1.35
hits/line
)
@@ -1754,11 +1798,11 @@
- 156 relevant lines,
- 0 lines covered and
- 156 lines missed.
+ 114 relevant lines,
+ 89 lines covered and
+ 25 lines missed.
(
- 0.0%
+ 78.07%
)
@@ -1782,29 +1826,29 @@
- app/workers/application_worker.rb |
- 0.00 % |
+ app/workers/application_worker.rb |
+ 97.62 % |
82 |
- 65 |
- 0 |
- 65 |
- 0.00 |
+ 42 |
+ 41 |
+ 1 |
+ 1.52 |
- app/workers/assign_contract_worker.rb |
- 0.00 % |
+ app/workers/assign_contract_worker.rb |
+ 57.14 % |
27 |
- 20 |
- 0 |
- 20 |
- 0.00 |
+ 14 |
+ 8 |
+ 6 |
+ 0.57 |
- app/workers/create_ticket_worker.rb |
+ app/workers/create_ticket_worker.rb |
0.00 % |
23 |
18 |
@@ -1815,24 +1859,24 @@
- app/workers/create_wallet_worker.rb |
- 0.00 % |
+ app/workers/create_wallet_worker.rb |
+ 100.00 % |
21 |
- 15 |
+ 11 |
+ 11 |
0 |
- 15 |
- 0.00 |
+ 1.18 |
- app/workers/transaction_to_block_worker.rb |
- 0.00 % |
+ app/workers/transaction_to_block_worker.rb |
+ 100.00 % |
48 |
- 38 |
+ 29 |
+ 29 |
0 |
- 38 |
- 0.00 |
+ 2.38 |
@@ -1895,7 +1939,7 @@
- lib/osbc/osbc.rb |
+ lib/osbc/osbc.rb |
100.00 % |
9 |
4 |
@@ -1964,7 +2008,7 @@
- lib/outerspace/blockchain.rb |
+ lib/outerspace/blockchain.rb |
100.00 % |
10 |
4 |
@@ -1975,7 +2019,7 @@
- lib/outerspace/blockchain/version.rb |
+ lib/outerspace/blockchain/version.rb |
100.00 % |
7 |
3 |
@@ -1991,6 +2035,86 @@
+
+
+ Task Helpers
+ (
+
+ 80.0%
+
+
+
+ covered at
+
+
+ 0.88
+
+ hits/line
+ )
+
+
+
+
+
+ 2 files in total.
+
+
+
+ 25 relevant lines,
+ 20 lines covered and
+ 5 lines missed.
+ (
+ 80.0%
+
+)
+
+
+
+
+
+
+
+