siringa 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +169 -0
  4. data/Rakefile +39 -0
  5. data/app/controllers/siringa/application_controller.rb +4 -0
  6. data/app/controllers/siringa/siringa_controller.rb +49 -0
  7. data/app/helpers/siringa/application_helper.rb +4 -0
  8. data/config/routes.rb +5 -0
  9. data/lib/generators/siringa/install_generator.rb +18 -0
  10. data/lib/generators/templates/siringa_initializer.rb +9 -0
  11. data/lib/siringa.rb +4 -0
  12. data/lib/siringa/configuration.rb +26 -0
  13. data/lib/siringa/definitions.rb +38 -0
  14. data/lib/siringa/dumps.rb +66 -0
  15. data/lib/siringa/engine.rb +5 -0
  16. data/lib/siringa/version.rb +3 -0
  17. data/lib/tasks/siringa_tasks.rake +11 -0
  18. data/test/controllers/siringa_controller_test.rb +23 -0
  19. data/test/dummy/Rakefile +7 -0
  20. data/test/dummy/app/assets/javascripts/application.js +9 -0
  21. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  22. data/test/dummy/app/controllers/application_controller.rb +3 -0
  23. data/test/dummy/app/helpers/application_helper.rb +2 -0
  24. data/test/dummy/app/models/user.rb +3 -0
  25. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  26. data/test/dummy/config.ru +4 -0
  27. data/test/dummy/config/application.rb +45 -0
  28. data/test/dummy/config/boot.rb +10 -0
  29. data/test/dummy/config/database.yml +25 -0
  30. data/test/dummy/config/environment.rb +5 -0
  31. data/test/dummy/config/environments/development.rb +30 -0
  32. data/test/dummy/config/environments/production.rb +60 -0
  33. data/test/dummy/config/environments/test.rb +39 -0
  34. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  35. data/test/dummy/config/initializers/inflections.rb +10 -0
  36. data/test/dummy/config/initializers/mime_types.rb +5 -0
  37. data/test/dummy/config/initializers/secret_token.rb +7 -0
  38. data/test/dummy/config/initializers/session_store.rb +8 -0
  39. data/test/dummy/config/initializers/siringa.rb +5 -0
  40. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/test/dummy/config/locales/en.yml +5 -0
  42. data/test/dummy/config/routes.rb +4 -0
  43. data/test/dummy/db/development.sqlite3 +0 -0
  44. data/test/dummy/db/migrate/20130927161308_create_user.rb +7 -0
  45. data/test/dummy/db/schema.rb +20 -0
  46. data/test/dummy/db/test.sqlite3 +0 -0
  47. data/test/dummy/log/development.log +1069 -0
  48. data/test/dummy/log/test.log +1471 -0
  49. data/test/dummy/public/404.html +26 -0
  50. data/test/dummy/public/422.html +26 -0
  51. data/test/dummy/public/500.html +26 -0
  52. data/test/dummy/public/favicon.ico +0 -0
  53. data/test/dummy/script/rails +6 -0
  54. data/test/dummy/test/factories.rb +7 -0
  55. data/test/dummy/test/siringa/definitions.rb +6 -0
  56. data/test/dummy/tmp/dumps/db_20130927191400.dump +0 -0
  57. data/test/integration/navigation_test.rb +10 -0
  58. data/test/siringa_test.rb +7 -0
  59. data/test/test_helper.rb +10 -0
  60. metadata +158 -0
