bitcoin_active_record 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +2 -0
  3. data/Gemfile.lock +45 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.md +121 -0
  6. data/Rakefile +4 -0
  7. data/bitcoin_active_record.gemspec +15 -0
  8. data/lib/bitcoin_active_record/client.rb +128 -0
  9. data/lib/bitcoin_active_record/models/btc_address.rb +12 -0
  10. data/lib/bitcoin_active_record/models/payment.rb +18 -0
  11. data/lib/bitcoin_active_record/models/received_payment.rb +11 -0
  12. data/lib/bitcoin_active_record/models/sent_payment.rb +10 -0
  13. data/lib/bitcoin_active_record/models.rb +9 -0
  14. data/lib/bitcoin_active_record.rb +24 -0
  15. data/lib/generators/bitcoin_active_record/install_generator.rb +26 -0
  16. data/lib/generators/templates/create_bitcoin_active_record_models.rb +32 -0
  17. data/lib/generators/templates/models/btc_address.rb +3 -0
  18. data/lib/generators/templates/models/payment.rb +3 -0
  19. data/lib/generators/templates/models/received_payment.rb +3 -0
  20. data/lib/generators/templates/models/sent_payment.rb +3 -0
  21. data/test/.gitignore +18 -0
  22. data/test/Gemfile +20 -0
  23. data/test/Gemfile.lock +146 -0
  24. data/test/README.rdoc +28 -0
  25. data/test/Rakefile +6 -0
  26. data/test/app/assets/images/.keep +0 -0
  27. data/test/app/assets/javascripts/application.js +16 -0
  28. data/test/app/assets/stylesheets/application.css +13 -0
  29. data/test/app/controllers/application_controller.rb +5 -0
  30. data/test/app/controllers/concerns/.keep +0 -0
  31. data/test/app/helpers/application_helper.rb +2 -0
  32. data/test/app/mailers/.keep +0 -0
  33. data/test/app/models/.keep +0 -0
  34. data/test/app/models/btc_address.rb +3 -0
  35. data/test/app/models/concerns/.keep +0 -0
  36. data/test/app/models/payment.rb +3 -0
  37. data/test/app/models/received_payment.rb +3 -0
  38. data/test/app/models/sent_payment.rb +3 -0
  39. data/test/app/views/layouts/application.html.erb +14 -0
  40. data/test/bin/bundle +3 -0
  41. data/test/bin/rails +8 -0
  42. data/test/bin/rake +8 -0
  43. data/test/bin/spring +15 -0
  44. data/test/bin/testunit +7 -0
  45. data/test/config/application.rb +23 -0
  46. data/test/config/boot.rb +4 -0
  47. data/test/config/database.yml +25 -0
  48. data/test/config/environment.rb +5 -0
  49. data/test/config/environments/development.rb +29 -0
  50. data/test/config/environments/production.rb +80 -0
  51. data/test/config/environments/test.rb +38 -0
  52. data/test/config/initializers/backtrace_silencers.rb +7 -0
  53. data/test/config/initializers/bitcoin_active_record.rb.example +5 -0
  54. data/test/config/initializers/filter_parameter_logging.rb +4 -0
  55. data/test/config/initializers/inflections.rb +16 -0
  56. data/test/config/initializers/mime_types.rb +5 -0
  57. data/test/config/initializers/secret_token.rb +12 -0
  58. data/test/config/initializers/session_store.rb +3 -0
  59. data/test/config/initializers/wrap_parameters.rb +14 -0
  60. data/test/config/locales/en.yml +23 -0
  61. data/test/config/routes.rb +56 -0
  62. data/test/config.ru +4 -0
  63. data/test/db/migrate/20150425185338_create_bitcoin_active_record_models.rb +32 -0
  64. data/test/db/schema.rb +53 -0
  65. data/test/db/seeds.rb +7 -0
  66. data/test/lib/assets/.keep +0 -0
  67. data/test/lib/tasks/.keep +0 -0
  68. data/test/log/.keep +0 -0
  69. data/test/public/404.html +58 -0
  70. data/test/public/422.html +58 -0
  71. data/test/public/500.html +57 -0
  72. data/test/public/favicon.ico +0 -0
  73. data/test/public/robots.txt +5 -0
  74. data/test/test/controllers/.keep +0 -0
  75. data/test/test/fixtures/.keep +0 -0
  76. data/test/test/helpers/.keep +0 -0
  77. data/test/test/integration/.keep +0 -0
  78. data/test/test/integration/bitcoin_payments/client_test.rb +118 -0
  79. data/test/test/integration/bitcoin_payments/generators_test.rb +39 -0
  80. data/test/test/mailers/.keep +0 -0
  81. data/test/test/models/.keep +0 -0
  82. data/test/test/test_helper.rb +18 -0
  83. data/test/vendor/assets/javascripts/.keep +0 -0
  84. data/test/vendor/assets/stylesheets/.keep +0 -0
  85. metadata +230 -0
