money-altcoin 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile +5 -0
- data/config/currency_altcoin.json +5812 -0
- data/lib/money-altcoin.rb +10 -0
- data/lib/money-altcoin/version.rb +3 -0
- data/money-altcoin.gemspec +28 -0
- metadata +64 -0
@@ -0,0 +1,10 @@
|
|
1
|
+
require 'money'
|
2
|
+
|
3
|
+
path_to_altcoins = File.expand_path("../../config", __FILE__)
|
4
|
+
Dir.glob("#{path_to_altcoins}/currency_*.json").each do |file|
|
5
|
+
coins = JSON.parse(File.open(file, 'r').read, symbolize_names: true)
|
6
|
+
for symbol, data in coins
|
7
|
+
coin = JSON.parse(data.to_json, symbolize_names: true)
|
8
|
+
Money::Currency.register(coin)
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "money-altcoin/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "money-altcoin"
|
8
|
+
s.version = Altcoin::VERSION
|
9
|
+
s.platform = Gem::Platform::RUBY
|
10
|
+
s.authors = ["Ethan Barron"]
|
11
|
+
s.email = ["ebarron@uco.edu"]
|
12
|
+
s.homepage = "https://github.com/Inkybro/money-altcoin"
|
13
|
+
s.summary = "Adds crypto currency support to the Money gem."
|
14
|
+
s.description = "Adds crypto currency support to the Money gem."
|
15
|
+
s.license = "MIT"
|
16
|
+
|
17
|
+
#s.add_dependency "i18n", "~> 0.6.4"
|
18
|
+
s.add_dependency "money", "~> 6.1.1"
|
19
|
+
|
20
|
+
#s.add_development_dependency "bundler", "~> 1.3"
|
21
|
+
#s.add_development_dependency "rake"
|
22
|
+
#s.add_development_dependency "rspec", "~> 2.14"
|
23
|
+
#s.add_development_dependency "yard", "~> 0.8"
|
24
|
+
#s.add_development_dependency "kramdown", "~> 1.1"
|
25
|
+
|
26
|
+
s.files = `git ls-files`.split($/)
|
27
|
+
s.require_paths = ["lib"]
|
28
|
+
end
|
metadata
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: money-altcoin
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ethan Barron
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: money
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 6.1.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 6.1.1
|
27
|
+
description: Adds crypto currency support to the Money gem.
|
28
|
+
email:
|
29
|
+
- ebarron@uco.edu
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- Gemfile
|
35
|
+
- config/currency_altcoin.json
|
36
|
+
- lib/money-altcoin.rb
|
37
|
+
- lib/money-altcoin/version.rb
|
38
|
+
- money-altcoin.gemspec
|
39
|
+
homepage: https://github.com/Inkybro/money-altcoin
|
40
|
+
licenses:
|
41
|
+
- MIT
|
42
|
+
metadata: {}
|
43
|
+
post_install_message:
|
44
|
+
rdoc_options: []
|
45
|
+
require_paths:
|
46
|
+
- lib
|
47
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ! '>='
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
requirements: []
|
58
|
+
rubyforge_project:
|
59
|
+
rubygems_version: 2.2.2
|
60
|
+
signing_key:
|
61
|
+
specification_version: 4
|
62
|
+
summary: Adds crypto currency support to the Money gem.
|
63
|
+
test_files: []
|
64
|
+
has_rdoc:
|