@@ -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,26 @@
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
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </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,7 @@
1
+ require 'factory_girl'
2
+
3
+ FactoryGirl.define do
4
+ factory :user do
5
+ name 'Puppy Puppenstein'
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ require 'siringa'
2
+ require File.expand_path('../../factories', __FILE__)
3
+
4
+ Siringa.add_definition :initial do
5
+ FactoryGirl.create :user, name: 'Jesse Pinkman'
6
+ end
@@ -0,0 +1,10 @@
1
+ #require 'test_helper'
2
+
3
+ #class NavigationTest < ActionDispatch::IntegrationTest
4
+ #fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ #end
10
+
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class SiringaTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Siringa
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: siringa
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Enrico Stano
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sqlite3
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ! '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ! '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Remotely populate DB for Rails applications for pure client acceptance
28
+ testing
29
+ email:
30
+ - enricostn@gmail.com
31
+ executables: []
32
+ extensions: []
33
+ extra_rdoc_files: []
34
+ files:
35
+ - app/helpers/siringa/application_helper.rb
36
+ - app/controllers/siringa/siringa_controller.rb
37
+ - app/controllers/siringa/application_controller.rb
38
+ - config/routes.rb
39
+ - lib/siringa/configuration.rb
40
+ - lib/siringa/dumps.rb
41
+ - lib/siringa/definitions.rb
42
+ - lib/siringa/version.rb
43
+ - lib/siringa/engine.rb
44
+ - lib/tasks/siringa_tasks.rake
45
+ - lib/siringa.rb
46
+ - lib/generators/siringa/install_generator.rb
47
+ - lib/generators/templates/siringa_initializer.rb
48
+ - MIT-LICENSE
49
+ - Rakefile
50
+ - README.md
51
+ - test/test_helper.rb
52
+ - test/integration/navigation_test.rb
53
+ - test/siringa_test.rb
54
+ - test/dummy/db/migrate/20130927161308_create_user.rb
55
+ - test/dummy/db/schema.rb
56
+ - test/dummy/db/test.sqlite3
57
+ - test/dummy/db/development.sqlite3
58
+ - test/dummy/tmp/dumps/db_20130927191400.dump
59
+ - test/dummy/app/models/user.rb
60
+ - test/dummy/app/views/layouts/application.html.erb
61
+ - test/dummy/app/helpers/application_helper.rb
62
+ - test/dummy/app/assets/stylesheets/application.css
63
+ - test/dummy/app/assets/javascripts/application.js
64
+ - test/dummy/app/controllers/application_controller.rb
65
+ - test/dummy/Rakefile
66
+ - test/dummy/script/rails
67
+ - test/dummy/test/siringa/definitions.rb
68
+ - test/dummy/test/factories.rb
69
+ - test/dummy/config/locales/en.yml
70
+ - test/dummy/config/initializers/mime_types.rb
71
+ - test/dummy/config/initializers/inflections.rb
72
+ - test/dummy/config/initializers/secret_token.rb
73
+ - test/dummy/config/initializers/siringa.rb
74
+ - test/dummy/config/initializers/wrap_parameters.rb
75
+ - test/dummy/config/initializers/backtrace_silencers.rb
76
+ - test/dummy/config/initializers/session_store.rb
77
+ - test/dummy/config/application.rb
78
+ - test/dummy/config/boot.rb
79
+ - test/dummy/config/database.yml
80
+ - test/dummy/config/environment.rb
81
+ - test/dummy/config/environments/production.rb
82
+ - test/dummy/config/environments/test.rb
83
+ - test/dummy/config/environments/development.rb
84
+ - test/dummy/config/routes.rb
85
+ - test/dummy/config.ru
86
+ - test/dummy/public/422.html
87
+ - test/dummy/public/favicon.ico
88
+ - test/dummy/public/500.html
89
+ - test/dummy/public/404.html
90
+ - test/dummy/log/test.log
91
+ - test/dummy/log/development.log
92
+ - test/controllers/siringa_controller_test.rb
93
+ homepage: https://github.com/enricostano/siringa
94
+ licenses: []
95
+ metadata: {}
96
+ post_install_message:
97
+ rdoc_options: []
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ! '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ required_rubygems_version: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ requirements: []
111
+ rubyforge_project:
112
+ rubygems_version: 2.0.7
113
+ signing_key:
114
+ specification_version: 4
115
+ summary: Remotely populate DB for Rails applications for pure client acceptance testing
116
+ test_files:
117
+ - test/test_helper.rb
118
+ - test/integration/navigation_test.rb
119
+ - test/siringa_test.rb
120
+ - test/dummy/db/migrate/20130927161308_create_user.rb
121
+ - test/dummy/db/schema.rb
122
+ - test/dummy/db/test.sqlite3
123
+ - test/dummy/db/development.sqlite3
124
+ - test/dummy/tmp/dumps/db_20130927191400.dump
125
+ - test/dummy/app/models/user.rb
126
+ - test/dummy/app/views/layouts/application.html.erb
127
+ - test/dummy/app/helpers/application_helper.rb
128
+ - test/dummy/app/assets/stylesheets/application.css
129
+ - test/dummy/app/assets/javascripts/application.js
130
+ - test/dummy/app/controllers/application_controller.rb
131
+ - test/dummy/Rakefile
132
+ - test/dummy/script/rails
133
+ - test/dummy/test/siringa/definitions.rb
134
+ - test/dummy/test/factories.rb
135
+ - test/dummy/config/locales/en.yml
136
+ - test/dummy/config/initializers/mime_types.rb
137
+ - test/dummy/config/initializers/inflections.rb
138
+ - test/dummy/config/initializers/secret_token.rb
139
+ - test/dummy/config/initializers/siringa.rb
140
+ - test/dummy/config/initializers/wrap_parameters.rb
141
+ - test/dummy/config/initializers/backtrace_silencers.rb
142
+ - test/dummy/config/initializers/session_store.rb
143
+ - test/dummy/config/application.rb
144
+ - test/dummy/config/boot.rb
145
+ - test/dummy/config/database.yml
146
+ - test/dummy/config/environment.rb
147
+ - test/dummy/config/environments/production.rb
148
+ - test/dummy/config/environments/test.rb
149
+ - test/dummy/config/environments/development.rb
150
+ - test/dummy/config/routes.rb
151
+ - test/dummy/config.ru
152
+ - test/dummy/public/422.html
153
+ - test/dummy/public/favicon.ico
154
+ - test/dummy/public/500.html
155
+ - test/dummy/public/404.html
156
+ - test/dummy/log/test.log
157
+ - test/dummy/log/development.log
158
+ - test/controllers/siringa_controller_test.rb