metadata ADDED
@@ -0,0 +1,230 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bitcoin_active_record
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Lihan Li
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-04-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 0.13.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 0.13.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: auto_strip_attributes
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 2.0.4
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 2.0.4
41
+ - !ruby/object:Gem::Dependency
42
+ name: script_utils
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 0.0.3
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 0.0.3
55
+ description:
56
+ email: frankieteardrop@gmail.com
57
+ executables: []
58
+ extensions: []
59
+ extra_rdoc_files: []
60
+ files:
61
+ - Gemfile
62
+ - Gemfile.lock
63
+ - MIT-LICENSE
64
+ - README.md
65
+ - Rakefile
66
+ - bitcoin_active_record.gemspec
67
+ - lib/bitcoin_active_record.rb
68
+ - lib/bitcoin_active_record/client.rb
69
+ - lib/bitcoin_active_record/models.rb
70
+ - lib/bitcoin_active_record/models/btc_address.rb
71
+ - lib/bitcoin_active_record/models/payment.rb
72
+ - lib/bitcoin_active_record/models/received_payment.rb
73
+ - lib/bitcoin_active_record/models/sent_payment.rb
74
+ - lib/generators/bitcoin_active_record/install_generator.rb
75
+ - lib/generators/templates/create_bitcoin_active_record_models.rb
76
+ - lib/generators/templates/models/btc_address.rb
77
+ - lib/generators/templates/models/payment.rb
78
+ - lib/generators/templates/models/received_payment.rb
79
+ - lib/generators/templates/models/sent_payment.rb
80
+ - test/.gitignore
81
+ - test/Gemfile
82
+ - test/Gemfile.lock
83
+ - test/README.rdoc
84
+ - test/Rakefile
85
+ - test/app/assets/images/.keep
86
+ - test/app/assets/javascripts/application.js
87
+ - test/app/assets/stylesheets/application.css
88
+ - test/app/controllers/application_controller.rb
89
+ - test/app/controllers/concerns/.keep
90
+ - test/app/helpers/application_helper.rb
91
+ - test/app/mailers/.keep
92
+ - test/app/models/.keep
93
+ - test/app/models/btc_address.rb
94
+ - test/app/models/concerns/.keep
95
+ - test/app/models/payment.rb
96
+ - test/app/models/received_payment.rb
97
+ - test/app/models/sent_payment.rb
98
+ - test/app/views/layouts/application.html.erb
99
+ - test/bin/bundle
100
+ - test/bin/rails
101
+ - test/bin/rake
102
+ - test/bin/spring
103
+ - test/bin/testunit
104
+ - test/config.ru
105
+ - test/config/application.rb
106
+ - test/config/boot.rb
107
+ - test/config/database.yml
108
+ - test/config/environment.rb
109
+ - test/config/environments/development.rb
110
+ - test/config/environments/production.rb
111
+ - test/config/environments/test.rb
112
+ - test/config/initializers/backtrace_silencers.rb
113
+ - test/config/initializers/bitcoin_active_record.rb.example
114
+ - test/config/initializers/filter_parameter_logging.rb
115
+ - test/config/initializers/inflections.rb
116
+ - test/config/initializers/mime_types.rb
117
+ - test/config/initializers/secret_token.rb
118
+ - test/config/initializers/session_store.rb
119
+ - test/config/initializers/wrap_parameters.rb
120
+ - test/config/locales/en.yml
121
+ - test/config/routes.rb
122
+ - test/db/migrate/20150425185338_create_bitcoin_active_record_models.rb
123
+ - test/db/schema.rb
124
+ - test/db/seeds.rb
125
+ - test/lib/assets/.keep
126
+ - test/lib/tasks/.keep
127
+ - test/log/.keep
128
+ - test/public/404.html
129
+ - test/public/422.html
130
+ - test/public/500.html
131
+ - test/public/favicon.ico
132
+ - test/public/robots.txt
133
+ - test/test/controllers/.keep
134
+ - test/test/fixtures/.keep
135
+ - test/test/helpers/.keep
136
+ - test/test/integration/.keep
137
+ - test/test/integration/bitcoin_payments/client_test.rb
138
+ - test/test/integration/bitcoin_payments/generators_test.rb
139
+ - test/test/mailers/.keep
140
+ - test/test/models/.keep
141
+ - test/test/test_helper.rb
142
+ - test/vendor/assets/javascripts/.keep
143
+ - test/vendor/assets/stylesheets/.keep
144
+ homepage:
145
+ licenses: []
146
+ metadata: {}
147
+ post_install_message:
148
+ rdoc_options: []
149
+ require_paths:
150
+ - lib
151
+ required_ruby_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ required_rubygems_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ requirements: []
162
+ rubyforge_project:
163
+ rubygems_version: 2.4.5
164
+ signing_key:
165
+ specification_version: 4
166
+ summary: bitcoin activerecord integration
167
+ test_files:
168
+ - test/Gemfile
169
+ - test/Gemfile.lock
170
+ - test/README.rdoc
171
+ - test/Rakefile
172
+ - test/app/assets/images/.keep
173
+ - test/app/assets/javascripts/application.js
174
+ - test/app/assets/stylesheets/application.css
175
+ - test/app/controllers/application_controller.rb
176
+ - test/app/controllers/concerns/.keep
177
+ - test/app/helpers/application_helper.rb
178
+ - test/app/mailers/.keep
179
+ - test/app/models/.keep
180
+ - test/app/models/btc_address.rb
181
+ - test/app/models/concerns/.keep
182
+ - test/app/models/payment.rb
183
+ - test/app/models/received_payment.rb
184
+ - test/app/models/sent_payment.rb
185
+ - test/app/views/layouts/application.html.erb
186
+ - test/bin/bundle
187
+ - test/bin/rails
188
+ - test/bin/rake
189
+ - test/bin/spring
190
+ - test/bin/testunit
191
+ - test/config.ru
192
+ - test/config/application.rb
193
+ - test/config/boot.rb
194
+ - test/config/database.yml
195
+ - test/config/environment.rb
196
+ - test/config/environments/development.rb
197
+ - test/config/environments/production.rb
198
+ - test/config/environments/test.rb
199
+ - test/config/initializers/backtrace_silencers.rb
200
+ - test/config/initializers/bitcoin_active_record.rb.example
201
+ - test/config/initializers/filter_parameter_logging.rb
202
+ - test/config/initializers/inflections.rb
203
+ - test/config/initializers/mime_types.rb
204
+ - test/config/initializers/secret_token.rb
205
+ - test/config/initializers/session_store.rb
206
+ - test/config/initializers/wrap_parameters.rb
207
+ - test/config/locales/en.yml
208
+ - test/config/routes.rb
209
+ - test/db/migrate/20150425185338_create_bitcoin_active_record_models.rb
210
+ - test/db/schema.rb
211
+ - test/db/seeds.rb
212
+ - test/lib/assets/.keep
213
+ - test/lib/tasks/.keep
214
+ - test/log/.keep
215
+ - test/public/404.html
216
+ - test/public/422.html
217
+ - test/public/500.html
218
+ - test/public/favicon.ico
219
+ - test/public/robots.txt
220
+ - test/test/controllers/.keep
221
+ - test/test/fixtures/.keep
222
+ - test/test/helpers/.keep
223
+ - test/test/integration/.keep
224
+ - test/test/integration/bitcoin_payments/client_test.rb
225
+ - test/test/integration/bitcoin_payments/generators_test.rb
226
+ - test/test/mailers/.keep
227
+ - test/test/models/.keep
228
+ - test/test/test_helper.rb
229
+ - test/vendor/assets/javascripts/.keep
230
+ - test/vendor/assets/stylesheets/.keep