iron_cuke 0.0.4 → 0.0.5

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 (43) hide show
  1. data/.gitignore +1 -1
  2. data/changelog.md +7 -0
  3. data/iron_cuke.gemspec +4 -1
  4. data/iron_cuke.log.0 +136 -0
  5. data/lib/iron_cuke/version.rb +1 -1
  6. data/spec/dummy/README.rdoc +261 -0
  7. data/spec/dummy/Rakefile +7 -0
  8. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  9. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  10. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  11. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  12. data/spec/dummy/app/mailers/.gitkeep +0 -0
  13. data/spec/dummy/app/models/.gitkeep +0 -0
  14. data/spec/dummy/app/models/ore.rb +7 -0
  15. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  16. data/spec/dummy/config.ru +4 -0
  17. data/spec/dummy/config/application.rb +56 -0
  18. data/spec/dummy/config/boot.rb +10 -0
  19. data/spec/dummy/config/database.yml +25 -0
  20. data/spec/dummy/config/environment.rb +5 -0
  21. data/spec/dummy/config/environments/development.rb +30 -0
  22. data/spec/dummy/config/environments/test.rb +34 -0
  23. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  24. data/spec/dummy/config/initializers/inflections.rb +15 -0
  25. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  26. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  27. data/spec/dummy/config/initializers/session_store.rb +8 -0
  28. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  29. data/spec/dummy/config/locales/en.yml +5 -0
  30. data/spec/dummy/config/routes.rb +3 -0
  31. data/spec/dummy/db/development.sqlite3 +0 -0
  32. data/spec/dummy/db/test.sqlite3 +0 -0
  33. data/spec/dummy/lib/assets/.gitkeep +0 -0
  34. data/spec/dummy/log/.gitkeep +0 -0
  35. data/spec/dummy/public/404.html +26 -0
  36. data/spec/dummy/public/422.html +26 -0
  37. data/spec/dummy/public/500.html +25 -0
  38. data/spec/dummy/public/favicon.ico +0 -0
  39. data/spec/dummy/script/rails +6 -0
  40. data/spec/integration/application_spec.rb +16 -0
  41. data/spec/integration/visit_page_spec.rb +13 -0
  42. data/spec/spec_helper.rb +6 -1
  43. metadata +131 -23
data/.gitignore CHANGED
@@ -2,4 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
- iron_cuke.log*
5
+ *.log
@@ -0,0 +1,7 @@
1
+ Todo
2
+ ====
3
+
4
+ 0.0.2 - First working prototype support scheduling tasks
5
+ 0.0.3 - Added queue support
6
+ 0.0.4 - Bug fixes
7
+ 0.0.5 - Fixed an integration issue that was breaking active controller. Added a dummy app skeleton for future testing purposes.
@@ -21,13 +21,16 @@ Gem::Specification.new do |s|
21
21
  # specify any dependencies here; for example:
22
22
  s.add_dependency "iron_worker", '~>2.3'
23
23
  s.add_dependency "cucumber", "~>1.1"
24
- s.add_dependency "rails", "~>3.0"
24
+ s.add_dependency "rails", "~>3.1"
25
25
  s.add_dependency "json", '~>1.4'
26
26
 
27
27
  s.add_development_dependency "rack"
28
28
  s.add_development_dependency "bundler"
29
29
  s.add_development_dependency "git"
30
30
  s.add_development_dependency "rspec-rails", '~>2.8'
31
+ s.add_development_dependency 'capybara', '~>1.1'
31
32
  s.add_development_dependency "cucumber-rails", '~>1.1'
32
33
  s.add_development_dependency "ruby-debug19"
34
+ s.add_development_dependency 'sqlite3'
35
+ s.add_development_dependency 'typhoeus'
33
36
  end
@@ -0,0 +1,136 @@
1
+ # Logfile created on 2012-02-01 18:56:13 -0800 by logger.rb/25413
2
+ Test worker run #<TestWorker:0x00000101e265d8>
3
+ Test worker run #<TestWorker:0x00000101e265b0>
4
+ Test worker run #<TestWorker:0x00000101576910>
5
+ Test worker run #<TestWorker:0x000001015768e8>
6
+ Test worker run #<TestWorker:0x0000010138e6e8>
7
+ Test worker run #<TestWorker:0x0000010138e6c0>
8
+ Test worker run #<TestWorker:0x00000101421f10>
9
+ Test worker run #<TestWorker:0x00000101421da8>
10
+ Test worker run #<TestWorker:0x00000101bc16a8>
11
+ Test worker run #<TestWorker:0x00000101bc1680>
12
+ Test worker run #<TestWorker:0x00000101530ed8>
13
+ Test worker run #<TestWorker:0x00000101530eb0>
14
+ Test worker run #<TestWorker:0x000001014f0900>
15
+ Test worker run #<TestWorker:0x000001014f08d8>
16
+ Test worker run #<TestWorker:0x000001013f64f0>
17
+ Test worker run #<TestWorker:0x000001013f64c8>
18
+ Test worker run #<TestWorker:0x00000101402228>
19
+ Test worker run #<TestWorker:0x00000101402200>
20
+ Test worker run #<TestWorker:0x00000101466908>
21
+ Test worker run #<TestWorker:0x000001014668e0>
22
+ Test worker run #<TestWorker:0x00000101d84a58>
23
+ Test worker run #<TestWorker:0x00000101d84a30>
24
+ Test worker run #<TestWorker:0x000001029eb878>
25
+ Test worker run #<TestWorker:0x000001029eb850>
26
+ Test worker run #<TestWorker:0x000001016a2e38>
27
+ Test worker run #<TestWorker:0x000001016a2e10>
28
+ Test worker run #<TestWorker:0x00000101ca7928>
29
+ Test worker run #<TestWorker:0x00000101ca7900>
30
+ Test worker run #<TestWorker:0x00000102946af8>
31
+ Test worker run #<TestWorker:0x00000102946ad0>
32
+ Test worker run #<TestWorker:0x00000102b0e728>
33
+ Test worker run #<TestWorker:0x00000102b0e700>
34
+ Test worker run #<TestWorker:0x0000010122fe28>
35
+ Test worker run #<TestWorker:0x0000010122fe00>
36
+ Test worker run #<TestWorker:0x00000100cd4000>
37
+ Test worker run #<TestWorker:0x00000100cd3fd8>
38
+ Test worker run #<TestWorker:0x00000102a803b0>
39
+ Test worker run #<TestWorker:0x00000102a80388>
40
+ Test worker run #<TestWorker:0x00000102a4edb0>
41
+ Test worker run #<TestWorker:0x00000102a4ed88>
42
+ Test worker run #<TestWorker:0x000001028bd168>
43
+ Test worker run #<TestWorker:0x000001028bd140>
44
+ Test worker run #<TestWorker:0x000001012e5278>
45
+ Test worker run #<TestWorker:0x000001012e5250>
46
+ Test worker run #<TestWorker:0x0000010292ce28>
47
+ Test worker run #<TestWorker:0x0000010292ce00>
48
+ Test worker run #<TestWorker:0x00000100f4dae8>
49
+ Test worker run #<TestWorker:0x00000100f4dac0>
50
+ Test worker run #<TestWorker:0x00000102a4a418>
51
+ Test worker run #<TestWorker:0x00000102a4a3f0>
52
+ Test worker run #<TestWorker:0x0000010280f2e8>
53
+ Test worker run #<TestWorker:0x0000010280f2c0>
54
+ Test worker run #<TestWorker:0x0000010288ddf0>
55
+ Test worker run #<TestWorker:0x0000010288ddc8>
56
+ Test worker run #<TestWorker:0x00000101da8430>
57
+ Test worker run #<TestWorker:0x00000101da8408>
58
+ Test worker run #<TestWorker:0x000001017484c8>
59
+ Test worker run #<TestWorker:0x000001017484a0>
60
+ Test worker run #<TestWorker:0x0000010162fb68 @foo="bar">
61
+ Test worker run #<TestWorker:0x0000010162fb18 @foo="bar">
62
+ Test worker run #<TestWorker:0x000001013bc778 @foo="bar">
63
+ Test worker run #<TestWorker:0x000001013bc728 @foo="bar">
64
+ Test worker run #<TestWorker:0x00000100d7d920 @foo="bar">
65
+ Test worker run #<TestWorker:0x00000100d7d8d0 @foo="bar">
66
+ Test worker run #<TestWorker:0x00000102a94450 @foo="bar">
67
+ Test worker run #<TestWorker:0x00000102a94400 @foo="bar">
68
+ Test worker run #<TestWorker:0x00000102a891b8 @foo="bar">
69
+ Test worker run #<TestWorker:0x00000102a89168 @foo="bar">
70
+ Test worker run #<TestWorker:0x00000102beab60 @foo="bar">
71
+ Test worker run #<TestWorker:0x00000102beab10 @foo="bar">
72
+ Test worker run #<TestWorker:0x000001029b7d98 @foo="bar", @schedule_id="8d6d336eff37ab72bb263828da9eba7f">
73
+ Test worker run #<TestWorker:0x000001029b7d48 @foo="bar", @schedule_id="d52604d0d4c172d4734a73f245ec025f">
74
+ Test worker run #<TestWorker:0x00000102b4f340 @foo="bar">
75
+ Test worker run #<TestWorker:0x00000102b4f2f0 @foo="bar">
76
+ Test worker run #<TestWorker:0x0000010291f2a0 @foo="bar", @schedule_id="67d259334f141712bcbd9f827f7d79eb">
77
+ Test worker run #<TestWorker:0x0000010291f250 @foo="bar", @schedule_id="67aa8a8dccd37f5329d6135ccc20df93">
78
+ Test worker run #<TestWorker:0x00000102976528 @foo="bar", @schedule_id="39a4ce57f9ee992caf57350d25de51ea">
79
+ Test worker run #<TestWorker:0x000001029764d8 @foo="bar", @schedule_id="911192e9d8e66f4040a26cbb65cb4093">
80
+ Test worker run #<TestWorker:0x000001028729b0 @foo="bar", @schedule_id="1469b43b9fc95128ecf8b0e7c23c30a7">
81
+ Test worker run #<TestWorker:0x00000102872960 @foo="bar", @schedule_id="d8a2f20de008fa74e58ac410e4c3bc5d">
82
+ Test worker run #<TestWorker:0x00000100f64b30 @foo="bar", @schedule_id="5dd35626957bb0fbd374e5bd7c177b62">
83
+ Test worker run #<TestWorker:0x00000100f64ae0 @foo="bar", @schedule_id="3dc350e174845b1a8ca490f79631b71c">
84
+ Test worker run #<TestWorker:0x00000100cee4f0 @foo="bar", @schedule_id="51570bd10f35148a9b586241dccda16f">
85
+ Test worker run #<TestWorker:0x00000100cee4a0 @foo="bar", @schedule_id="900c026c0aa8b8ad703cfc96651457f6">
86
+ Test worker run #<TestWorker:0x00000102b065c8 @foo="bar", @schedule_id="f8ffdc282814ba16797f49a637812a34">
87
+ Test worker run #<TestWorker:0x00000102b06578 @foo="bar", @schedule_id="ce85ea4b03ae12bc58b444e88f00448c">
88
+ Test worker run #<TestWorker:0x00000100fc2ff0 @foo="bar", @schedule_id="dbf95442c73354988581f1e0f46bd01a">
89
+ Test worker run #<TestWorker:0x00000100fc2fa0 @foo="bar", @schedule_id="7d9e59d2a877f1f693b212099a0c98e7">
90
+ Test worker run #<TestWorker:0x0000010281dff0 @foo="bar", @schedule_id="3383ed85f110e1564cb9cad4581e95fc">
91
+ Test worker run #<TestWorker:0x0000010281df50 @foo="bar", @schedule_id="4914ebeea477d6364b396239f407320f">
92
+ Test worker run #<TestWorker:0x00000102ae4630 @foo="bar", @schedule_id="6d3230619373b8af7f611e2e71921575">
93
+ Test worker run #<TestWorker:0x00000102ae45e0 @foo="bar", @schedule_id="56c6bf5d4537b8484de5d0634a47494a">
94
+ Test worker run #<TestWorker:0x00000100e3b1c8 @foo="bar", @schedule_id="dd1638248f88d3c7f12cc63959e5173e">
95
+ Test worker run #<TestWorker:0x00000100e3fd90 @foo="bar", @schedule_id="e8bf3abcc19c611bd2688c8cf9dce222">
96
+ Test worker run #<TestWorker:0x00000100e3fd40 @foo="bar", @schedule_id="0aed940a940b39ff0e442ebdb489159e">
97
+ Test worker run #<TestWorker:0x00000100fbb340 @foo="bar", @schedule_id="64162ec5c64a89052763e7b7e5df094b">
98
+ Test worker run #<TestWorker:0x00000100fbb2f0 @foo="bar", @schedule_id="451254cf5bf1baaddba5cbb7bba32edf">
99
+ Test worker run #<TestWorker:0x000001029ddea8 @foo="bar", @schedule_id="4e742f13c1fbd11fbd3ff6cdedbd1e1d">
100
+ Test worker run #<TestWorker:0x000001029e2a70 @foo="bar", @schedule_id="d24d3ed4f0befd2a2118559a738b011f">
101
+ Test worker run #<TestWorker:0x000001029e2a20 @foo="bar", @schedule_id="8bda70e467c96b31873518538841ed8c">
102
+ Test worker run #<TestWorker:0x000001029fd1e0 @foo="bar", @schedule_id="3b65971ebbe2a2274aeeb6383f803526">
103
+ Test worker run #<TestWorker:0x000001029fd190 @foo="bar", @schedule_id="f9312f5db1be65791babf4d4707ba1f2">
104
+ Test worker run #<TestWorker:0x000001013f83e0 @foo="bar", @schedule_id="eec31629f6c768913f5970510893c0d2">
105
+ Test worker run #<TestWorker:0x000001013f8390 @foo="bar", @schedule_id="fe07ec3e8cf867e01813b5e8edcf34ed">
106
+ Test worker run #<TestWorker:0x00000101df58c0 @foo="bar", @schedule_id="738b087069b1c3d35179d7397bc4e88d">
107
+ Test worker run #<TestWorker:0x00000101df5870 @foo="bar", @schedule_id="ae20539fb3fe4630c153cf5ca3d1301b">
108
+ Test worker run #<TestWorker:0x00000101793798 @foo="bar", @schedule_id="14dcf7fd42356bc1229e0e9e1d7479b7">
109
+ Test worker run #<TestWorker:0x00000101793748 @foo="bar", @schedule_id="6f79412919928de38e06aecabff9a4ff">
110
+ Test worker run #<TestWorker:0x000001028ec760 @foo="bar", @schedule_id="4e80cb573119dcdd1a58a2233840473a">
111
+ Test worker run #<TestWorker:0x000001028ec710 @foo="bar", @schedule_id="5f18ab8ca05fb229d71596f9f682135c">
112
+ Test worker run #<TestWorker:0x000001016372f0 @foo="bar", @schedule_id="cab998626440a501b453276a6191494a">
113
+ Test worker run #<TestWorker:0x000001016372a0 @foo="bar", @schedule_id="def095270b6d32c4a628129724a68bdc">
114
+ Test worker run #<TestWorker:0x00000102899df8 @foo="bar", @schedule_id="e809ab00c84d04ae496f39001efd1791">
115
+ Test worker run #<TestWorker:0x00000102899da8 @foo="bar", @schedule_id="b00992e133ec0d6dbd9b8c418c3c13e5">
116
+ Test worker run #<TestWorker:0x000001014e66a8 @foo="bar", @schedule_id="1e1c80b83832f0219b08b7a3a840ace6">
117
+ Test worker run #<TestWorker:0x000001014e6658 @foo="bar", @schedule_id="b315497c70c7367c1065818ce318d975">
118
+ Test worker run #<TestWorker:0x00000101bf9fd0 @foo="bar", @schedule_id="49251810e92b3b747178f23ece7b3ffa">
119
+ Test worker run #<TestWorker:0x00000101bf9f80 @foo="bar", @schedule_id="659b3d2cf137e600722b2a245380b07a">
120
+ Test worker run #<TestWorker:0x000001015fe5e0 @foo="bar", @schedule_id="8f20b331574d48f68fdfc8f7436cb670">
121
+ Test worker run #<TestWorker:0x000001015fe590 @foo="bar", @schedule_id="11be4eca4e7dcc5096450ed25ab5eae4">
122
+ Test worker run #<TestWorker:0x00000101dff2d0 @foo="bar", @schedule_id="5f8690f6c365a9fc195ced2ad4de99bf">
123
+ Test worker run #<TestWorker:0x00000101dff280 @foo="bar", @schedule_id="7fe369b39873021a882cc518ef3905ee">
124
+ Test worker run #<TestWorker:0x0000010294a400 @foo="bar", @schedule_id="1bd29396d7619016b744dc73b466268d">
125
+ Test worker run #<TestWorker:0x0000010294a3b0 @foo="bar", @schedule_id="5a04943f40b36415b2ea5da843aeca21">
126
+ Test worker run #<TestWorker:0x000001028820e0 @foo="bar", @schedule_id="785753a6c81bd273005280307ee2c524">
127
+ Test worker run #<TestWorker:0x00000102882090 @foo="bar", @schedule_id="3fad938fa4ee39625e237b3836bb3311">
128
+ Test worker run #<TestWorker:0x000001028dec50 @foo="bar", @schedule_id="c96ee1bad18e875d04f2ec0de1c4a59f">
129
+ Test worker run #<TestWorker:0x000001028dec00 @foo="bar", @schedule_id="9af4153d14ecad815258a2034434df54">
130
+ Test worker run #<TestWorker:0x00000100fe75f8 @foo="bar", @schedule_id="04157db242ecacbcb0b937952dfe274a">
131
+ Test worker run #<TestWorker:0x00000100fe75a8 @foo="bar", @schedule_id="67adadff312137459298686ba6b01e96">
132
+ Test worker run #<TestWorker:0x00000102832d38 @foo="bar", @schedule_id="67e3340fa1985bf9ef2ee089a1771aa4">
133
+ Test worker run #<TestWorker:0x00000102832ce8 @foo="bar", @schedule_id="c504a974592bb6aaee9a5f188072597b">
134
+ Test worker run #<TestWorker:0x0000010292edb8 @foo="bar", @schedule_id="aea60d1c68c005de58a5fd5a059c7f72">
135
+ Test worker run #<TestWorker:0x0000010292ed68 @foo="bar", @schedule_id="2a366d40595e9cfa7bd3117ed742bfd3">
136
+ Test worker run #<TestWorker:0x000001015f5b20 @foo="bar", @schedule_id="1622281de3307a191e5ee63b51616cc2">
@@ -1,3 +1,3 @@
1
1
  module IronCuke
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -0,0 +1,261 @@
1
+ == Welcome to Rails
2
+
3
+ Rails is a web-application framework that includes everything needed to create
4
+ database-backed web applications according to the Model-View-Control pattern.
5
+
6
+ This pattern splits the view (also called the presentation) into "dumb"
7
+ templates that are primarily responsible for inserting pre-built data in between
8
+ HTML tags. The model contains the "smart" domain objects (such as Account,
9
+ Product, Person, Post) that holds all the business logic and knows how to
10
+ persist themselves to a database. The controller handles the incoming requests
11
+ (such as Save New Account, Update Product, Show Post) by manipulating the model
12
+ and directing data to the view.
13
+
14
+ In Rails, the model is handled by what's called an object-relational mapping
15
+ layer entitled Active Record. This layer allows you to present the data from
16
+ database rows as objects and embellish these data objects with business logic
17
+ methods. You can read more about Active Record in
18
+ link:files/vendor/rails/activerecord/README.html.
19
+
20
+ The controller and view are handled by the Action Pack, which handles both
21
+ layers by its two parts: Action View and Action Controller. These two layers
22
+ are bundled in a single package due to their heavy interdependence. This is
23
+ unlike the relationship between the Active Record and Action Pack that is much
24
+ more separate. Each of these packages can be used independently outside of
25
+ Rails. You can read more about Action Pack in
26
+ link:files/vendor/rails/actionpack/README.html.
27
+
28
+
29
+ == Getting Started
30
+
31
+ 1. At the command prompt, create a new Rails application:
32
+ <tt>rails new myapp</tt> (where <tt>myapp</tt> is the application name)
33
+
34
+ 2. Change directory to <tt>myapp</tt> and start the web server:
35
+ <tt>cd myapp; rails server</tt> (run with --help for options)
36
+
37
+ 3. Go to http://localhost:3000/ and you'll see:
38
+ "Welcome aboard: You're riding Ruby on Rails!"
39
+
40
+ 4. Follow the guidelines to start developing your application. You can find
41
+ the following resources handy:
42
+
43
+ * The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
44
+ * Ruby on Rails Tutorial Book: http://www.railstutorial.org/
45
+
46
+
47
+ == Debugging Rails
48
+
49
+ Sometimes your application goes wrong. Fortunately there are a lot of tools that
50
+ will help you debug it and get it back on the rails.
51
+
52
+ First area to check is the application log files. Have "tail -f" commands
53
+ running on the server.log and development.log. Rails will automatically display
54
+ debugging and runtime information to these files. Debugging info will also be
55
+ shown in the browser on requests from 127.0.0.1.
56
+
57
+ You can also log your own messages directly into the log file from your code
58
+ using the Ruby logger class from inside your controllers. Example:
59
+
60
+ class WeblogController < ActionController::Base
61
+ def destroy
62
+ @weblog = Weblog.find(params[:id])
63
+ @weblog.destroy
64
+ logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
65
+ end
66
+ end
67
+
68
+ The result will be a message in your log file along the lines of:
69
+
70
+ Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
71
+
72
+ More information on how to use the logger is at http://www.ruby-doc.org/core/
73
+
74
+ Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
75
+ several books available online as well:
76
+
77
+ * Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
78
+ * Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
79
+
80
+ These two books will bring you up to speed on the Ruby language and also on
81
+ programming in general.
82
+
83
+
84
+ == Debugger
85
+
86
+ Debugger support is available through the debugger command when you start your
87
+ Mongrel or WEBrick server with --debugger. This means that you can break out of
88
+ execution at any point in the code, investigate and change the model, and then,
89
+ resume execution! You need to install ruby-debug to run the server in debugging
90
+ mode. With gems, use <tt>sudo gem install ruby-debug</tt>. Example:
91
+
92
+ class WeblogController < ActionController::Base
93
+ def index
94
+ @posts = Post.all
95
+ debugger
96
+ end
97
+ end
98
+
99
+ So the controller will accept the action, run the first line, then present you
100
+ with a IRB prompt in the server window. Here you can do things like:
101
+
102
+ >> @posts.inspect
103
+ => "[#<Post:0x14a6be8
104
+ @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>,
105
+ #<Post:0x14a6620
106
+ @attributes={"title"=>"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
107
+ >> @posts.first.title = "hello from a debugger"
108
+ => "hello from a debugger"
109
+
110
+ ...and even better, you can examine how your runtime objects actually work:
111
+
112
+ >> f = @posts.first
113
+ => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
114
+ >> f.
115
+ Display all 152 possibilities? (y or n)
116
+
117
+ Finally, when you're ready to resume execution, you can enter "cont".
118
+
119
+
120
+ == Console
121
+
122
+ The console is a Ruby shell, which allows you to interact with your
123
+ application's domain model. Here you'll have all parts of the application
124
+ configured, just like it is when the application is running. You can inspect
125
+ domain models, change values, and save to the database. Starting the script
126
+ without arguments will launch it in the development environment.
127
+
128
+ To start the console, run <tt>rails console</tt> from the application
129
+ directory.
130
+
131
+ Options:
132
+
133
+ * Passing the <tt>-s, --sandbox</tt> argument will rollback any modifications
134
+ made to the database.
135
+ * Passing an environment name as an argument will load the corresponding
136
+ environment. Example: <tt>rails console production</tt>.
137
+
138
+ To reload your controllers and models after launching the console run
139
+ <tt>reload!</tt>
140
+
141
+ More information about irb can be found at:
142
+ link:http://www.rubycentral.org/pickaxe/irb.html
143
+
144
+
145
+ == dbconsole
146
+
147
+ You can go to the command line of your database directly through <tt>rails
148
+ dbconsole</tt>. You would be connected to the database with the credentials
149
+ defined in database.yml. Starting the script without arguments will connect you
150
+ to the development database. Passing an argument will connect you to a different
151
+ database, like <tt>rails dbconsole production</tt>. Currently works for MySQL,
152
+ PostgreSQL and SQLite 3.
153
+
154
+ == Description of Contents
155
+
156
+ The default directory structure of a generated Ruby on Rails application:
157
+
158
+ |-- app
159
+ | |-- assets
160
+ | |-- images
161
+ | |-- javascripts
162
+ | `-- stylesheets
163
+ | |-- controllers
164
+ | |-- helpers
165
+ | |-- mailers
166
+ | |-- models
167
+ | `-- views
168
+ | `-- layouts
169
+ |-- config
170
+ | |-- environments
171
+ | |-- initializers
172
+ | `-- locales
173
+ |-- db
174
+ |-- doc
175
+ |-- lib
176
+ | `-- tasks
177
+ |-- log
178
+ |-- public
179
+ |-- script
180
+ |-- test
181
+ | |-- fixtures
182
+ | |-- functional
183
+ | |-- integration
184
+ | |-- performance
185
+ | `-- unit
186
+ |-- tmp
187
+ | |-- cache
188
+ | |-- pids
189
+ | |-- sessions
190
+ | `-- sockets
191
+ `-- vendor
192
+ |-- assets
193
+ `-- stylesheets
194
+ `-- plugins
195
+
196
+ app
197
+ Holds all the code that's specific to this particular application.
198
+
199
+ app/assets
200
+ Contains subdirectories for images, stylesheets, and JavaScript files.
201
+
202
+ app/controllers
203
+ Holds controllers that should be named like weblogs_controller.rb for
204
+ automated URL mapping. All controllers should descend from
205
+ ApplicationController which itself descends from ActionController::Base.
206
+
207
+ app/models
208
+ Holds models that should be named like post.rb. Models descend from
209
+ ActiveRecord::Base by default.
210
+
211
+ app/views
212
+ Holds the template files for the view that should be named like
213
+ weblogs/index.html.erb for the WeblogsController#index action. All views use
214
+ eRuby syntax by default.
215
+
216
+ app/views/layouts
217
+ Holds the template files for layouts to be used with views. This models the
218
+ common header/footer method of wrapping views. In your views, define a layout
219
+ using the <tt>layout :default</tt> and create a file named default.html.erb.
220
+ Inside default.html.erb, call <% yield %> to render the view using this
221
+ layout.
222
+
223
+ app/helpers
224
+ Holds view helpers that should be named like weblogs_helper.rb. These are
225
+ generated for you automatically when using generators for controllers.
226
+ Helpers can be used to wrap functionality for your views into methods.
227
+
228
+ config
229
+ Configuration files for the Rails environment, the routing map, the database,
230
+ and other dependencies.
231
+
232
+ db
233
+ Contains the database schema in schema.rb. db/migrate contains all the
234
+ sequence of Migrations for your schema.
235
+
236
+ doc
237
+ This directory is where your application documentation will be stored when
238
+ generated using <tt>rake doc:app</tt>
239
+
240
+ lib
241
+ Application specific libraries. Basically, any kind of custom code that
242
+ doesn't belong under controllers, models, or helpers. This directory is in
243
+ the load path.
244
+
245
+ public
246
+ The directory available for the web server. Also contains the dispatchers and the
247
+ default HTML files. This should be set as the DOCUMENT_ROOT of your web
248
+ server.
249
+
250
+ script
251
+ Helper scripts for automation and generation.
252
+
253
+ test
254
+ Unit and functional tests along with fixtures. When using the rails generate
255
+ command, template test files will be generated for you and placed in this
256
+ directory.
257
+
258
+ vendor
259
+ External libraries that the application depends on. Also includes the plugins
260
+ subdirectory. If the app has frozen rails, those gems also go here, under
261
+ vendor/rails/. This directory is in the load path.
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env rake
2
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
3
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
+
5
+ require File.expand_path('../config/application', __FILE__)
6
+
7
+ Dummy::Application.load_tasks
@@ -0,0 +1,15 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // the compiled file.
9
+ //
10
+ // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ // GO AFTER THE REQUIRES BELOW.
12
+ //
13
+ //= require jquery
14
+ //= require jquery_ujs
15
+ //= require_tree .
@@ -0,0 +1,13 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+ *= require_tree .
13
+ */
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
File without changes
File without changes
@@ -0,0 +1,7 @@
1
+ class Ore
2
+ attr_accessor :size
3
+
4
+ def initialize(size = 1)
5
+ @size = size
6
+ end
7
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag "application", :media => "all" %>
6
+ <%= javascript_include_tag "application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -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,56 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require
6
+ require "iron_cuke"
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ # Settings in config/environments/* take precedence over those specified here.
11
+ # Application configuration should go into files in config/initializers
12
+ # -- all .rb files in that directory are automatically loaded.
13
+
14
+ # Custom directories with classes and modules you want to be autoloadable.
15
+ # config.autoload_paths += %W(#{config.root}/extras)
16
+
17
+ # Only load the plugins named here, in the order given (default is alphabetical).
18
+ # :all can be used as a placeholder for all plugins not explicitly named.
19
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
20
+
21
+ # Activate observers that should always be running.
22
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
23
+
24
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26
+ # config.time_zone = 'Central Time (US & Canada)'
27
+
28
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
29
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
30
+ # config.i18n.default_locale = :de
31
+
32
+ # Configure the default encoding used in templates for Ruby 1.9.
33
+ config.encoding = "utf-8"
34
+
35
+ # Configure sensitive parameters which will be filtered from the log file.
36
+ config.filter_parameters += [:password]
37
+
38
+ # Use SQL instead of Active Record's schema dumper when creating the database.
39
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
40
+ # like if you have constraints or database-specific column types
41
+ # config.active_record.schema_format = :sql
42
+
43
+ # Enforce whitelist mode for mass assignment.
44
+ # This will create an empty whitelist of attributes available for mass-assignment for all models
45
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
46
+ # parameters by using an attr_accessible or attr_protected declaration.
47
+ # config.active_record.whitelist_attributes = true
48
+
49
+ # Enable the asset pipeline
50
+ config.assets.enabled = true
51
+
52
+ # Version of your assets, change this if you want to expire all your assets
53
+ config.assets.version = '1.0'
54
+ end
55
+ end
56
+
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ development:
7
+ adapter: sqlite3
8
+ database: db/development.sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
+ # Do not set this db to the same as development or production.
15
+ test:
16
+ adapter: sqlite3
17
+ database: db/test.sqlite3
18
+ pool: 5
19
+ timeout: 5000
20
+
21
+ production:
22
+ adapter: sqlite3
23
+ database: db/production.sqlite3
24
+ pool: 5
25
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,30 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Do not compress assets
26
+ config.assets.compress = false
27
+
28
+ # Expands the lines which load the assets
29
+ config.assets.debug = true
30
+ end
@@ -0,0 +1,34 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Print deprecation notices to the stderr
33
+ config.active_support.deprecation = :stderr
34
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = '26b5d48a379ff3b72f112389726b97af444bfa3dcfc9a101ae06c5890d9cf98be2dc04234aaf2c421cb036b18b3f06556e68fc5ec8d0b9a9338f54c7b159fb63'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -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,3 @@
1
+ Dummy::Application.routes.draw do
2
+ root :to => 'homepage#show'
3
+ end
File without changes
File without changes
File without changes
File without changes
@@ -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,16 @@
1
+ require 'spec_helper'
2
+
3
+ describe 'Application sanity checks' do
4
+
5
+ context "for Rails.application" do
6
+ subject { Rails.application }
7
+ it {should be_kind_of Dummy::Application}
8
+ end
9
+
10
+ context "has ore" do
11
+ subject { Ore.new }
12
+ it { should respond_to(:size) }
13
+ it { should respond_to(:size=) }
14
+ end
15
+
16
+ end
@@ -0,0 +1,13 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Visit pages" do
4
+
5
+ describe "visit homepage" do
6
+ it "should not generate an error" do
7
+ expect {
8
+ visit "/"
9
+ }.to_not raise_error
10
+ end
11
+ end
12
+
13
+ end
@@ -4,4 +4,9 @@ require 'ruby-debug' unless ENV["CI"]
4
4
 
5
5
  Dir[File.dirname(__FILE__) + ("/support/**/*.rb")].each {|f| require f}
6
6
 
7
- require "iron_cuke"
7
+ require "iron_cuke"
8
+
9
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
10
+
11
+ require 'capybara/rspec'
12
+ require 'rspec/rails'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_cuke
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-15 00:00:00.000000000Z
12
+ date: 2012-03-25 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: iron_worker
16
- requirement: &2152262820 !ruby/object:Gem::Requirement
16
+ requirement: &2151991140 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2152262820
24
+ version_requirements: *2151991140
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: cucumber
27
- requirement: &2152261420 !ruby/object:Gem::Requirement
27
+ requirement: &2151990040 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,21 +32,21 @@ dependencies:
32
32
  version: '1.1'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2152261420
35
+ version_requirements: *2151990040
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rails
38
- requirement: &2152259520 !ruby/object:Gem::Requirement
38
+ requirement: &2151988700 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
42
42
  - !ruby/object:Gem::Version
43
- version: '3.0'
43
+ version: '3.1'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2152259520
46
+ version_requirements: *2151988700
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: json
49
- requirement: &2152258140 !ruby/object:Gem::Requirement
49
+ requirement: &2151987400 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '1.4'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2152258140
57
+ version_requirements: *2151987400
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rack
60
- requirement: &2152256940 !ruby/object:Gem::Requirement
60
+ requirement: &2151986600 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2152256940
68
+ version_requirements: *2151986600
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
- requirement: &2152234780 !ruby/object:Gem::Requirement
71
+ requirement: &2151985520 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2152234780
79
+ version_requirements: *2151985520
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: git
82
- requirement: &2152233460 !ruby/object:Gem::Requirement
82
+ requirement: &2151973680 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *2152233460
90
+ version_requirements: *2151973680
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rspec-rails
93
- requirement: &2152230640 !ruby/object:Gem::Requirement
93
+ requirement: &2151972180 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,21 @@ dependencies:
98
98
  version: '2.8'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *2152230640
101
+ version_requirements: *2151972180
102
+ - !ruby/object:Gem::Dependency
103
+ name: capybara
104
+ requirement: &2151970780 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: '1.1'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: *2151970780
102
113
  - !ruby/object:Gem::Dependency
103
114
  name: cucumber-rails
104
- requirement: &2152229020 !ruby/object:Gem::Requirement
115
+ requirement: &2151969620 !ruby/object:Gem::Requirement
105
116
  none: false
106
117
  requirements:
107
118
  - - ~>
@@ -109,10 +120,32 @@ dependencies:
109
120
  version: '1.1'
110
121
  type: :development
111
122
  prerelease: false
112
- version_requirements: *2152229020
123
+ version_requirements: *2151969620
113
124
  - !ruby/object:Gem::Dependency
114
125
  name: ruby-debug19
115
- requirement: &2152227140 !ruby/object:Gem::Requirement
126
+ requirement: &2151968080 !ruby/object:Gem::Requirement
127
+ none: false
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: *2151968080
135
+ - !ruby/object:Gem::Dependency
136
+ name: sqlite3
137
+ requirement: &2151966960 !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ! '>='
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ type: :development
144
+ prerelease: false
145
+ version_requirements: *2151966960
146
+ - !ruby/object:Gem::Dependency
147
+ name: typhoeus
148
+ requirement: &2151965740 !ruby/object:Gem::Requirement
116
149
  none: false
117
150
  requirements:
118
151
  - - ! '>='
@@ -120,7 +153,7 @@ dependencies:
120
153
  version: '0'
121
154
  type: :development
122
155
  prerelease: false
123
- version_requirements: *2152227140
156
+ version_requirements: *2151965740
124
157
  description: iron_cuke provides a set of steps and Cucumber world objects you can
125
158
  use to simulate IronWorker while running cucumber tests.
126
159
  email:
@@ -137,6 +170,7 @@ files:
137
170
  - README.md
138
171
  - Rakefile
139
172
  - TODO.md
173
+ - changelog.md
140
174
  - iron_cuke.gemspec
141
175
  - iron_cuke.log.0
142
176
  - lib/generators/iron_cuke_generator.rb
@@ -148,6 +182,43 @@ files:
148
182
  - lib/iron_cuke/scheduled_queue.rb
149
183
  - lib/iron_cuke/test_service.rb
150
184
  - lib/iron_cuke/version.rb
185
+ - spec/dummy/README.rdoc
186
+ - spec/dummy/Rakefile
187
+ - spec/dummy/app/assets/javascripts/application.js
188
+ - spec/dummy/app/assets/stylesheets/application.css
189
+ - spec/dummy/app/controllers/application_controller.rb
190
+ - spec/dummy/app/helpers/application_helper.rb
191
+ - spec/dummy/app/mailers/.gitkeep
192
+ - spec/dummy/app/models/.gitkeep
193
+ - spec/dummy/app/models/ore.rb
194
+ - spec/dummy/app/views/layouts/application.html.erb
195
+ - spec/dummy/config.ru
196
+ - spec/dummy/config/application.rb
197
+ - spec/dummy/config/boot.rb
198
+ - spec/dummy/config/database.yml
199
+ - spec/dummy/config/environment.rb
200
+ - spec/dummy/config/environments/development.rb
201
+ - spec/dummy/config/environments/test.rb
202
+ - spec/dummy/config/initializers/backtrace_silencers.rb
203
+ - spec/dummy/config/initializers/inflections.rb
204
+ - spec/dummy/config/initializers/mime_types.rb
205
+ - spec/dummy/config/initializers/secret_token.rb
206
+ - spec/dummy/config/initializers/session_store.rb
207
+ - spec/dummy/config/initializers/wrap_parameters.rb
208
+ - spec/dummy/config/locales/en.yml
209
+ - spec/dummy/config/routes.rb
210
+ - spec/dummy/db/development.sqlite3
211
+ - spec/dummy/db/test.sqlite3
212
+ - spec/dummy/lib/assets/.gitkeep
213
+ - spec/dummy/log/.gitkeep
214
+ - spec/dummy/log/development.log
215
+ - spec/dummy/public/404.html
216
+ - spec/dummy/public/422.html
217
+ - spec/dummy/public/500.html
218
+ - spec/dummy/public/favicon.ico
219
+ - spec/dummy/script/rails
220
+ - spec/integration/application_spec.rb
221
+ - spec/integration/visit_page_spec.rb
151
222
  - spec/lib/iron_cuke_spec.rb
152
223
  - spec/spec_helper.rb
153
224
  - spec/support/test_worker.rb
@@ -178,6 +249,43 @@ signing_key:
178
249
  specification_version: 3
179
250
  summary: A small gem to help you mock out iron worker while using cucumber
180
251
  test_files:
252
+ - spec/dummy/README.rdoc
253
+ - spec/dummy/Rakefile
254
+ - spec/dummy/app/assets/javascripts/application.js
255
+ - spec/dummy/app/assets/stylesheets/application.css
256
+ - spec/dummy/app/controllers/application_controller.rb
257
+ - spec/dummy/app/helpers/application_helper.rb
258
+ - spec/dummy/app/mailers/.gitkeep
259
+ - spec/dummy/app/models/.gitkeep
260
+ - spec/dummy/app/models/ore.rb
261
+ - spec/dummy/app/views/layouts/application.html.erb
262
+ - spec/dummy/config.ru
263
+ - spec/dummy/config/application.rb
264
+ - spec/dummy/config/boot.rb
265
+ - spec/dummy/config/database.yml
266
+ - spec/dummy/config/environment.rb
267
+ - spec/dummy/config/environments/development.rb
268
+ - spec/dummy/config/environments/test.rb
269
+ - spec/dummy/config/initializers/backtrace_silencers.rb
270
+ - spec/dummy/config/initializers/inflections.rb
271
+ - spec/dummy/config/initializers/mime_types.rb
272
+ - spec/dummy/config/initializers/secret_token.rb
273
+ - spec/dummy/config/initializers/session_store.rb
274
+ - spec/dummy/config/initializers/wrap_parameters.rb
275
+ - spec/dummy/config/locales/en.yml
276
+ - spec/dummy/config/routes.rb
277
+ - spec/dummy/db/development.sqlite3
278
+ - spec/dummy/db/test.sqlite3
279
+ - spec/dummy/lib/assets/.gitkeep
280
+ - spec/dummy/log/.gitkeep
281
+ - spec/dummy/log/development.log
282
+ - spec/dummy/public/404.html
283
+ - spec/dummy/public/422.html
284
+ - spec/dummy/public/500.html
285
+ - spec/dummy/public/favicon.ico
286
+ - spec/dummy/script/rails
287
+ - spec/integration/application_spec.rb
288
+ - spec/integration/visit_page_spec.rb
181
289
  - spec/lib/iron_cuke_spec.rb
182
290
  - spec/spec_helper.rb
183
291
  - spec/support/test_worker.rb