mcfly 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. data/.gitignore +21 -0
  2. data/.rspec +1 -0
  3. data/Gemfile +4 -0
  4. data/MIT-LICENSE +20 -0
  5. data/README.md +113 -0
  6. data/Rakefile +27 -0
  7. data/lib/mcfly/controller.rb +21 -0
  8. data/lib/mcfly/delete_trig.sql +18 -0
  9. data/lib/mcfly/has_mcfly.rb +63 -0
  10. data/lib/mcfly/insert_trig.sql +27 -0
  11. data/lib/mcfly/migration.rb +27 -0
  12. data/lib/mcfly/update_append_only_trig.sql +25 -0
  13. data/lib/mcfly/update_trig.sql +62 -0
  14. data/lib/mcfly/version.rb +3 -0
  15. data/lib/mcfly.rb +36 -0
  16. data/lib/tasks/mcfly_tasks.rake +4 -0
  17. data/mcfly.gemspec +27 -0
  18. data/spec/dummy/.rspec +1 -0
  19. data/spec/dummy/README.rdoc +261 -0
  20. data/spec/dummy/Rakefile +7 -0
  21. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  22. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  23. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  24. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  25. data/spec/dummy/app/mailers/.gitkeep +0 -0
  26. data/spec/dummy/app/models/.gitkeep +0 -0
  27. data/spec/dummy/app/models/market_price.rb +26 -0
  28. data/spec/dummy/app/models/security_instrument.rb +15 -0
  29. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  30. data/spec/dummy/config/application.rb +65 -0
  31. data/spec/dummy/config/boot.rb +10 -0
  32. data/spec/dummy/config/database.yml +17 -0
  33. data/spec/dummy/config/environment.rb +5 -0
  34. data/spec/dummy/config/environments/development.rb +37 -0
  35. data/spec/dummy/config/environments/production.rb +67 -0
  36. data/spec/dummy/config/environments/test.rb +37 -0
  37. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  38. data/spec/dummy/config/initializers/inflections.rb +15 -0
  39. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  40. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  41. data/spec/dummy/config/initializers/session_store.rb +8 -0
  42. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  43. data/spec/dummy/config/locales/en.yml +5 -0
  44. data/spec/dummy/config/routes.rb +58 -0
  45. data/spec/dummy/config.ru +4 -0
  46. data/spec/dummy/db/migrate/001_create_security_instruments.rb +8 -0
  47. data/spec/dummy/db/migrate/002_create_market_prices.rb +14 -0
  48. data/spec/dummy/db/schema.rb +37 -0
  49. data/spec/dummy/lib/assets/.gitkeep +0 -0
  50. data/spec/dummy/log/.gitkeep +0 -0
  51. data/spec/dummy/log/development.log +3 -0
  52. data/spec/dummy/public/404.html +26 -0
  53. data/spec/dummy/public/422.html +26 -0
  54. data/spec/dummy/public/500.html +25 -0
  55. data/spec/dummy/public/favicon.ico +0 -0
  56. data/spec/dummy/script/rails +6 -0
  57. data/spec/model_spec.rb +206 -0
  58. data/spec/spec_helper.rb +51 -0
  59. metadata +184 -0
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,58 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation:
3
+ # first created -> highest priority.
4
+
5
+ # Sample of regular route:
6
+ # match 'products/:id' => 'catalog#view'
7
+ # Keep in mind you can assign values other than :controller and :action
8
+
9
+ # Sample of named route:
10
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
+ # This route can be invoked with purchase_url(:id => product.id)
12
+
13
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
14
+ # resources :products
15
+
16
+ # Sample resource route with options:
17
+ # resources :products do
18
+ # member do
19
+ # get 'short'
20
+ # post 'toggle'
21
+ # end
22
+ #
23
+ # collection do
24
+ # get 'sold'
25
+ # end
26
+ # end
27
+
28
+ # Sample resource route with sub-resources:
29
+ # resources :products do
30
+ # resources :comments, :sales
31
+ # resource :seller
32
+ # end
33
+
34
+ # Sample resource route with more complex sub-resources
35
+ # resources :products do
36
+ # resources :comments
37
+ # resources :sales do
38
+ # get 'recent', :on => :collection
39
+ # end
40
+ # end
41
+
42
+ # Sample resource route within a namespace:
43
+ # namespace :admin do
44
+ # # Directs /admin/products/* to Admin::ProductsController
45
+ # # (app/controllers/admin/products_controller.rb)
46
+ # resources :products
47
+ # end
48
+
49
+ # You can have the root of your site routed with "root"
50
+ # just remember to delete public/index.html.
51
+ # root :to => 'welcome#index'
52
+
53
+ # See how all your routes lay out with "rake routes"
54
+
55
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
56
+ # Note: This route will make all actions in every controller accessible via GET requests.
57
+ # match ':controller(/:action(/:id))(.:format)'
58
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -0,0 +1,8 @@
1
+ class CreateSecurityInstruments < McFlyAppendOnlyMigration
2
+ def change
3
+ create_table :security_instruments do |t|
4
+ t.string :name, null: false
5
+ t.string :settlement_class, limit: 1, null: false
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,14 @@
1
+ require 'mcfly'
2
+
3
+ class CreateMarketPrices < McFlyMigration
4
+ def change
5
+ create_table :market_prices do |t|
6
+ t.references :security_instrument, null: false
7
+ t.decimal :coupon, null: false
8
+ t.integer :settlement_mm, null: false
9
+ t.integer :settlement_yy, null: false
10
+ # NULL indicates unknown price
11
+ t.decimal :price
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,37 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 2) do
15
+
16
+ create_table "market_prices", :force => true do |t|
17
+ t.integer "group_id", :null => false
18
+ t.datetime "created_dt", :null => false
19
+ t.datetime "obsoleted_dt", :null => false
20
+ t.integer "user_id", :null => false
21
+ t.integer "security_instrument_id", :null => false
22
+ t.decimal "coupon", :null => false
23
+ t.integer "settlement_mm", :null => false
24
+ t.integer "settlement_yy", :null => false
25
+ t.decimal "price"
26
+ end
27
+
28
+ create_table "security_instruments", :force => true do |t|
29
+ t.integer "group_id", :null => false
30
+ t.datetime "created_dt", :null => false
31
+ t.datetime "obsoleted_dt", :null => false
32
+ t.integer "user_id", :null => false
33
+ t.string "name", :null => false
34
+ t.string "settlement_class", :limit => 1, :null => false
35
+ end
36
+
37
+ end
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+ Connecting to database specified by database.yml
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,206 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "Mcfly" do
4
+ before(:each) do
5
+ Mcfly.whodunnit = TestUser.new(10)
6
+
7
+ @old = '2000-01-01'
8
+
9
+ @dts = ['2001-01-01', '2001-01-05', '2001-01-10']
10
+
11
+ @sis = [
12
+ ["FN Fix-30 MBS", "A"],
13
+ ["FN Fix-30 Cash", "A"],
14
+ ["FN Fix-30 MBS Blend", "A"],
15
+ ["FN Fix-30 HB MBS", "A"],
16
+ ["FN Fix-15 MBS", "B"],
17
+ ["FN Fix-15 Cash", "B"],
18
+ ["FN Fix-15 HB MBS", "B"],
19
+ ["FN Fix-15 HB Cash", "B"],
20
+ ["FN ARM 3/1 LIBOR", "D"],
21
+ ["FN ARM 3/1 LIBOR Cash", "D"],
22
+ ["FN ARM 5/1 LIBOR", "D"],
23
+ ["FN ARM 5/1 LIBOR Cash", "D"],
24
+ ]
25
+
26
+ @sis.each_with_index { |(name, sc), i|
27
+ si = SecurityInstrument.new(name: name, settlement_class: sc)
28
+ si.created_dt = @dts[i % @dts.length]
29
+ si.save!
30
+ }
31
+
32
+ @sis.each_with_index { |(name, sc), i|
33
+ ii = i+1
34
+ si = SecurityInstrument.find_by_name(name)
35
+ mp = MarketPrice.new(security_instrument_id: si.id,
36
+ coupon: ii * 1.1,
37
+ settlement_mm: ii,
38
+ settlement_yy: 2000+ii,
39
+ price: ii,
40
+ )
41
+ mp.created_dt = si.created_dt
42
+ mp.save!
43
+
44
+ @vers = 5
45
+
46
+ # create 5 additional verions for each mp
47
+ (1..@vers).each {
48
+ mp.price = mp.price + 1
49
+ mp.created_dt = mp.created_dt + 1.day
50
+ mp.save!
51
+ }
52
+ }
53
+
54
+ end
55
+
56
+ it "should update obsoleted_dt properly when created_dt is set" do
57
+ si = SecurityInstrument.first
58
+ mp = MarketPrice.new(security_instrument_id: si.id,
59
+ coupon: 2.0,
60
+ settlement_mm: 1,
61
+ settlement_yy: 2013,
62
+ price: 100.256,
63
+ )
64
+ mp.created_dt = si.created_dt
65
+ mp.save!
66
+
67
+ mp.price = mp.price + 123
68
+ mp.created_dt = si.created_dt + 1.day
69
+ mp.save!
70
+
71
+ l = MarketPrice.where("group_id = ?", mp.id).order("obsoleted_dt").all
72
+ l.length.should == 2
73
+
74
+ l[1].obsoleted_dt.should == Float::INFINITY
75
+ l[0].obsoleted_dt.should == mp.created_dt
76
+
77
+ # Make sure that setting an old created_dt fails.
78
+ mp.price = mp.price + 123
79
+ mp.created_dt = mp.created_dt - 1.day
80
+ lambda {
81
+ mp.save!
82
+ }.should raise_error(ActiveRecord::StatementInvalid)
83
+ end
84
+
85
+ it "should make sure that append-only does not allow changes" do
86
+ si = SecurityInstrument.lookup('infinity', "FN Fix-30 MBS")
87
+ si.settlement_class.should == "A"
88
+
89
+ si.name = "xyz"
90
+
91
+ lambda {
92
+ si.save!
93
+ }.should raise_error(ActiveRecord::StatementInvalid)
94
+
95
+ end
96
+
97
+ it "should be able to delete append-only items" do
98
+ osi = SecurityInstrument.find_by_name("FN Fix-30 MBS")
99
+ osi.delete
100
+
101
+ osi = SecurityInstrument.find_by_name("FN Fix-30 MBS")
102
+
103
+ (osi.obsoleted_dt - DateTime.now).to_f.abs.should < 100
104
+
105
+ lambda {
106
+ osi.delete
107
+ }.should raise_error(ActiveRecord::StatementInvalid)
108
+ end
109
+
110
+ it "should be able to delete append-only items and create a new clone" do
111
+ osi = SecurityInstrument.find_by_name("FN Fix-30 MBS")
112
+ osi.delete
113
+
114
+ # now try to add a clone of si
115
+ si = SecurityInstrument.new(name: osi.name,
116
+ settlement_class: osi.settlement_class)
117
+ si.save!
118
+ end
119
+
120
+ it "should check basic versioning" do
121
+ SecurityInstrument.lookup_all('infinity').count.should == @sis.count
122
+
123
+ @dts.each_with_index { |pt, i|
124
+ SecurityInstrument.lookup_all(pt + " 12:00 PST8PDT").count.should ==
125
+ (i+1) * @sis.count/@dts.length
126
+ }
127
+
128
+ SecurityInstrument.lookup_all(@old).count.should == 0
129
+ SecurityInstrument.lookup(@old, "FN Fix-30 MBS").should == nil
130
+
131
+ # all versions
132
+ MarketPrice.count == @sis.length * (@vers+1)
133
+
134
+ MarketPrice.lookup_all('infinity').count.should == @sis.count
135
+
136
+ si = SecurityInstrument.first
137
+
138
+ mp = MarketPrice.lookup_si('infinity', si)
139
+
140
+ odate = mp.created_dt - 0.5.day
141
+
142
+ # previous version of mp
143
+ omp = MarketPrice.lookup_si(odate, si)
144
+
145
+ mp.price.should == omp.price + 1
146
+ end
147
+
148
+ it "should test mcfly uniqueness validations" do
149
+ def new_mp(price)
150
+ si = SecurityInstrument.first
151
+ MarketPrice.new(security_instrument_id: si.id,
152
+ coupon: 2.0,
153
+ settlement_mm: 1,
154
+ settlement_yy: 2013,
155
+ price: price,
156
+ )
157
+ end
158
+
159
+ si = SecurityInstrument.first
160
+ mp = new_mp(100.256)
161
+ mp.created_dt = si.created_dt
162
+ mp.save!
163
+
164
+ # create another MarketPrice with the same si/coupon/mm/yy. This
165
+ # should fail.
166
+ mp2 = new_mp(mp.price + 100)
167
+
168
+ mp2.created_dt = si.created_dt + 1.day
169
+ lambda {
170
+ mp2.save!
171
+ }.should raise_error(ActiveRecord::RecordInvalid)
172
+
173
+ # now change mp's settlement_mm
174
+ mp.settlement_mm += 1
175
+ mp.save!
176
+
177
+ # since we changed mp's settlement_mm, we should be able to create
178
+ # a new one with the same info as mp's old instance.
179
+ mp3 = new_mp(100.256)
180
+ mp3.save!
181
+ end
182
+
183
+ it "should be able to delete objects" do
184
+ si = SecurityInstrument.find_by_name("FN Fix-30 Cash")
185
+ dt = DateTime.now
186
+
187
+ mp = MarketPrice.lookup_si(dt, si)
188
+ mp.obsoleted_dt.should == Float::INFINITY
189
+
190
+ sleep 1.seconds
191
+
192
+ mp.delete
193
+
194
+ MarketPrice.lookup_si('infinity', si).should == nil
195
+
196
+ omp = MarketPrice.lookup_si(dt, si)
197
+ omp.should_not == nil
198
+ omp.obsoleted_dt.should_not == Float::INFINITY
199
+
200
+ omp.price = 1010
201
+ lambda {
202
+ omp.save!
203
+ }.should raise_error(ActiveRecord::StatementInvalid)
204
+ end
205
+
206
+ end
@@ -0,0 +1,51 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV["RAILS_ENV"] ||= 'test'
3
+ require File.expand_path("../dummy/config/environment", __FILE__)
4
+
5
+ require 'rspec/rails'
6
+ require 'rspec/autorun'
7
+
8
+ Rails.backtrace_cleaner.remove_silencers!
9
+
10
+ # Run any available migration
11
+ ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
12
+
13
+ # Requires supporting ruby files with custom matchers and macros, etc,
14
+ # in spec/support/ and its subdirectories.
15
+ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
16
+
17
+ # global setup block resetting Thread.current
18
+ class ActiveSupport::TestCase
19
+ teardown do
20
+ Thread.current[:mcfly] = nil
21
+ end
22
+ end
23
+
24
+ RSpec.configure do |config|
25
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
26
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
27
+
28
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
29
+ # examples within a transaction, remove the following line or assign false
30
+ # instead of true.
31
+ config.use_transactional_fixtures = true
32
+
33
+ # If true, the base class of anonymous controllers will be inferred
34
+ # automatically. This will be the default behavior in future versions of
35
+ # rspec-rails.
36
+ config.infer_base_class_for_anonymous_controllers = false
37
+
38
+ # Run specs in random order to surface order dependencies. If you find an
39
+ # order dependency and want to debug it, you can fix the order by providing
40
+ # the seed, which is printed after each run.
41
+ # --seed 1234
42
+ config.order = "random"
43
+ end
44
+
45
+ class TestUser
46
+ attr_reader :id
47
+
48
+ def initialize(id)
49
+ @id = id
50
+ end
51
+ end
metadata ADDED
@@ -0,0 +1,184 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mcfly
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Arman Bostani
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-04 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.11
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.11
30
+ - !ruby/object:Gem::Dependency
31
+ name: pg
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: delorean_lang
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rspec
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: rspec-rails
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ description: A database table versioning system.
95
+ email:
96
+ - arman.bostani@pnmac.com
97
+ executables: []
98
+ extensions: []
99
+ extra_rdoc_files: []
100
+ files:
101
+ - .gitignore
102
+ - .rspec
103
+ - Gemfile
104
+ - MIT-LICENSE
105
+ - README.md
106
+ - Rakefile
107
+ - lib/mcfly.rb
108
+ - lib/mcfly/controller.rb
109
+ - lib/mcfly/delete_trig.sql
110
+ - lib/mcfly/has_mcfly.rb
111
+ - lib/mcfly/insert_trig.sql
112
+ - lib/mcfly/migration.rb
113
+ - lib/mcfly/update_append_only_trig.sql
114
+ - lib/mcfly/update_trig.sql
115
+ - lib/mcfly/version.rb
116
+ - lib/tasks/mcfly_tasks.rake
117
+ - mcfly.gemspec
118
+ - spec/dummy/.rspec
119
+ - spec/dummy/README.rdoc
120
+ - spec/dummy/Rakefile
121
+ - spec/dummy/app/assets/javascripts/application.js
122
+ - spec/dummy/app/assets/stylesheets/application.css
123
+ - spec/dummy/app/controllers/application_controller.rb
124
+ - spec/dummy/app/helpers/application_helper.rb
125
+ - spec/dummy/app/mailers/.gitkeep
126
+ - spec/dummy/app/models/.gitkeep
127
+ - spec/dummy/app/models/market_price.rb
128
+ - spec/dummy/app/models/security_instrument.rb
129
+ - spec/dummy/app/views/layouts/application.html.erb
130
+ - spec/dummy/config.ru
131
+ - spec/dummy/config/application.rb
132
+ - spec/dummy/config/boot.rb
133
+ - spec/dummy/config/database.yml
134
+ - spec/dummy/config/environment.rb
135
+ - spec/dummy/config/environments/development.rb
136
+ - spec/dummy/config/environments/production.rb
137
+ - spec/dummy/config/environments/test.rb
138
+ - spec/dummy/config/initializers/backtrace_silencers.rb
139
+ - spec/dummy/config/initializers/inflections.rb
140
+ - spec/dummy/config/initializers/mime_types.rb
141
+ - spec/dummy/config/initializers/secret_token.rb
142
+ - spec/dummy/config/initializers/session_store.rb
143
+ - spec/dummy/config/initializers/wrap_parameters.rb
144
+ - spec/dummy/config/locales/en.yml
145
+ - spec/dummy/config/routes.rb
146
+ - spec/dummy/db/migrate/001_create_security_instruments.rb
147
+ - spec/dummy/db/migrate/002_create_market_prices.rb
148
+ - spec/dummy/db/schema.rb
149
+ - spec/dummy/lib/assets/.gitkeep
150
+ - spec/dummy/log/.gitkeep
151
+ - spec/dummy/log/development.log
152
+ - spec/dummy/public/404.html
153
+ - spec/dummy/public/422.html
154
+ - spec/dummy/public/500.html
155
+ - spec/dummy/public/favicon.ico
156
+ - spec/dummy/script/rails
157
+ - spec/model_spec.rb
158
+ - spec/spec_helper.rb
159
+ homepage: https://github.com/arman000/mcfly
160
+ licenses: []
161
+ post_install_message:
162
+ rdoc_options: []
163
+ require_paths:
164
+ - lib
165
+ required_ruby_version: !ruby/object:Gem::Requirement
166
+ none: false
167
+ requirements:
168
+ - - ! '>='
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
171
+ required_rubygems_version: !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ! '>='
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
177
+ requirements: []
178
+ rubyforge_project:
179
+ rubygems_version: 1.8.25
180
+ signing_key:
181
+ specification_version: 3
182
+ summary: A database table versioning system.
183
+ test_files: []
184
+ has_rdoc: